Log inStart free
LESSON 4.C4 · 6 STAGES · 4 CONTROLS · 3 CHECKSPRO · PREVIEW

Dimensionality reduction on one dataset

Watch PCA, t-SNE and UMAP flatten one rolled-up sheet of points.


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

Go Pro · $8.25/mo
EXPLAINER · 4.C4 · MAP BAY120 POINTS · A10 TO D8: 3-D 6.2 · SHEET 51.1
01
Stage 1 of 6 · A rolled sheet
The points lie on a rolled-up 2-D sheet, a manifold. Two points can be close in 3-D yet far along the sheet.
Explain it simply

You see 120 points in four clusters, A to D. Cluster C is 3.5 times as wide as cluster B. The panel "the sheet, unrolled" shows the same sheet, flat: the map each method tries to find. The red line joins A10 and D8: they are 6.2 apart in 3-D, but 51.1 apart along the sheet.

A rolled sheet of 120 points in 3-D, in clusters A to D, beside the same sheet unrolled. A10 and D8 are 6.2 apart in 3-D and 51.1 along the sheet.

points, clusters A to DPCA axes, linksshortcuts across layers, far neighborsmap points, scores
3-D · rolled sheet · 120 pointsthe sheet, unrolled · the truthABCDA10D83-D 6.2sheet 51.1A10D8A10 to D8 along the sheet: 51.13-D · rolled sheet · 120 pointsthe sheet, unrolled · the truthABCDA10D83-D 6.2sheet 51.1A10D8A10 to D8 along the sheet: 51.1
Toy: 120 points · 4 clusters of unequal width · a tall 3-D roll, so PCA has to fail
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
dij=∥xi−xj∥vssij=length of the path on the sheet\sy{d3}{grad}{d_{ij}} = \lVert \sy{x}{data}{x_i - x_j} \rVert \quad\text{vs}\quad \sy{ds}{data}{s_{ij}} = \text{length of the path on the sheet}
dA10,D8=6.2,sA10,D8=51.1\sy{d3}{grad}{d_{\text{A10},\text{D8}} = 6.2},\quad \sy{ds}{data}{s_{\text{A10},\text{D8}} = 51.1}

A straight line can skip across the layers of the roll.

Common mix-ups

MYTHt-SNE and UMAP always beat PCA.

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

Predict, then reveal
3 CHECKS · PRO
Q01If the sheet is flat, how many sheet neighbors does PCA keep?

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

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 4 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.