An Accounting Identity for Algorithmic Fairness
Hadi Elzayn, Jacob Goldin
TL;DR
An accounting identity ties calibration-based fairness measures to a total unfairness budget under global calibration, showing that for binary Y the left-hand side $\delta_B + \delta_C$ equals $\text{MSE}(Z)[P(G=1|Y=1)-P(G=1|Y=0)]$, thereby making accuracy and fairness complements in binary prediction. The general non-binary extension replaces the budget with $\text{Cov}(\mathbb{E}[G|Y], Y-\mathbb{E}[Z|Y])$ and provides a bound $|\delta_B+\delta_C| \le \sqrt{\mathrm{Var}(\mathbb{E}[G|Y])}\sqrt{\text{MSE}(Z)}$, clarifying when binary impossibility results extend to regression. Empirically, the identity is validated on COMPAS, Adult, German Credit, and Bank Marketing, showing that fairness interventions tend to reallocate unfairness across dimensions and may raise the total budget if accuracy declines. The framework offers a principled lens on accuracy-fairness tradeoffs and indicates how additional outcome information in non-binary tasks can relax incompatibilities under certain conditions.
Abstract
We derive an accounting identity for predictive models that links accuracy with common fairness criteria. The identity shows that for globally calibrated models, the weighted sums of miscalibration within groups and error imbalance across groups is equal to a "total unfairness budget." For binary outcomes, this budget is the model's mean-squared error times the difference in group prevalence across outcome classes. The identity nests standard impossibility results as special cases, while also describing inherent tradeoffs when one or more fairness measures are not perfectly satisfied. The results suggest that accuracy and fairness are best viewed as complements in binary prediction tasks: increasing accuracy necessarily shrinks the total unfairness budget and vice-versa. Experiments on benchmark data confirm the theory and show that many fairness interventions largely substitute between fairness violations, and when they reduce accuracy they tend to expand the total unfairness budget. The results extend naturally to prediction tasks with non-binary outcomes, illustrating how additional outcome information can relax fairness incompatibilities and identifying conditions under which the binary-style impossibility does and does not extend to regression tasks.
