Demographic parity, often synonymous with statistical parity, mandates that the selection rate—the proportion of individuals classified as positive—must be equal across groups defined by a protected attribute such as race, gender, or age. A model satisfies this constraint if P(Ŷ=1 | A=a) = P(Ŷ=1 | A=b), where Ŷ is the predicted outcome and A is the sensitive attribute. This metric directly addresses disparate impact by ensuring a model's decisions do not disproportionately favor one group over another in aggregate.
Glossary
Demographic Parity

What is Demographic Parity?
Demographic parity is a group fairness criterion requiring a model's positive prediction rate to be statistically identical across all protected demographic groups, irrespective of the ground truth labels.
While effective for detecting underrepresentation, demographic parity ignores the ground truth base rates, meaning it can require actively discriminating against a qualified majority group to achieve mathematical balance. This limitation distinguishes it from metrics like equalized odds, which condition on the true outcome. In practice, enforcing strict demographic parity often involves post-processing techniques such as threshold adjustment or in-processing constraints, but it remains legally contentious under disparate treatment doctrine when it necessitates explicit consideration of protected characteristics.
Core Characteristics
Demographic parity is a group fairness criterion that mandates equal positive prediction rates across all protected demographic groups, irrespective of the ground truth labels.
Statistical Definition
Demographic parity is satisfied when the probability of a positive prediction is identical for all groups. Formally: P(ŷ=1 | A=a) = P(ŷ=1 | A=b) for all groups a, b, where ŷ is the predicted outcome and A is the protected attribute. This metric is also known as statistical parity or group fairness. It is an independence criterion, meaning the prediction is statistically independent of the sensitive attribute.
Independence from Ground Truth
A defining characteristic of demographic parity is that it does not consider the actual ground truth labels (Y). It only evaluates the distribution of predictions. This is both its primary strength and its most significant limitation. It can be achieved even if the base rates of the target variable differ substantially between groups, which may require systematically over-predicting positive outcomes for one group and under-predicting for another.
Measurement: Disparate Impact Ratio
The most common implementation is the Disparate Impact Ratio, often defined as the 80% rule. It is calculated as:
- Ratio = P(ŷ=1 | unprivileged group) / P(ŷ=1 | privileged group)
- A perfectly fair model under this definition has a ratio of 1.0.
- A ratio below 0.8 (or above 1.25) is typically flagged as potential discrimination.
Incompatibility with Other Fairness Metrics
Demographic parity is mathematically incompatible with equalized odds and predictive parity unless the base rates of the target variable are identical across groups or the model is perfectly accurate. This is a fundamental impossibility theorem in algorithmic fairness. Pursuing demographic parity often requires sacrificing calibration, meaning the predicted probability of a positive outcome may no longer accurately reflect the true likelihood for a given individual.
Regulatory and Legal Context
Demographic parity aligns closely with disparate impact legal theory under U.S. employment law (Title VII of the Civil Rights Act), where a facially neutral policy that disproportionately harms a protected group is unlawful. It is a primary metric used in Algorithmic Impact Assessments under the EU AI Act to evaluate potential discrimination. However, strict demographic parity is not universally mandated by law, and its use as a binding constraint rather than a diagnostic tool remains legally debated.
Implementation Techniques
Achieving demographic parity typically involves one of three intervention points:
- Pre-processing: Reweighing or transforming the training data to remove statistical dependence on the protected attribute.
- In-processing: Adding a fairness constraint or regularization term to the model's loss function during training.
- Post-processing: Adjusting decision thresholds independently for each group after prediction to equalize positive rates.
Frequently Asked Questions
Clear answers to the most common technical and regulatory questions about the Demographic Parity fairness criterion.
Demographic parity is a group fairness criterion requiring that a model's positive prediction rate is identical across all protected demographic groups, regardless of the ground truth labels. It is calculated as the ratio of positive predictions to total predictions for each group. For example, if a hiring algorithm approves 10% of male applicants and 10% of female applicants, it satisfies demographic parity. The mathematical condition is P(ŷ=1 | A=a) = P(ŷ=1 | A=b) for all groups a and b, where ŷ is the predicted outcome and A is the protected attribute. This metric is also known as statistical parity or equal acceptance rate.
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.
Demographic Parity vs. Other Fairness Metrics
A comparison of Demographic Parity against other common statistical fairness definitions used in algorithmic impact assessments.
| Feature | Demographic Parity | Equalized Odds | Equal Opportunity |
|---|---|---|---|
Core Definition | Positive prediction rate is equal across all groups | True positive and false positive rates are equal across groups | True positive rate is equal across all groups |
Considers Ground Truth | |||
Formula Basis | P(Ŷ=1|A=a) = P(Ŷ=1|A=b) | P(Ŷ=1|Y=y, A=a) = P(Ŷ=1|Y=y, A=b) | P(Ŷ=1|Y=1, A=a) = P(Ŷ=1|Y=1, A=b) |
Allows Perfect Prediction | |||
Sensitive to Base Rate Differences | |||
Primary Legal Alignment | Disparate impact doctrine | Individual fairness | Affirmative action doctrine |
Risk of Laziness | |||
Typical Use Case | University admissions, hiring quotas | Pretrial risk assessment, credit scoring | Medical diagnosis, fraud detection |
Related Terms
Demographic parity is one of several statistical fairness criteria used to evaluate automated decision systems. The following concepts represent alternative or complementary definitions of algorithmic fairness.
Equalized Odds
A stricter fairness criterion requiring that a model's true positive rate and false positive rate are equal across all protected groups. Unlike demographic parity, equalized odds accounts for the ground truth by ensuring the classifier is equally accurate for each group.
- True Positive Rate Parity: The model identifies actual positives at the same rate across groups.
- False Positive Rate Parity: The model makes the same proportion of mistaken positive predictions across groups.
- Trade-off: Satisfying both equalized odds and demographic parity simultaneously is mathematically impossible when base rates differ between groups.
Disparate Impact Ratio
A fairness metric defined as the ratio of the favorable outcome rate for a protected group to that of a reference group. A ratio below 0.8 (the four-fifths rule) is commonly used as a threshold for identifying potential indirect discrimination.
- Formula: (Selection rate of protected group) / (Selection rate of reference group)
- Origin: Derived from the U.S. Equal Employment Opportunity Commission's Uniform Guidelines on Employee Selection Procedures.
- Limitation: Does not account for legitimate business necessity or ground truth qualifications.
Counterfactual Fairness
A causal fairness definition stating a prediction is fair if it remains the same in a counterfactual world where an individual's protected attribute was changed. This approach requires a structural causal model to determine which variables are descendants of the protected attribute.
- Causal Reasoning: Goes beyond correlation to model the data-generating process.
- Individual-Level: Assesses fairness for specific individuals rather than group-level statistics.
- Challenge: Requires strong assumptions about the causal graph, which may be difficult to validate in practice.
Proxy Variable Detection
A proxy variable is a non-protected feature that inadvertently encodes a protected attribute, leading to masked discrimination. For example, zip code often correlates strongly with race, and credit card type may correlate with age.
- Detection Methods: Mutual information analysis, correlation testing, and adversarial removal techniques.
- Mitigation: Removing or transforming proxy variables during preprocessing, or applying fairness constraints during training.
- Regulatory Relevance: The EU AI Act requires high-risk systems to be tested for proxy discrimination.
Equality of Opportunity
A relaxed version of equalized odds that requires only true positive rate parity across groups. This ensures that qualified individuals from all groups have an equal chance of receiving a positive outcome, without constraining false positive rates.
- Focus: Protects against denying opportunities to qualified individuals.
- Application: Commonly used in hiring, lending, and college admissions contexts.
- Distinction: Does not address the harm of false positives, which may be acceptable in contexts where false negatives are the primary concern.
Individual Fairness
A fairness principle stating that similar individuals should receive similar predictions, regardless of group membership. This requires defining a task-specific distance metric that captures relevant similarity between individuals.
- Metric Learning: Requires a domain-expert-defined similarity function, which can be challenging to specify.
- Contrast with Group Fairness: Addresses fairness at the individual level rather than aggregating across demographic groups.
- Formalization: Introduced by Dwork et al. (2012) as a Lipschitz condition on the classifier with respect to the similarity metric.

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