Cohen’s kappa

Also known as: kappa statistic

On this page 7

Cohen’s kappa is a statistic that measures agreement between two raters who assign items to categories, after correcting for the agreement expected by chance. Model evaluation in artificial intelligence uses it in two ways: to check how consistently human annotators label data, and to compare a classifier’s predictions with reference labels when raw accuracy is misleading.

Kappa, also called the kappa statistic, was introduced by the psychologist Jacob Cohen in 1960. It ranges from −1 to 1, where 1 means perfect agreement, 0 means agreement no better than chance, and negative values mean systematic disagreement.

How Cohen’s kappa is calculated

Kappa compares the observed agreement p_o with the expected chance agreement p_e using the formula κ = (p_o − p_e) / (1 − p_e). The numerator is the agreement achieved beyond chance, and the denominator is the maximum agreement that was possible beyond chance.

The observed agreement is the share of items on which both raters chose the same category, read from the diagonal of their contingency table, which is the same layout as a confusion matrix. The expected agreement is computed from each rater’s marginal category frequencies: for every category, the two raters’ proportions are multiplied, and the products are summed.

The worked figures below show two annotators labeling 100 support messages as spam or not spam.

QuantityValueHow it is obtained
Both say spam20 itemsDiagonal cell of the table
Both say not spam65 itemsDiagonal cell of the table
Observed agreement p_o0.85(20 + 65) / 100
Rater A spam rate0.25Row total divided by 100
Rater B spam rate0.30Column total divided by 100
Expected agreement p_e0.600.25 × 0.30 + 0.75 × 0.70
Cohen’s kappa0.625(0.85 − 0.60) / (1 − 0.60)
Worked calculation for two annotators

The example shows why kappa matters. Raw agreement of 85 percent looks strong, but because both raters mostly chose the majority class, a large part of that agreement would occur by chance, and the chance-corrected value is only 0.625.

Interpreting kappa values

There is no universal threshold for an acceptable kappa. The most cited scale comes from Landis and Koch (1977), but its authors described the bands as arbitrary, and many fields set stricter requirements, especially in medical labeling.

Kappa rangeLandis and Koch labelTypical reading in annotation work
Below 0PoorRaters disagree more than chance
0.00 to 0.20SlightGuidelines or task definition broken
0.21 to 0.40FairLabels too noisy for training
0.41 to 0.60ModerateUsable only for subjective tasks
0.61 to 0.80SubstantialCommon target for annotation projects
0.81 to 1.00Almost perfectExpected for clear-cut categories
Common interpretation bands

Kappa should always be reported with the raw agreement, the class distribution and, ideally, a confidence interval from bootstrapping. A single value without context hides whether disagreement is spread evenly or concentrated in one class.

Cohen’s kappa is defined for exactly two raters and nominal categories. Other designs need related statistics, which belong to the broader family of inter-annotator agreement measures.

MeasureRatersData typeWhen to use it
Cohen’s kappaTwo, fixedNominalPairwise annotator or model comparison
Weighted kappaTwo, fixedOrdinalRatings where near misses count partly
Fleiss’ kappaThree or moreNominalCrowdsourced labels with varying raters
Krippendorff’s alphaAny numberNominal to ratioMissing ratings and mixed scales
Matthews correlation coefficientModel versus truthBinary or multiclassImbalanced classification metrics
Kappa and related measures

Weighted kappa uses linear or quadratic weights so that disagreeing by one point on a five-point scale is penalized less than disagreeing by four. Quadratic weighted kappa is a standard metric for ordinal prediction tasks, such as automated essay scoring and severity grading of medical images.

Using kappa in AI model evaluation

In AI projects, kappa has three main uses: checking label quality before training, measuring model agreement with references on imbalanced tasks, and validating automated judges such as LLM-as-a-judge setups against human graders.

The following table matches typical evaluation questions with an appropriate use of kappa.

Evaluation questionRecommended measureReason
Are annotation guidelines clear?Pairwise Cohen’s kappa on a shared sampleLow values reveal ambiguous categories
Does an LLM judge match humans?Kappa between judge and expert labelsCorrects for skewed verdict rates
How good can the model get?Human kappa as a ceilingModels rarely exceed noisy reference agreement
Is a graded score reliable?Quadratic weighted kappaRespects the order of ratings
Where kappa fits in an evaluation workflow

Human agreement is a useful ceiling for model performance. If two expert annotators reach a kappa of 0.70, a model that reaches 0.68 against one of them is performing close to human level, and further gains may reflect noise rather than real improvement.

Limitations and common pitfalls

Kappa is widely used but has well-known paradoxes that can mislead evaluators who report it without context.

  • Prevalence paradox: with very rare classes, kappa can be low even when observed agreement is above 95 percent.
  • Bias paradox: when raters differ in how often they use each category, kappa can rise, which is counterintuitive.
  • Not comparable across datasets: kappa depends on class distribution, so values from different tasks cannot be ranked directly.
  • Unweighted kappa on ordinal data: treating a one-point miss like a four-point miss understates real agreement.
  • Too small samples: kappa from a few dozen items has wide confidence intervals and should not drive decisions.

Because of these issues, kappa works best as one diagnostic among several, reported next to per-class agreement, confusion matrices and, for classifiers, precision and recall.

The idea in brief

Imagine two teachers grading the same tests as pass or fail. They might agree often just because most students pass. Cohen’s kappa asks a sharper question. How much do they agree beyond lucky coincidence?

A score of 1 means they agree perfectly. A score near 0 means their agreement is no better than guessing. In AI work, the same check tells teams whether their labels are trustworthy and whether a model agrees with people for the right reasons.

A practical scenario

A team building a content moderation classifier asks two trained annotators to label the same 500 posts as acceptable, borderline or violating. Observed agreement is 82 percent, but most posts are acceptable, and Cohen’s kappa is only 0.48.

The confusion table shows that nearly all disagreement involves the borderline category. The team rewrites the guidelines with concrete examples, retrains the annotators and repeats the exercise on a new sample, reaching a kappa of 0.74. Only then does it label the full training set.

Later, the team tests an LLM judge that reviews model outputs. Against the expert labels the judge reaches a kappa of 0.69, close to the human pair, so the team adopts it for routine screening while keeping human review for borderline cases.