ML
intermediate
The Curse of Dimensionality
In a unit square a random point is almost never near a border; in a 10,000-dimensional one it almost always is. Two points inside a unit hypercube can sit 408 units apart. Every figure here is computed live from the dimension count, not quoted.
algorithms.live
What changes as the dimension grows
2
1101001K10K100K1M
0.001
Chance of being near a border
0.40%
1 − (1 − 2ε)^d
Mean distance between two points
0.5214
exact value
Instances for 0.1 spacing
100
(1 / 0.1)^d
At 2 dimensions you would need about 100 instances for a mean spacing of 0.1 — still a number you could imagine. Push the dimension slider toward 100 and watch that stop being true.
What happens as dimensions grow?
Sort
Sort each statement as true or false in high dimensions.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
True
Drop items hereFalse
Drop items here6 pieces left to place
Test your knowledge
20 questions
Question 1 of 20
Score: 0
A random point in a unit square has roughly what chance of lying within 0.001 of a border?
Learn these first
Interview Questions
Google
Meta
Two Sigma
Amazon
Google
Netflix
Stripe
Airbnb
Google
Apple
Spotify
Meta
Google
Meta
Apple
Palantir
Love this visualization?
Sign up to track your progress, earn achievements, use the AI assistant, and access your personal learning dashboard.
100% free • No credit card required