Skip to content

Eight AUC-Based Fairness Metrics in Clinical Predictive AI

THE ARGUMENT

AUC does not collapse across subgroups, so only one of the eight metrics belongs in an acceptance clause; three of them compare quantities that should never be compared.

On this page

Suppose you hold an acceptance contract that caps the male-female score gap at 0.05; it looks tidy, but the number is wrong. Most people would score the model twice, once for men and once for women, subtract, and call a small gap fair. A hospital team buying a model that predicts death after heart surgery often signs exactly this clause. Here is the catch: the single overall score is not the average of the two group scores, because the model compares every patient who had the event against every patient who did not, including pairs that cross groups. Both groups can improve, and the overall score still falls. You may pass the 0.05 check while shipping a model that grew more unequal, or reject an update that genuinely helped the worse-off group. This piece explains which numbers belong in a contract and which ones quietly reverse the verdict.

Why the 0.05 line in an acceptance contract is wrong

Most people start from a plain guess: score the model once for men, once for women, subtract, and treat a small gap as fair. That guess fails. The overall score is not a headcount-weighted blend of the two group scores; the model pairs every patient who had the event with every patient who did not, and many of those pairs cross the group line. Cross-group pairs sound abstract, so put it plainly: take a man who died and compare him with a woman who survived. Those pairs enter the overall score, yet they never enter either within-group score.[1] Watch only the two group numbers, and you hide half the comparisons.

Section 2 of the paper names this non-collapsibility: you cannot rebuild the overall value from subgroup values. For two groups, equation (1) splits it into four pieces: men against men, women against women, men who had the event against women who did not, and the reverse. Each piece carries a weight built from event counts and non-event counts. Only two of the four ever appear in the clause you signed.[1] Subtract a subgroup value from the overall value, and you subtract two different things. With more than two groups, the pairwise gaps multiply by n(n-1)/2, and the trouble grows.

  • The usual clause: score each group, subtract, compare with 0.05.
  • What it hides: every pair that crosses the group line.
  • The result: both groups improve, the overall score still drops.
  • AUC is that score, also called the c-statistic: it measures how often the model ranks a patient who had the event above one who did not.

What the paper computed with 22,381 cardiac patients

This paper proposes no new model; it takes inventory. Authors from Oxford, Leuven, and Birmingham pull apart the AUC-based metrics, write down what each one estimates, attach each to a decomposition of the overall score, and test them on a real model. That model is EuroSCORE II, built from 22,381 patients across 154 hospitals in 43 countries; it predicts death in hospital after cardiac surgery and reached an AUC of 0.81.[1] The simulation treats sex at birth as two groups, fixes men at 0.8 and women at 0.2 of the people, and sets event rates at 0.02 for men and 0.03 for women, following a nationwide study of 14,118 patients.[1]

Each scenario draws 100,000 samples from truncated normal curves with a shared spread of 0.01.[1] Table 3 reports three rows: scenario one opens at 0.85 overall, scenario two lifts the female group and the overall figure falls to 0.84, and scenario three levels both groups at 0.86 while the overall stays at 0.84. Scenario three is the shock: both group scores read 0.86, yet the combined 0.84 sits below both.[1] Nothing was miscomputed; non-collapsibility does exactly this. A clause that tracks only the within-group gap never sees it.

One more word needs plain speech. AUC measures ranking only, not whether the predicted probabilities are right; that second job is called calibration, and it is a different thing. The paper warns that cross-group metrics can fight calibration: to shrink a cross-group gap, a model may push one group's probabilities up or down, so the gap looks good while the numbers go bad.[1] If only the order of patients matters, you can ignore this; the moment you use the probabilities, you must watch both. That is why the authors keep asking for population characteristics alongside every score.

  • Use one, risk talk: hand the probability to a patient, set no cut.
  • Use two, a yes-or-no choice: set one cut, or a separate cut for each group.
  • Use three, a waiting list: only the order matters, absolute values do not.
  • The same 0.84 means three different things across these uses.

Which AUC metrics a contract can cite, named one by one

