How do you evaluate cluster stability using resampling or bootstrapping?

Quick Overview

Asks how to check whether clusters are stable by re-clustering subsamples or bootstrap samples of the data. Tests knowledge of label-invariant agreement scores, per-cluster and co-assignment stability, and how to use stability when choosing the number of clusters.

How do you evaluate cluster stability using resampling or bootstrapping?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How do you evaluate cluster stability using resampling or bootstrapping? For example, you have clustered an unlabeled dataset with K-Means and want to know whether the clusters reflect real structure, and which number of clusters to report. ```hint Labels do not line up Cluster 2 in one run may be cluster 0 in the next, and two resamples contain different points. What kind of agreement score still works under both problems? ``` ```hint Watch the small k Think about what stability score k = 1 would get, and what that implies when you compare candidate values of k. ``` ### What a Strong Answer Covers - The resampling procedure: what is perturbed, what is held fixed, and how the runs are repeated - How two clusterings are compared when their labels do not match and they cover different points - Per-cluster and pairwise co-assignment views of stability, and what each one shows - How to use stability to choose k without being misled by small k - The limits of stability as evidence that the clusters are real ### Follow-up Questions - Why can bootstrap samples, with their duplicated points, distort the result, and when would you prefer subsampling without replacement? - How would you build a null reference for the stability score so that values across different k are comparable? - A clustering is very stable but makes no sense to the business. What would you check next? - How would you run this on tens of millions of points without clustering the full dataset a hundred times?

Overview: Asks how to check whether clusters are stable by re-clustering subsamples or bootstrap samples of the data. Tests knowledge of label-invariant agreement scores, per-cluster and co-assignment stability, and how to use stability when choosing the number of clusters.

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

How do you evaluate cluster stability using resampling or bootstrapping?

For example, you have clustered an unlabeled dataset with K-Means and want to know whether the clusters reflect real structure, and which number of clusters to report.

What a Strong Answer Covers Guidance

  • The resampling procedure: what is perturbed, what is held fixed, and how the runs are repeated
  • How two clusterings are compared when their labels do not match and they cover different points
  • Per-cluster and pairwise co-assignment views of stability, and what each one shows
  • How to use stability to choose k without being misled by small k
  • The limits of stability as evidence that the clusters are real

Follow-up Questions Guidance

  • Why can bootstrap samples, with their duplicated points, distort the result, and when would you prefer subsampling without replacement?
  • How would you build a null reference for the stability score so that values across different k are comparable?
  • A clustering is very stable but makes no sense to the business. What would you check next?
  • How would you run this on tens of millions of points without clustering the full dataset a hundred times?