Why is k-means particularly sensitive to outliers?
Last updated
Because k-means minimizes squared distances and uses the mean as the centroid, a single far-away point contributes a huge squared error and drags its centroid toward it, distorting the whole cluster.
Squared loss amplifies large errors: A point 10× farther contributes 100× the cost, so the optimizer works hard to reduce it.
The mean is not robust:
Its breakdown point is 0: one extreme value can move it arbitrarily far.
The shifted centroid then misassigns legitimate points near the cluster boundary.
Forced assignment:
Every point must belong to some cluster; there is no noise label, so outliers can't be ignored.
Outliers can even capture a whole cluster of their own, wasting one of the k.
Initialization: k-means++ favors far points, so outliers are likely to be picked as seeds.
Remedies:
Detect and remove or cap outliers first; use robust scaling.
K-medoids (medoids, any distance) or k-medians (L1 loss) are more robust.
DBSCAN/HDBSCAN explicitly label noise.