Equal Opportunity Difference

Description

Equal Opportunity Difference checks whether a model is equally likely to give a favourable prediction to the people whose true outcome is favourable, such as loan applicants who would repay, in each demographic group. For each group it calculates the true positive rate: of the people whose true outcome is positive, the share the model also predicts as positive. The score is the gap between two groups' rates, usually the unprivileged group's minus the privileged group's, and 0 means the rates match. Some libraries report the largest gap across all groups instead. The metric follows the equality of opportunity criterion of Hardt, Price and Srebro (2016), and it says nothing about people whose true outcome is negative, so a score of 0 does not show that the model is fair overall.

Example Use Cases

Fairness

A bank's model risk team evaluates a loan approval model on past loans with known repayment outcomes. It measures whether applicants who went on to repay were approved at the same rate in each ethnic group, for example 90% for one group against a markedly lower rate for another, before the model is released.

A hospital evaluating a model that flags chest X-rays for suspected pneumonia compares its sensitivity, the share of confirmed cases it flags, between male and female patients and between age bands on a labelled validation set. A gap means affected patients in one group are more likely to be missed, which the clinical safety board weighs before deployment.

A university department checks a model that flags first-year students at risk of dropping out so they can be offered support. Using last year's records, it measures what share of students who actually dropped out were flagged, separately for students who are the first in their family to attend university and for other students.

Limitations

  • Only considers true positive rates and ignores false positive rate disparities, potentially allowing discrimination in the form of unequal false alarm rates between groups.
  • The true outcome labels must be reliable for every group. Where they record past decisions, such as repayment known only for applicants previously approved, or are measured differently between groups, equal true positive rates can reproduce the bias already in the labels.
  • True positive rates use only the people whose true outcome is positive, so a rare outcome leaves few cases in each group. Gaps can then be noise, and splitting by several attributes at once, such as age within gender, makes this worse.
  • Closing a gap by lowering one group's decision threshold raises that group's true positive rate but also its false positive rate. Fixing this metric can therefore open a gap in another, and the metric gives no warning when it does.
  • A score of 0 does not show that the model is fair. The measure uses only predictions, true outcomes and group membership, and Hardt et al. show that situations with different fairness readings can give identical numbers, so a result needs scrutiny of how the outcome was produced.

Resources

Research Papers

Equality of Opportunity in Supervised Learning
Moritz Hardt, Eric Price, and Nathan Srebro•Oct 7, 2016

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.

AI Fairness 360: An extensible toolkit for detecting and mitigating algorithmic bias
R. K. E. Bellamy et al.•Jul 1, 2019

Fairness is an increasingly important concern as machine learning models are used to support decision making in high-stakes applications such as mortgage lending, hiring, and prison sentencing. This article introduces a new open-source Python toolkit for algorithmic fairness, AI Fairness 360 (AIF360), released under an Apache v2.0 license (https://github.com/ibm/aif360). The main objectives of this toolkit are to help facilitate the transition of fairness research algorithms for use in an industrial setting and to provide a common framework for fairness researchers to share and evaluate algorithms. The package includes a comprehensive set of fairness metrics for datasets and models, explanations for these metrics, and algorithms to mitigate bias in datasets and models. It also includes an interactive Web experience that provides a gentle introduction to the concepts and capabilities for line-of-business users, researchers, and developers to extend the toolkit with their new algorithms and improvements and to use it for performance benchmarking. A built-in testing infrastructure maintains code quality.

Software Packages

AIF360
Aug 22, 2018

A comprehensive set of fairness metrics for datasets and machine learning models, explanations for these metrics, and algorithms to mitigate bias in datasets and models.

fairlearn
May 15, 2018

A Python package to assess and improve fairness of machine learning models.

Tutorials

AIF360 tutorial: Medical Expenditure (notebook)

Documentations

aif360.sklearn.metrics.equal_opportunity_difference — aif360 0.6.1 ...
Aif360 Developers•Jan 1, 2018
fairlearn.metrics.equal_opportunity_difference — Fairlearn documentation

Tags

Fairness Dimensions

Other Categories

Data Type:
Evidence Type:
Technique Type: