- Introduced by
- Lawrence Hubert, Phipps Arabie
- Year
- 1985
- Type
- External similarity metric
- Family
- External Clustering Validation
What does it do?
The Adjusted Rand Index (ARI), introduced by Hubert and Arabie in 1985, is an external clustering evaluation metric that measures agreement between a predicted clustering and a ground truth labeling.
It is a chance-corrected form of the Rand Index: a value of 1 indicates identical partitions, values near 0 indicate agreement no better than random clustering, and negative values indicate agreement below the chance level.
The intuition behind the method
The Adjusted Rand Index compares two partitions of the same points by asking, for every pair of points, whether the two partitions treat that pair the same way. A pair grouped together in both partitions, or separated in both, counts as agreement. The raw proportion of agreeing pairs can be high even for random assignments, and how high it becomes depends on the cluster sizes. ARI subtracts the agreement expected under random clustering and rescales the result, so a value of 0 corresponds to chance-level agreement and 1 to identical partitions. This makes it more interpretable than the unadjusted Rand Index when judging whether a clustering recovers a reference grouping.
History
Rand (1971) proposed a pair-counting measure of agreement between two clusterings of the same data, the Rand Index, which is not corrected for chance. Hubert and Arabie (1985), in the paper 'Comparing partitions', introduced the chance-corrected version now known as the Adjusted Rand Index. It is now widely used as an external clustering evaluation metric.
When to use it
Choose ARI when you have reliable reference labels for the same set of points and want to check how closely a clustering recovers them, for example when comparing algorithms or parameter settings on a labeled dataset. It fits cases where each point belongs to exactly one predicted cluster and one true class. Do not use it when no ground truth exists, when the true structure is hierarchical or overlapping, or when the reference labels are themselves uncertain. In those situations an internal criterion or a different external metric is more suitable.
Limitations and considerations
- Requires ground truth labels, so it cannot assess clustering quality on unlabeled data.
- Built on exclusive membership: each point is assigned to one cluster and one class, so it does not directly handle hierarchical or overlapping clusterings.
- Sensitive to cluster-size imbalance: imbalanced cluster sizes can make the score depend heavily on the largest groups.
- The score depends on the reference labels; when those labels are ambiguous, a low value may reflect disagreement among the labels rather than poor clustering.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Corrects for chance: because the expected agreement under random clustering is subtracted, a value near 0 means the clustering agrees with the labels no better than chance.
- Bounded above by 1, which corresponds to identical partitions, so high values can be read directly as close recovery of the reference grouping.
- Applies to predicted and true partitions with different numbers of clusters, so the number of predicted clusters does not need to match the number of classes.
- Symmetric: ARI(A, B) equals ARI(B, A), so the order in which the two partitions are given does not affect the score.
Applications
- Benchmarking clustering algorithms on labeled datasets, where the labels serve as reference partitions.
- Comparing clusterings produced by different algorithms or parameter settings on the same labeled data.
- Measuring agreement between two clusterings of the same points, for example across repeated runs, when neither is treated as ground truth.
- Selecting parameter values on a validation set with reference labels, using the score as the selection criterion.
How it works
How it works
Cross-tabulate the predicted cluster labels (rows) against the ground truth labels (columns). Each cell counts the points that fall into both the predicted cluster and the true class, and the later steps are computed from these counts.
Formula
\text{Build contingency table of predicted vs. ground truth clusters}Count pairs of points. Let a be the number of pairs placed together in both partitions and b the number of pairs placed apart in both partitions. The Rand Index is RI = (a + b) divided by the total number of pairs, C(n,2), where n is the number of points.
Formula
RI = \frac{a + b}{\binom{n}{2}}Compute the expected value of the Rand Index under a null model of random clustering in which the sizes of the predicted and true clusters are kept fixed. The expectation therefore depends on the row and column totals of the contingency table. This expected value is the chance baseline that the next step removes.
Formula
\text{Chance baseline: expected RI under random clustering with fixed predicted and true cluster sizes}Subtract the expected value from RI and divide by the gap between the maximum attainable index value and the expected value. This is the general chance-correction form. The result is 1 for identical partitions and close to 0 when agreement is at chance level.
Formula
ARI = \frac{RI - E[RI]}{\max(RI) - E[RI]}Common pitfalls
- Comparing partitions that do not cover the same points. Both labelings must assign the same set of data points; missing or differing points make the comparison invalid.
- Reading small negative values as meaningful. Negative values indicate agreement below the chance level, but small negative values are best read as near chance and carry little information.
- Comparing ARI values across datasets with very different cluster-size structures. Because the chance baseline depends on cluster sizes, scores from such datasets are not directly comparable.
- Treating ARI as having a universal cut-off. ARI has no fixed acceptance threshold, and its value depends on the data and the cluster-size structure. It is most informative when clusterings of the same data are compared against the same reference labels. For example, in a study of New York Stock Exchange stock returns, k-medoids reached an ARI of 0.387 on trended returns against a common industry classification, and the methods were compared with one another on that same dataset.
Frequently asked questions
When should I use ARI versus other external metrics?
Use ARI when you have reference labels and want a chance-corrected score on a bounded scale. The Fowlkes-Mallows Index and V-measure are alternatives with different mathematical properties, so the choice depends on which kind of agreement matters for your task.
What does a negative ARI mean?
A negative ARI means that agreement between the clustering and the reference labels is below the chance level for these two partitions. Small negative values are best read as near chance and carry little information. A clearly negative value is a weak signal that should be checked against the labels and the clustering settings. On its own it does not establish that the predicted groups are systematically misaligned with the labels.
Can I use ARI on multi-label or hierarchical data?
Standard ARI assumes exclusive cluster membership and is not designed for multi-label or hierarchical structures. Such data call for metrics built for overlapping or hierarchical partitions, chosen according to the label structure.
How is ARI different from the unadjusted Rand Index?
The unadjusted Rand Index does not account for chance agreement, so it tends to be high even for random clustering. ARI corrects this by subtracting the expected value under random clustering, which gives a more meaningful measure of clustering quality.
Related methods
Sources
Hubert, L., & Arabie, P. (1985). Comparing partitions. Journal of Classification, 2(1), 193-218.
Open DOI referenceRand, W. M. (1971). Objective criteria for the evaluation of clustering methods. Journal of the American Statistical Association, 66(336), 846-850.
Open DOI referenceMachine Learning with R Important Book, p. 356