A loan classifier is evaluated on two demographic groups of 100 applicants each: Group A has and Group B has . What are the positive prediction rate, , and for each group, and which fairness criteria are satisfied or violated?
ML systems and evaluation, Fairness
Level L2 Elementary. Length Medium. Nature Mat Mathematical.
What's being asked
Whether you can compute group fairness metrics from confusion matrices and see the tension between them empirically.
Key idea
Using confusion-matrix counts (, , , for true/false positives and negatives, with group size ), comparing selection rate , true positive rate , false positive rate , and positive predictive value (precision) across groups shows that equalised odds can hold even while demographic parity and predictive parity fail.
Steps
- Group A (60 positives, 40 negatives): positive prediction rate ; ; ; .
- Group B (30 positives, 70 negatives): positive prediction rate ; ; ; .
- Evaluate equalised odds and equal opportunity: both and , so both equal opportunity (equal ) and equalised odds (equal and ) are exactly satisfied.
- Evaluate demographic parity and predictive parity: demographic parity (equal positive prediction rates) is violated (gap ), and predictive parity (equal / precision) is violated (gap ), driven by the different base rates ( vs ).
Common mistakes
- Dividing by instead of the group’s actual positive count ( or ) when computing .
- Assuming that satisfying equalised odds automatically makes precision () equal across groups; unequal base rates break equality whenever and (so ).
How long your answer should be
Eight rates across two groups and 2–3 sentences assessing the criteria; 4 minutes.
Read this
Previous in ML systems and evaluation: An A/B test evaluates 20 independent metrics at significance level when the treatment actually has zero effect on all of them. What is the probability of getting at least one false positive, how does Bonferroni correction adjust the threshold, and why does sequential peeking cause a similar problem?
Next in ML systems and evaluation: A credit score model’s training score distribution across four equal-frequency bins is , while live production traffic shifts to . What is the population stability index (PSI), how severe is the drift under standard thresholds, and why should rising PSI trigger investigation rather than automatic blind retraining?