What does the Calinski-Harabasz index measure?

Last updated 11 November 2026

  • The Calinski-Harabasz index is the ratio of between-cluster to within-cluster dispersion, adjusted for degrees of freedom: [tr(B)/(k−1)] / [tr(W)/(n−k)]. Higher means dense, well-separated clusters.

  • It is fast, needs no labels (calinski_harabasz_score), and is used to pick k by looking for a peak.

  • It favors convex, spherical (k-means-like) clusters, is misleading for density-based shapes, and is undefined for k = 1.

  • https://www.geeksforgeeks.org/machine-learning/calinski-harabasz-index-cluster-validity-indices-set-3/
  • https://en.wikipedia.org/wiki/Calinski%E2%80%93Harabasz_index
  • https://scikit-learn.org/stable/modules/clustering.html
All Clustering interview questions