# Equality of Opportunity in Supervised Learning

A post-processing step can enforce equal opportunity in supervised learning

Moritz Hardt, Eric Price, Nathan Srebro · arXiv · 2016-10-7

- **Problem** Demographic parity forces equal acceptance rates across groups, so it can accept unqualified applicants and reject the most accurate predictor.
- **Method** The authors leave training alone and fit a derived predictor after the fact, using only the score and the protected attribute.
- **Results** On TransUnion credit scores, equal opportunity kept 92.8% of maximal profit, versus 69.8% for demographic parity.

## Where demographic parity gets stuck

Dropping the protected attribute from the model isn't enough, because other features can predict it. Demographic parity goes further and requires the decision to be independent of that attribute, so acceptance rates match across groups. The authors argue that this notion fails in two ways. It can accept qualified applicants in one group while turning away unqualified people in the other, as long as the acceptance percentages match.

The second failure is lost utility, and it bites when the target is itself correlated with the protected attribute. Take a default label Y that depends on A: demographic parity then rules out the ideal predictor that outputs Y itself. That predictor is hard to call discriminatory, because it simply reflects the real outcome. So the utility lost by demographic parity can be large.

## What equalized odds and equal opportunity require

The core idea is that the predictor may use the protected attribute only through its link to the target Y. Formally, the predictor and the protected attribute must be independent conditional on Y, which is the definition of equalized odds. For binary variables this means the true positive rate and the false positive rate must be equal across the two groups.

The predictor that equals Y always satisfies this, so the criterion never blocks the most accurate answer. The more accurate the predictor, the easier it is to satisfy, which the authors count as a point in its favor.

Equal opportunity asks for less: it constrains only the group whose outcome is the advantaged one, Y equal to 1. The condition is \\( \\Pr\\{\\hat{Y}=1 \\mid A=0, Y=1\\} = \\Pr\\{\\hat{Y}=1 \\mid A=1, Y=1\\} \\), so true positive rates must match across groups. Because it is weaker, it leaves more room for utility, as the case study shows.

The same definitions apply to a real-valued score R, such as a FICO score, which satisfies equalized odds when it is independent of A given Y. Any threshold of such a score then also satisfies the criterion. The authors call tests that use only the joint distribution of the target, the prediction or score and the protected attribute oblivious.

In the binary case with reasonably balanced attributes, eight parameters determine that joint distribution, so it can be estimated accurately.

## Building a predictor from an existing score

The key idea is to leave training alone and fit a derived predictor after the fact. A derived predictor is a possibly randomized function of the score R and the protected attribute, so it needs no features X at prediction time. Building it still needs the joint distribution of R, A and Y at training time, which is estimated from labeled data.

Its quality is measured by an expected loss, and the goal is to minimize that loss under the chosen fairness condition.

For a binary predictor, each group is summarized by one point: its false positive rate and its true positive rate. The set of achievable points for a group is a convex polytope, \\\[ P\_a(\\hat{Y}) = \\mathrm{convhull}\\{(0,0),\\gamma\_a(\\hat{Y}),\\gamma\_a(1-\\hat{Y}),(1,1)\\} \\\] built from the predictor and its flip. Every point in each polytope is reachable by a randomized derived predictor, and no other trade-off is available.

Equalized odds then means choosing one point that lies in both groups' polytopes and matches across them. Since the expected loss is linear in the four randomization probabilities, the search becomes a linear program in four variables. Its coefficients come from the joint distribution, so the solution is an optimal equalized odds derived predictor.

Equal opportunity uses the same program with a weaker constraint that matches only the true positive rate.

## Thresholds for real-valued scores

A score carries more information than a binary prediction, so the authors also work with R directly. A single threshold is the simplest rule, and a score that already satisfies equalized odds passes it. When the score doesn't satisfy equalized odds, the authors allow a separate threshold per group, and sometimes randomization between thresholds.

The authors trace each group's conditional ROC curve, which plots false and true positive rates as the threshold moves. A score satisfies equalized odds exactly when these curves coincide across groups. Per-group thresholds can match only at points where the curves intersect, which may not exist or may be a poor trade-off.

