Skip to main content
ExplainerInter-Rater ReliabilityMetric Comparison· 4 min read· in Data & Analysis

Why Simple Percentage Agreement Fails in Imbalanced Data, and How Cohen's Kappa Fixes It

Simple percentage agreement overstates reliability by ignoring the probability that two evaluators will guess the same answer by accident. Cohen's Kappa mathematically removes this baseline noise, providing a stricter, chance-adjusted metric for human and AI evaluation.

By Mateo Ramos

Machine Learning Evaluators 40%Clinical Diagnosticians 40%Statistical Methodologists 20%
Machine Learning Evaluators
Focus on benchmarking AI against human baselines in imbalanced datasets.
Clinical Diagnosticians
Focus on inter-rater reliability between medical professionals diagnosing conditions.
Statistical Methodologists
Focus on the mathematical limitations, such as the Kappa paradox and prevalence dependence.

Perspectives this story doesn't cover

  • Crowdsourcing platform operators who rely on majority-vote consensus rather than chance-adjusted metrics.
0.81–1.00
Threshold for almost perfect agreement
0
Score indicating agreement equals chance
2
Maximum raters Cohen's Kappa can assess
−1 to 1
Standardized scale of the statistic

Fast facts

  1. Simple percentage agreement artificially inflates reliability scores in imbalanced datasets by ignoring random chance.
  2. Cohen's Kappa mathematically removes the probability of chance agreement from the final reliability score.
  3. The metric operates on a standardized scale from -1 to 1, with scores above 0.80 considered strong.
  4. The 'Kappa paradox' can artificially depress scores when one category is exceedingly rare.

In October 2023, as large language models began replacing human annotators in data labeling pipelines, evaluation frameworks hit a mathematical wall. Teams were reporting 90% agreement rates between AI and human raters on tasks like toxic speech detection, but the models were still failing in production. The flaw was not in the models, but in the metric. Simple percentage agreement overstates reliability by ignoring the probability that two evaluators will guess the same answer by accident.[6]

To solve this, data science teams resurrected a metric published by Jacob Cohen in 1960: Cohen's Kappa. The statistic measures inter-rater reliability for categorical items, but unlike a raw percentage, it mathematically removes the baseline noise of random chance. "Kappa is a measure of this difference, standardized to lie on a -1 to 1 scale, where 1 is perfect agreement, 0 is exactly what would be expected by chance, and negative values indicate agreement less than chance," notes the Journal of Oral and Maxillofacial Pathology.[1]

The mechanism relies on two distinct probabilities. The first is the relative observed agreement among raters, denoted as the variables for observed probability. The second is the hypothetical probability of chance agreement, which is calculated using the observed data to figure out the probabilities of each observer randomly selecting a given category. The formula itself is straightforward: the observed agreement minus the chance agreement, divided by one minus the chance agreement.[2][4]

In an imbalanced dataset, a 90% raw agreement rate can drop to a 0.44 Kappa score once chance is removed.

Consider a dataset of 100 customer reviews where 90 are positive and 10 are negative. If two raters simply guess "positive" every single time without reading the text, their observed agreement is 90%. Under a simple percentage metric, this looks like near-perfect consensus. However, because the dataset is heavily skewed, the probability of them agreeing by chance is also extremely high.[7]

When Cohen's Kappa is applied to this exact scenario, the illusion of consensus collapses. The chance agreement calculates to 0.82. Plugging this into the formula yields a Kappa score of 0.44. A 90% raw agreement rate is thus downgraded to what statisticians classify as merely "moderate" agreement.[1][7]

When Cohen's Kappa is applied to this exact scenario, the illusion of consensus collapses.

This mathematical penalty is why the metric has become the standard for evaluating AI hallucinations and classification tasks. According to Galileo, an AI evaluation platform, "Cohen's Kappa is particularly useful when the dataset is imbalanced, as it accounts for the possibility of raters agreeing by chance."[6]

