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.

Topic 4.15 · AI rules and learning from examples10 fillable worksheet pagesRead at your own pace

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.

Today’s two goals
  • 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.
Original PaxaKids illustration for AI rules and learning from examples. Use the supplied program and data models for precise workbook facts.
An original PaxaKids workbook scene. Use the supplied programs and data for precise workbook facts.

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

AI is a broad field of computer methods for tasks associated with intelligence. Some game behaviour follows rules written by people. Machine learning is an AI approach that fits a model using examples so it can produce predictions for new inputs.

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

A fixed game rule might say: if the player moves closer, the guard steps back. Applying that prewritten rule is different from fitting a model using many examples.

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.
Follow the evidence for a capability — original model
DescriptionEvidence
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

A feature is a property represented in an example. A checklist such as “fur, pointed ears and a tail” is not a reliable definition of a cat. Other animals may share those features, and a cat may have a missing or hidden tail. Real image models use learned patterns; they are not guaranteed to follow this verbal checklist.
Question an oversimplified feature rule — original model
Original caseWhy 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

These are deliberately artificial labels, not real animal or plant classes. Inspect all six examples. For this paper investigation, use the human-inferred rule: red gives A; blue gives B; any other colour gives unknown. Shape is not used by this specified rule.
Inspect the original training cards — original model
IDColourShapeLabel
T1redcircleA
T2redsquareA
T3bluecircleB
T4bluesquareB
T5redtriangleA
T6bluetriangleB

Predict before seeing the reference labels

Use only the specified colour rule. Record all four predictions before your teacher reveals the private reference labels. Unknown is a meaningful response when the rule has no supported colour case. Keep this first attempt unchanged for the later comparison.
Predict before seeing the reference labels — original model
IDColourShapeYour prediction
V1redstar{'clue': 'A, B or unknown', 'prompt': 'Prediction for V1', 'answers': ['A']}
V2bluestar{'clue': 'A, B or unknown', 'prompt': 'Prediction for V2', 'answers': ['B']}
V3greencircle{'clue': 'A, B or unknown', 'prompt': 'Prediction for V3', 'answers': ['unknown']}
V4redcircle{'clue': 'A, B or unknown', 'prompt': 'Prediction for V4', 'answers': ['A']}

Recognise what the small sample cannot prove

Green did not appear in the training examples. Under the stated rule, a green item stays unknown. A familiar combination such as a red circle is still not a guarantee of the reference label for every future item.

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

A teacher-approved Quick, Draw! demonstration lets you observe a neural network trying to recognise doodles. It can make incorrect guesses. Draw only ordinary objects; drawings may contribute to a publicly shared dataset.

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

Use these ten compact terms for your original word search. Write AI in full as artificial intelligence in your explanation. A term hidden in a puzzle should still have a meaning you can explain.
Build an accurate vocabulary set — original model
TermMeaning in this investigation
AIComputer methods used for tasks associated with intelligence.
MODELA representation used to produce a result from inputs.
DATAValues or examples used by a system.
LABELA supplied category or target for an example.
INPUTInformation supplied to a process.
OUTPUTA result produced by a process.
FEATUREA property represented in an example.
PREDICTProduce an estimated label or result.
TRAINFit a model using examples.
TESTCheck 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.

Paxa the Fox

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
  1. Lesson 4.1: Primary memory and the processor
  2. Lesson 4.2: The role of RAM
  3. Lesson 4.3: The role of ROM and comparison
  4. Lesson 4.4: Operating-system purpose and examples
  5. Lesson 4.5: Interface, memory and user accounts
  6. Lesson 4.6: Files, applications and devices
  7. Lesson 4.7: Utility software and maintenance
  8. Lesson 4.8: Denary and binary place value
  9. Lesson 4.9: Converting values and extending to eight bits
  10. Lesson 4.10: ASCII and character encoding
  11. Lesson 4.11: Compression, reconstruction and purpose
  12. Lesson 4.12: Truth-table structure and possible inputs
  13. Lesson 4.13: NOT, AND and OR outputs
  14. Lesson 4.14: Complete, check and communicate tables
  15. Lesson 4.15: AI rules and learning from examples
  16. Lesson 4.16: What augmented reality adds
  17. Lesson 4.17: AR in entertainment, retail and education
  18. Lesson 4.18: Autonomous programming, sensors and robotics
  19. Lesson 4.19: Designing and explaining a robot
  20. Lesson 4.20: Project: Technology work placement
  21. 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.

AI rules and learning from examples10 student pages · original artwork

Opening your PDF…

Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.

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

Download worksheet PDF ↓

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

  1. Question 1: Which description shows machine learning? a model is fitted using examples before making predictions

Worksheet 2

  1. Question 2: Which statement separates training from inference? training fits the model; inference uses it for a prediction

Worksheet 3

  1. Question 3: What does the fox counterexample show? the listed features alone do not uniquely identify a cat
  2. Question 4: What can improve an evaluation of an animal-image model? representative new examples, including exceptions

Worksheet 4

  1. Question 5: Which property determines the label under our specified rule? colour
  2. Question 6: What is this activity actually doing? applying a human-inferred paper rule

Worksheet 5

  1. Question 7: Prediction for V1 A
  2. Question 8: Prediction for V2 B
  3. Question 9: Prediction for V3 unknown
  4. Question 10: Prediction for V4 A

Worksheet 6

  1. Question 11: Why should V3 be unknown under the given rule? green has no specified supported A or B case
  2. Question 12: What would make a later check misleading? changing the rule using the revealed test labels, then calling the same test independent
  3. Question 13: Which next step could investigate an unexpected reference label? check the label and seek more relevant examples or missing features

Worksheet 7

  1. 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

  1. 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

  1. 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.

Back to my workbook ↑

Curriculum & workbook reference

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.