This paper explores how the "fairness" of a machine learning model can be a mirage created by the data's underlying distribution. By analyzing the statistical properties of six popular fairness metrics, the authors demonstrate that class imbalance and protected group ratios significantly distort these measures, often leading to misleading conclusions about a model's bias.
TL;DR
The paper reveals that common fairness metrics like Equal Opportunity are highly sensitive to class imbalance, often producing "perfect fairness" scores simply due to data skew. In contrast, Accuracy Equality and Statistical Parity prove much more stable, offering a more reliable assessment for the imbalanced datasets typical of real-world applications.
What Problem Does This Paper Address?
In high-stakes domains like hiring or criminal justice, we use fairness metrics to ensure models don't discriminate against protected groups (e.g., based on race or gender). However, most real-world data is messy: one class might be much rarer than the other (class imbalance), or one group might be much smaller than the rest (group imbalance).
The authors argue that we don't fully understand how these imbalances affect the metrics themselves. If a metric is mathematically prone to showing "perfect fairness" when data is imbalanced, a researcher might mistakenly believe their model is fair when the result is actually just a statistical artifact. The paper seeks to provide a dataset-independent theoretical framework to guide practitioners in choosing the right metric for their specific data distribution.
Methods
The researchers employed a two-pronged approach:
- Distribution-Based Analysis: Instead of testing on a single dataset, they generated all possible confusion matrices for a fixed sample size ($n=56$). This resulted in over 553 million unique matrices. By calculating fairness scores for every single one, they could visualize the Probability Mass Function (PMF) of each metric—essentially seeing the "natural" behavior of the metric across all possible classifier outcomes.
- Formal Property Definition: They proposed eight formal properties to evaluate metrics, such as Immunity to IR (Imbalance Ratio) changes and Resolution Stability (whether the metric can still provide a wide range of values in skewed data).
- Case Study: They validated their theoretical findings by training six different classifiers (Random Forest, SVM, etc.) on the UCI Adult dataset, manually varying the levels of imbalance to see if the real-world results matched their theoretical PMFs.
The process of generating these distributions is illustrated in Figure 2: Fig.
- Process of creating a histogram of a fairness measure probability mass function by generating all possible confusion matrices.

Datasets
- Simulated Dataset: A combinatorial set of all possible $2 \times 2$ confusion matrices for two groups, totaling 553,270,671 scenarios.
- UCI Adult Dataset: A standard benchmark for fairness and imbalance, used to predict whether an individual's income exceeds $50,000. The authors used "Sex" as the protected attribute.
Key Insights and Ideas
- Metric Pairing: The six metrics analyzed actually fall into three pairs with nearly identical statistical behaviors: (1) Accuracy Equality & Statistical Parity, (2) Equal Opportunity & Predictive Equality, and (3) Positive & Negative Predictive Parity.
-
The Stability of Accuracy Equality: Accuracy Equality is remarkably robust. As shown in Figure 3, its distribution remains centered and relatively consistent even as class and group ratios shift. Fig.
-
Histograms of accuracy equality values for selected imbalance and group ratios.
-
The Fragility of Equal Opportunity: In contrast, metrics like Equal Opportunity (Figure 4) become extremely "low resolution" in imbalanced settings. When the positive class is rare, the metric can only take a few discrete values, and the probability of it being exactly zero ("perfect fairness") spikes dramatically, not because the model is fair, but because the math collapses. Fig.
-
Histograms of equal opportunity values for selected imbalance and group ratios.
- Undefined Values: For extreme group imbalances, many metrics frequently become "undefined" because their denominators (like the number of predicted positives in a small group) hit zero. This makes them practically useless for auditing models on very small minority groups.


Key Results
- Sensitivity: Equal Opportunity and Positive Predictive Parity are significantly more sensitive to class imbalance than Accuracy Equality.
- Fairness-Accuracy Tradeoff: The authors found that for certain data proportions, there is an inherent statistical tradeoff between achieving high accuracy and achieving fairness as defined by specific metrics.
- Practitioner Guidance: The study concludes that Accuracy Equality and Statistical Parity are the most reliable choices for imbalanced datasets. Equal Opportunity should be used with caution when the positive class is rare, as it becomes unstable and prone to "false" perfect fairness scores.
Limitations and Future Work
The primary limitation is the uniform probability assumption: the theoretical analysis treats every possible confusion matrix as equally likely. In reality, we usually deal with "good" classifiers that are more likely to produce certain types of matrices.
Future work could involve:
- Incorporating "priors" or weights to the confusion matrices to reflect more realistic classifier behaviors.
- Extending the analysis to multi-class problems and non-binary protected attributes.
- Investigating "stereotypical bias," where groups are unevenly distributed within classes rather than just across the whole dataset.
Summary updated