Inertia
Inertia: Sum of Squared Distances to Cluster Centroids · Also known as: WCSS, within-cluster sum of squares, cluster cohesion
Inertia, also called Within-Cluster Sum of Squares (WCSS), is a measure of cluster cohesion that quantifies how tightly points are grouped around their cluster centroids. Lower values indicate more compact, cohesive clusters. Inertia is the primary objective function for k-means clustering and has been a fundamental metric since the method's introduction.
Read the full method
Sign in with a free account to read this section.
Method map
The neighbourhood of related methods — select a node to explore.
When to use it
Use Inertia to evaluate the internal cohesion of a given clustering. It is particularly useful in the context of k-means clustering, where it is the objective function being optimized. Use inertia as part of a multi-metric evaluation strategy, combined with other metrics like silhouette score or external validation metrics. Do not use inertia alone for selecting the number of clusters; pair it with the Elbow Method or other cluster selection techniques.
Strengths & limitations
- Simple and intuitive; easy to compute and understand
- Direct measure of cluster cohesion and tightness
- Computationally efficient; can be computed incrementally during clustering
- Directly optimized by k-means and related algorithms
- Monotonically decreases with increasing number of clusters, making it unsuitable for cluster number selection alone
- Biased toward spherical, similarly-sized clusters
- Does not measure cluster separation or inter-cluster distance
- Sensitive to outliers, which inflate distances and increase inertia
Frequently asked
Why does inertia decrease as I add more clusters?
Inertia measures distances from points to their nearest centroid. As you add clusters, each cluster becomes smaller and tighter, reducing distances. With k=n clusters, inertia approaches zero because each point can be its own cluster. This is why inertia cannot stand alone for selecting k.
Should I normalize inertia values for comparison?
If comparing inertia across datasets with different scales or dimensions, consider normalizing by the total variance of the data. This makes inertia values more comparable. However, normalization formulas vary; consult literature or software documentation for consistency.
How does inertia relate to the Elbow Method?
The Elbow Method plots inertia versus the number of clusters. The 'elbow' in the curve represents a point where inertia no longer decreases sharply, suggesting a good balance between cluster complexity and fit. Inertia is the metric; the Elbow Method is the interpretation technique.
Can I use inertia with non-Euclidean distances?
Standard inertia uses squared Euclidean distance. For other distance metrics, you would need to adapt the metric, though this is uncommon. Most clustering algorithms that use inertia implicitly assume Euclidean distance, so alternatives may not be directly compatible.
Sources
- Lloyd, S. P. (1982). Least squares quantization in PCM. IEEE Transactions on Information Theory, 28(2), 129-137. DOI: 10.1109/TIT.1982.1056489 ↗
- MacQueen, J. (1967). Some methods for classification and analysis of multivariate observations. In Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability (Vol. 1, pp. 281-297). link ↗
How to cite this page
ScholarGate. (2026, June 3). Inertia: Sum of Squared Distances to Cluster Centroids. ScholarGate. https://scholargate.app/en/model-evaluation/inertia
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- Calinski-Harabasz IndexModel Evaluation↔ compare
- Davies-Bouldin IndexModel Evaluation↔ compare
- Dunn IndexModel Evaluation↔ compare
- Elbow MethodModel Evaluation↔ compare
- Silhouette ScoreModel Evaluation↔ compare