1The disparity ratio and the small-group trap
The base measure compares, across groups, the rate of the positive class (getting the loan, passing the screen…). The disparity ratio = rate of the most favored group ÷ rate of the least favored. 60% vs 30% → ratio 2.0.
n = 18 is fragile: two more cases can flip it. Always look at n, never the ratio alone. An extreme max/min on a tiny group is an artifact.Justifying is not excusing. "That's just what the historical data shows" is not acceptable: history can encode past discrimination. A disparity must be justified (a documented legitimate necessity) or mitigated. And if mappingValidated:false, the bias is "unconfirmed" — you don't sign.
2What to measure, and the notions of fairness
The right rate
You compare, across groups, the rate of the positive class (getting the loan, passing the screen). Not the overall error rate, not income, not headcount — those are characteristics, not the outcome being compared.
Several fairness notions, sometimes incompatible
- Demographic parity: equal selection rates across groups.
- Equal opportunity: equal true positive rates (not missing the good candidates within a group).
The averaging trap
A high overall accuracy (92%) can mask a failure on a sub-group (60%): average performance says nothing about fairness. Likewise, a balanced overall ratio can hide an intra-group disparity (e.g., among under-30s) — hence examining sub-groups (after checking their headcount).
3Where bias comes from, and how to mitigate it
The sources
- Sample not representative of the targeted population.
- Labels derived from biased past human decisions (an "evaluation" is not a neutral truth): the model learns the bias.
- Proxies: variables correlated with a sensitive attribute that re-encode it.
Families of mitigation
- Pre-processing: rebalancing / re-weighting the data.
- In-processing: imposing fairness constraints during training.
- Post-processing: adjusting decision thresholds by group.
Limit: "mechanically equalizing rates" (forced parity) has perverse effects (reverse discrimination, loss of relevance). You understand the source before correcting.
4Reading a number like an expert
Small sample sizes
A rate on a small group is fragile: it should come with a confidence interval (a wide one), and one should be wary of an extreme ratio that is only an artifact. Compare the robust groups first.
The COMPAS lesson
In the COMPAS case (recidivism), the documented bias was about markedly unequal false positive rates across groups — not overall accuracy, which could appear comparable.
mappingValidated:false.