What is the difference between demographic parity and equalised odds, and why can a perfect classifier violate demographic parity?

ML systems and evaluation, Fairness
Level L1 Beginner. Length Short. Nature Th Theoretical.

What's being asked

Whether you understand the difference between equal overall approval rates across groups and equal error rates across groups, using a simple intuitive example.

Key idea

Demographic parity requires a model to give positive predictions (such as loan approvals) at the same overall rate across groups, whereas equalised odds requires equal accuracy on qualified individuals and equal false-alarm rates on unqualified individuals across groups. Whenever groups have different true qualification rates (base rates), a 100%-accurate classifier must approve groups at different rates, so it satisfies equalised odds while breaking demographic parity.

Steps

  1. Define demographic parity (also called statistical parity): the fraction of people receiving a positive prediction must be the same across protected groups (such as gender or region), regardless of who truly qualifies.
  2. Define equalised odds: among people who truly belong to the positive class (for instance, would repay a loan), every group must have the same chance of being predicted positive (true positive rate), and among people who truly belong to the negative class, every group must have the same chance of being wrongly predicted positive (false positive rate).
  3. Give the perfect-classifier example: suppose 60% of applicants in Group A would repay a loan and 30% in Group B would repay. A perfect classifier approves 100% of qualified applicants and 0% of unqualified ones in both groups (satisfying equalised odds), yet it approves 60% of Group A and only 30% of Group B, violating demographic parity.

Common mistakes

How long your answer should be

3–5 sentences (under 2 minutes) with the loan-approval example.

Read this

Previous in ML systems and evaluation: What is stratified k-fold cross-validation, and why is it preferred over ordinary k-fold on imbalanced classification datasets?
Next in ML systems and evaluation: What is a confounding variable, and how does randomising treatment assignment in an experiment remove confounding bias?