Randomization fills the gap: for each group, the convex hull of its ROC curve gives the achievable points, and the feasible region is where these hulls overlap. A randomized group predictor mixes two thresholds, flipping a coin for scores between them. The optimal point is then found by ternary search, because the objective is no longer linear.

For equal opportunity, no randomization is needed, because only the true positive rates must match, and two deterministic thresholds suffice. Its cost is convex in the true positive rate, so ternary search over that rate works.

## FICO results: profit under each fairness rule

The authors use a sample of 301536 TransUnion TransRisk scores from 2003 as the score R. Race is the protected attribute, with four groups: Asian, white non-Hispanic, Hispanic and black.

The authors compare five rules: max profit, race blind, demographic parity, equal opportunity and equalized odds. At an 82% non-default rate, race blind kept 99.3% of maximal profit, equal opportunity 92.8%, equalized odds 80.2% and demographic parity 69.8%. The authors say equal opportunity costs less than a quarter of what demographic parity costs, and a better classifier would lower that cost further.

The gap between equal opportunity and equalized odds comes from how accuracy is spent across groups. Under equal opportunity the classifier can use its better accuracy on the white group. Equalized odds forces every group to be classified as poorly as the hardest group, which the authors say costs over twice as much here. So the stricter rule pays for the weakest group's accuracy.

The per-group ROC curves are lower for minority groups, so FICO scores predict less well for those populations. The authors stress that these differences reflect prediction accuracy, not default behavior.

## Why post-processing works near optimality

The Bayes optimal regressor is the conditional expectation of Y given X and A, and it minimizes squared error. The authors show that the Bayes optimal fair classifier can be derived from this regressor by the same post-processing. Their proposition covers any oblivious property, not only equalized odds.

To measure how far an approximate score is from optimal, they use the conditional Kolmogorov distance. It is the largest gap, over protected groups and target values, between the threshold exceedance probabilities of the two scores. Closeness in this distance means that each point on one restricted ROC curve has a nearby point on the other.

For a bounded loss, the expected loss of the derived equalized odds predictor is at most \\\[ E\\,\\ell(\\hat{Y},Y) \\le E\\,\\ell(Y^\*,Y) + 2\\sqrt{2}\\, d\_K(\\hat{R},R^\*) \\\] where R\* is the Bayes optimal regressor. The proof moves the optimal point to a feasible point shared by both groups, at a cost of at most 2 times the distance. The authors say the same claim holds for equal opportunity.

## Why oblivious tests can't settle fairness

The authors describe two dependency structures that look very different in meaning. In Scenario I, a feature X1 tracks A, and only X2 relates to A through Y, so the fair score is X2 alone. The statistically best score uses A or its proxy, so it doesn't satisfy equalized odds. In Scenario II, a feature X3 such as wealth correlates with A and predicts Y directly.

The natural score X3 then fails equalized odds, and correcting it biases the score by A.

The authors build parameter choices where the joint distribution of Y, A, R\* and the fair score is identical in both scenarios. Equalized odds depends only on that joint distribution, so both scenarios get the same verdict. So no oblivious test can tell which scenario applies, and a judgment of unfairness would apply to both.

Even with all three features available, the authors find no further insight without causal assumptions about the features.

## Limitations

Equalized odds needs reliable observed outcomes, and the authors warn that the target itself can be unreliable or biased. They say domain-specific scrutiny is needed to define and collect a reliable target.

The framework is a way to flag concerns, not a certificate. Passing the test doesn't prove fairness, and failing it doesn't prove unfairness. The authors add that fairness concerns can't be resolved without substantial domain-specific investigation.

The analysis assumes the joint distribution is known, so finite-sample error is ignored. The case study uses one lender's cost ratio and one target, any-account default, which is far more common than default on individual new loans.

Post-processing can't repair a poor score: a near-optimal score gives a near-optimal fair predictor, but that predictor needn't be good in absolute terms. The authors advise investing in better features and data first, and post-processing only when that option is gone.

## Paper info

