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."
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.
| Card | Label | Brightness | Size |
|---|---|---|---|
| 1 | star | 120 | 2 |
| 2 | planet | 230 | 5 |
| 3 | star | 210 | 3 |
| 4 | planet | 190 | 4 |
| 5 | star | 60 | 2 |
| 6 | planet | 240 | 6 |
| 7 | star | 225 | 1 |
| 8 | planet | 205 | 5 |
| 9 | star | 100 | 3 |
| 10 | planet | 170 | 4 |
| Rule | Test | Right out of 10 |
|---|---|---|
| A | brightness 200 or more | |
| B | size 3 or more | |
| C | size 4 or more | |
| D | size 5 or more |
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.