Cohen's Kappa for Two Annotators
Why Raw Agreement Misleads
If two annotators label items independently, simply counting how often they agree gives a misleading picture. Even if both annotators guess randomly, they will agree by chance some fraction of the time. With few classes (e.g., binary labels), chance agreement can be high: two annotators both guessing “OK” 50% of the time agree by chance 50% of the time.
Cohen’s corrects for this: it measures agreement above chance, normalised by the maximum possible agreement above chance.
Formula
- : observed agreement — proportion of items where both annotators gave the same label.
- : expected chance agreement — the probability they would agree if both guessed independently based on their observed label distributions.
Interpretation
- : perfect agreement
- : strong agreement
- : acceptable agreement
- : no better than chance
- : worse than chance (systematic disagreement)
Full Worked Example (2023 Q7)
Two annotators (A and B) classify 8 items into 4 classes (I, II, III, IV). Data:
| Item | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
|---|---|---|---|---|---|---|---|---|
| A | III | IV | II | I | II | I | IV | II |
| B | III | I | II | IV | IV | I | IV | I |
Step 1 — Observed agreement : Items where A = B: item 1 (III=III), item 3 (II=II), item 6 (I=I), item 7 (IV=IV).
Step 2 — Marginal frequencies for A:
Step 3 — Marginal frequencies for B:
Step 4 — Expected chance agreement :
Step 5 — Compute :
Interpretation: moderate agreement, well above chance () but far from strong (). The annotators do better than random guessing but disagree substantially.
Why This Matters for ML
If human annotators achieve only on a task, a classifier trained on their labels cannot realistically exceed that performance. The inter-annotator agreement sets an upper bound on achievable classifier accuracy. Low indicates the task itself is subjective, and the “ground truth” labels are noisy.
Summary
| Component | Meaning | This example |
|---|---|---|
| Observed agreement | 0.5 (4 of 8) | |
| Chance agreement | 0.25 | |
| Agreement above chance, normalised | 0.333 |
Past paper questions: y2023p3q7(b), y2021p3q9(c)