rAs Kids All courses
How Machines Think ยท Module 3 of 8
๐Ÿชจ No device needed

Guess My Rule

A machine learns by looking at lots of examples until it can guess the rule by itself.

๐Ÿ”ด๐Ÿ”ต๐Ÿ”ด โœ… ๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต โŒ
Rows of bottle caps, some rows with a tick beside them, some with a cross.

๐ŸŽ’ What you need

โœ‹ Do this

  1. One of you invents a secret rule and tells nobody. Something like 'a row is good if it has a red cap in it'.
  2. The rule-keeper lays out a row of caps and says only 'good' or 'not good'. No explaining.
  3. Do this ten times. Keep the good rows on the left and the not-good rows on the right so you can see them all at once.
  4. The guesser now stares at the two groups and lays out a brand new row, saying 'I think this one is good'.
  5. Rule-keeper answers only yes or no. Keep going until the guesser gets five right in a row.
  6. Now say the rule out loud. Were you right? Look at how many examples it took.

๐Ÿ’ก Why it works

You just did machine learning. Nobody told the guesser the rule โ€” they worked it out from examples marked good and not-good. That is exactly how a phone learns to spot a diseased cassava leaf: thousands of leaf photos, each one marked sick or healthy, until the machine can guess the rule on a leaf it has never seen.

๐Ÿ”ฅ Challenge

Make a rule so sneaky it takes your friend twenty examples โ€” but it must still be a real rule you can say in one sentence. No cheating by changing it halfway.

๐Ÿ“– New words

exampleone thing you show the machine, with the answer attached
learnto work out the rule by looking at many examples
๐Ÿ”
Rule Hunter

Tap when you have finished this module.