Lessons › Chapter 15: Story: judging an AI with people
Episode 4: Two raters, two verdicts
Both raters label the same answers: teal is safe, coral is unsafe. Top row is Priya, bottom row Sam. They match on 8 of these 10.
Watch it move. This lesson is interactive on Gradient Lab: every step is an animated scene you can replay.
Start the interactive lessonStep by step
Same answer, opposite verdicts
Maya spots something odd. For the same Pip answer about overdraft fees, Priya marked it “unsafe” (misleading) and Sam marked it “fine”. If raters disagree, whose judgment counts?
Measure how often they agree
Both raters label the same answers: teal is safe, coral is unsafe. Top row is Priya, bottom row Sam. They match on 8 of these 10.
Agreement beyond chance
But two people flipping coins would agree about half the time! inter-rater agreement scores like kappa subtract that luck. Here, 82% raw agreement becomes a kappa of 0.64: decent, not great.
Disagreement is information
Maya looks at the answers they disagreed on (faded). Most are about fees, which the guide never covered. She adds a rule and an example, the raters practice together, and kappa climbs to 0.81.
In real life: panels of judges
In sports like gymnastics and diving, several judges score each performance, and the highest and lowest scores are often dropped. Judges whose scores keep disagreeing with the panel get reviewed. It’s the same worry: is the score about the performance, or the judge?
Quick check: Two raters agree 50% of the time on a yes/no label. That is…
- About what coin-flipping would give (correct)
- Excellent agreement
- Impossible
With two equally likely labels, random guessing already agrees about half the time, so kappa is near 0.
Pseudocode
two raters label the same 100 answers: safe or unsafe agreement = matching labels / 100 # 82% agreement expected by pure chance = 50% # if each says “safe” half the time kappa = (82% − 50%) / (100% − 50%) = 0.64 # beyond chance low agreement → unclear guidelines → fix them, practice together
Key terms
- inter-rater agreement
- How often different raters give the same judgment, beyond what chance would produce.
- kappa
- A score for agreement beyond chance: 0 means no better than chance, 1 means perfect agreement.
Build it: Human evaluation toolkit (30 min, runs in your browser)
See the project