Modelling the Real World – Year 9 Computing lessons
Six Year 9 lessons on abstraction, states and rules, coding a model with functions, training a simple AI model and evaluation.
Shops, councils and weather forecasters plan ahead with models: simple versions of real systems that keep only what matters. This unit teaches pupils to build and judge them: choosing what to keep and leave out, describing a system as states and the rules that change them, coding a simulation in Python with functions and random numbers, and seeing how an AI model learns patterns from training data instead of rules. Pupils model the school lunch queue for the catering manager and finish by testing their model against real data, so they can explain what a model can predict, how accurate it is and when its answer should not be trusted.
Unit 9.5 is taught in Year 9, Summer 1, and answers one big question: How can computers model the real world to make predictions? Every lesson uses the same real-world context (models that predict queues, traffic and weather, and AI models trained on data), and pupils make a simulation that answers a real question, such as how long the lunch queue will be. The careers link is a data scientist: a data scientist builds models from real data – such as how many people will be in a queue or at a station – checks their predictions against what really happens and explains how far they can be trusted, just as pupils do for the lunch queue.
What happens in each lesson:
Lesson 1, Abstraction: what to keep and what to leave out: What should a model of the lunch queue keep and leave out? Main task: design a model of the lunch queue: sort ten details into keep or leave out with a reason for each, then state two assumptions.
Lesson 2, States and rules (traffic lights): How can states and rules describe how a system behaves? Main task: type a state transition table for the pedestrian crossing outside school, with four states, and give the rule that triggers every transition. Name the start state.
Lesson 3, Coding a model with functions: How can a program use chance to predict a lunch queue? Main task: write a Python simulation of 20 minutes of the lunch queue: a function returns a random number of arrivals each minute, two pupils are served each minute, and the program prints the longest queue.
Lesson 4, How computers learn from data: training a simple AI model: How can a computer learn to make predictions from data? Main task: write a rule from 12 days of training data that predicts a long lunch queue, test it on four new days, and explain how the training data could make it biased.
Lesson 5, Evaluating a model against reality: How do we know whether a model or AI can be trusted? Main task: evaluate the lunch-queue model for the catering manager: compare its predictions with real counts, calculate its accuracy, suggest one improvement and explain one ethical issue.
Lesson 6, Progress Check: 16-question check: 15 multiple-choice questions + one applied question.
- Misconceptions it tackles include
- “A good model includes as many details as possible”; “A transition is a state, so the arrows can be labelled with states”; “random.randint(1, 6) never gives 6, just as range(1, 6) stops before 6”. Each is planned into a hinge question before the main task or an exit question, so you find out who still holds it.
National Curriculum coverage (KS3 computing programme of study): NC1, design, use and evaluate abstractions that model real-world problems and physical systems; NC3, two or more languages, at least one textual; data structures; modular programs with procedures or functions.
It builds on 7.2 Algorithms and Block Programming (decomposition and abstraction); 8.6 Physical Computing (modelling a control system); 8.5 Data and Spreadsheets (collecting and analysing data); 9.1 Python: Lists and Functions (lists, loops, functions with parameters and return values); 9.2 Searching and Sorting. It leads on to 9.6 Digital Project for a Real User; at GCSE, OCR J277 2.1 Algorithms (abstraction and decomposition), 2.2 Programming fundamentals (random numbers, subprograms) and 1.6 Ethical, legal, cultural and environmental impact (AI and bias).
- Adapting it for your school
- Lesson 2 is a flex lesson: if time is short, show one state transition diagram in lesson 3's I do and keep the rest for GCSE. Lesson 3 needs Python with the random module (any editor, including free online ones); the dice version runs it without computers. If you run an end-of-KS3 exam, use lesson 6 for it; 9.6's presentation then acts as the final Progress Check. Swap the lunch queue for any queue your pupils know, such as the bus stop or a theme park ride; the examples change, the content does not.
Two versions in one download. The "With quiz" folder is for schools with a Code & Commerce Quizzes subscription: wherever the lessons use a Progress Check, its multiple-choice questions are ready-made on the quiz site for you to set, with a printed version as the backup. The "Without quiz" folder is the same teaching for standalone use, with no mention of the quiz site and every check on paper. You don't need a quiz subscription to use it.
What's included
- 6 lesson slide decks (PowerPoint)
- 6 lesson plans (Word)
- 6 worksheets, plus 5 support versions with scaffolds (Word)
- Medium term plan with intent, key words, misconceptions and adaptive teaching notes (Word)
- Progress Check lesson to assess the unit, with an applied question
- Evaluating a model against reality - Quiz Quiz Trade Cards
- Department licence: every teacher in your department can use and adapt it
- Two versions of the files: one for Code & Commerce Quizzes subscribers and one for standalone teaching, no quiz site needed
In this bundle
Worth £24 bought separately at £4 a lesson. The bundle saves you 16%.
More for KS3 Computing
See allSix Year 9 Python lessons on lists, looping through lists, procedures, functions, parameters and return values.
Free sample lessonSix Year 9 lessons on linear and binary search, bubble sort, insertion and merge sort, comparing algorithms and Bebras practice.
Free sample lessonSix Year 9 cyber security lessons: personal data and the law, phishing, malware, password attacks and a Caesar cipher in Python.
Free sample lessonWritten for the specifications named. Not endorsed by or affiliated with any exam board.