
Assignment step
We go over each data point and we assign it to the closest cluster center for this iteration.
Update step
In the second step we move each cluster center to the average of the data points assigned to that cluster:



Outliers
The loss uses the squared Euclidean distance. A single point far from every cluster is still assigned to one of them, and because its squared distance is large, it pulls that cluster’s mean toward it. Bishop notes that this makes the cluster means nonrobust to outliers (Section 9.1). The next section, the EM algorithm, replaces the hard indicator with a probability that point belongs to cluster , and shows that k-means is a limiting case of EM for a mixture of Gaussians. The robust estimation chapter then returns to the problem of points that fit no part of the model. Key references: (Bishop, n.d.)References
- Bishop (n.d.). Pattern Recognition and Machine Learning.
Found an error on this page? Report an issue.

