Demographic parity, also known as statistical parity, is a group fairness metric that requires a classifier's selection rate—the proportion of individuals predicted to receive a positive outcome—to be identical across all groups defined by a protected attribute such as race or gender. It enforces the mathematical constraint P(Ŷ=1 | A=a) = P(Ŷ=1 | A=b) for all groups a and b, ensuring a model's decisions are statistically independent of sensitive group membership.
Glossary
Demographic Parity

What is Demographic Parity?
An independence-based fairness criterion requiring a model's positive prediction rate to be equal across all groups defined by a protected attribute.
This criterion is a core component of disparate impact analysis, often operationalized via the 80% rule, but it does not require ground truth labels, making it applicable when historical outcomes are themselves biased. A key limitation is that demographic parity may require selecting unqualified individuals from disadvantaged groups to meet the quota, creating a direct accuracy-fairness trade-off and violating equalized odds if base rates differ across populations.
Core Characteristics of Demographic Parity
Demographic parity, also known as statistical parity, is a group fairness criterion that requires a model's decision to be statistically independent of a protected attribute. It mandates equal positive prediction rates across all groups.
The Independence Principle
Demographic parity is an independence-based fairness metric. It requires that the probability of receiving a positive outcome is identical for all groups defined by a protected attribute (e.g., race, gender).
- Formal Definition: P(Ŷ=1 | A=a) = P(Ŷ=1 | A=b) for all groups a, b
- The model's prediction Ŷ is completely independent of the sensitive attribute A
- This is the strongest group fairness constraint, ignoring all other features
- Does not require access to ground truth labels, only predictions and group membership
Measurement: Disparate Impact Ratio
The most common way to quantify demographic parity is through the Disparate Impact Ratio (DIR), often linked to the 80% rule in U.S. employment law.
- Formula: DIR = P(Ŷ=1 | unprivileged) / P(Ŷ=1 | privileged)
- A DIR of 1.0 indicates perfect demographic parity
- A DIR below 0.8 (or above 1.25) is conventionally flagged as potential disparate impact
- This ratio provides a single, interpretable scalar for auditing binary classifiers
Key Limitation: Laziness
A primary criticism of demographic parity is that it permits lazy solutions. A classifier can satisfy the criterion by randomly selecting a fixed quota of individuals from each group, ignoring actual qualifications.
- A lender could approve 50% of applicants from every group regardless of creditworthiness
- This violates equal opportunity for truly qualified individuals in the disadvantaged group
- It can incentivize selecting less-qualified individuals from advantaged groups to meet quotas
- The metric is blind to the base rate of true positive outcomes in each group
Relationship to Equalized Odds
Demographic parity is often contrasted with Equalized Odds, a stricter separation-based metric. While demographic parity equalizes only the positive prediction rate, equalized odds requires equality of both true positive and false positive rates.
- Demographic Parity: Equal selection rates across groups
- Equalized Odds: Equal error rates (TPR and FPR) across groups
- A model can satisfy demographic parity while having wildly different false positive rates
- When base rates differ between groups, both criteria cannot be satisfied simultaneously except in trivial cases
Enforcement: Pre-Processing Techniques
Demographic parity is often enforced through pre-processing interventions that transform the training data before model fitting.
- Reweighing: Assigns weights to training examples to make the label distribution independent of the protected attribute
- Disparate Impact Remover: Edits feature values to obscure their correlation with the protected attribute while preserving rank ordering within groups
- Optimized Pre-Processing: Learns a probabilistic transformation of features and labels to satisfy fairness constraints with minimal information loss
- These methods modify the data distribution rather than the learning algorithm itself
Legal and Regulatory Context
Demographic parity aligns with the legal concept of disparate impact under Title VII of the U.S. Civil Rights Act of 1964, though the legal standard is more nuanced.
- The four-fifths rule from the Uniform Guidelines on Employee Selection Procedures (1978) operationalizes this
- In the EU, the AI Act classifies certain high-risk systems that exhibit statistical disparities as requiring conformity assessments
- Courts often require a showing of business necessity if a model exhibits disparate impact
- Demographic parity is a statistical proxy for legal compliance, not a complete legal defense
Demographic Parity vs. Other Fairness Metrics
A technical comparison of demographic parity against equalized odds, equal opportunity, and predictive parity across key definitional and operational dimensions.
| Feature | Demographic Parity | Equalized Odds | Equal Opportunity | Predictive Parity |
|---|---|---|---|---|
Fairness Family | Independence | Separation | Separation | Sufficiency |
Core Constraint | P(Ŷ=1|A=a) = P(Ŷ=1|A=b) | P(Ŷ=1|Y=y,A=a) = P(Ŷ=1|Y=y,A=b) for y∈{0,1} | P(Ŷ=1|Y=1,A=a) = P(Ŷ=1|Y=1,A=b) | P(Y=1|Ŷ=1,A=a) = P(Y=1|Ŷ=1,A=b) |
Sensitive to Base Rates | ||||
Requires Ground Truth Labels | ||||
Allows Perfect Predictor | ||||
Calibration Guarantee | ||||
Typical Use Case | Representation quotas in hiring pipelines | Recidivism prediction with balanced error rates | Loan approval with equal qualified applicant selection | Medical diagnosis with consistent precision |
Key Limitation | Ignores qualification; may select unqualified individuals | May force equal error rates across groups with different base rates | Ignores false positive rate disparities | Does not guarantee equal selection rates |
Frequently Asked Questions
Clear, technically precise answers to the most common questions about implementing and auditing Demographic Parity in machine learning systems.
Demographic Parity, also known as statistical parity, is an independence-based fairness criterion that requires a model's positive prediction rate to be equal across all groups defined by a protected attribute. Formally, a classifier satisfies Demographic Parity if P(Ŷ=1 | A=a) = P(Ŷ=1 | A=b) for all groups a, b in the protected attribute A, where Ŷ is the predicted outcome. This means the probability of receiving a favorable prediction must be identical regardless of group membership.
Unlike Equalized Odds or Equal Opportunity, Demographic Parity does not condition on the true outcome Y. It only cares about the distribution of predictions. This makes it a purely statistical constraint that ignores whether the base rates of the outcome differ across groups in the real world. The metric is often operationalized through the Demographic Parity Difference (DPD), calculated as the absolute difference between the selection rates of two groups. A DPD of 0 indicates perfect parity, while common regulatory thresholds accept values below 0.1 or apply the 80% rule from disparate impact law.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Demographic parity is one of several statistical fairness criteria. Explore these related concepts to build a comprehensive fairness auditing framework.
Equalized Odds
A separation-based fairness metric that is stricter than demographic parity. It requires a classifier to achieve equal True Positive Rates and equal False Positive Rates across all protected groups.
- Matches error rates for qualified and unqualified individuals
- Penalizes lazy classifiers that achieve parity by approving everyone
- Often trades off with demographic parity in practice
Equal Opportunity
A relaxed version of equalized odds that only constrains the True Positive Rate to be equal across groups. This ensures that among individuals who should qualify, the same proportion actually receives a positive outcome.
- Focuses solely on qualified individuals
- Does not constrain false positive rates
- Preferred when the cost of a false negative is asymmetric across groups
Predictive Parity
A sufficiency-based criterion requiring that the Positive Predictive Value (precision) be equal across groups. If a model predicts a positive outcome, the probability that the prediction is correct must be the same regardless of group membership.
- Also called 'outcome test' in economics
- Ensures a positive decision means the same thing for everyone
- Mathematically incompatible with demographic parity unless base rates are equal
Disparate Impact
A legal doctrine originating from U.S. employment law, quantified by the 80% rule. A selection process exhibits disparate impact if the selection rate for a protected group is less than 80% of the rate for the group with the highest selection rate.
- Directly measures the ratio of positive prediction rates
- Closely related to demographic parity in practice
- Used by the U.S. Equal Employment Opportunity Commission
Counterfactual Fairness
A causal definition of fairness. A prediction is counterfactually fair if it remains the same in the actual world and in a counterfactual world where the individual belonged to a different demographic group, given all other causally independent attributes.
- Requires a Structural Causal Model to define
- Captures intuition of 'what if' scenarios
- Addresses limitations of purely statistical definitions like demographic parity
Accuracy-Fairness Trade-off
The observed tension where enforcing strict fairness constraints like demographic parity can measurably reduce overall predictive accuracy. This trade-off is not universal and depends on:
- The quality and bias present in the training data
- Whether the protected attribute is causally relevant to the outcome
- The specific fairness metric being enforced
Key insight: Improving data collection and representation often mitigates this trade-off more effectively than post-hoc constraints.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us