How to use this calculator
Compare two partitions of the same items without requiring their label names to match.
- Enter Reference integer labels, Predicted integer labels. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Clustering label agreement scores explained
Adjusted Rand and normalized mutual information compare two partitions of the same observations while ignoring arbitrary cluster names. Their scores describe agreement between labelings, not predictive accuracy or whether either clustering matches an external truth.
Inputs, symbols, and units
a— Reference integer labels- Reference integer labels. Use comma-separated values in the stated order.
b— Predicted integer labels- Predicted integer labels. Use comma-separated values in the stated order.
Formula and method
Adjusted Rand and arithmetic normalized mutual information
Symbols use the input definitions below. ARI adjusts pair agreement for chance; NMI uses the arithmetic mean of partition entropies and is not adjusted for chance..
A worked scenario
Reference integer labels = 1, 1, 2, 2; Predicted integer labels = 3, 3, 4, 4.
- Adjusted Rand index: 1
- Normalized mutual information: 1
This scenario uses the stated units and assumptions. Displayed values are rounded only after calculation.
Assumptions and edge cases
ARI adjusts pair agreement for chance; NMI uses the arithmetic mean of partition entropies and is not adjusted for chance.
Frequently asked questions
Can labels be renamed?
Yes, scores depend on partitions rather than numeric label values.
Do cluster counts have to match?
No.
What does a negative ARI mean?
Agreement is below the chosen chance expectation.
How do I use the Clustering label agreement scores calculator?
Enter Reference integer labels, Predicted integer labels. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Clustering label agreement scores?
Reference integer labels = 1, 1, 2, 2; Predicted integer labels = 3, 3, 4, 4. Adjusted Rand index: 1 Normalized mutual information: 1 This scenario uses the stated units and assumptions. Displayed values are rounded only after calculation.
Method reference: scikit-learn clustering evaluation definitions.
Read our calculation methodology.