What assumptions does k-means make about cluster shape, size, and density?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
What assumptions does k-means make about cluster shape, size, and density?
```hint Start from the assignment rule
Look at what decides which cluster a point joins, and ask whether anything in the objective lets one cluster be wider, larger or more stretched than another.
```
### What a Strong Answer Covers
- How nearest-centroid assignment under Euclidean distance produces convex, roughly spherical clusters
- Why unequal cluster sizes and unequal spreads put boundaries in the wrong place
- The connection to a Gaussian mixture with a shared spherical covariance and equal weights
- Other implicit assumptions, such as feature scaling, sensitivity to outliers and a known k
- Which alternative methods fit when each assumption fails
### Follow-up Questions
- How would you tell, from the data or the clustering result, that these assumptions are violated?
- What does k-means++ initialization fix, and which of these problems does it leave untouched?
- How would you choose k, and what are the weaknesses of the elbow method and the silhouette score?
- If all clusters are stretched along the same direction, what preprocessing could make k-means work?
Overview: Asks which assumptions k-means makes about the shape, size and density of clusters, and why. Tests understanding of nearest-centroid assignment, Voronoi boundaries, the link to Gaussian mixtures, and which clustering methods to use when those assumptions fail.