Simple Algorithm
Artificial Intelligence · Deep Layer · 26 min

Fairness Impossibility Theorems

Why calibration and equal error rates conflict.

In 2016 ProPublica reported that a recidivism score wrongly flagged Black defendants who did not reoffend at nearly twice the rate of white defendants; the score's maker replied that it predicted reoffending equally well for both groups. Both were right. When base rates differ, no score can be calibrated and have balanced error rates at once, unless it predicts perfectly. This lesson proves that three ways and lays out the debate that followed.

What you’ll learn

  • Define calibration within groups, balance for the positive and negative classes, predictive parity and error-rate balance precisely.
  • Prove the Kleinberg–Mullainathan–Raghavan theorem: calibration and both balance conditions force equal base rates or perfect prediction.
  • Derive Chouldechova's identity linking FPR, FNR, PPV and the base rate, and prove that separation and sufficiency are incompatible for strictly positive distributions.
  • Present the COMPAS debate with each side's argument, and explain what the theorems do and do not settle.

Calibration and balance, precisely

Two kinds of score satisfy all three conditions: a perfect predictor, S=YS=Y, and a calibrated score whose distribution given YY is the same in both groups, which requires equal base rates. The impossibility theorem says that nothing else does.

DerivationProof
  1. E[S∣A=t]=E[E[Y∣S,A=t] ∣ A=t]=E[Y∣A=t]=pt\E[S\mid A=t]=\E\big[\E[Y\mid S,A=t]\,\big|\,A=t\big]=\E[Y\mid A=t]=p_t

    Calibration fixes each group's average score. Under (A), S=E[Y∣S,A=t]S=\E[Y\mid S,A=t] within group tt, so by the tower property

  2. (1−pt) xt+pt yt=pt  ⟺  (1−pt) xt=pt (1−yt)(1-p_t)\,x_t+p_t\,y_t=p_t\iff(1-p_t)\,x_t=p_t\,(1-y_t)

    Split by outcome. Write xt=E[S∣Y=0,A=t]x_t=\E[S\mid Y=0,A=t] and yt=E[S∣Y=1,A=t]y_t=\E[S\mid Y=1,A=t]. Then E[S∣A=t]=(1−pt)xt+ptyt\E[S\mid A=t]=(1-p_t)x_t+p_ty_t, so each group satisfies

  3. (1−p1)x+p1y=p1,(1−p2)x+p2y=p2,p1≠p2 ⟹ (x,y)=(0,1)(1-p_1)x+p_1y=p_1,\quad(1-p_2)x+p_2y=p_2,\quad p_1\ne p_2\ \Longrightarrow\ (x,y)=(0,1)

    Balance makes the unknowns common. Under (B) and (C), x1=x2=xx_1=x_2=x and y1=y2=yy_1=y_2=y. Each group's equation is now a line in the (x,y)(x,y) plane, every such line passes through (0,1)(0,1), and its slope −(1−pt)/pt-(1-p_t)/p_t is strictly monotone in ptp_t. If p1≠p2p_1\ne p_2 the lines are distinct and meet only at that point:

  4. Since 0≤S≤10\le S\le1, an average score of 0 among negatives means every negative scores 0, and an average of 1 among positives means every positive scores 1: perfect prediction. ■\blacksquare Step 2 also shows that under calibration the ratio of generalized FPR to generalized FNR equals the base-rate odds, xt/(1−yt)=pt/(1−pt)x_t/(1-y_t)=p_t/(1-p_t), so groups with different base rates must trade off their two kinds of error differently.

Check your understanding

A calibrated score has base rate 0.4 in a group, and the group's negatives average a score of 0.2. What is the average score of the group's positives?

  1. 0.6
  2. 0.7
  3. 0.8
  4. 0.4
Show the answer

B. 0.7

(1−p)x=p(1−y)(1-p)x=p(1-y) gives 0.6×0.2=0.4 (1−y)0.6\times0.2=0.4\,(1-y), so y=0.7y=0.7. In a second group with base rate 0.2 and the same negative average 0.2, calibration would force 0.8×0.2=0.2 (1−y)0.8\times0.2=0.2\,(1-y), so y=0.2y=0.2: positives would score no higher than negatives, and balance for the positive class (0.7 against 0.2) fails.

Chouldechova's identity and the separation–sufficiency conflict

