Skip to content
ReEnvision
← Unit 5: Responsible AI

Bias and fairness

How AI systems come to treat groups of people differently, and what can be done about it.

Lesson 5.1 50 minNo coding required

Objectives

By the end of this lesson, you will be able to:

  • Define bias in AI systems and name where it comes from
  • Explain how a biased system can cause harm even without bad intent
  • Describe steps that reduce unfairness

Key terms

Bias (in AI)
A systematic tendency of a system to produce results that are unfairly better or worse for certain groups.
Fairness
Treating people and groups justly. There is more than one reasonable definition, and they can conflict.
Proxy
A feature that stands in for another one, such as a postal code revealing income or ethnicity.

Reading

Where bias comes from

Bias in AI rarely comes from someone setting out to be unfair. It enters through ordinary steps.

Through the data: if some groups are underrepresented, the model serves them worse, as we saw in Unit 2. If the data records past human decisions that were unfair, the model learns to repeat them. A hiring model trained on a company's past hires will favor whoever that company used to favor.

Through the design: the builders choose what to predict and what counts as success. Those choices reflect their own experience and blind spots.

Through use: a tool built for one setting gets applied in another where it fits poorly.

Why removing a feature is not enough

An obvious fix is to delete sensitive features such as gender or ethnicity from the data. It often fails, because other features act as proxies. A postal code, a first name, a school, or a shopping pattern can reveal the same information indirectly, and the model can pick it up from those.

Bias also scales. One unfair person affects the people they deal with. One unfair system, applied automatically, affects everyone who passes through it, and its decisions can look objective because a computer made them.

Working toward fairness

Fairness has no single formula. Should a system be equally accurate for every group? Make the same kinds of mistakes at the same rate? Select the same share of each group? These goals can pull against each other, and choosing among them is a human decision that should involve the people affected.

Practical steps help a great deal. Build teams with varied backgrounds. Examine the data for gaps. Test results separately for each group. Give people a way to question a decision and reach a human. And for some uses, decide that the system should not be built at all.

Try it · Interactive lab

Where did the bias come in?

Each system turned out to be unfair. Trace the problem to its source.

Card 1 of 6Score 0

A face unlock feature trained mostly on lighter-skinned faces fails more often on darker skin

Build it in the AI StudioSpot the BiasFind the bias in a real model, trace it to the training data and repair it.

Group activity 25 min

The scholarship sorter

You will need

  • A scenario sheet: a foundation wants an AI system to rank scholarship applicants, trained on ten years of its past winners
  • A table of made-up past winners showing that most came from a few well-funded schools
  • Chart paper
  1. 1

    Study the past-winner data. What patterns would a model learn from it?

  2. 2

    Predict: which strong applicants might the model rank low, and why?

  3. 3

    The foundation suggests deleting the "school name" column. Find two other features in the data that could act as proxies for it.

  4. 4

    Write three recommendations to the foundation. Include at least one about data, one about testing and one about how applicants can appeal.

Discuss

  1. Q1

    The past winners were chosen by people. If the model copies them, is the model biased, or were the people? Does the difference matter to an applicant?

  2. Q2

    Why can a decision feel more trustworthy when a computer makes it? Should it?

  3. Q3

    Can you think of a use of AI where no version would be fair enough to deploy?

Write your answer to one of the questions. Saved only on this device.

Quick check

Choose an answer to see whether you were right, and why.

  1. 1A hiring model is trained on a company's past hiring decisions. What is the main risk?

  2. 2What is a proxy feature?

  3. 3Which step best helps detect unfairness in a model?

Key takeaways

  • Bias enters through data, design choices and how a system is used.
  • Deleting a sensitive feature does not remove bias when proxies remain.
  • Fairness requires human choices, testing by group and a way for people to appeal.