Phase 1: Prepare
Step 1 Warm-up recall
From M5.L1: what is expected loss?
Private: nothing you type here is sent or stored.
Step 2 Learning goal
By the end of this lesson you can:
- compute selection rates by group (Foundation);
- compute a ratio and compare it with a threshold (Core);
- say what a ratio cannot prove (Core).
Phase 2: Teach
Step 3 A familiar example
A teacher who marks all the essays and sees that one class always scores lower should check the marking before blaming the class. A fairness check asks the same question of an AI system.
Step 4 Clear explanation
A first fairness check compares outcomes between groups the system should treat alike. Take an invented tool that selects applicants.
| Measure | Group A | Group B |
|---|---|---|
| Applicants | 120 | 80 |
| Selected | 72 | 32 |
| Selection rate | 60% | 40% |
| False rejection rate | 10% | 25% |
| Ratio of rates (B ÷ A) | 0.67 |
Group A is selected at 72 ÷ 120 = 60% and group B at 32 ÷ 80 = 40%. The ratio of the two rates is 40 ÷ 60 = 0.67. Some employment guidance uses a rule of thumb of 0.8; here, with an illustrative bar of 0.8, the gap calls for investigation. Group B is also wrongly rejected 25% of the time against 10% for group A.
A ratio is a signal, not a verdict. A low ratio may reflect real differences in qualifications, the data, or the label, and a ratio near 1 does not prove the process is fair. Fairness can also be defined in several ways that cannot all be met at once, so the leader's job is to choose which to protect and explain why.
Differences in error can appear even when the overall score looks fine. In the 2018 study of the COMPAS risk tool, overall accuracy was 67.0% for white defendants and 63.8% for black defendants, and the authors also reported that false positive rates were similar for humans and the software and unfair to black defendants.
Step 5 Worked example (4 marks)
Group A: 45 selected of 90. Group B: 20 selected of 50. Find the ratio and compare with 0.8.
- Rate A = 45 ÷ 90 = 50%. (1 mark)
- Rate B = 20 ÷ 50 = 40%. (1 mark)
- Ratio = 40 ÷ 50 = 0.8. (1 mark)
- It sits exactly at the illustrative bar, so look further at errors and reasons. (1 mark)
Go deeper: the professor's notes
Selected ÷ applicants.
Wrong decisions by group.
Lower rate ÷ higher rate.
Investigate, do not conclude.
Two groups
| Measure | A | B |
|---|---|---|
| Selected | 72 of 120 | 32 of 80 |
| Rate | 60% | 40% |
| False rejection | 10% | 25% |
At work: Ratio
A 30 of 60; B 15 of 50.
- A = 50%; B = 30%.
- 30 ÷ 50 = 0.6.
What a careful practitioner decides. Below an illustrative 0.8, so investigate.
Phase 3: Practise
Step 6 Learner practice (instant-marked)
1. Selection rate is:
Per group.
2. 72 selected of 120 is:
72 ÷ 120.
3. Rates of 40% and 60% give a ratio of:
40 ÷ 60.
4. A low ratio is:
Signal, not verdict.
Phase 4: Close
Step 7 Recap
- Compare selection and error rates by group.
- A ratio is a signal, not a verdict.
- Choose which fairness measure to protect, and say why.
Step 8 Exit ticket (ungraded)
Group A: 30 of 60 selected. Group B: 15 of 50. What is the ratio B ÷ A?
Private: nothing you type here is sent or stored.
Step 9 Go further (Extension)
Choose a decision process you know and say which groups you would compare.
In industry: COMPAS accuracy by group
In the 2018 Science Advances study of the COMPAS risk tool, overall accuracy was 67.0% for white defendants and 63.8% for black defendants. The authors also reported that false positive rates were similar for the software and for untrained humans and were unfair to black defendants. The study shows why overall accuracy is not enough: look at the groups.
Link to this lesson. Lesson link: compare rates between groups before relying on a system.
Source: Dressel and Farid, Science Advances, January 2018; EurekAlert, 17 January 2018.
Common mistakes
| Mistake | Why it fails |
|---|---|
| Looking at overall accuracy only | Compare groups. |
| Treating the ratio as proof | Investigate causes. |
| Never checking groups | Run the check before launch. |
Limits. The group counts and the 0.8 bar are invented for teaching; legal tests differ by country and use. The COMPAS figures are from one 2018 study and are not a general finding about all tools.