Q&A about ethics, computing, and logistics of the course.
No question is too silly, naive, controversial, basic, or advanced.
Word on proxies: Job market, experience in study abroad
Discrimination manifests itself in unequal treatment of groups.
Each metric requires that some aspects of the predictor behavior be comparable across groups.
| Definition | Requirement | Plain language |
|---|---|---|
| Demographic parity | Same % flagged/selected in each group | The probability of a certain prediction is not dependent on group membership |
| Equal opportunity | Same true positive rate in each group | Qualified people have an equal chance |
| Equalized odds | Same true positive and false positive rates | Equal error rates |
| Predictive parity/calibration | Same precision in each group | Scores mean the same for everyone |
Two groups of 100 people.
| Group A | Group B | |
|---|---|---|
| Flagged high-risk | 50 | 20 |
| …Flagged that did reoffend (TP) | 40 | 16 |
| …Flagged did not reoffend (FP) | 10 | 4 |
| Not Flagged that did reoffend (FN) | 10 | 2 |
Calculate accuracy, precision, true positive rate, and false positive rate
Two groups of 100 people.
| Group A | Group B | |
|---|---|---|
| Accuracy (TP+TN / all) | 80/100 = 0.80 | 94/100 = 0.94 |
| Precision (TP / flagged) | 40/50 = 0.80 | 16/20 = 0.80 |
| True positive rate (TP / reoffend) | 40/50 = 0.80 | 16/18 = 0.88 |
| False positive rate (FP / did not reoffend) | 10/50 = 0.20 | 4/82 = 0.05 |
Same precision, similar true positive rate, but people in Group A who do not reoffend are 4x more likely to be wrongly flagged.
Some references: Li et al. 2023, Trust Science 2019
Kleinberg, Mullainathan & Raghavan (2016) and Chouldechova (2017) showed:
When base rates differ between groups, a (non-perfect) classifier cannot satisfy calibration/predictive parity and equal false positive and false negative rates at the same time.
US anti-discrimination law (e.g., Title VII of the Civil Rights Act of 1964, Equal Employment Opportunity Act, Fair Housing Act, Equal Credit Opportunity Act) recognizes:
Most algorithmic bias looks like disparate impact, not intent.
Laws generally only apply in employment, credit, and housing
Anti-discrimination protections broadly come in two forms: prohibitions on disparate treatment based on protected characteristics, and prohibitions on disparate impact based on those characteristics. Depending on the statute, protected characteristics can include race, color, national origin, religion, sex (including gender identity and sexual orientation), familial status, disability, age, and marital status.
From Bains 2024
What would “fair” output even look like for a generative model?
Reflect on what you liked and disliked about this lecture, what you learned, and what you wished you’d learned.