When would you choose k-medoids over standard k-means?

Last updated 11 November 2026

  • Choose k-medoids for robustness to outliers: the medoid must be an actual data point minimizing total distance, so it behaves like a median rather than a mean.

  • It also supports arbitrary or precomputed dissimilarities (Gower, edit distance, DTW) and yields interpretable real exemplars as centers.

  • Stay with k-means for large n or clean, numeric, spherical clusters, since PAM is roughly O(n²) per iteration. CLARA, CLARANS, or FasterPAM help at scale.

  • https://www.rohan-paul.com/p/ml-interview-q-series-how-do-k-means-18d
  • https://www.geeksforgeeks.org/machine-learning/k-means-vs-k-medoids-clustering/
  • https://github.com/rohan-paul/Awesome_Machine_Learning_Interview_Question
All Clustering interview questions