Math · Advanced · Lesson 3 of 8
Finding Clusters
k-means
An interactive lesson with 6 steps, about 5 minutes: you predict, drag and solve, with instant feedback on every answer. It runs in your browser and needs JavaScript.
What you’ll learn
- k-means: assign points to the nearest centre, move centres to the means, repeat.
- It always settles, but possibly on a local optimum: restart several times.
- Choose k with care; the elbow of the inertia curve is a guide.
Steps
- No labels at all
- Watch it run
- Move the centre
- How many clusters?
- Unlucky starts
- Inertia by hand