Why is k-means particularly sensitive to outliers?

Last updated 11 November 2026

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.

  • https://www.chegg.com/homework-help/questions-and-answers/explain-detail-outliers-affect-k-means-q251024164
  • https://buildml.substack.com/p/data-science-inteview-guide-part
  • https://developers.google.com/machine-learning/clustering/kmeans/advantages-disadvantages
All Clustering interview questions