k-Means Clustering

We may want to group similar observations without having labels for those groups. K-means uses nearby centres to assign the observations, then moves the centres to better represent their assigned points.

14 sections · 15 questions · 4 coding challenges

1 / 14

Could a Few Representative Points Summarise the Collection?

BOTIE

Imagine a large collection of measurements with no category labels. We would like to describe it using a small number of representative cases. The problem is circular: sensible representatives depend on the groups, but sensible groups depend on where the representatives are.

MacQueen's 1967 paper discussed methods for classifying multivariate observations and used the term k-means. It belongs to a broader history of clustering and quantisation, where researchers sought compact descriptions of many observations through representative centres.

The familiar batch procedure alternates between two manageable tasks. First assign each observation to its nearest centre. Then replace each centre with the mean of its assigned observations. Repeating those steps reduces the squared-distance objective until the assignments settle. Different starting centres can still give different results, and the resulting groups need not correspond to natural categories.

Sources for this history