- **Authors**: Moritz Hardt, Eric Price, Nathan Srebro
- **Venue**: arXiv · Preprint
- **First published**: 2016-10-7
- **Added**: 2026-11-12
- **Updated**: 2016-10-7
- **Version**: v1
- **arXiv**: 1610.02413
- **Category**: cs.LG
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/1610.02413v1) · [PDF ↗](https://arxiv.org/pdf/1610.02413v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Moritz Hardt, Eric Price, Nathan Srebro (2016). Equality of Opportunity in Supervised Learning. arXiv:1610.02413v1. https://arxiv.org/abs/1610.02413v1

**BibTeX**

```
@misc{hardt2016equality,
  title = {{Equality of Opportunity in Supervised Learning}},
  author = {Moritz Hardt and Eric Price and Nathan Srebro},
  year = {2016},
  eprint = {1610.02413},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1610.02413v1}
}
```

## Other paper commentary

- [Explaining Explanations: An Overview of Interpretability of Machine Learning](https://refivu.com/en/papers/1e2e5cea-7806-41cc-934c-581f9dec0a44-explaining-explanations-an-overview-of-interpretability-of.md)
- [Estimating Continuous Distributions in Bayesian Classifiers](https://refivu.com/en/papers/318decb8-43d0-4596-b25f-944ca636af13-estimating-continuous-distributions-in-bayesian-classifiers.md)
- [Supervised learning with quantum enhanced feature spaces](https://refivu.com/en/papers/3f9e8d98-c1b3-4fa7-89e8-2599add8f4d9-supervised-learning-with-quantum-enhanced-feature-spaces.md)
- [The No-U-Turn Sampler: Adaptively Setting Path Lengths in Hamiltonian Monte Carlo](https://refivu.com/en/papers/e0f0ea3e-b264-41df-ace0-6689f5d123b5-the-no-u-turn-sampler-adaptively-setting-path.md)
- [An Introduction to Deep Learning for the Physical Layer](https://refivu.com/en/papers/f1790a96-c7b5-4b05-9672-d9d222404a87-an-introduction-to-deep-learning-for-the-physical.md)
- [On First-Order Meta-Learning Algorithms](https://refivu.com/en/papers/96fdc3b8-b749-4c6d-ac7d-17c8789f25d8-on-first-order-meta-learning-algorithms.md)
- [Occupancy Networks: Learning 3D Reconstruction in Function Space](https://refivu.com/en/papers/ebb91803-99a7-402a-90f0-6aa763fd3e16-occupancy-networks-learning-3d-reconstruction-in-function.md)
- [Predicting Depth, Surface Normals and Semantic Labels with a Common Multi-Scale Convolutional Architecture](https://refivu.com/en/papers/e513ebec-7ee7-41d2-bb2e-ed519797b97d-predicting-depth-surface-normals-and-semantic-labels-with.md)
- [OpenVLA: An Open-Source Vision-Language-Action Model](https://refivu.com/en/papers/3dd15569-8eba-48b1-88e8-a1ca295a743e-openvla-an-open-source-vision-language-action-model.md)
- [Microsoft COCO Captions: Data Collection and Evaluation Server](https://refivu.com/en/papers/1cf4256e-f015-43b3-a7f1-14167d272b8f-microsoft-coco-captions-data-collection-and-evaluation.md)
- [Crowdsourcing a Word-Emotion Association Lexicon](https://refivu.com/en/papers/3b0b67cb-6dd6-4162-9110-cdbb5d2cea2a-crowdsourcing-a-word-emotion-association-lexicon.md)
- [A Neural Attention Model for Abstractive Sentence Summarization](https://refivu.com/en/papers/d68d7c9a-7c6e-4b4f-a4e9-ba1853fdfad2-a-neural-attention-model-for-abstractive-sentence.md)

## Terms in this paper

- [supervised learning](https://refivu.com/en/terms/1c6d1ef2b134-supervised-learning)
- [ROC curve](https://refivu.com/en/terms/8a3e75b0a9ec-roc-curve)
- [Equalized odds](https://refivu.com/en/terms/f85a98b96a76-equalized-odds)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/97e846bf-1b27-4e7b-934a-caa8326bd5e9-equality-of-opportunity-in-supervised-learning)
