How does normalized mutual information evaluate a clustering against ground-truth labels?

Last updated 11 November 2026

  • NMI measures how much knowing the cluster reduces uncertainty about the true class: mutual information I = H(Y) − H(Y|C) from the cluster-vs-class contingency table.

  • Raw MI is normalized by a mean of the entropies H(C) and H(Y), giving [0, 1] (1 = perfect match up to renaming, 0 = independent). With the arithmetic mean it equals V-measure.

  • It is not chance-adjusted, so random clusterings with many clusters still score above 0. Prefer adjusted_mutual_info_score (AMI) when k is large or varies.

  • https://lightning.ai/docs/torchmetrics/stable/clustering/normalized_mutual_info_score
  • https://medium.com/data-science/7-evaluation-metrics-for-clustering-algorithms-bdc537ff54d2
  • https://scikit-learn.org/stable/modules/generated/sklearn.metrics.normalized_mutual_info_score.html
All Clustering interview questions