Skip to content

Labs · 9618 18.1 · machine learning

Build a Decision Tree

Sort animals with yes or no questions. Build your own tree, then let the computer choose its questions by information gain and compare.

5 levelsFree bench

In the exam

Exam questions on what this lab teaches, with the points that gain marks.

9618/32 May/June 2025 · Question 6(b)4 marks

Explain how supervised learning and unsupervised learning differ from each other.

Points that gain marks

  1. Supervised learning uses labelled data; unsupervised learning uses unlabelled data.
  2. Labelled data means the correct outcome is given with each input, to help the AI predict outcomes.
  3. Supervised learning needs human input first (someone labels the training data); unsupervised learning does not.
  4. With unlabelled data the outcomes are not known, so the AI must search for hidden patterns, structures or groups in the data.

In this lab: A decision tree is supervised: every animal it learns from already has its group (mammal, bird, fish, reptile). Level 5 shows the other half of the answer: the tree must also predict the group of new animals.

The question as printed in the exam paper

More real experiments

All labs →

Log in or create account

IGCSE, A-Level & AP