Start with the one the paper recommends. Within-group AUC parity takes the absolute gap between the two group AUCs; zero counts as fair, and a ratio version hits one at equality.[1] Cross-group AUC parity, or xAUC parity, takes the absolute gap between the two off-diagonal blocks. Gap to overall AUC subtracts a group value from the overall value. Equity-scaled AUC divides the overall value by one plus the within-group gap. Minimum-based metrics take the smaller of the two group AUCs; the paper floats 0.8 as a pass mark. xAUC1 asks how often a patient with the event from one group ranks above any patient without the event in the whole population; 0.5 means chance, one means perfect. xAUC0 flips it and asks how often a patient without the event ranks below any patient with the event. Last, xAUC1 and xAUC0 parity takes those gaps across groups; zero counts as fair.[1] All eight names are now on the table. The full matrix is a 2 by 2 grid: two diagonal blocks and two off-diagonal ones, with no cell left out.

MetricWhat we computeFair valueOur advice
Within-group AUC parityAbsolute gap between group AUCs0Recommended, report with overall AUC
Cross-group AUC parityAbsolute gap between the two xAUC blocks0Use with caution, add to parity
Gap to overall AUCOverall AUC minus a group AUC, in absolute value0Not recommended, compares unlike things
Equity-scaled AUCOverall AUC over one plus the within-group gapEquals overall AUCNot recommended, hard to read
Minimum-based metricsThe smaller of the two group AUCsAbove 0.8, for exampleNot recommended, unclear alone
xAUC1Event patient ranked above any non-event patientEqual across groups, 0.5 is chanceUse with caution
xAUC0Non-event patient ranked below any event patientEqual across groupsUse with caution
xAUC1 and xAUC0 parityGap in xAUC1 or xAUC0 across groups0Use with caution
  • Recommended: within-group AUC parity, plus the overall AUC and the full matrix.
  • Use with caution: cross-group AUC parity, xAUC1, xAUC0, and the two parity gaps; each needs care.
  • Not recommended: gap to overall AUC, equity-scaled AUC, and minimum-based metrics; each compares unlike things.
  • Table 1 of the paper sorts them into exactly these three buckets.

When a fix for women pushed the overall score from 0.85 to 0.84

In scenario one, the overall score is 0.85, men 0.88, women 0.73; the within-group gap reads 0.15, the cross-group gap 0.25, and the xAUC1 gap 0.04.[1] Scenario two lifts women from 0.73 to 0.80, leaves men at 0.88, and narrows the within-group gap to 0.08; yet the cross-group gap jumps from 0.25 to 0.55, the xAUC1 gap from 0.04 to 0.16, and the overall score drops from 0.85 to 0.84.[1] The paper calls this a level-up that turned into a level-down: you changed only the female distribution, but the male cross-group pairs moved too, so men lost ranking power without a single male probability changing.

Scenario three is stranger. Set both group scores to 0.86, so the within-group gap is exactly 0, and the clause would call this model perfectly fair; but the two cross-group blocks read 0.53 and 0.98, a gap of 0.45, and the overall score is 0.84, below both 0.86 values.[1] Apply one shared surgical cut and a man with the event outranks a woman without it only 53% of the time, while a woman with the event outranks a man without it 98% of the time, so the selected patients skew heavily female.[1] Give each group its own cut and the cross-group comparison stops driving the choice; then the within-group gap again becomes the only number that matters.

ScenarioOverall AUCMen AUCWomen AUCxAUC men to womenxAUC women to men
One0.850.880.730.670.92
Two0.840.880.800.440.99
Three0.840.860.860.530.98
  • Scenario one: a 0.15 gap and a 0.25 gap coexist; report one and you miss half.
  • Scenario two: groups grow more equal inside, less equal across, and the overall falls.
  • Scenario three: zero within-group gap, 0.45 cross-group gap, overall below both groups.
  • The paper's fix: report the full matrix, not a single difference.

Where this comparison stops working

Here is the limit. This comparison only holds for two groups, a binary outcome, and ranking alone; it breaks down once you ask whether the probabilities are right, once real surgical cuts follow, or once more than two groups make the matrix large.[1] The authors say it plainly at the end: statistical fairness metrics alone cannot establish whether a clinical model is fair or safe to deploy, and the trade-off with calibration still needs study.[1] Do not copy the clause; ask first what the model will actually do. The line worth a screenshot: the overall score is not the average of the group scores, so comparing it with a subgroup compares two different things; cap the within-group gap, never the gap to the overall.

References

  1. Fairness Metrics based on the AUC in Clinical Predictive AI

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…