The Formula
κ = (pₒ − pₑ) / (1 − pₑ). Here pₒ is the observed proportion of items on which two annotators agree, and pₑ is the proportion of agreement expected by chance, computed from each annotator’s label distribution. Correcting for chance is the point: two annotators randomly labeling a 90/10 class split will "agree" often - kappa removes that illusion.