DerivationChouldechova (2017)
  1. TP=(1−FNR) p n,FP=FPR (1−p) n\mathrm{TP}=(1-\mathrm{FNR})\,p\,n,\qquad\mathrm{FP}=\mathrm{FPR}\,(1-p)\,n

    Let the decision be binary, Y^∈{0,1}\hat Y\in\{0,1\}, as when a score is cut into "higher risk" and "lower risk". In a group of size nn with base rate pp, count the true and false positives from the error rates:

  2. FPR=p1−p⋅1−PPVPPV⋅(1−FNR)\mathrm{FPR}=\frac{p}{1-p}\cdot\frac{1-\mathrm{PPV}}{\mathrm{PPV}}\cdot\big(1-\mathrm{FNR}\big)

    The definition PPV=TP/(TP+FP)\mathrm{PPV}=\mathrm{TP}/(\mathrm{TP}+\mathrm{FP}) gives FP=TP (1−PPV)/PPV\mathrm{FP}=\mathrm{TP}\,(1-\mathrm{PPV})/\mathrm{PPV}. Substitute both counts and divide by (1−p)n(1-p)n:

  3. FPR1FPR2=p1/(1−p1)p2/(1−p2)when PPV and FNR are equal across the groups\frac{\mathrm{FPR}_1}{\mathrm{FPR}_2}=\frac{p_1/(1-p_1)}{p_2/(1-p_2)}\qquad\text{when PPV and FNR are equal across the groups}

    If two groups have equal PPV (predictive parity) but different base rates, the factor p/(1−p)p/(1-p) differs, so their FPR and FNR cannot both be equal: equalizing one forces the other apart, in the ratio of the base-rate odds.

The converse direction is easy to watch. Give two groups identical score distributions given the outcome, so that one threshold produces identical TPR and FPR in both and separation holds exactly, and let only the base rate differ.

Proof. For strictly positive distributions, conditional independence has the intersection property: A⊥ ⁣ ⁣ ⁣⊥R∣YA\indep R\mid Y and A⊥ ⁣ ⁣ ⁣⊥Y∣RA\indep Y\mid R together imply A⊥ ⁣ ⁣ ⁣⊥(R,Y)A\indep(R,Y), and in particular A⊥ ⁣ ⁣ ⁣⊥YA\indep Y, a contradiction. Positivity matters: a perfect predictor R=YR=Y puts no mass on R≠YR\ne Y and satisfies both conditions, the same exception as in Kleinberg et al.'s theorem. The three results are one phenomenon, stated for calibrated scores, for binary decisions and for arbitrary scores.

The COMPAS debate

COMPAS is a commercial risk-assessment tool used in US courts. In May 2016 ProPublica (Angwin, Larson, Mattu & Kirchner) analyzed its scores for defendants in Broward County, Florida, against re-arrest within two years, treating medium and high scores as "higher risk":

Two-year outcomeBlack defendantsWhite defendants
Did not reoffend, but labeled higher risk (FPR)44.9%23.5%
Reoffended, but labeled lower risk (FNR)28.0%47.7%
ProPublica's error rates. Northpointe's reply read the same data from the other side: among defendants labeled higher risk, similar fractions of Black and white defendants reoffended, and likewise among those labeled lower risk.

Northpointe (Dieterich, Mendoza & Brennan, 2016) argued that the scores satisfied predictive parity and were about equally accurate for both groups, so a given score meant the same risk regardless of race; Flores, Bechtel & Lowenkamp (2016) reached similar conclusions in a reanalysis. Recorded re-arrest rates were higher for Black than for white defendants in this sample, so by Chouldechova's identity equal PPV forces unequal error rates, and both analyses can be right at once. The disagreement is about which property matters, and about the data:

  • Error-rate view. The burden of mistakes falls on people who would not have reoffended, and in this data it fell on Black defendants about twice as often. Separation is the right demand when errors cost liberty.
  • Calibration view. A judge should treat equal risks equally, which sufficiency guarantees. Equalizing false-positive rates would require race-specific thresholds, detaining some lower-risk defendants of one race while releasing higher-risk defendants of another (Corbett-Davies et al., 2017).
  • Measurement view. The outcome is re-arrest, not reoffending. If policing differs by neighborhood and race, calibration and error rates are both computed against a biased label (measurement bias, in the terms of Bias & Fairness).
  • Value of the tool. Dressel & Farid (2018) found COMPAS about as accurate as people without criminal-justice expertise recruited online, and as a logistic regression on two features, age and number of prior convictions, which questions what the proprietary model adds.
Check your understanding

Which statement about the COMPAS debate is correct?

  1. ProPublica's error rates were miscalculated, so there was no real conflict
  2. Both the error-rate disparity and predictive parity held in the data, and with different base rates no imperfect score can satisfy both
  3. A more accurate model would have removed the conflict
  4. Removing race from the inputs would have equalized the error rates
Show the answer

B. Both the error-rate disparity and predictive parity held in the data, and with different base rates no imperfect score can satisfy both

ProPublica's unequal FPR and FNR and Northpointe's predictive parity were both supported by the data, and Chouldechova's identity shows they must coexist when base rates differ. Accuracy narrows the gaps, but only perfect prediction closes them. COMPAS did not take race as an input in the first place.

