Log inStart free
LESSON 4.19 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

The curse of dimensionality

Add features one by one, and watch the space empty out and distances blur.


Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 4.19 · DIMENSION BAY3¹⁰ = 59,049 CELLS · 200 OF 200 ALONE
01
Stage 1 of 5 · Split into cells
Cut each feature into 3 parts: 59,049 cells. 200 of 200 points sit alone in their cell.
Explain it simply

A feature is one number you measure, like age or height. Cut each feature into 3 parts, and each new feature multiplies the cells by 3. With 10 features, that's 59,049 cells for 200 points. So every point sits alone, with no neighbors to learn from.

The view shows 200 points and a 3 by 3 grid. In 10 features there are 59,049 cells; 200 hold a point; 200 points sit alone.

point (class A filled, B ring)cells, cube, theoryinside, nearest, neighborsalone, near an edge (band), farthest, wrong vote
the view: x₁ and x₂across d: share aloneper point: others in its cell000.50.511x₁x₂0%50%100%235102050100features dtheory100%alone024the view: x₁ and x₂across d: share aloneper point: others in its cell000.50.511x₁x₂0%50%100%235102050100features dtheory100%alone024
Toy: 50 to 800 points, uniform in a unit cube with 2 to 100 features · seeded · the view shows x₁ and x₂
STAGE 1 / 5
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
cells=3 d\text{cells} = \sy{b}{param}{3}^{\,\sy{d}{param}{d}}
310=59,049 cells;  200 filled, 200 of 200 alone3^{10} = 59{,}049\text{ cells};\ \ 200\text{ filled},\ 200\text{ of }200\text{ alone}

Each new feature multiplies the number of cells by 3.

Common mix-ups

MYTHMore data fixes the curse of dimensionality.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With 20 features, how wide must the 10% cube be?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
  • 4 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.