Skip to content
mentoor

Topic 2 of 5 · 5 min read

Competing definitions of fairness

Goal: Pick the fairness definition that fits a stated decision and explain what that choice gives up.

"Fair" has several precise meanings, they conflict with each other, and choosing one is a decision about values, not a technical detail.

Check yourself · 1 of 3

A model selects 30% of group X and 20% of group Y, but of the qualified people in each group, 80% are selected. Which fairness definition does it meet?

Choose one answer

Why it matters

Teams say "we want the model to be fair" and then measure one number. Someone else measures a different number and reports the model is unfair. Both can be right. You need to name the definition before you can test it or defend it.

Three common definitions

Take a screening tool that predicts who will succeed, and two groups, X and Y.

  1. Equal selection rates (demographic parity). The same share of group X and group Y is selected. It is easy to check and good when you believe the groups do not differ in the thing you are predicting. It ignores real differences in outcomes.
  2. Equal error rates (equal opportunity, equalised odds). Among people who would succeed, the same share of X and Y are selected (equal true positive rate). Optionally the same share of those who would not succeed are wrongly selected (equal false positive rate). This protects qualified people from being missed more in one group.
  3. Calibration. A score of 70 means the same chance of success in both groups. It makes the score trustworthy to the person reading it.

They cannot all hold

Kleinberg and colleagues showed that when two groups have different base rates, calibration and equal error rates cannot both be satisfied, except for a perfect predictor. The ProPublica study of a criminal risk score is the best-known case: the score was roughly calibrated across races, while error rates differed. Each side of the argument used a different, reasonable definition.

How to choose

Ask what harm the decision causes when it goes wrong.

  • If a wrong rejection is costly (a qualified person denied a loan), look at equal true positive rates.
  • If a wrong acceptance is costly (a risk label that brings surveillance), look at false positive rates.
  • If people read the score as a probability, calibration matters.
  • Where law sets the rule (for example selection-rate tests in employment), start there.

Before and after

Weak: "The model is fair, accuracy is 91% for both groups."

Better: "Selection rate is 30% for X and 20% for Y. True positive rate is 80% for both. We chose equal opportunity because missing qualified people is the harm we care about, and we accept the selection gap reflects different applicant pools, which we will review each quarter."

What goes wrong

  • Reporting equal accuracy and calling it fair; accuracy hides who the errors fall on.
  • Optimising one definition and being surprised another gets worse.
  • Letting engineers pick the definition alone, when the owner of the decision should.

Examples

One screening tool, three verdicts

Metric Group X Group Y
Selected 30% 20%
Qualified people selected 80% 80%
Score of 70 means success 70% 70%

By selection rate the tool is unequal. By equal opportunity and calibration it is equal. Which one is right depends on the decision, not on the arithmetic.

Who owns the choice

A clinic uses a model to flag patients for a follow-up call. Missing a sick patient is worse than an unneeded call, so the clinic picks equal true positive rates and accepts more unneeded calls in one group. A doctor and a patient representative sign off, not only the data team.

Key points

  • Demographic parity, equal error rates and calibration are different, precise definitions of fairness.
  • When groups have different base rates, calibration and equal error rates cannot both be met.
  • Choose the definition by asking which wrong decision does the most harm.
  • Equal accuracy across groups does not show fairness, because the kinds of error can differ.
  • State the chosen definition and what it gives up so others can challenge it.

Common mistakes

  • Using overall accuracy as the fairness measure.
  • Treating one definition as the fair one and the others as errors.
  • Promising a system that meets every definition at once.
  • Choosing the metric after seeing which one the model passes.

Check yourself · 2 of 3

A risk score is calibrated for two groups with different base rates, and error rates differ between them. What does the research on fairness trade-offs say?

Choose one answer

Check yourself · 3 of 3

A bank worries most about wrongly rejecting people who would have repaid. Which measure should it watch first?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic