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

Quick Overview

Asks when k-medoids is a better clustering choice than standard k-means. Tests how the two methods define cluster centers, which distance measures each one supports, how each reacts to outliers, and what each costs on large datasets.

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

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

When would you choose k-medoids over standard k-means? Explain what each method uses as a cluster center and when the difference matters in practice. ```hint What the center must be Compare how a mean and an actual member of the cluster move when one extreme point joins the cluster. ``` ```hint Look at the update step Ask which distance function the k-means update step actually minimizes, and what k-medoids needs from a distance instead. ``` ### What a Strong Answer Covers - How each method defines a cluster center and how outliers affect it - Which dissimilarity measures each method supports, and why - What a center means to someone reading the clusters - Computational and memory cost, and the options for large datasets - When k-means remains the better choice ### Follow-up Questions - How does the PAM swap step work, and why is it more expensive than a k-means update? - How does k-medoids differ from k-medians? - How would you cluster customers described by a mix of numeric and categorical features? - How does CLARA trade solution quality for speed?

Overview: Asks when k-medoids is a better clustering choice than standard k-means. Tests how the two methods define cluster centers, which distance measures each one supports, how each reacts to outliers, and what each costs on large datasets.

PracHub logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

When would you choose k-medoids over standard k-means? Explain what each method uses as a cluster center and when the difference matters in practice.

What a Strong Answer Covers Guidance

  • How each method defines a cluster center and how outliers affect it
  • Which dissimilarity measures each method supports, and why
  • What a center means to someone reading the clusters
  • Computational and memory cost, and the options for large datasets
  • When k-means remains the better choice

Follow-up Questions Guidance

  • How does the PAM swap step work, and why is it more expensive than a k-means update?
  • How does k-medoids differ from k-medians?
  • How would you cluster customers described by a mix of numeric and categorical features?
  • How does CLARA trade solution quality for speed?