LESSON 4.30 · 6 STAGES · 2 CONTROLS · 3 CHECKSPRO · PREVIEW
K-means and k-means++
Watch centroids move until no point changes cluster, then try a smarter start.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 2 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 4.30 · CLUSTER BAYK = 3 · START: POINTS 26, 1, 22
01
Stage 1 of 6 · Random start
K-means sorts unlabeled points into k = 3 clusters. A random start makes 3 points the centroids.
Explain it simply
You see 40 points with no labels: a ring around a dense blob, a looser blob and 6 lone points. K-means will sort them into 3 groups. To start, it picks 3 points at random: points 26, 1 and 22. Each ochre marker on them is a centroid, the center of one group.
Forty hollow teal points: a ring around a dense blob, a looser blob and 6 lone points. The random start puts 3 ochre centroids on points 26, 1 and 22.
points, hollow before they join a clustercentroids μ and their trailsclusters (a shape each), regions, k-means++ chancesinertia J and squared distances
Toy: the 4.C3 points, 40 unlabeled (a ring, two blobs, 6 lone points) · k = 2 to 4 · seeded starts
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
Each start centroid sits on a point drawn at random.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 2 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.