GRADE 8 · COMPUTING · UNIT 4 · LESSON 4.15
Computer systems
AI rules and learning from examples
Read a little. Try the workbook. Check your answers. Choose one section below to get started.
LET’S TRACE, REASON AND TEST
AI rules and learning from examples
A rule-based system follows rules people supplied. Machine learning instead develops a model from examples during training and uses that model with new inputs. Not every AI system uses machine learning. A learned prediction can be wrong, especially when examples are unrepresentative.
- Contrast prewritten behaviour with learning patterns from examples; question oversimplified feature rules.
- Explain my method and support it with a labelled trace, example or test record.

Work through an example
A game character that turns left whenever a wall is detected follows a fixed rule. A picture classifier trained on labelled examples uses a learned model. Whiskers alone cannot prove an animal is a cat, and one correct prediction does not prove the classifier always works.
Try before your workbook
A robot follows IF distance is below 10 THEN stop. Does that statement alone show that it learns from examples?
Explore the clues
Tap one card to find out more.
Understand the idea
A rule-based system follows rules people supplied. Machine learning instead develops a model from examples during training and uses that model with new inputs. Not every AI system uses machine learning. A learned prediction can be wrong, especially when examples are unrepresentative.
Concept to practise: AI rules and learning from examples.
Work through an example
A game character that turns left whenever a wall is detected follows a fixed rule. A picture classifier trained on labelled examples uses a learned model. Whiskers alone cannot prove an animal is a cat, and one correct prediction does not prove the classifier always works.
Try before your workbook
A robot follows IF distance is below 10 THEN stop. Does that statement alone show that it learns from examples?
Check my readiness thinking
No. It describes a fixed rule. Evidence of training from examples and evaluating the resulting model would be needed to support a machine-learning claim.
Your original programs and learning models
These original PaxaKids program and data models support your workbook. Some examples deliberately contain faults to investigate. Follow their headings and preserve exact code case, punctuation and order. Traces and supplied records are not claims of physical testing.
Distinguish rules from learning
The pictured card sort introduces a pattern activity. Our paper rule is inferred by a person; completing it does not train an AI program.
Follow the evidence for a capability
Training uses examples to fit a model. Inference uses a fitted model to predict. A prediction does not necessarily update the model. Systems can combine fixed rules and learned models.
| Description | Evidence |
|---|---|
| Guard follows a prewritten distance rule. | Fixed behaviour; learning is not established. |
| Model fitted on labelled leaf images predicts a new plant label. | Learning from examples is explicitly described. |
| Tablet displays a menu when a button is pressed. | A response alone does not establish machine learning. |
Question an oversimplified feature rule
| Original case | Why it challenges the checklist |
|---|---|
| A fox has fur, pointed ears and a tail. | Those features are not unique to cats. |
| A cat has no visible tail in the image. | Visibility is not the same as identity. |
| A new image is dark or partly hidden. | The represented information may be incomplete. |
Inspect the original training cards
| ID | Colour | Shape | Label |
|---|---|---|---|
| T1 | red | circle | A |
| T2 | red | square | A |
| T3 | blue | circle | B |
| T4 | blue | square | B |
| T5 | red | triangle | A |
| T6 | blue | triangle | B |
Predict before seeing the reference labels
| ID | Colour | Shape | Your prediction |
|---|---|---|---|
| V1 | red | star | {'clue': 'A, B or unknown', 'prompt': 'Prediction for V1', 'answers': ['A']} |
| V2 | blue | star | {'clue': 'A, B or unknown', 'prompt': 'Prediction for V2', 'answers': ['B']} |
| V3 | green | circle | {'clue': 'A, B or unknown', 'prompt': 'Prediction for V3', 'answers': ['unknown']} |
| V4 | red | circle | {'clue': 'A, B or unknown', 'prompt': 'Prediction for V4', 'answers': ['A']} |
Recognise what the small sample cannot prove
Keep evaluation examples separate from decisions used to design or change the rule. If you revise the rule after seeing the reference labels, use further reserved examples for a fresh check.
Observe a drawing-recognition demonstration
Record the prompt, actual drawing and observed guesses if the demonstration happens. Otherwise mark the online observation Pending and use the paper examples as a clearly labelled analogue. The picture is a generic illustration, not an app screenshot.
Build an accurate vocabulary set
| Term | Meaning in this investigation |
|---|---|
| AI | Computer methods used for tasks associated with intelligence. |
| MODEL | A representation used to produce a result from inputs. |
| DATA | Values or examples used by a system. |
| LABEL | A supplied category or target for an example. |
| INPUT | Information supplied to a process. |
| OUTPUT | A result produced by a process. |
| FEATURE | A property represented in an example. |
| PREDICT | Produce an estimated label or result. |
| TRAIN | Fit a model using examples. |
| TEST | Check behaviour on reserved examples. |
Files for this activity
Use these original PaxaKids practice files with the matching workbook. Work on a local copy in the appropriate editor. Some examples deliberately contain faults to investigate; a downloaded file is not a completed practical test.

