MCDMModel EvaluationCluster Cohesion MeasureMath steps

Inertia

Also known as: WCSS, within-cluster sum of squares, cluster cohesion

OriginatorStuart Lloyd, James MacQueenYear1967Sources2Related methods9

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.

Key highlights

  • 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

Intuition

This section is available to Pro members. Upgrade to Pro

How it works

This section is available to Pro members. Upgrade to Pro

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

Strengths
  • 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
Limitations
  • 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

Common pitfalls

This section is available to Pro members. Upgrade to Pro

Applications

This section is available to Pro members. Upgrade to Pro

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

  1. 1.
    Lloyd, S. P. (1982). Least squares quantization in PCM. IEEE Transactions on Information Theory, 28(2), 129-137.
  2. 2.
    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).

You have read it. What now?

Cite this page

ScholarGate. (2026, June 3). Inertia (Within-Cluster Sum of Squares). ScholarGate. https://scholargate.app/model-evaluation/inertia