Why is purity a misleading clustering metric when the number of clusters approaches the number of data points?

Quick Overview

Asks why the purity score for clustering becomes misleading as the number of clusters grows toward the number of points. Tests understanding of homogeneity versus completeness, comparing clusterings with different k, and alternatives such as V-measure, NMI, ARI and AMI.

Why is purity a misleading clustering metric when the number of clusters approaches the number of data points?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why is purity a misleading clustering metric when the number of clusters approaches the number of data points? Purity is an external metric: it scores a clustering of $n$ points against known class labels. ```hint Where to look Write out purity's formula and ask what a cluster would have to do to lose credit. Then try the extreme where every point gets its own cluster. ``` ### What a Strong Answer Covers - The definition of purity and what each cluster is credited with. - What happens to the score at the extreme of one point per cluster, and why. - The property of a good clustering that purity never measures. - The consequence for comparing clusterings with different numbers of clusters. - Alternative metrics and what each one corrects. ### Follow-up Questions - Does NMI fully remove the bias toward many clusters? When would you report AMI instead? - How does class imbalance inflate purity even when the number of clusters is small? - How would you choose the number of clusters when no ground-truth labels exist? - What score does ARI give a random partition, and why is that useful?

Overview: Asks why the purity score for clustering becomes misleading as the number of clusters grows toward the number of points. Tests understanding of homogeneity versus completeness, comparing clusterings with different k, and alternatives such as V-measure, NMI, ARI and AMI.

General logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why is purity a misleading clustering metric when the number of clusters approaches the number of data points? Purity is an external metric: it scores a clustering of nn points against known class labels.

What a Strong Answer Covers Guidance

  • The definition of purity and what each cluster is credited with.
  • What happens to the score at the extreme of one point per cluster, and why.
  • The property of a good clustering that purity never measures.
  • The consequence for comparing clusterings with different numbers of clusters.
  • Alternative metrics and what each one corrects.

Follow-up Questions Guidance

  • Does NMI fully remove the bias toward many clusters? When would you report AMI instead?
  • How does class imbalance inflate purity even when the number of clusters is small?
  • How would you choose the number of clusters when no ground-truth labels exist?
  • What score does ARI give a random partition, and why is that useful?