Curriculum map / Year 5: Data, Training and Fairness
Year 5, Lesson 1
Rules or examples?
Some programs follow rules people write; machine learning finds its own patterns in examples.
Preparing to teach
- Lesson
- Lesson 1 of 6 in Year 5: Data, Training and Fairness
- Time
- 60 minutes, with a 45 minute version in the plan
- Pupils learn
- I can explain the difference between a rule based program and machine learning.
- I can write a rule based sorting program and test it with tricky cases.
- I can say what each way is good at, and where each one falls short.
- You need
- Devices with Scratch or unplugged sheets (slide 18), printed Tricky Review cards (slides 17, 19)
- Preparation
- About 30 to 45 minutes the first time, plus the plan's Teacher subject knowledge. Plan ahead: Build and test the Scratch program yourself first.
What to prepare
Decide whether pupils will use Scratch or the unplugged version. With devices: one device per pair, Scratch open (web or app). Build the program yourself first using the table below, and test the eight Tricky Review cards so you know what each one does. Unplugged: print slide 18, one per pair. Both versions: print slide 17 (Tricky Review cards), one set per pair, cut out; print slide 19 (Beat the sorter sheet), one per pair. Have a few blank cards ready for pupils' own reviews.
- Pupil devices
- Optional: one device per pair for Scratch, or the unplugged version in the plan
- Demonstration
- None
- Prior learning
- Builds on learning from earlier years. Before teaching this lesson
Before teaching this lesson
Pupils should already understand
- AI finds patterns in lots of examples and uses them to guess, so it can be wrong.
Routines it uses: IDEAL moments, the AI Loop.
Where this was taught
- Earlier year Year 1 Lesson 3: The Mystery Rule (slide 8)
- Earlier year Year 1 Lesson 2: Teaching Bleep (slides 8 and 11)
Remember When (slide 2) recalls Year 1 Lesson 1, Year 1 Lesson 3, Year 4 Lesson 5, Year 4 Lesson 6. These are retrieval questions: if your class has not had those lessons, swap them for a question about pupils' own experience. That does not replace any prerequisite above.
If your pupils haven't covered this
Check first: Remember When question 3 (slide 2) tests this. If most pupils answer well, carry on. If not: Retrieve or introduce: show Year 1 Lesson 3 slide 8, the AI Loop, and play one Mystery Rule round from slide 6 (5 minutes). Introduce the new IDEAL wording by reading all five from Year 5 Lesson 6 slide 15 (2 minutes).
What this lesson adds
Pupils compare rules people write with patterns a model finds, and test where each falls short.
The signature activity
Pupils write a rule-based sorting program in Scratch, then try to beat it with tricky cases a trained model would handle, and vice versa.
The slides
Teacher notes and answers are in the lesson plan, and printable resources are at the end of the deck.
What to look for
Exit ticket: 1. What is the difference between a rule based program and machine learning? 2. Our program said Thumbs up for "It was not great." Why? 3. Name one job where rules work best, and one where learning from examples works best.
Look for pupils who explain a wrong answer by pointing to the exact rule that caused it, and who can say both what rules are good at and what models are good at, rather than assuming AI is always better.
This evidence feeds the tracker for How AI works; Design and create, and the unit ends with the IDEAL Challenge. Answers are in the plan.