4.1 Bias, fairness, and data quality

Week 4
Pick a depth · ✨ generates it for this lecture

Bias, fairness, and data quality

AI models are often described as objective because they are "just math." This is dangerously misleading. Models learn from data, and data carries the biases of the world and the people who produced it. A model can launder human prejudice into a number that looks neutral.

Where bias comes from

  • Biased data. If a model learns from historical decisions that were themselves discriminatory, it learns to reproduce that discrimination. A hiring model trained on a company's past hires will copy whatever patterns — fair or not — those hires contained.
  • Unrepresentative data. If some groups are underrepresented in the training data, the model performs worse for them. Facial recognition trained mostly on light-skinned faces has been shown to err far more on dark-skinned faces.
  • Biased labels and measurement. The choice of what to measure, and how humans labeled it, can encode bias before training even begins.

Why "fairness" is hard

Fairness is not one thing. There are multiple mathematical definitions of fairness, and they can be mutually incompatible — you often cannot satisfy all of them at once, so building a "fair" system requires explicit value judgments about which kind of fairness matters for the situation. There is also frequently a tension between accuracy and fairness. These are not purely technical questions; they are ethical and political ones that math cannot settle.

The lesson

Bias is not an exotic edge case; it is the default unless actively addressed. Mitigating it requires scrutinizing data, testing the model's performance separately across groups, and deciding deliberately what fairness should mean — work that must involve more than engineers.

A worked example

A widely reported case: a recruiting tool trained on a decade of resumes from a male-dominated tech industry learned to downgrade resumes that signaled the applicant was a woman. The model was not told to discriminate; it absorbed the pattern from biased historical data and amplified it. The tool was scrapped. The episode is now a standard cautionary tale: the model was an accurate mirror of a biased past, which is exactly the problem.

Tip: highlight any passage above to ask the tutor about it, or to generate practice problems specifically on what you selected.
Ask the tutor for an explanation, a worked example, or a hint. Highlight a passage on the left to ground the question in that text.