The interpretation of the resulting score relies on established thresholds. A score below zero indicates no agreement, 0.01 to 0.20 is slight, 0.21 to 0.40 is fair, 0.41 to 0.60 is moderate, 0.61 to 0.80 is substantial, and 0.81 to 1.00 is almost perfect. Built In data scientists caution that "a Kappa value of 0.8 or higher is generally considered to indicate good agreement, but this threshold can vary depending on the specific field of study."[1][3]

Statisticians generally consider a Kappa score above 0.80 to indicate strong inter-rater reliability.

Despite its utility, the statistic has known limitations. It is designed strictly for two raters evaluating the same items. If a project requires three or more annotators, researchers must switch to Fleiss' Kappa, a generalization of the formula that accommodates multiple raters across a dataset.[5]

Furthermore, Kappa is highly sensitive to the prevalence of the underlying condition. In datasets where one category is exceedingly rare, the chance agreement value becomes so high that even a single disagreement between raters can plunge the Kappa score near zero. This phenomenon, known as the "Kappa paradox," forces statisticians to look at both the raw agreement and the Kappa value side-by-side to understand the true reliability of the raters.[2]

The adoption of Cohen's Kappa in modern machine learning pipelines demonstrates how a 60-year-old psychological statistic remains the most effective defense against the illusion of consensus. As automated systems take over subjective labeling tasks, the question is no longer how often two systems agree, but how often they agree when they shouldn't.[6][7]

Viewpoints in depth

Simple Percentage Agreement

The raw ratio of matching evaluations to total evaluations.

**For:** Simple percentage agreement is intuitive, computationally inexpensive, and easily understood by non-technical stakeholders. It requires only the total number of agreements divided by the total number of observations. **Against:** It completely ignores the baseline probability of random guessing. In highly skewed datasets (e.g., fraud detection where 99% of transactions are legitimate), two raters who blindly guess 'legitimate' every time will achieve 99% agreement, falsely signaling high reliability. **Fits well when:** The dataset is perfectly balanced across all categories and the stakes for false positives or false negatives are low. **Does not fit when:** Classes are imbalanced or the evaluation involves subjective, high-stakes categorization.

Cohen's Kappa

A chance-adjusted metric that mathematically penalizes agreement that could occur randomly.

**For:** Cohen's Kappa strips away the noise of random chance, providing a much stricter and more accurate reflection of true consensus. By calculating the expected probability of agreement based on the marginal totals of each rater's decisions, it isolates deliberate agreement. **Against:** It is strictly limited to two raters and is highly sensitive to the 'Kappa paradox,' where extremely high or low prevalence of a category can artificially depress the score even when raters are highly accurate. **Fits well when:** Two raters are evaluating categorical data, especially in medical diagnoses, psychological coding, or AI model benchmarking on imbalanced datasets. **Does not fit when:** There are three or more raters (which requires Fleiss' Kappa) or the data is continuous rather than categorical.

Sources

Source coverage

7 outlets

3 viewpoints surfaced

Machine Learning Evaluators 40%Clinical Diagnosticians 40%Statistical Methodologists 20%
  1. [1]Journal of Oral and Maxillofacial PathologyClinical Diagnosticians

    Interrater reliability: the kappa statistic

    Read on Journal of Oral and Maxillofacial Pathology
  2. [2]Statistics How ToStatistical Methodologists

    Cohen's Kappa Statistic

    Read on Statistics How To
  3. [3]Built InMachine Learning Evaluators

    Cohen's Kappa Explained

    Read on Built In
  4. [4]Statistics CalculatorStatistical Methodologists

    Cohen's Kappa: Measuring Inter-Rater Agreement

    Read on Statistics Calculator
  5. [5]Wikipedia

    Cohen's kappa

    Read on Wikipedia
  6. [6]GalileoMachine Learning Evaluators

    Enhancing AI Evaluation with Cohen's Kappa Metric

    Read on Galileo
  7. [7]Factlen Editorial Team

    Synthesis by Factlen editorial team

    Read on Factlen Editorial Team

Comments

Stay informed

Every angle. Every day.

Get Data & Analysis stories with full source coverage and perspective breakdowns delivered to your inbox.