Try one step with Paxa!
Follow the model and explain the labels, values and decisions. Use fictional data. Label a paper prediction, simulation and actual practical test separately; an unperformed test stays Pending. Save personal responses before leaving.
Our Unit 4 learning path
- Lesson 4.1: Primary memory and the processor
- Lesson 4.2: The role of RAM
- Lesson 4.3: The role of ROM and comparison
- Lesson 4.4: Operating-system purpose and examples
- Lesson 4.5: Interface, memory and user accounts
- Lesson 4.6: Files, applications and devices
- Lesson 4.7: Utility software and maintenance
- Lesson 4.8: Denary and binary place value
- Lesson 4.9: Converting values and extending to eight bits
- Lesson 4.10: ASCII and character encoding
- Lesson 4.11: Compression, reconstruction and purpose
- Lesson 4.12: Truth-table structure and possible inputs
- Lesson 4.13: NOT, AND and OR outputs
- Lesson 4.14: Complete, check and communicate tables
- Lesson 4.15: AI rules and learning from examples
- Lesson 4.16: What augmented reality adds
- Lesson 4.17: AR in entertainment, retail and education
- Lesson 4.18: Autonomous programming, sensors and robotics
- Lesson 4.19: Designing and explaining a robot
- Lesson 4.20: Project: Technology work placement
- Lesson 4.21: Check your progress 4
For grown-ups: using this lesson
Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.
Read one explanation, discuss the model and try the readiness check before the workbook. Choose “Mark lesson finished” when ready. Optional account progress saves lesson position and completion across devices; save personal responses before leaving.
2. Fill in your workbook
Read the teaching and complete workbook instructions. Choose, write or draw; Answer list offers larger controls. Trace code precisely and distinguish predictions from actual tests. Review designs, explanations and drawings with a grown-up.
Opening your PDF…
Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.
You’ve completed the checked activities.
TAKE YOUR PRACTICE OFFLINE
3. Download the student worksheet
All 10 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.
Student worksheet only · PDF · 7.9 MiB · No answer key included
TRY FIRST, THEN CHECK TOGETHER
Download the student worksheet →4. Answers & guidance
Finished your try? Open the guide and compare one worksheet at a time. Your own words may be different and still explain the right idea.
Shown on this webpage only. There is no answer-key download, and this guide is left out when printing the page.
Show answers for all 10 worksheets
Worksheet 1
- Question 1: Which description shows machine learning? a model is fitted using examples before making predictions
Worksheet 2
- Question 2: Which statement separates training from inference? training fits the model; inference uses it for a prediction
Worksheet 3
- Question 3: What does the fox counterexample show? the listed features alone do not uniquely identify a cat
- Question 4: What can improve an evaluation of an animal-image model? representative new examples, including exceptions
Worksheet 4
- Question 5: Which property determines the label under our specified rule? colour
- Question 6: What is this activity actually doing? applying a human-inferred paper rule
Worksheet 5
- Question 7: Prediction for V1 A
- Question 8: Prediction for V2 B
- Question 9: Prediction for V3 unknown
- Question 10: Prediction for V4 A
Worksheet 6
- Question 11: Why should V3 be unknown under the given rule? green has no specified supported A or B case
- Question 12: What would make a later check misleading? changing the rule using the revealed test labels, then calling the same test independent
- Question 13: Which next step could investigate an unexpected reference label? check the label and seek more relevant examples or missing features
Worksheet 7
- Question 14: What would count as evidence of an observed system response? the actual prompt, retained drawing and guesses seen during a demonstration
Worksheet 8
This page introduces the activity. There are no marked responses on this sheet.
Worksheet 9
- Question 15: Create an original word search on attached squared paper containing AI, MODEL, DATA, LABEL, INPUT, OUTPUT, FEATURE, PREDICT, TRAIN and TEST. Keep the grid and letters large and legible. Retain a separate answer grid showing every word and a short explanation of each term. Exchange the puzzle with a partner and discuss two terms that could be confused. Record the actual attempt and discussion or Pending, then make one improvement. Require all ten terms in a valid, readable original grid and a matching answer grid. Meanings accurately distinguish training, prediction, features, labels and the paper model. Explain AI as artificial intelligence. Record actual partner attempt/discussion or Pending; no invented completion, race ranking or numeric grading. Retain both grids, explanations and an improvement. Grown-up review; personal evidence is required.
Worksheet 10
- Question 16: After recording your first predictions, ask the teacher to reveal the reference labels. Retain a table of first prediction, reference and comparison for V1–V4. Count how many of four cases received a definite A/B prediction, and how many of those predictions matched; state each denominator. Explain V3, the V4 disagreement, the limits of the sample and why a revised rule needs fresh examples. Compare fixed rules with machine learning. Add actual drawing-demo evidence or Pending, a partner reflection or Pending, and one next step. Reveal references only after first predictions: V1 A, V2 B, V3 A, V4 B. Specified paper-rule predictions are A, B, unknown, A. Definite predictions cover three of four cases; two of those three match. These are fictional model counts, not learner grades. V3 lacks a supported green case; V4 exposes failure of the colour-only rule, without determining whether missing features, changing classes or label issues explain it. Seek representative further examples and audit labels; revised rule needs new reserved tests. Distinguish training from inference and actual AI from the human-inferred paper analogue. Correct prediction alone does not prove human-like understanding. Retain actual demo/partner evidence or Pending and next step; no scoring. Grown-up review; personal evidence is required.
Review your retained first predictions
Keep your first predictions before opening this reference. These are fictional paper-model results, not an observed trained-AI test.
Open the reference for review
References V1 A; V2 B; V3 A; V4 B.
Specified human-inferred paper rule predicts A, B, unknown, A. Three of four receive definite predictions, two of those three match. Fictional model counts, not grades or an actual trained AI. Actual demonstration and partner work or Pending.
Curriculum & workbook reference
- Cambridge Lower Secondary Computing Learner’s Book 8 — pages 283–287
- PaxaKids Grade 8 Computing Lesson 4.15: AI rules and learning from examples — pages 1–10
Computing for your homeschool day
Explore AI rules and learning from examples with this free Grade 8 Computing lesson. Read one idea together, try the fillable workbook and return to review at your own pace. Download the same student worksheet PDF for pencil-and-paper practice.
Fit learning around your family’s day. There is no timer and no sign-up is needed to use the lesson. An optional account saves your lesson position and completion across devices. Workbook responses and drawings stay in this tab; save a copy of your responses before leaving.
Understand your results
Closed answers are checked in your browser. Drawings and written explanations need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.
Choose Review Answers after trying the activity. The guide stays on the webpage; the worksheet download contains only the student pages.
For programme background, visit the Cambridge Lower Secondary Computing overview. PaxaKids provides independent original companion practice.
Book page references identify the related teaching topic. File-management and responsible-data preparation are original PaxaKids material; orientation or contents pages are not presented as teaching citations for those skills. The explanations, characters, programs and exercises here are original PaxaKids companion practice. Practical tasks require the appropriate editor and, where applicable, suitable equipment. A design or paper trace is not a verified hardware result. Only completed, reviewed lessons are listed.
Explore the Cambridge Lower Secondary Computing curriculum for programme background. PaxaKids is an independent learning resource.