Key takeaways

  • Calibration within groups forces each group's average score to equal its base rate; adding balance for both classes pins the class-conditional averages to (0,1)(0,1): equal base rates or perfect prediction (Kleinberg, Mullainathan & Raghavan).
  • For binary decisions, FPR=p1−p⋅1−PPVPPV⋅(1−FNR)\mathrm{FPR}=\frac{p}{1-p}\cdot\frac{1-\mathrm{PPV}}{\mathrm{PPV}}\cdot(1-\mathrm{FNR}): with predictive parity and unequal base rates, FPR and FNR cannot both be equal (Chouldechova).
  • More generally, separation and sufficiency are incompatible when AA and YY are dependent and the joint distribution is strictly positive; a perfect predictor is the only escape.
  • COMPAS showed predictive parity and unequal error rates at once because re-arrest base rates differed. The debate is about which criterion to require, and about the label itself, not about arithmetic.
  • Calibration can coexist with at most one linear error constraint, at a cost to one group's accuracy; multicalibration, long-term dynamics and measurement are active research directions.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

Calibration within a group implies that the group's average score equals what?

  1. 0.5
  2. The group's base rate
  3. The other group's average score
  4. The group's false-positive rate
Show the answer

B. The group's base rate

E[S∣A=t]=E[E[Y∣S,A=t]∣A=t]=pt\E[S\mid A=t]=\E\big[\E[Y\mid S,A=t]\mid A=t\big]=p_t. This is the first step of the Kleinberg–Mullainathan–Raghavan proof: each group's scores must average to its base rate, which the balance conditions then cannot reconcile with different base rates.

Question 2

Two groups have equal PPV =0.6=0.6 and equal FNR =0.3=0.3, with base rates 0.5 and 0.2. How do their false-positive rates compare?

  1. They are equal
  2. The FPR is 2.5 times higher in the group with base rate 0.5
  3. The FPR is 4 times higher in the group with base rate 0.5
  4. The FPR is 4 times higher in the group with base rate 0.2
Show the answer

C. The FPR is 4 times higher in the group with base rate 0.5

FPR=p1−p⋅1−PPVPPV⋅(1−FNR)\mathrm{FPR}=\frac{p}{1-p}\cdot\frac{1-\mathrm{PPV}}{\mathrm{PPV}}\cdot(1-\mathrm{FNR}) gives 1×23×0.7≈0.471\times\tfrac23\times0.7\approx0.47 for p=0.5p=0.5 and 0.25×23×0.7≈0.120.25\times\tfrac23\times0.7\approx0.12 for p=0.2p=0.2. The ratio is the ratio of the base-rate odds, 1/0.25=41/0.25=4.

Question 3

Why does a perfect predictor escape the separation–sufficiency conflict?

  1. Perfect predictors require equal base rates
  2. With R=YR=Y both conditions hold trivially, and the joint distribution of (A,R,Y)(A,R,Y) is not strictly positive, so the intersection property behind the proof does not apply
  3. A perfect predictor is not calibrated
  4. A perfect predictor violates separation
Show the answer

B. With R=YR=Y both conditions hold trivially, and the joint distribution of (A,R,Y)(A,R,Y) is not strictly positive, so the intersection property behind the proof does not apply

If R=YR=Y, conditioning on YY fixes RR and conditioning on RR fixes YY, so R⊥ ⁣ ⁣ ⁣⊥A∣YR\indep A\mid Y and Y⊥ ⁣ ⁣ ⁣⊥A∣RY\indep A\mid R both hold even when AA and YY are dependent. The proof needs strict positivity, which a perfect predictor violates by putting no mass on R≠YR\ne Y.

Question 4

According to Pleiss et al. (2017), what else can a calibrated classifier achieve across two groups with different base rates?

  1. Equal FPR and equal FNR
  2. At most one linear error constraint, such as equal FNR, by randomly withholding information from part of one group's predictions
  3. Demographic parity at no cost
  4. Nothing at all
Show the answer

B. At most one linear error constraint, such as equal FNR, by randomly withholding information from part of one group's predictions

Within a group, calibrated classifiers satisfy gFPR=p1−p gFNR\text{gFPR}=\frac{p}{1-p}\,\text{gFNR}: they lie on a line through the origin whose slope is the base-rate odds. One linear constraint can be met by moving the better-off group along its line, mixing in the trivial predictor that always outputs the base rate; meeting two is the Kleinberg–Mullainathan–Raghavan impossibility again.

Further reading

  • J. Kleinberg, S. Mullainathan & M. Raghavan, "Inherent trade-offs in the fair determination of risk scores," ITCS (2017; arXiv 2016).
  • A. Chouldechova, "Fair prediction with disparate impact: A study of bias in recidivism prediction instruments," Big Data (2017).
  • J. Angwin, J. Larson, S. Mattu & L. Kirchner, "Machine bias," ProPublica (May 2016).
  • W. Dieterich, C. Mendoza & T. Brennan, "COMPAS risk scales: Demonstrating accuracy equity and predictive parity," Northpointe Inc. (2016).
  • S. Barocas, M. Hardt & A. Narayanan, Fairness and Machine Learning: Limitations and Opportunities (MIT Press, 2023).