AI rules and societyMiddleLesson 1885 min read

Bias and fairness in AI

AI learns from data made by people, so it can repeat unfair patterns quietly and at scale. Here is how bias creeps in and how teams test for it.

Lesson in motion

In 60 seconds

Bias and fairness in AI

AI learns from data made by people, so it can repeat unfair patterns quietly and at scale. Here is how bias creeps in and how teams test for it.

1/6
In simple words
If you only ever showed a robot pictures of red apples, it might think a green apple is not an apple. AI learns from the examples it sees. If the examples leave people out, the AI can treat those people unfairly.
An AI system is biased when it works better for some groups of people than others, or treats people unfairly because of things like gender, caste, religion, region, language, age or disability. Usually nobody meant it to happen. It creeps in.

How bias creeps in

  1. 1

    Who is in the data

    If most examples come from one group, the system learns that group best. A voice tool trained mostly on city accents may struggle with rural accents.
  2. 2

    Past unfairness in the data

    If past decisions were unfair, a system trained on them can learn to repeat them.
  3. 3

    What is being measured

    Teams sometimes measure an easy stand-in for what they really want, and the stand-in can be unfair.
  4. 4

    How it is used

    A tool built for one place or purpose may behave badly when used somewhere else.

Real categories of harm

Type of harmWhat it meansExample
Unequal decisionsSome groups are refused or chosen unfairlyA hiring tool that ranks applicants from one background lower
Unequal qualityThe system works worse for some peopleFace recognition or speech recognition that makes more mistakes for some groups
StereotypesOutputs repeat unfair ideas about groupsAn image tool that always shows doctors as men and nurses as women
Being left outSome people or languages are barely servedA chatbot that works well in English but poorly in many Indian languages
Real example
Everyday example. Imagine a loan app trained on past loan records from mostly city borrowers. A careful farmer from a village has a different income pattern, with money coming at harvest time. The app might wrongly see her as risky, not because she is, but because it rarely saw people like her.

How teams test for bias

  • Check the data: who is included, who is missing, and how the data was collected.
  • Test by group: measure mistakes separately for different groups, not just the overall average.
  • Try swapped examples: change only a name, gender or region and see if the result changes.
  • Ask affected people: include communities who will use or be judged by the system.
  • Keep checking after launch: real-world use can reveal new problems.
Weak practice
  • “Our model is 95% accurate overall, so it is fair”
  • Testing only with the team's own examples
  • Launching and never checking again
Better practice
  • Reporting accuracy separately for different groups
  • Testing with diverse, real-world examples
  • Monitoring, and giving people a way to complain
Note
People disagree on what “fair” means. Should a system treat everyone exactly the same, or should it aim for equal outcomes? Different definitions can conflict, so teams must choose openly and explain their choice.
Do this
Removing a sensitive column like gender does not automatically remove bias. Other information, such as name, location or school, can act as a hidden stand-in. Testing results is what reveals bias.
Try this. Ask an image-generating AI tool for pictures of “a doctor”, “a farmer” and “a software engineer”. Look at who appears. Write down any patterns you notice, and think about who is missing.

Watch and read more

Lab

A bias-check plan for an imaginary AI system that affects people.

~25 min

The problem

Imagine a company is building an AI tool to shortlist students for a scholarship in your state.

  1. List four groups who could be treated unfairly and explain why.
  2. Describe where bias could enter: the data, what is measured, and how the tool is used.
  3. Write three tests the team should run (for example, swapping names or regions).
  4. Explain how students can ask for a human review.
  5. Write one paragraph on which idea of fairness you would choose and why.

You are done when

Hard questions

Try to answer before you reveal. If you can answer these, you understood the lesson.

Q1A system is equally accurate for two groups but still refuses one group much more often. Is it fair?Reveal

It depends on the definition of fairness you use. By one measure (equal accuracy) it looks fair; by another (similar outcomes) it does not. The difference might reflect real differences, or past unfairness baked into the data. This is why teams must look at several measures, understand the causes and explain their choice openly rather than rely on one number.

Q2Why can an AI system make an old unfairness worse, not just repeat it?Reveal

Because it applies the same pattern to huge numbers of people, very fast, and its decisions can become new data. If a system refuses a group, that group gets fewer chances to show good results, and future data seems to confirm the unfair pattern. This feedback loop can deepen the problem over time unless people break it.

Please sign in to continue.

Questions people ask

Can AI be completely free of bias?

Probably not completely, because data and people are never perfectly neutral. But teams can reduce unfairness a lot by checking data, testing by group, involving affected people and fixing problems they find.

If a computer made the decision, isn't it objective?

Not necessarily. A computer follows patterns from its data and design, and both come from people. A system can look objective while quietly repeating unfair patterns at a very large scale.

What can I do if I think an AI decision was unfair to me?

Ask the organisation how the decision was made and whether a human can review it. Keep records. Depending on the situation and the law where you live, you may have a right to complain or appeal. For serious cases, talk to a qualified legal professional.

Is bias only a problem in hiring and loans?

No. It can appear in health tools, translation, search results, content moderation, image generation and more. Anywhere AI makes or shapes decisions about people, bias is worth checking.

Lesson test

5 questions. Get 3 right (60%) to pass and complete this lesson.

Sign in to take the test and save your progress