ML
    intermediate

    The Curse of Dimensionality

    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
    interiorShare of a 2-dimensional unit hypercube’s volume lying within 0.001 of a face.A 4-vertex hypercube. At d = 4 this is a tesseract, and picturing it is already hard.
    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 here

    False

    Drop items here
    6 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