Tap to add a point · drag points or centroids (✚)
K-means groups data into k clusters without any labels (unsupervised learning). It repeats two steps:
It stops when nothing changes. The quality is measured by the inertia:
Before pressing anything, ask students to predict where the crosses will end up. Then step through and compare.
Real uses: grouping customers by shopping habits, compressing image colours, grouping news stories.
A free coding & ai simulation for Class 9–12.