Find a course

Module 4: AI and SocietyLesson 9 of 1112 min

Bias and Fairness in AI

See how bias enters AI through data, design and use, look at real kinds of harm, and learn what developers and users can do to make AI fairer.

Step 1 of 11Learn

When data carries the past

Imagine a company trains an AI to screen job applications. It learns from ten years of the company's hiring decisions: which applicants were hired and which weren't. The AI becomes very good at predicting who the company would have hired. That sounds great, until someone notices it rates applications from women lower. Why? In the past, the company hired mostly men for those jobs, so the model learned that pattern and repeated it. Reports of exactly this kind of problem have appeared in real hiring tools.

This is algorithmic bias: an AI system producing results that are systematically unfair to certain groups. The AI doesn't "want" to discriminate; it has no wants. It learns from data, and data often reflects past and present inequalities.

Bias can enter at several stages:

  • Data collection: some groups are underrepresented, such as a face dataset with few darker-skinned faces or a medical dataset drawn mostly from one population.
  • Labels: human labelers bring their own assumptions, such as which comments count as "toxic."
  • Design choices: what the model is asked to predict. Predicting "past arrests" is not the same as predicting "crimes committed," because arrests also reflect where police patrol.
  • Use: a tool built for one setting used in another, such as an adult-voice model used with children.

Step 2 of 11Practice · Diagram

How bias loops through a hiring model

Where did the bias first enter this system?

Tap the shape that answers the question, then press Check.

How bias loops through a hiring modelCycle diagram: Past hiring → Training data → Model learns → Predictions → New hires.Past bias repeatsPast hiringTraining dataModel learnsPredictionsNew hires
Past hiring

For ten years the company hired mostly men for these jobs.

Training data

Records of who was hired become the labels.

Model learns

Features linked to men predict "hired."

Predictions

Women's applications are scored lower.

New hires

Used without checks, the old pattern repeats at scale.

Step 3 of 11Practice · Sort into groups

At which stage did bias enter each system?

Tap an item, then tap its group (or drag it there).

Step 4 of 11Learn

Real effects on real people

Bias matters most when AI helps make decisions about people. Researchers and journalists have documented problems in several areas:

  • Face recognition: studies found that some commercial systems made far more errors on darker-skinned women than on lighter-skinned men. When police use face recognition, a false match can lead to an innocent person being questioned or arrested, and such cases have been reported.
  • Health care: one widely studied algorithm used past health spending to decide who needed extra care. Because less money had historically been spent on Black patients with the same needs, the algorithm underestimated how sick they were.
  • Language: models trained on internet text can repeat stereotypes, such as linking certain jobs with one gender, unless developers work to reduce this.
  • Image generation: asked for a picture of "a CEO" or "a nurse," some generators have mostly produced one gender or skin color, reinforcing stereotypes.

There's also a deeper problem: AI can make biased decisions look objective. "The computer decided" sounds neutral, which can make unfair results harder to question. And because AI works at scale, one biased system can affect millions of people at once.

None of this means AI is always worse than humans, who are biased too. It means AI decisions about people need to be tested, monitored and open to challenge.

Step 5 of 11Flashcards

Where bias has shown up

Tap a card to flip it.

Step 6 of 11Practice · True or false

Because computers have no opinions, an AI system that makes decisions about people cannot be biased.

Step 7 of 11Learn

Making AI fairer

There's no single fix for bias, but many practices help.

For developers and organizations:

  • Collect representative data that includes the full range of people the system will serve, and check who is missing.
  • Test results separately for different groups. A model with 95% accuracy overall might be 99% accurate for one group and 80% for another. Reporting only the overall number hides that.
  • Build diverse teams, who are more likely to notice problems that affect people unlike themselves.
  • Keep humans in the loop for important decisions, with a way for people to appeal.
  • Be transparent about what the system does, what data it uses and its known limits.
  • Audit regularly, because a system that's fair at launch can drift as the world changes.

For you as a user:

  • Notice patterns: if results keep showing one type of person or one point of view, question them.
  • Ask how a decision affecting you was made, and whether a person reviewed it.
  • Report problems through the tool's feedback options.

Fairness itself can be defined in more than one way, such as equal error rates across groups or equal rates of approval, and those definitions can conflict. Deciding which matters most in a given situation is a human and social choice, not just a technical one.

Step 8 of 11Practice · Work it out

A model is tested on 900 people from group A and 100 people from group B. It is 99% accurate for group A and 80% accurate for group B. What is its overall accuracy, as a percentage?

Step 9 of 11Try the calculator

What does the overall accuracy hide?

Change the group sizes and accuracies to see how a big group can make the overall number look great while a small group gets poor results.

Overall accuracy
97.1 %
Wrong results in group B
20
Gap between groups
19 points

Step 10 of 11Note

Step 11 of 11Practice · Select all that apply

Which practices help reduce bias in an AI system? Select all that apply.

Select all that apply.