Key Ideas
1Inertia (within-cluster sum of squares, WCSS). The sum of squared distances from each point to its assigned centroid. Inertia always decreases as k increases — more clusters can only fit the data at least as well —...
2The elbow method. Plot inertia against k. Early increases in k reduce inertia sharply; past some point, additional clusters give diminishing returns and the curve flattens. The "elbow" ...
3Silhouette score. A more principled per-point metric. For each point, compare its average distance to points in its own cluster (cohesion) against its average distance to points in the ...
4Silhouette plots. Go further than the average alone by showing per-point silhouette values for each cluster, sorted within each cluster. This reveals more than a single number can: a cl...