Chapter 11: Algorithmic Fairness and Ethics
Multiple Choice · Introduction
Question 1
Why is removing the protected attribute (gender, ethnicity) from the model not enough to ensure fairness?
B is correct: even when the protected attribute is removed from the model, variables such as postal code, school or purchase history are correlated with it, so they carry this information indirectly as proxies. The model can reproduce the same group gap through these variables; that is why outcomes must be measured by group. A is wrong: accuracy often hardly changes. C and D are not consequences of removing the attribute either; base rates are a fact of the data, and calibration is measured separately.
Multiple Choice · Fairness Criteria
Question 2
Group A's selection rate is 0.50 and group B's is 0.35. What is the result under the four-fifths rule?
D is correct. The four-fifths rule looks at the ratio of the smaller selection rate to the larger: 0.35/0.50 = 0.70, which is below 0.8, so the rule is violated. A computes the ratio correctly but interprets it wrongly. B confuses the difference with the ratio, and C takes the ratio the wrong way round (0.50/0.35 ≈ 1.43).
Multiple Choice · Fairness Criteria
Question 3
What does the equalized odds criterion require to be equal across groups?
C is correct: equalized odds (Hardt et al., 2016) requires error rates to be equal conditional on the true outcome; that is, both TPR and FPR must be equal across groups. Equality of TPR alone (D) is the weaker equal opportunity. Selection rate (A) is the subject of demographic parity, and PPV (B) of predictive parity.
Multiple Choice · Fairness Criteria
Question 4
What can be said if a model is calibrated?
B is correct: calibration means a score conveys the same risk whatever the group; among those with score s, the fraction who repay is s in every group. In the example model, of those with score 0.8, 40/50 in A and 16/20 in B repay; both are 0.8. Even so, the selection rates (0.5 and 0.2) and FPRs (0.2 and 0.059) differ; A and C do not follow from calibration. D is wrong too: a calibrated model also makes errors, only its errors are consistent with its scores.
Multiple Choice · Fairness Criteria
Question 5
Individual fairness: |f(x) − f(y)| ≤ L·d(x, y), with L = 2, d(x, y) = 0.05, f(x) = 0.7. What is the allowed range for f(y)?
A is correct. The Lipschitz condition |f(x) − f(y)| ≤ L·d(x, y) = 2·0.05 = 0.1 gives |f(y) − 0.7| ≤ 0.1, so f(y) ∈ [0.6, 0.8]. B forgets L and uses only d = 0.05; C takes the bound as 0.2, and D is narrower than necessary.
Multiple Choice · Incompatibility of Criteria
Question 6
In the COMPAS dispute, ProPublica pointed to the FPR gap and Northpointe to calibration. Which is the best interpretation?
B is correct: ProPublica measured unequal error rates (FPR), while Northpointe measured calibration and predictive parity; both computations were right by their own criterion. The Chouldechova identity FPR = p/(1 − p)·(1 − PPV)/PPV·TPR shows that with different base rates, equal PPV and equal error rates cannot hold together. D is wrong: even if the model improves, this conflict disappears only under perfect prediction. The real debate is which definition of fairness to choose.
Multiple Choice · Fair Division
Question 7
In a division between two people, what is the relationship between proportionality and envy-freeness?
A is correct. With two people the cake is fully divided and v(X1) + v(X2) = 1. If v(X1) ≥ 1/2, then v(X2) = 1 − v(X1) ≤ 1/2 ≤ v(X1), so the person does not envy the other; conversely, if there is no envy, v(X1) ≥ v(X2) and, since the total is 1, v(X1) ≥ 1/2. So for two people proportional ⇔ envy-free. B is wrong: for two people the two are equivalent; and for three or more people, when the cake is fully divided, envy-freeness implies proportionality (the converse is false), so there is no envy-free division that is not proportional.
Multiple Choice · Fair Division
Question 8
Values: Ali (X 0.5, Y 0.2, Z 0.3), Ayşe (X 0.35, Y 0.34, Z 0.31), Cem (X 0.2, Y 0.3, Z 0.5). The division is Ali→X, Ayşe→Y, Cem→Z. Which is true?
C is correct. Everyone gets at least 1/3 in their own eyes: Ali 0.5 from X, Ayşe 0.34 from Y (> 0.333), Cem 0.5 from Z; the division is proportional. But for Ayşe, Ali's X is worth 0.35 and her own Y is worth 0.34: Ayşe envies Ali. B is wrong because 0.34 > 1/3; D is wrong because for Cem, X is worth only 0.2. Being proportional does not mean being envy-free.
Multiple Choice · Ethics and Governance
Question 9
What does Goodhart's law say?
B is correct: Goodhart's law says that once a measure becomes a target, people change their behavior to suit what is measured and the measure ceases to be a good measure (when clicks are targeted, clickbait multiplies). A is the incompatibility result of Chouldechova and Kleinberg et al., C is the individual fairness principle of Dwork et al., and D is an observation about cut-and-choose that holds only when the cutter does not know the chooser's preferences (an informed cutter can come out ahead).
Multiple Choice · Ethics and Governance
Question 10
Feedback code: records = [4, 6], actual = [3, 3]; each day the patrol goes to the region with more records, and incidents are recorded only there. After 3 days, what is region 0's share of the records?
D is correct. Day 1: records [4, 6], region 1 has more ⇒ the patrol goes to region 1, records [4, 9]. Day 2: [4, 12]; day 3: [4, 15]. Region 0's share is 4/(4 + 15) = 4/19 ≈ 0.21. 0.40 is the initial share (4/10); ≈ 0.27 = 4/15 puts only region 1 in the denominator. Although the real incidents are equal (3 and 3), because the data are collected by the decision itself, the small initial difference grows (Ensign et al., 2018).
Classic Question · Fairness Criteria
Question 11: Computing Four Criteria
The confusion matrices of a credit model in two groups (100 applicants in each group):
| group | TP | FP | FN | TN |
|---|---|---|---|---|
| A | 36 | 9 | 12 | 43 |
| B | 18 | 6 | 6 | 70 |
Compute the selection rate, TPR, FPR and PPV. Are demographic parity (and the four-fifths rule), equal opportunity, equalized odds and predictive parity satisfied?
Show answer
| rate | A | B | criterion |
|---|---|---|---|
| selection (TP+FP)/n | 45/100 = 0.45 | 24/100 = 0.24 | demographic parity ✗ |
| TPR TP/(TP+FN) | 36/48 = 0.75 | 18/24 = 0.75 | equal opportunity ✓ |
| FPR FP/(FP+TN) | 9/52 ≈ 0.173 | 6/76 ≈ 0.079 | equalized odds ✗ |
| PPV TP/(TP+FP) | 36/45 = 0.80 | 18/24 = 0.75 | predictive parity ✗ |
Four-fifths rule: 0.24/0.45 ≈ 0.53 < 0.8 → violated. The base rates differ (A 48/100 = 0.48, B 24/100 = 0.24). Because the TPRs are equal, only equal opportunity is satisfied; because of the FPR gap, equalized odds is not. Accuracy: A 0.79, B 0.88.
Classic Question · Incompatibility of Criteria
Question 12: The Chouldechova Identity
Use the identity FPR = p/(1 − p) · (1 − PPV)/PPV · TPR.
(a) Group 1: p = 0.4, PPV = 0.75, TPR = 0.6. What is the FPR?
(b) Group 2 has base rate p = 0.2; with the same PPV and TPR, what is the FPR? Is equalized odds satisfied?
(c) If Group 2 keeps TPR = 0.6 and its FPR is set equal to Group 1's, what must the PPV be?
Show answer
(a) FPR = (0.4/0.6)·(0.25/0.75)·0.6 = (2/3)·(1/3)·0.6 = 2/15 ≈ 0.133.
(b) FPR = (0.2/0.8)·(1/3)·0.6 = 0.25·0.2 = 0.05. The TPRs are equal but 0.133 ≠ 0.05 → equalized odds is not satisfied. When PPV is equal but p differs, the factor p/(1 − p) carries the difference into the FPR.
(c) 2/15 = 0.25·0.6·(1 − PPV)/PPV = 0.15·(1 − PPV)/PPV → (1 − PPV)/PPV = 8/9 → PPV = 9/17 ≈ 0.53. This time predictive parity (0.75 ≠ 0.53) is broken: with different base rates all three cannot hold at once.
Classic Question · Incompatibility of Criteria
Question 13: The Price of Equalized Odds
In group A, 50 people repay and 50 do not; the model works with TPR = 0.8 and FPR = 0.2.
In group B, 25 people repay and 75 do not. If a model giving the same error rates (TPR = 0.8, FPR = 0.2) is used for B, what are the expected TP, FP, selection rate and PPV of the two groups? Which criterion is broken?
Show answer
| A (p = 0.5) | B (p = 0.25) | |
|---|---|---|
| TP = repay × TPR | 50·0.8 = 40 | 25·0.8 = 20 |
| FP = no repay × FPR | 50·0.2 = 10 | 75·0.2 = 15 |
| selection rate | 50/100 = 0.50 | 35/100 = 0.35 |
| PPV | 40/50 = 0.80 | 20/35 = 4/7 ≈ 0.571 |
Equalized odds holds, but predictive parity is broken (0.80 ≠ 0.571) and there is no demographic parity either. Check with the identity (B): (0.25/0.75)·(3/7)/(4/7)·0.8 = (1/3)·(3/4)·0.8 = 0.2 ✓. With the same error rates, the base rate determines the PPV.
Classic Question · Incompatibility of Criteria
Question 14: Calibration and Class Balance
The model gives two scores: 0.9 and 0.3.
| group | score | people | repay |
|---|---|---|---|
| A | 0.9 | 40 | 36 |
| A | 0.3 | 60 | 18 |
| B | 0.9 | 20 | 18 |
| B | 0.3 | 80 | 24 |
(a) Is the model calibrated in each group? (b) What are the base rates? (c) Compute the balance for the positive and negative class (the average score of those who repay / those who do not).
Show answer
(a) 36/40 = 0.9; 18/60 = 0.3; 18/20 = 0.9; 24/80 = 0.3 → each score equals the realized fraction in each group: calibrated.
(b) A: (36 + 18)/100 = 0.54; B: (18 + 24)/100 = 0.42.
(c) Positive class (Y = 1):
- A: (36·0.9 + 18·0.3)/54 = 37.8/54 = 0.70
- B: (18·0.9 + 24·0.3)/42 = 23.4/42 ≈ 0.557
Negative class (Y = 0):
- A: (4·0.9 + 42·0.3)/46 = 16.2/46 ≈ 0.352
- B: (2·0.9 + 56·0.3)/58 = 18.6/58 ≈ 0.321
Both balances fail. Kleinberg's theorem: when prediction is imperfect and base rates differ, calibration and the two class balances cannot hold together.
Classic Question · Fairness and Accuracy
Question 15: Equal Opportunity by Randomization
In group B, of the 25 people with score 0.8, 20 repay; of the 75 people with score 0.2, 15 repay. The model approves those with score 0.8, and approves a fraction q of those with score 0.2 at random. Group A's TPR is 0.8.
(a) At q = 0, what are B's TPR, FPR and accuracy? (b) What must q be for equal opportunity (TPRB = 0.8)? (c) What happens to the FPR and accuracy at that q?
Show answer
Those who repay: 20 + 15 = 35; those who do not: 5 + 60 = 65. TP = 20 + 15q, FP = 5 + 60q, TN = 65 − FP.
(a) q = 0: TPR = 20/35 ≈ 0.571; FPR = 5/65 ≈ 0.077; accuracy = (20 + 60)/100 = 0.80.
(b) (20 + 15q)/35 = 0.8 → 20 + 15q = 28 → q = 8/15 ≈ 0.533.
(c) TP = 28, FP = 5 + 32 = 37 → FPR = 37/65 ≈ 0.569; TN = 65 − 37 = 28; accuracy = (28 + 28)/100 = 0.56.
Equal opportunity is achieved; the price is credit for 32 more people who will not repay (FPR 0.077 → 0.569) and a drop in accuracy from 0.80 to 0.56.
Classic Question · Fair Division
Question 16: Cut-and-Choose
The cake is [0, 1]; vanilla [0, 1/2], chocolate [1/2, 1]. Ali values everything equally. For Ayşe, all the vanilla is worth 1/3 and all the chocolate 2/3 (value is uniformly distributed within each part). If Ayşe finds the two pieces equal in value, she picks the chocolate (right) piece.
(a) Ali cuts, Ayşe chooses: what does each get in their own eyes? (b) Ayşe cuts, Ali chooses: where does Ayşe cut, and who gets what? (c) Knowing Ayşe's preference, where does Ali cut in (a), and what does he gain?
Show answer
(a) Ali cuts at x = 1/2. For Ayşe the left is 1/3 and the right 2/3 → she picks the right. Ali gets 1/2, Ayşe 2/3: proportional and envy-free.
(b) Ayşe's value: v(x) = 1/3 + (4/3)(x − 1/2), x ≥ 1/2. v(x) = 1/2 → x − 1/2 = 1/8 → x = 5/8. Ali picks the left piece [0, 5/8]: Ali 5/8, Ayşe 1/2.
(c) Ayşe picks the right as long as the left piece is worth ≤ 1/2 to her: x ≤ 5/8. Ali cuts at x = 5/8 and takes the left: 5/8 > 1/2. Information gives the cutter an advantage; his guarantee is still 1/2.
Classic Question · Fair Division
Question 17: Indivisible Goods and Nash Social Welfare
| person | g1 | g2 | g3 | g4 |
|---|---|---|---|---|
| Ali | 9 | 6 | 4 | 1 |
| Ayşe | 8 | 5 | 4 | 3 |
(a) In round-robin picking with Ali starting, who gets what? Is there envy, and is the division EF1? (b) Compare with two divisions: P2: Ali {g1}, Ayşe {g2, g3, g4}; P3: Ali {g2, g3}, Ayşe {g1, g4}. For each, what are the total, the minimum and the product (Nash social welfare); which is envy-free?
Show answer
(a) Ali g1 (9), Ayşe g2 (5), Ali g3 (4), Ayşe g4 (3). Ali {g1, g3} = 13, Ayşe {g2, g4} = 8. Ayşe values Ali's bundle at 8 + 4 = 12 > 8 → she envies; if g1 is removed, 4 ≤ 8 → EF1. Ali values Ayşe's bundle at 7 < 13.
| division | Ali | Ayşe | total | minimum | product | envy-free? |
|---|---|---|---|---|---|---|
| round-robin | 13 | 8 | 21 | 8 | 104 | no (EF1) |
| P2 | 9 | 12 | 21 | 9 | 108 | no: Ali 11 > 9 |
| P3 | 10 | 11 | 21 | 10 | 110 | yes |
In P3, Ali values Ayşe's bundle at 9 + 1 = 10 (= his own 10), and Ayşe values Ali's bundle at 5 + 4 = 9 < 11. Scanning all 16 divisions, P3 is the only one that maximizes both the Nash social welfare (110) and the minimum value (10).
Classic Question · Fair Division
Question 18: The Last Diminisher
The cake [0, 1] is divided into four quarters; each person's value per quarter (uniform within a quarter):
| person | 1st quarter | 2nd | 3rd | 4th |
|---|---|---|---|---|
| Ali | 0.25 | 0.25 | 0.25 | 0.25 |
| Ayşe | 0.3 | 0.3 | 0.2 | 0.2 |
| Cem | 0.1 | 0.1 | 0.4 | 0.4 |
Last diminisher: Ali cuts the piece [0, 1/3], then Ayşe, then Cem are asked. (a) Who trims, and who takes the piece? (b) The remaining two do cut-and-choose (Ali cuts). What does each get in their own eyes? (c) Is the division proportional? Envy-free?
Show answer
(a) For Ayşe, [0, 1/3] = 0.3 + (1/12)·1.2 = 0.4 > 1/3 → she trims: 0.3 + (x − 1/4)·1.2 = 1/3 → x = 5/18 ≈ 0.278. For Cem, [0, 5/18] = 1/9 < 1/3 → he passes. The last trimmer, Ayşe, takes the piece (1/3).
(b) The remainder [5/18, 1] is worth 13/18 to Ali; he cuts at its half, x = 5/18 + 13/36 = 23/36 ≈ 0.639. For Cem the left is 14/45 ≈ 0.311 and the right 26/45 ≈ 0.578 → he picks the right. Ali gets 13/36 ≈ 0.361, Ayşe 1/3, Cem 26/45 ≈ 0.578.
(c) Everyone ≥ 1/3 → proportional. Ayşe values Ali's piece at 17/45 ≈ 0.378 > 1/3 → Ayşe envies Ali; it is not envy-free.
Classic Question · Ethics and Governance
Question 19: Strategic Classification
Those with a score equal to or above the threshold pass; those with a score of 0.6 or more are truly qualified. Everyone can raise their score by at most their group's budget: 0.10 for A, 0.05 for B.
| group | unqualified | qualified |
|---|---|---|
| A | 0.40; 0.50; 0.55 | 0.62; 0.70 |
| B | 0.45; 0.57 | 0.61; 0.64; 0.68 |
(a) With the threshold at 0.6, how many unqualified people from each group pass? (b) If the institution raises the threshold according to A's budget, to 0.6 + 0.10 = 0.70, how many of each group's qualified members pass? (c) In what range must the threshold be chosen so that no unqualified person passes and all the qualified members of both groups pass?
Show answer
(a) A: 0.50 + 0.10 = 0.60 and 0.55 + 0.10 = 0.65 pass, 0.40 does not → 2. B: 0.57 + 0.05 = 0.62 passes, 0.45 does not → 1.
(b) A: 0.72 and 0.80 → 2/2. B: 0.66 and 0.69 < 0.70, only 0.73 → 1/3. The unqualified can no longer pass (the highest reach 0.65 and 0.62), but the qualified members of group B, with the small budget, are screened out.
(c) The highest score an unqualified person can reach is max(0.55 + 0.10, 0.57 + 0.05) = 0.65 → the threshold must exceed 0.65. The lowest score a qualified person can reach is min(0.62 + 0.10, 0.61 + 0.05) = 0.66 → the threshold can be at most 0.66. The answer: 0.65 < threshold ≤ 0.66; e.g. at 0.66, all the qualified members of A and B pass (B: 0.66, 0.69, 0.73). A threshold that takes the budget gap into account causes less unfairness than a crude increase.
Classic Question · Fair Division
Question 20: The Price of Fairness
| person | g1 | g2 | g3 | g4 |
|---|---|---|---|---|
| Ali | 9 | 6 | 4 | 1 |
| Ayşe | 8 | 5 | 4 | 3 |
(a) Among the 16 divisions, what is the largest social welfare, and which divisions give it? (b) Which divisions are envy-free; what is their largest total? (c) What is the price of fairness (largest social welfare ÷ largest social welfare among the envy-free ones)? Is the envy-free division Pareto optimal?
Show answer
(a) Each good goes to whoever values it more: g1, g2 to Ali; g4 to Ayşe; g3 is a tie (4 – 4). Ali {g1, g2, g3}, Ayşe {g4}: 19 + 3 = 22; or Ali {g1, g2}, Ayşe {g3, g4}: 15 + 7 = 22.
(b) The scan finds a single envy-free division: Ali {g2, g3}, Ayşe {g1, g4}: Ali 10 (Ayşe's bundle is worth 10 in his eyes), Ayşe 11 (Ali's bundle is worth 9). Total 21.
(c) Price of fairness = 22 / 21 ≈ 1.048. (10, 11) is Pareto optimal: there is no division that gives Ali at least 10 and Ayşe at least 11 and increases at least one of them (11 of the 16 divisions are Pareto optimal).
Multiple Choice · Ethics and Governance
Question 21
A bank rejects loan applications using only a scoring model, with no human review. Relying on GDPR Article 22 as summarized in the slides, what can the rejected applicant ask for?
The correct answer is D. Article 22 gives a right to contest and to human intervention for decisions based solely on automated processing that significantly affect the person; the aim is not to remove humans entirely from high-impact decisions. A is wrong: the right safeguards the process, not the outcome, and the review may still end in rejection. B is not the subject of Article 22. C is wrong: the use of the model is not banned; the safeguard applies only against decisions that remove the human completely.
Multiple Choice · Ethics and Governance
Question 22
In the risk-based approach of the EU AI Act (2024), which one is in the “high-risk” class, subject to extra obligations such as risk management, data quality and human oversight?
The correct answer is C. The Act places applications that shape a person's life chances, such as credit scoring and hiring, in the high-risk class. The approach is proportionate: the obligations grow with the size of the potential harm. A movie recommender (A), a spam filter (B) or a game character (D) does not carry the same obligations as credit and hiring systems; their wrong decisions do not take away a person's job or credit.
Multiple Choice · Ethics and Governance
Question 23
An insurance company publishes a short document with its model: “The model was trained on 2017–2022 applications; its purpose is to rank claim risk; its accuracy is lower for applicants over 70.” Which part of algorithmic auditing is this document?
The correct answer is A. A model card is a short document that makes the model's training data, intended use and known limitations visible. B is wrong: data drift is monitored after the model has gone into use; this document gives the information at training time. In C, the affected people's views have not been collected. D is wrong: reporting low accuracy is not satisfying a criterion; but it tells the auditor which group needs separate testing.