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

Clustering the same points four ways

Watch four clustering methods split the same 40 points, then score each split.


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/mo
EXPLAINER · 4.C3 · CLUSTER BAY40 POINTS · RING 16 · BLOBS 8, 10 · LONE 6
01
Stage 1 of 6 · The same points
The points form a ring, a dense blob, a long looser blob and lone points. The methods see only positions.
Explain it simply

You see 40 points, numbered from left to right. A ring of 16 circles a dense blob of 8. A long, tilted looser blob of 10 and 6 lone points sit apart. The dashed outlines show these groups; the methods never see them. Point 17 is 3.30 from the far side of its ring, but 1.12 from the dense blob.

40 points. A ring of 16 surrounds a dense blob of 8 on the left. A long, tilted looser blob of 10 sits on the right, with 6 lone points apart. Point 17 on the ring is 3.30 from the far side and 1.12 from the dense blob.

pointclusters A–D: one shape eachcentroid, Gaussian, ε, cutnoise ×, J, log L, s below 0true group, cell border
40 points · x 0 to 10, y 0 to 8four methods, one inputring · 16 around a dense blob · 8looser blob · 10lone points · 63.301.12171612k-meanscentroids and straight cells · 4.30Gaussian mixturesoft ellipses, fitted by EM · 4.29hierarchicala dendrogram, cut at k · 4.31DBSCAN and HDBSCANdense regions; noise left out · 4.32silhouetteone score for any result · 4.33input: 40 (x, y) positions onlypoint 17: 3.30 to the far side of its ringpoint 17: 1.12 to the dense blobd(17, 12) = √((2.6 − 2.4)² + (5.8 − 4.7)²) = 1.1240 points · x 0 to 10, y 0 to 8four methods, one inputring · 16 around a dense blob · 8looser blob · 10lone points · 63.301.12171612k-meanscentroids and straight cells · 4.30Gaussian mixturesoft ellipses, fitted by EM · 4.29hierarchicala dendrogram, cut at k · 4.31DBSCAN and HDBSCANdense regions; noise left out · 4.32silhouetteone score for any result · 4.33input: 40 (x, y) positions onlypoint 17: 3.30 to the far side of its ringpoint 17: 1.12 to the dense blobd(17, 12) = √((2.6 − 2.4)² + (5.8 − 4.7)²) = 1.12
Toy: 40 points · a ring, a dense blob, a long looser blob, 6 lone points
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
d(p,q)=(px−qx)2+(py−qy)2d(\sy{p}{data}{p}, \sy{q}{data}{q}) = \sqrt{(p_x - q_x)^2 + (p_y - q_y)^2}
d(p17,p12)=(2.6−2.4)2+(5.8−4.7)2=1.12d(p_{17}, p_{12}) = \sqrt{(2.6 - 2.4)^2 + (5.8 - 4.7)^2} = 1.12

Every method starts from straight-line distances between points.

Common mix-ups

MYTHThe highest silhouette marks the true clusters.

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

Predict, then reveal
3 CHECKS · PRO
Q01Which k gives k-means its highest silhouette score?

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 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.