Demographic parity

Demographic parity is a fairness measure requiring that an AI system give the favourable outcome, such as a loan approval, to each group at the same rate regardless of membership of a protected group.

Demographic parity is the simplest way to check whether an AI system treats groups alike. Pick a protected attribute such as sex or race, and compare the share of each group that gets the favourable decision. If 30 per cent of men and 30 per cent of women are approved for a loan, the model satisfies demographic parity. Formally, the model's decision must be statistically independent of the protected attribute.

Its appeal is that it needs no knowledge of who truly deserved the outcome, only the decisions and the groups. That makes it easy to measure and close in spirit to how US employment regulators screen for problems: federal guidelines say a selection rate for any group below four-fifths of the rate for the most-selected group will generally be regarded as evidence of adverse impact.

Its weaknesses were set out sharply by Moritz Hardt, Eric Price and Nathan Srebro in 2016. Demographic parity can be satisfied while accepting qualified people from one group and unqualified people from another, as long as the percentages match. And when the real outcome, such as whether someone repays a loan, differs between groups in the data, demographic parity rules out even a perfectly accurate predictor, which can carry a large cost. Their alternative, equality of opportunity, compares groups only among people who truly qualify.

Fairness measures also conflict with each other. The Fairlearn project notes that demographic parity and equalized odds, which compares error rates across groups, cannot always be satisfied at the same time, and Google's machine learning glossary says some notions of fairness are mutually incompatible. In practice demographic parity is a useful alarm: a large gap in approval rates deserves explanation. Whether to force the rates to be equal is a policy choice that depends on the setting, not something the metric can decide.

Common questions

What is demographic parity in machine learning?

It is a fairness criterion that requires the rate of favourable predictions to be the same across groups defined by a protected attribute such as sex or race. A hiring model satisfies it if it shortlists the same percentage of applicants from each group.

What is the difference between demographic parity and equal opportunity?

Demographic parity compares outcomes across whole groups. Equal opportunity compares them only among people who truly qualify, requiring that qualified people in each group have the same chance of a favourable decision.

What are the criticisms of demographic parity?

It can be met while making poor decisions within a group, and it rules out accurate predictions when the true outcome genuinely differs between groups. It also cannot always be satisfied together with other fairness measures such as equalized odds.

Is demographic parity required by law?

Laws generally do not require exactly equal rates. In US employment, federal guidelines generally regard a group's selection rate below four-fifths of the highest group's rate as evidence of adverse impact, which then has to be examined and justified.

Finding more

Search for "demographic parity vs equalized odds", "fairness metrics incompatibility" and "four-fifths rule adverse impact". Documentation from open-source fairness toolkits such as Fairlearn, machine learning glossaries from major research groups, and the original research papers on arXiv explain the definitions precisely. For legal requirements, go to the regulations and regulators rather than vendor summaries.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.