Calibration with Equality of Opportunity
Description
Calibration with equality of opportunity is a post-processing step that adjusts a classifier's scores so that two groups face the same error rate, in a score-based form of the equal opportunity criterion, while the scores stay calibrated. Calibrated means that, within each group, about 70% of the people given a score of 0.7 really have the outcome. The error rate is computed from the scores rather than from yes-or-no decisions, and for equality of opportunity it is how far, on average, the scores of people who truly have the outcome fall short of 1. Starting from scores already calibrated within each group, the step replaces a randomly chosen share of the scores in the group with the lower error rate by that group's overall rate of the outcome, which makes those predictions less informative until the two error rates match. Calibration is kept at a cost in accuracy for that group, and matching this score-based rate does not guarantee equal true positive rates once a decision threshold is applied.
Example Use Cases
Fairness
A hospital team finds that its follow-up screening model gives lower risk scores to women who go on to develop the condition than to men who do. Using a held-out validation set with recorded sex, it adjusts the scores so that this error is equal across the two groups, then measures the accuracy lost by the group whose scores were replaced, to decide whether the model can be released.
Reliability
A university uses a model to offer extra support to students at risk of dropping out, and wants a score of 0.3 to mean about a 30% dropout rate in every fee-status group. After equalising the error rate across groups, planners plot calibration by group on held-out data to confirm the scores still mean what they say before using them to allocate support places.
Limitations
- The target can be infeasible. If even replacing every score in the lower-error group with that group's base rate leaves its error below the other group's, the two rates cannot be matched while staying calibrated. This happens when the other group's classifier is close to uninformative.
- Equality is reached by making predictions worse for the group with the lower error rate, not by improving them for the other group. A random share of that group's scores is replaced by its base rate, and the loss grows with the gap between the groups' base rates.
- Calibration can coexist with only one error constraint. Matching the score-based false negative rate leaves false positive rates free to diverge, so one group can face more false alarms, and equalising both while staying calibrated is impossible except in trivial cases.
- Because the replaced predictions are chosen at random, two similar people in the same group can receive different outcomes. Those affected may reasonably object that a consequential decision was made by withholding information, which makes the method hard to justify in high-stakes settings.
- It needs each person's group attribute when scores are adjusted, labelled held-out data to estimate how many scores to replace, and starting scores already calibrated within each group, which it preserves but cannot create. Where the attribute cannot lawfully be used, or the base model is miscalibrated, the method does not apply.
Resources
Research Papers
On Fairness and Calibration
The machine learning community has become increasingly concerned with the potential for bias and discrimination in predictive models. This has motivated a growing line of work on what it means for a classification procedure to be "fair." In this paper, we investigate the tension between minimizing error disparity across different population groups while maintaining calibrated probability estimates. We show that calibration is compatible only with a single error constraint (i.e. equal false-negatives rates across groups), and show that any algorithm that satisfies this relaxation is no better than randomizing a percentage of predictions for an existing classifier. These unsettling findings, which extend and generalize existing results, are empirically confirmed on several datasets.
Equality of Opportunity in Supervised Learning
We propose a criterion for discrimination against a specified sensitive attribute in supervised learning, where the goal is to predict some target based on available features. Assuming data about the predictor, target, and membership in the protected group are available, we show how to optimally adjust any learned predictor so as to remove discrimination according to our definition. Our framework also improves incentives by shifting the cost of poor classification from disadvantaged groups to the decision maker, who can respond by improving the classification accuracy. In line with other studies, our notion is oblivious: it depends only on the joint statistics of the predictor, the target and the protected attribute, but not on interpretation of individualfeatures. We study the inherent limits of defining and identifying biases based on such oblivious measures, outlining what can and cannot be inferred from different oblivious tests. We illustrate our notion using a case study of FICO credit scores.