Choosing between Demographic/Statistical Parity and Equal Opportunity comes down to one question: are you trying to prevent unequal allocation of opportunities across groups, or to ensure that qualified individuals are treated equally regardless of group membership? These two group fairness metrics measure fundamentally different things, and picking the wrong one can mask the exact harm you set out to detect. This comparison draws on the Fairlearn project's fairness documentation and a Carpentries Incubator training curriculum on trustworthy machine learning to lay out what each metric captures, where it applies, and where it falls short.
Introduction: Evaluating Bias in Large Language Models
As large language models increasingly influence decisions—screening resumes, approving loans, ranking content—practitioners need quantitative ways to test whether those systems treat demographic groups differently. Fairness metrics provide that test in the context of classification tasks, where a model assigns positive or negative outcomes to individuals. But the metrics themselves encode assumptions about what fairness means, and those assumptions vary. Fairlearn's documentation, a widely used open-source toolkit for fairness assessment, treats demographic parity and equal opportunity as distinct tools suited to distinct harms. The Carpencies Incubator lesson on model evaluation and fairness makes the underlying point bluntly: there is no single definition of "fair machine learning," and different notions of fairness are appropriate in different contexts. Understanding which notion matches your application is the first step in any credible bias evaluation.
Demographic/Statistical Parity: Ensuring Proportional Outcomes
Demographic parity—also called statistical parity, independence, group fairness, and disparate impact in the literature—asks whether the proportion of individuals receiving a positive outcome is the same across demographic groups. In other words, the sensitive attribute should be statistically independent of the model's decision. Fairlearn's guidance ties this metric directly to what it calls allocation harms: situations where AI systems distribute opportunities, resources, or information differently across groups. The documentation's canonical example is an AI hiring system that advances resumes of male applicants more often than those of female applicants regardless of qualification.
Demographic parity can assess the extent of such harms because it rests on an explicit assumption—that resources should be allocated proportionally across groups. That assumption is powerful when the concern is the overall distribution of a benefit, but it is also the metric's defining constraint: parity in selection rates says nothing about whether the individuals selected were qualified.
Equal Opportunity: Fairness for Qualified Individuals
Equal opportunity shifts the frame from group-level outcome rates to the treatment of qualified individuals. In the hiring example Fairlearn uses, equal opportunity requires that individuals in group A who are qualified to be hired are just as likely to be chosen as qualified individuals in group B. The metric therefore focuses on the true positive rate—the rate at which genuinely qualified people receive the positive outcome—and demands that it be equal across groups.
This makes it a natural fit for applications where the positive outcome is tied to a ground truth label, such as hiring or loan approvals, and where the harm of concern is discrimination against qualified members of a protected group. But the same narrow focus creates a blind spot: because equal opportunity does not consider whether false positive rates are equivalent across groups, it fails to capture the costs of misclassification disparities. Unqualified individuals in one group could be disproportionately misclassified as positive without the metric registering a problem.
Choosing the Right Fairness Metric: A Comparison
The table below contrasts the two metrics across the dimensions that matter for selection: the core question each answers, the harm it addresses, and its key limitation. The trade-off is structural—each metric's strength is the other's weakness.
| Dimension | Demographic/Statistical Parity | Equal Opportunity |
|---|---|---|
| Core question it answers | Are positive outcomes (selection rates) independent of sensitive attributes across groups? | Are qualified individuals in different groups equally likely to receive a positive outcome? |
| Primary use case (type of harm) | Addresses allocation harms—unequal distribution of opportunities, resources, or information across groups. | Ensures fairness for qualified individuals, suited to settings with ground truth labels such as hiring or loan approvals. |
| Key limitation | Does not consider individual qualifications or merit; proportional outcomes may be unfair to qualified individuals when groups differ. | Does not consider false positive rates across groups, so it misses the costs of misclassification disparities. |
Read the table as a decision aid, not a verdict. If your application's central risk is that a benefit or opportunity is distributed unevenly across groups—an allocation harm—demographic parity is the aligned instrument. If your central risk is that qualified people from one group are systematically passed over, equal opportunity targets that harm directly. Neither metric covers both concerns at once, which is precisely why the Carpentries curriculum warns that a single accuracy score, or a single fairness score, is not sufficient.
Broader Limitations of Quantitative Fairness Metrics
Even correctly applied, these metrics carry constraints that no implementation choice can remove. Research on LLM bias evaluation, including the GPTBIAS framework described by its authors on arXiv, notes that established bias metrics have limitations in assessing model bias: they are prevented from evaluating biases beyond their predefined data and from detecting biases toward demographic groups not included in the test data. In other words, a fairness measurement is only as comprehensive as the demographic categories and test cases built into it.
The GPTBIAS authors propose using GPT-4 itself as a bias metric partly to address these gaps, raising open questions and guidelines that extend assessment to groups not covered by predefined bias tests. For practitioners, the practical implication is that a passing parity or equal-opportunity score does not certify a model as unbiased—it certifies it only within the scope of the data and groups the metric was defined over.
Making an Informed Choice for Fair LLM Evaluation
Select the fairness metric (Demographic/Statistical Parity or Equal Opportunity) that best aligns with the specific societal goal and the type of harm being addressed in the LLM application. If the goal is proportional allocation of a resource across groups, measure selection-rate parity and accept that qualifications go unexamined; if the goal is equal treatment of qualified individuals, measure true positive rates and accept that false positive disparities go unexamined. The measurable indicator of a well-made choice is reduced instances of identified allocation harms or improved equal outcomes for qualified individuals in the target application. Because both metrics are bounded by their predefined demographic data, pair whichever you choose with a periodic review of whether the groups and harms your test data actually covers match the populations your model serves.





