← Back to course
AI Explorers 6-8 / Week 05 / Wednesday
3/6
Week 05 Β· Rules or Learning?

Wednesday

Explorer Lab: Let the data pick the cut-off
// Hand-written rules versus patterns found in data
⏱ about 20 min

Wednesday: Explorer Lab: Let the Data Pick the Cut-off

Raven deals ten labeled cards onto the table: five stars and five planets.

"No guessing today," she says. "We test each possible rule on every card and count."

Rocket picks up a pencil. "So the rule that gets the most right wins?"

"That is the idea," Nova says. "Counting over many examples to find a pattern."

"It is a small paper version of statistical inference."

Rocket draws a tally chart with four columns, one for each rule, and Raven reads out the first card.

"Card one: a star, brightness 120, size 2."

Your mission

You will test four possible rules for telling stars from planets.

For each rule, count how many of the ten labeled cards it gets right.

The best rule is the one the data supports, not the one you guessed.

  • Ten index cards, copied from the table below
  • A pencil and a sheet of paper for tally marks
  • Two counters to mark your place in the table
For a grown-up
Help copy the ten cards, or read the numbers aloud while your explorer tallies.
Every number is invented for the lesson, so answers can be checked.
CardLabelBrightnessSize
1star1202
2planet2305
3star2103
4planet1904
5star602
6planet2406
7star2251
8planet2055
9star1003
10planet1704
PREDICT FIRST
  • Read the question.
  • Tap your answer.
Which feature do you predict will separate stars from planets better?
  1. Rule A: if brightness is 200 or more, then planet, else star. Check every card and tally the right answers.
  2. Rule B: if size is 3 or more, then planet, else star. Tally again.
  3. Rule C: if size is 4 or more, then planet, else star. Tally again.
  4. Rule D: if size is 5 or more, then planet, else star. Tally again.
  5. Write each total out of 10 in the results table.
RuleTestRight out of 10
Abrightness 200 or more
Bsize 3 or more
Csize 4 or more
Dsize 5 or more
Rule A: right out of 10
Rule B: right out of 10
Rule C: right out of 10
Rule D: right out of 10
Which feature did the best rule use? Type one word.
WHY THIS EXERCISEThe winning cut-off came from the evidence, not from a guess.

Notice what happened. Nobody told you "size 4." The pattern came out of the counting.

This is a tiny, paper stand-in for the idea of learning from data. Real systems need far more examples.

Superb counting! Tomorrow we compare the learned rule with the hand-written one on Sky Sorter.

← Tuesday