Cohen's Kappa Coefficient

Statistics
Introduced by
Jacob Cohen
Year
1960
Type
Inter-rater reliability coefficient

What does it do?

Cohen's kappa (κ) is a statistical measure of inter-rater reliability for categorical classifications, introduced by Jacob Cohen in 1960.

Unlike simple percent agreement, kappa corrects for the level of agreement that would be expected purely by chance, making it the standard metric when two raters independently assign observations to the same set of mutually exclusive categories.

The intuition behind the method

Imagine two medical coders independently classifying the same set of patient records into diagnostic categories. Even if they randomly assigned labels, they would agree some of the time just by luck. Kappa subtracts that expected chance agreement from the observed agreement, then normalises the remainder against the maximum improvement possible beyond chance. A kappa of zero means the raters agree no more than chance alone predicts; a kappa of one means perfect agreement.

History

Jacob Cohen introduced the kappa coefficient in 1960 in Educational and Psychological Measurement, as a chance-corrected alternative to raw percent agreement for nominal categories. In 1977, Landis and Koch published in Biometrics a general methodology for observer agreement that develops generalised kappa-type statistics and tests for interobserver bias; the interpretive scale commonly attached to kappa is attributed to that paper in applied texts. Weighted kappa for ordinal categories is in common use. Fleiss later generalised the coefficient to more than two raters.

When to use it

Use Cohen's kappa when exactly two raters (human coders, diagnostic instruments, or classification algorithms) have independently categorised the same set of items into the same fixed, mutually exclusive, and exhaustive categories, and you need a chance-corrected reliability coefficient. It can also be used to assess test-retest reliability of a categorical measurement at two time points. The categories may be nominal or ordinal; for ordinal categories, weighted kappa is generally preferred because it gives partial credit to near misses, whereas unweighted kappa ignores the ordering. Do not use it when three or more raters are involved; Fleiss' kappa is the usual alternative. Check the category distribution before relying on kappa: when one category dominates, kappa can be low even though the raters agree on most items.

Limitations and considerations

  • Defined for exactly two raters; for three or more raters, Fleiss' kappa or Krippendorff's alpha is needed.
  • Sensitive to the prevalence-and-bias effect: when categories are very unequally distributed, chance agreement is high and kappa is depressed even if percent agreement is high.
  • The interpretive benchmark bands are widely used but were not derived from data for all fields, and should not be applied mechanically to every study.
  • Does not model rater-specific bias or systematic disagreement patterns, so a kappa value alone does not show whether one rater consistently over- or under-assigns a category.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Adjusts observed agreement for the agreement expected from the raters' marginal category frequencies, so it is more informative than raw percent agreement.
  • Applicable to nominal categories and, in weighted form, to ordinal categories where disagreements of different sizes should be penalised differently.
  • Its chance correction depends only on the row and column totals of the contingency table, so it can be computed directly from a two-by-k table of ratings.
  • The magnitude of kappa can be compared against a published interpretive scale, which makes results easy to communicate.

Applications

  • Medical diagnosis reliability: assessing whether two clinicians or diagnostic criteria independently produce the same diagnoses on the same patients.
  • Content analysis and coding: measuring agreement between two coders who label text, images, or video clips according to a category scheme.
  • Machine learning evaluation: comparing the outputs of a classifier against human-labelled ground truth.
  • Educational assessment: evaluating the consistency of two examiners scoring written responses or performance tasks.
  • Survey and instrument validation: determining whether two raters applying the same instrument reach equivalent classifications.

How it works

How it works

1

The null hypothesis states that the observed agreement between the two raters equals what chance alone would produce (κ = 0); the alternative states that agreement beyond chance exists (κ ≠ 0).

Formula
H_0:\ \kappa = 0 \quad H_1:\ \kappa \neq 0
2

Kappa is computed as κ = (p₀ − pₑ) / (1 − pₑ), where p₀ is the observed proportion of cases on which the two raters agree (the diagonal sum of the contingency table divided by the total), and pₑ is the proportion of agreement expected by chance (the sum over categories of the product of the two raters' marginal proportions). For example, if one rater codes 58% of cases as 'secure' and the other 65%, chance alone predicts both choosing 'secure' for .58 × .65 = .377 of cases; summing such products over all categories gives pₑ. The difference p₀ − pₑ is the agreement above chance; dividing by 1 − pₑ rescales it so that perfect agreement equals 1. For ordinal categories, a weighted version applies category-distance penalties so that near misses count as partial agreement.

Formula
\kappa = \dfrac{p_o - p_e}{1 - p_e}
3

Applied texts commonly interpret kappa with guidelines attributed to Landis and Koch (1977): .21–.40 fair; .41–.60 moderate; .61–.80 substantial; .81–1.00 almost perfect. Values at or below .20 fall in the lowest band, and negative values indicate agreement below chance. The Landis and Koch abstract itself does not list these ranges; they are reported in applied texts. In a worked example, p₀ = .80 and pₑ = .4503 give κ ≈ .64, which is read as substantial reliability. Interpretation should rely on the magnitude of kappa, not on a significance test alone, and the bands should be treated as rough guidelines rather than strict thresholds.

Formula
\kappa < 0.20\ \text{poor};\quad 0.21\text{–}0.40\ \text{fair};\quad 0.41\text{–}0.60\ \text{moderate};\quad 0.61\text{–}0.80\ \text{substantial};\quad >0.80\ \text{almost perfect}

Common pitfalls

  • Reporting only kappa without also reporting percent agreement obscures the prevalence-and-bias issue.
  • Using the unweighted form for ordinal categories, which treats every disagreement as equally serious regardless of the gap between categories.
  • Applying Cohen's kappa to three or more raters — use Fleiss' kappa or Krippendorff's alpha instead.
  • Treating the Landis & Koch benchmarks as universal thresholds without considering the field-specific standards for acceptable reliability.

Frequently asked questions

What is the difference between percent agreement and kappa?

Percent agreement counts all cases where the two raters chose the same category. Kappa subtracts the agreement expected by chance, given each rater's marginal category frequencies, and rescales the remainder so that perfect agreement equals one. Two raters can therefore agree on most items and still obtain a modest kappa if both use one dominant category very often, because chance agreement is then high.

When should I use weighted kappa instead of unweighted kappa?

Use weighted kappa when the categories have a natural order (e.g. severity grades, Likert-type ratings) and you want near misses to count as partial agreement. The quadratic weighting scheme is the most common choice; it penalises larger disagreements more heavily. For nominal categories with no inherent order, use unweighted kappa.

My kappa is low but my percent agreement is high — what is happening?

This is the prevalence-and-bias effect. When one category is much more frequent than others, both raters will often assign it simply because of its prevalence, which inflates chance agreement and lowers kappa. Report both statistics together, and consider whether the category distribution is itself informative about the rating challenge.

How do I handle more than two raters?

Cohen's kappa is defined for exactly two raters. For three or more raters rating the same items, use Fleiss' kappa. If raters differ across items or you need a single reliability estimate that works with any number of raters and scale types, Krippendorff's alpha is a more general alternative.

Related methods

Sources

  1. Cohen, J. (1960). A Coefficient of Agreement for Nominal Scales. Educational and Psychological Measurement, 20(1), 37–46.

    Open DOI reference
  2. Landis, J.R. & Koch, G.G. (1977). The Measurement of Observer Agreement for Categorical Data. Biometrics, 33(1), 159–174.

    Open DOI reference