Sub topic 8
Why you cannot satisfy every criterion at once
This chapter assumes you can compute per-group selection rate, TPR, FPR, and precision, and that you know demographic parity, equalized odds, and predictive parity. It shows why a model usually cannot meet all three, and what to do about that.
The core result
Suppose two groups have different base rates. The base rate, written p, is the share of people in a group whose true label is positive. If the classifier is imperfect, these criteria conflict:
- Equalized odds requires equal TPR and equal FPR across groups.
- Predictive parity requires equal precision (positive predictive value, PPV) across groups.
- Demographic parity requires equal selection rates across groups.
Precision and selection rate are not independent of the base rate. They follow from TPR, FPR, and p:
- selection rate = TPR · p + FPR · (1 − p)
- PPV = TPR · p / (TPR · p + FPR · (1 − p))
If TPR and FPR are equal across groups but p differs, both formulas give different values for each group. Equalized odds therefore breaks both demographic parity and predictive parity.
A worked example
This script gives both groups the same TPR (0.8) and FPR (0.1), but group A has a base rate of 0.5 and group B has 0.2.
def derived_rates(p, tpr, fpr):
selection = tpr * p + fpr * (1 - p)
precision = tpr * p / selection
return selection, precision
for name, p in [("A", 0.5), ("B", 0.2)]:
sel, prec = derived_rates(p, tpr=0.8, fpr=0.1)
print(f"Group {name}: base rate={p:.2f} selection={sel:.3f} precision={prec:.3f}")The output is:
Group A: base rate=0.50 selection=0.450 precision=0.889
Group B: base rate=0.20 selection=0.240 precision=0.667The error rates match, so equalized odds holds. Selection rates differ by 0.21 and precision differs by about 0.22. No threshold choice fixes this while TPR and FPR stay equal.
When the conflict disappears
The conflict does not apply in two cases:
- The base rates are equal, so the formulas give equal values.
- The classifier is perfect (TPR = 1, FPR = 0), so every criterion holds.
Real models are neither perfect nor trained on groups with identical base rates. A related result covers calibration. If scores are calibrated within each group, you generally cannot also equalize FPR and FNR across groups unless base rates are equal or prediction is perfect.
What to do about it
You must choose which criterion matters for the decision. Use the harm each error causes to guide the choice:
| Situation | Likely priority | Reason |
|---|---|---|
| Screening for a benefit, where missing a qualified person is costly | Equal opportunity (equal TPR) | Qualified people in each group get equal chances |
| Punitive decisions, where false accusations are costly | Equal FPR, or equalized odds | Innocent people in each group face equal risk |
| Risk scores that people read as probabilities | Calibration by group | A score of 0.7 should mean the same thing for everyone |
| Allocation that should mirror the population | Demographic parity | Outcomes match group sizes, regardless of labels |
Then record which criteria you chose, which you gave up, and why. Also check whether the base rates themselves come from biased labels. If they do, a metric that treats the labels as ground truth inherits that bias.
Exercise
Group A has base rate 0.4 and group B has base rate 0.1. A model has TPR 0.9 and FPR 0.05 in both groups. Does demographic parity hold? Give both selection rates.
Show answer
No. Group A: 0.9·0.4 + 0.05·0.6 = 0.36 + 0.03 = 0.39. Group B: 0.9·0.1 + 0.05·0.9 = 0.09 + 0.045 = 0.135. Equalized odds holds, but selection rates differ by 0.255, so demographic parity is violated.