LESSON 4.17 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Distance and similarity measures
Watch six measures rank eight points around a query, and see the winner change.
Needs4.16 Early stopping
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 4.17 · DISTANCE BAYL2 NEAREST: POINT 3 · 1.57
01
Stage 1 of 6 · Euclidean
Euclidean distance is the straight line from q. Point 3 is nearest: √(0.7² + (−1.4)²) = 1.57.
Explain it simply
Each point is two numbers, its features. Euclidean distance is the straight line from q, the query, to a point. Square the two gaps, add them, and take the square root, like Pythagoras. The dashed circle passes through point 3, and no point sits inside it.
Lines join q to all eight points. Point 3 is nearest, at 1.57. A dashed circle passes through it.
pointsp and covariance Σwinner, contour, valuesdetour that breaks a distancegrid, other paths
Toy: 8 points · 2 features · 1 query q · 3 cloud shapes from one seed
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Square each gap, add them, then take the square root.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 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.