Topic 2 of 5 · 5 min read
Measuring inter-annotator agreement
Goal: Compute and interpret agreement between two reviewers and decide whether the guide needs revision.
Inter-annotator agreement tells you how often independent reviewers give the same label, and kappa corrects that number for the agreement you would get by chance. It is the check that your human labels are good enough to trust.
Check yourself · 1 of 3
Why can high percent agreement mislead when 95 percent of outputs are good?
Why it matters
If two experts cannot agree on a label, a model cannot be scored against it. Low agreement usually means the guide is unclear, not that the reviewers are poor. Measuring it early tells you whether to fix the guide before you spend budget labeling thousands of items.
Percent agreement and why it misleads
Percent agreement is the share of items where both reviewers chose the same label. It is easy to compute and easy to inflate. If 90 percent of outputs are good, two reviewers who label almost everything Pass will agree most of the time without looking at anything.
Cohen's kappa
Kappa compares observed agreement with the agreement expected by chance, given how often each reviewer uses each label. The formula is (observed - expected) / (1 - expected). A kappa of 1 is perfect agreement, 0 is no better than chance, and below 0 is worse than chance.
Worked example, 100 outputs, two reviewers, Pass or Fail:
- Both Pass: 70. Both Fail: 10. Reviewer 1 Pass and Reviewer 2 Fail: 10. The reverse: 10.
- Observed agreement: 80 of 100 = 0.80.
- Reviewer 1 passes 80 items, Reviewer 2 passes 80. Chance agreement: 0.8 x 0.8 + 0.2 x 0.2 = 0.68.
- Kappa = (0.80 - 0.68) / (1 - 0.68) = 0.375.
Eighty percent agreement sounds fine. A kappa of 0.375 says most of it was chance. In Python, sklearn.metrics.cohen_kappa_score(a, b) computes it from two lists.
Krippendorff's alpha
Use alpha when you have more than two reviewers, some items labeled by only some of them, or ordered scales such as 1 to 5. It handles missing labels, which kappa does not.
Reading the number
Common rules of thumb call kappa above about 0.6 substantial and above 0.8 strong, but they are conventions, not laws. The bar depends on the stakes. Also, kappa drops when one label is very rare, even with few real disagreements, so report the raw counts beside it.
Using disagreements
The number is a flag. The fix is in the items. Pull every item where reviewers split, group them by cause, and read them together. Typical causes: an undefined edge case, two labels that overlap, or a reviewer applying an old rule. Update the guide, bump the version, and label a fresh batch.
What goes wrong
- Reporting percent agreement alone on a skewed dataset.
- Computing agreement on the first twenty easy items.
- Averaging disagreements away by letting a third reviewer break ties, without ever fixing the guide.
Examples
80 percent agreement, kappa 0.375
| Reviewer 2 Pass | Reviewer 2 Fail | |
|---|---|---|
| Reviewer 1 Pass | 70 | 10 |
| Reviewer 1 Fail | 10 | 10 |
Observed agreement is 0.80 and chance agreement is 0.68, so kappa is 0.375. Check the ten Pass/Fail splits before labeling more.
Disagreements grouped by cause
Of 20 split items, 11 involve answers that are correct but cite an outdated policy page, 6 involve tone, and 3 are reviewer slips. The guide has no rule for outdated sources. Adding that one rule is likely to fix more than half of the splits.
Key points
- Percent agreement ignores chance, so it looks high when one label dominates.
- Cohen's kappa is (observed - expected) / (1 - expected) and covers two reviewers on categorical labels.
- Krippendorff's alpha handles more than two reviewers, missing labels and ordered scales.
- Report raw counts with kappa, because rare labels can depress it.
- Low agreement is a signal to read the disagreeing items and fix the guide, not to replace reviewers.
Common mistakes
- Quoting percent agreement on a dataset where 90 percent of items share one label.
- Treating a kappa threshold as a pass mark for every project.
- Measuring agreement once and never again after the guide changes.
- Resolving splits by majority vote without reading why they happened.
Check yourself · 2 of 3
Two reviewers agree on 90 of 100 items. Expected chance agreement is 0.82. What is Cohen's kappa, to two decimals?
Check yourself · 3 of 3
Five annotators each rated a different subset of 200 outputs on a 1 to 5 scale. Which measure fits best?
Practice items, not counted towards your mastery.
Start here
- Cohen's kappa (Wikipedia) (opens in a new tab)ArticleFree
The formula, a worked example and the caveats about prevalence and the common interpretation bands.
- Krippendorff's alpha (Wikipedia) (opens in a new tab)ArticleFree
Agreement for more than two reviewers, missing labels and non-binary scales.
- cohen_kappa_score (scikit-learn) (opens in a new tab)DocsFree
One function call that computes kappa from two lists of labels.