How does the gap statistic determine the optimal number of clusters?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how the gap statistic chooses the number of clusters, from the quantity it measures to the rule that selects k. Tests understanding of within-cluster dispersion, structureless reference data, simulation error and the limits of compactness-based cluster selection.