Inferensys

Glossary

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.
ML engineer managing model training cluster on laptop, GPU utilization visible, technical deep learning setup.
INDEPENDENCE CRITERION

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.

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.

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.

INDEPENDENCE CRITERION

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.

01

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
P(Ŷ=1|A=a)
Must Equal P(Ŷ=1|A=b)
02

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
0.8
Conventional Threshold (80% Rule)
03

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
04

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
05

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
06

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
FAIRNESS CRITERIA COMPARISON

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.

FeatureDemographic ParityEqualized OddsEqual OpportunityPredictive 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

FAIRNESS AUDITING

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.

Prasad Kumkar

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.