drag to pan · scroll to zoom
Actual positive Actual negative Threshold line
Group A (top) Group B (bottom)

Base-Rate Fairness Impossibility Lab (2D)

A machine learning classifier scores two demographic groups using exactly the same underlying risk model — yet the groups have different true base rates for the outcome being predicted. This simulator renders both populations as 2D score strips (drag to pan, scroll to zoom) and lets you set each group's base rate and the decision threshold(s), then watches equalized-odds metrics (FPR, TPR) and the calibration metric (PPV) update live. The result reproduces a real mathematical fact known as the fairness impossibility theorem: when base rates differ, equal accuracy across groups and equal calibration across groups cannot both hold at once, except in the trivial case where the base rates already match.