Demographic parity, also known as statistical parity, is a fairness metric that mandates a model's selection rate—the proportion of individuals predicted to receive a positive outcome—be equal across different groups defined by a sensitive attribute like race or gender. It is satisfied when the probability of a favorable prediction is the same regardless of group membership, mathematically expressed as P(Ŷ=1|A=a) = P(Ŷ=1|A=b). This definition enforces statistical independence between the model's output and the protected attribute, making it a foundational, input-agnostic fairness constraint.
Glossary
Demographic Parity

What is Demographic Parity?
Demographic parity is a statistical group fairness criterion requiring a model's positive prediction rate to be identical across all protected demographic groups, ensuring the decision is statistically independent of the sensitive attribute.
While intuitive for legal compliance with disparate impact doctrine, demographic parity has a critical limitation: it ignores the ground-truth base rates. If a qualified subgroup is underrepresented in the training data, enforcing parity may require the model to arbitrarily grant positive outcomes to unqualified individuals in one group while denying qualified individuals in another, creating a severe fairness-utility trade-off. This metric is best suited for scenarios where historical labels are known to be corrupted by systemic bias, and the primary goal is to rapidly equalize opportunity distribution rather than maximize predictive accuracy.
Key Characteristics of Demographic Parity
Demographic Parity, also known as statistical parity, is a group fairness metric that mandates a model's decision rate be independent of protected attributes. It is the foundational constraint for ensuring proportional representation in algorithmic outcomes.
The Statistical Independence Constraint
Demographic Parity requires that the probability of a positive prediction is identical across all demographic groups. Formally, this is expressed as P(ŷ=1 | A=a) = P(ŷ=1 | A=b) for any two groups a and b. This enforces that the model's output is statistically independent of the sensitive attribute, meaning knowing a person's group membership provides no information about the likelihood of a favorable classification. This is the strictest form of group fairness and is often legally mandated in contexts like hiring.
The Disparate Impact Ratio
In practice, perfect equality is rarely achievable, so compliance is often measured using the Disparate Impact Ratio. This is calculated by dividing the positive prediction rate of the unprivileged group by that of the privileged group. The U.S. Equal Employment Opportunity Commission's 80% rule is a common threshold: a ratio below 0.8 indicates a potential adverse impact. A ratio of 1.0 represents perfect demographic parity.
The Core Limitation: Laziness
A critical weakness of Demographic Parity is that it permits lazy solutions. A model can satisfy the constraint by randomly granting positive outcomes to unqualified individuals in one group to match the rate of qualified individuals in another, or by arbitrarily denying qualified candidates. This is known as tokenism or randomized fairness. The metric ignores the ground truth label (Y), meaning it does not account for whether the decisions were actually correct or justified.
Prevalence Disparity Conflict
Demographic Parity becomes mathematically impossible to satisfy without causing harm when the base rates of the target variable differ significantly between groups. If the true rate of loan default is 10% for Group A and 20% for Group B, forcing equal acceptance rates would require either:
- Over-accepting risky applicants in Group B
- Under-accepting qualified applicants in Group A This inherent conflict with predictive accuracy is the central fairness-utility trade-off.
Pre-Processing Mitigation: Reweighing
A common technique to achieve Demographic Parity is reweighing, a pre-processing method. It works by assigning weights to training examples based on the combination of their sensitive attribute and outcome label. For instance, a qualified applicant from an underrepresented group receives a higher weight, while an unqualified applicant from an overrepresented group receives a lower weight. The model is then trained on this weighted dataset, learning to make predictions that are statistically independent of the sensitive attribute without explicit in-processing constraints.
In-Processing Constraint: Adversarial Debiasing
Demographic Parity can be enforced during model training using adversarial debiasing. This architecture pits a predictor network against an adversary network. The predictor tries to accurately classify the target variable, while the adversary tries to predict the sensitive attribute from the predictor's output. The predictor is trained to maximize accuracy while simultaneously minimizing the adversary's ability to detect the protected group, effectively learning a representation that achieves statistical independence from the sensitive attribute.
Demographic Parity vs. Equalized Odds
A technical comparison of two foundational group fairness criteria, contrasting their definitions, mathematical constraints, and operational trade-offs in classification systems.
| Feature | Demographic Parity | Equalized Odds | Notes |
|---|---|---|---|
Core Definition | Positive prediction rate is equal across all groups | True positive and false positive rates are equal across all groups | DP ignores ground truth; EO conditions on it |
Mathematical 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} | DP: independence. EO: separation |
Sensitive Attribute Independence | Requires Ŷ ⊥ A | Requires Ŷ ⊥ A | Y | DP is a stronger unconditional constraint |
Uses Ground Truth Labels | EO requires labeled outcomes; DP does not | ||
Satisfies Individual Fairness | Both are group-level metrics, not individual guarantees | ||
Allows Perfect Predictor | DP forbids perfect predictor if base rates differ; EO permits it | ||
Laziness Penalty | High risk of 'laziness' via random positive selection | Lower risk; must match error rates per group | DP can be satisfied by trivial classifiers |
Typical Mitigation Strategy | Pre-processing or in-processing with adversarial debiasing | Post-processing threshold adjustment or constrained optimization | Different intervention points in the ML pipeline |
Frequently Asked Questions
Clear answers to the most common questions about demographic parity, its implementation, and its role in building equitable AI systems.
Demographic parity is a group fairness metric that requires a model's positive prediction rate to be identical across all protected demographic groups, ensuring statistical independence from the sensitive attribute. It works by constraining the decision boundary so that the proportion of individuals receiving a favorable outcome—such as loan approval or ad delivery—is the same for every group, regardless of the base rate of qualification. Formally, it is satisfied when P(Ŷ=1 | A=a) = P(Ŷ=1 | A=b) for all groups a and b, where Ŷ is the predicted outcome and A is the sensitive attribute. This metric is also known as statistical parity or group fairness and is one of the most widely cited definitions in the algorithmic fairness literature.
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 group fairness criteria. Explore related metrics, mitigation techniques, and governance concepts essential for building equitable AI systems.
Equalized Odds
A stricter fairness criterion requiring equal true positive rates and false positive rates across all protected groups. Unlike demographic parity, equalized odds conditions on the true outcome, ensuring that errors are distributed evenly.
- True Positive Rate Equality: The model correctly identifies positive cases at the same rate for all groups
- False Positive Rate Equality: The model incorrectly flags negative cases at the same rate for all groups
- Trade-off: Often conflicts with demographic parity when base rates differ across groups
Disparate Impact
A legal doctrine and quantitative measure originating from U.S. employment law, often assessed using the 80% rule (four-fifths 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.
- Formula: (Selection Rate of Protected Group) / (Selection Rate of Reference Group) < 0.80
- Key Distinction: Disparate impact focuses on outcomes, not intent
- Application: Widely used in lending, hiring, and criminal justice algorithmic audits
Counterfactual Fairness
A causal definition of fairness where a decision is fair if it would remain the same in a counterfactual world where an individual's sensitive attribute was different, while all other causally dependent features are adjusted accordingly.
- Causal Foundation: Requires a structural causal model to define the relationships between attributes
- Individual-Level: Assesses fairness at the granularity of a single person rather than group averages
- Strength: Captures the downstream effects of sensitive attributes on seemingly neutral features like zip code or education
Bias Mitigation
The systematic application of algorithmic techniques to reduce unwanted systematic errors across three intervention points:
- Pre-processing: Transform training data to remove bias before model training (e.g., reweighting, fair representation learning)
- In-processing: Add fairness constraints directly into the model's objective function during training (e.g., adversarial debiasing, fairness-aware regularization)
- Post-processing: Adjust model outputs after prediction to satisfy fairness criteria (e.g., threshold adjustment, reject option classification)
Each approach presents a different point on the fairness-utility trade-off curve.
Calibration by Group
A fairness criterion ensuring that a model's predicted probabilities accurately reflect the true empirical likelihood of an outcome for every distinct demographic group. A well-calibrated model means that among all instances receiving a predicted score of 0.8, approximately 80% should belong to the positive class, regardless of group membership.
- Sufficiency: The outcome is independent of the sensitive attribute given the predicted score
- Conflict: Calibration is often incompatible with equalized odds when base rates differ across groups
- Use Case: Critical in risk assessment tools where probability estimates drive resource allocation decisions
Algorithmic Fairness
The overarching discipline of designing machine learning systems that make impartial decisions, avoiding unjust bias against individuals or groups based on protected attributes such as race, gender, age, or disability status.
- Group Fairness: Statistical parity across demographic groups (e.g., demographic parity, equalized odds)
- Individual Fairness: Similar individuals should receive similar outcomes regardless of group membership
- Causal Fairness: Decisions should be invariant to sensitive attributes in a causal sense
Governance frameworks like the EU AI Act increasingly mandate algorithmic fairness assessments for high-risk systems.

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