Intermediate level · Module 4: AI Fairness Metrics and Evaluation · Lesson 1 of 3
Group Fairness Definitions
Clear definitions, with small worked numbers, of demographic parity, equal opportunity and equalised odds, and of what each one protects.
In this lesson you will
- Define demographic parity, equal opportunity and equalised odds
- Calculate them by hand for a small example
Key concepts
demographic parityequal opportunityequalised oddstrue positive ratefalse positive rate
The lesson
Demographic parity asks whether groups are selected at the same rate, regardless of the true outcome. It suits decisions where the goal is an equal share of an opportunity, and where the labels themselves may be biased.
Equal opportunity asks whether people who truly qualify are selected at the same rate in each group, that is, whether true positive rates are equal. Equalised odds also requires equal false positive rates, so that unqualified people are wrongly selected at the same rate in each group.
Worked example: among 10 qualified men, 8 are shortlisted (TPR 0.8); among 10 qualified women, 4 are (TPR 0.4). The equal-opportunity gap is 0.4, which means qualified women are missed twice as often as qualified men.
Step by step
- Take the 20-applicant fictional shortlisting table from the instructor.
- By hand, compute the selection rate, TPR and FPR for each group.
- Compute the demographic parity difference and the equalised odds difference.
- Write which definition best fits a job-shortlisting decision, and why.
Practice activity
Calculate three fairness metrics by hand for the shortlisting table and justify the most suitable one.
Expected result: Correct hand calculations and a reasoned choice of metric.
Check your understanding
-
What does equal opportunity compare?
Show answer
True positive rates: whether qualified people in each group are selected at the same rate.
-
What extra condition does equalised odds add?
Show answer
Equal false positive rates across groups.
Further learning
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.