What does Cohen's kappa correct for that plain accuracy does not?

Quick Overview

Asks what Cohen's kappa adjusts for that raw accuracy ignores when scoring a classifier or comparing two raters. Tests how kappa is computed, how to read its values, why it behaves oddly on skewed classes, and when weighted kappa or MCC fits better.

What does Cohen's kappa correct for that plain accuracy does not?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Cohen's kappa is used to score agreement between two raters, and also between a classifier's predictions and the true labels. What does Cohen's kappa correct for that plain accuracy does not? ```hint Picture a guesser Imagine a model that ignores the input but predicts each class at the same rate your model does. How often would it agree with the true labels? ``` ### What a Strong Answer Covers - What chance agreement means and how it is computed from the label frequencies. - The kappa formula and how to read its values. - An example where accuracy looks good but kappa is near zero. - Prevalence sensitivity, weighted kappa for ordinal labels, and alternatives for scoring classifiers. ### Follow-up Questions - A balanced binary problem has 80% accuracy, and the model predicts each class half the time. What is kappa? - Two models have the same accuracy on datasets with very different class balance. Why can their kappas differ, and should you compare them? - When would you use quadratic weighted kappa, and what does it change in the calculation? - How does kappa relate to the Matthews correlation coefficient for a binary classifier?

Overview: Asks what Cohen's kappa adjusts for that raw accuracy ignores when scoring a classifier or comparing two raters. Tests how kappa is computed, how to read its values, why it behaves oddly on skewed classes, and when weighted kappa or MCC fits better.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Cohen's kappa is used to score agreement between two raters, and also between a classifier's predictions and the true labels. What does Cohen's kappa correct for that plain accuracy does not?

What a Strong Answer Covers Guidance

  • What chance agreement means and how it is computed from the label frequencies.
  • The kappa formula and how to read its values.
  • An example where accuracy looks good but kappa is near zero.
  • Prevalence sensitivity, weighted kappa for ordinal labels, and alternatives for scoring classifiers.

Follow-up Questions Guidance

  • A balanced binary problem has 80% accuracy, and the model predicts each class half the time. What is kappa?
  • Two models have the same accuracy on datasets with very different class balance. Why can their kappas differ, and should you compare them?
  • When would you use quadratic weighted kappa, and what does it change in the calculation?
  • How does kappa relate to the Matthews correlation coefficient for a binary classifier?