← Teacher guide

Why does AI make mistakes?

Students break a working fruit sorter on purpose, once with a wrong label and once by removing examples, then fix it and explain what went wrong.

AI Foundations · How AI learns · about 30 minutes · Open the student lesson

Classroom resources

Open these in Waypoints Prepare with one click. To share a file another way, copy its address and paste it into Load URL, or download the file and import it. In Prepare, the worksheet's Teacher edition shows the answers; the student copy hides them.

Students will be able to

Before class

Bias step (18 Oct 2026): the reading app is made up, so the lesson makes no statistical claim. It names bias as a consequence of generalising from missing examples (a technical idea first; the planned Who Does AI Affect? course takes up fairness and who is affected). Keep discussion on examples and testing, not on judging any real group's speech. Last lesson students taught the sorter. This lesson they break it. The board's mistakes mode adds a Swap label button and three challenges (wrong label, missing examples, fix it); each ticks when a test shows it. In the board's pretend world every long fruit is a banana and every round fruit is an apple, so the board can say "right" or "wrong". Real fruit is messier: say so. The sorter copies the label of its nearest examples. It is a transparent teaching model, not a neural network. No account or online tool is needed.

Running the lesson

  1. Engage: ask what could make a sorter wrong before anyone touches the board.
  2. Explore: let students find their own way to fool it; collect the different ways on the board.
  3. Explain: sort the ways into 'wrong labels' and 'missing examples'; ask which one a bigger dataset would not fix.
  4. Elaborate: connect to real systems: labels are often made by people, quickly, and some kinds of case are missing.

In class

On the slides at these points. Students can do the whole lesson on their own; these are for the room. In the deck, the Run, Modify and Make slides have the live playground in them (the tutorial link is the backup), and the notes above are in each slide's speaker notes.

The hard part (on purpose)

Students may think a model that is wrong must be broken or badly programmed. Here the program is fine: the examples are the problem.

When students get stuck

What you will seeA question to askThe fix
A student cannot make the sorter wrong.Which examples does a yellow, long fruit sit closest to?Swap the label on one or two yellow, long examples, then test a yellow, long fruit again.
A student fixes the sorter by changing the test fruit instead of the examples.Did the sorter change, or just the question you asked it?Keep the same test fruit and change only the examples.

Answers to the checks

  1. Engage: what could go wrong?: The sorter's program works perfectly. Can it still give a wrong answer?
    Yes. The program can follow its steps perfectly and still be wrong, because it learns from examples, and examples can be wrong or missing.
  2. A wrong label: Make the sorter call a yellow, long fruit an apple.
  3. Missing examples: With every label correct, make the sorter get a fruit wrong or unsure.
  4. Fix it: Fix the sorter so it gets a fruit right that it got wrong.
  5. The swapped labels: You swapped two banana labels to 'apple'. Now the sorter calls a yellow, long fruit an apple. What caused the mistake?
    Wrong labels: it copied the answers it was taught
  6. The removed examples: You removed the only yellow, round example. Every label is still correct. Now a yellow, round fruit is called a banana. What caused it?
    Missing examples: nothing like it to compare
    With the yellow, round apple gone, its closest examples were yellow bananas, so it copied them.
  7. Why it happens: The app's program has no bug. Why does it mishear Year 7 students more than adults?
    Year 7 voices were missing or rare in its examples
  8. What would help?: Would this help the app work for Year 7 students?
    Add many recordings of Year 7 voices → Helps; Add even more adult voices → Does not help; Test how well it works for each age group before using it → Helps; Ask Year 7 students to speak like adults → Does not help; Run it on a faster computer → Does not help
  9. Evaluate: what would you check?: A photo app labels a photo of a black swan as 'goose'. Every training label was checked by experts. What is the most likely cause?
    It had few examples like a black swan
    With few black swans in its examples, its closest matches were geese, so it copied their label.

Solutions

One possible solution for each task. Other correct programs are fine.

Elaborate: more examples, fewer mistakes?

Open task: any program that does what the step asks.

Stretch and support

Stretch: Find the fewest changes that fool the sorter. Why does removing one example sometimes make no difference?

Support: Do the wrong-label challenge together first, then let students try the missing-examples one.

Exit ticket

A sorter with all correct labels still calls a fruit wrongly. What is the most likely reason?

Its examples do not cover that kind of fruit well, so its nearest examples point the wrong way.

Where it leads

Unit 2, lesson 3 shows how a model can weigh several clues at once.