No computers needed. This is Block A’s main activity. Students become the language model.
Prep time: about 15 minutes for the small version and about 35 for the full version. Students can help fill the bags as a counting exercise. That is the training!
cat slip in the the bag and a sat slip in the cat bag.
The period . counts as a word, so sentence endings get their own bag.The cat sat on the mat. The dog sat on the log. The cat saw the dog. The dog saw the cat.
26 words → 25 slips in 9 bags:
| Bag | Slips inside | Total |
|---|---|---|
| the | cat Ă—3, dog Ă—3, mat Ă—1, log Ă—1 | 8 |
| cat | sat Ă—1, saw Ă—1, . Ă—1 | 3 |
| dog | sat Ă—1, . Ă—1, saw Ă—1 | 3 |
| sat | on Ă—2 | 2 |
| on | the Ă—2 | 2 |
| saw | the Ă—2 | 2 |
| . | the Ă—3 | 3 |
| mat | . Ă—1 | 1 |
| log | . Ă—1 | 1 |
(The very last period has nothing after it, so it adds no slip. That’s why there are 25 slips and not 26.)
tiny_story.txt67 words → 66 slips in 17 bags:
| Bag | Slips inside | Total |
|---|---|---|
| the | cat Ă—5, dog Ă—5, mat Ă—2, tree Ă—2, bird Ă—2, sun Ă—2, log Ă—1 | 19 |
| . | the Ă—8, a Ă—1 | 9 |
| cat | sat Ă—2, saw Ă—1, . Ă—1, ran Ă—1 | 5 |
| dog | . Ă—2, sat Ă—1, saw Ă—1, ran Ă—1 | 5 |
| sat | on Ă—3, in Ă—1 | 4 |
| on | the Ă—3 | 3 |
| saw | the Ă—3 | 3 |
| bird | sat Ă—1, sang Ă—1, saw Ă—1 | 3 |
| mat | . Ă—2 | 2 |
| ran | to Ă—2 | 2 |
| to | the Ă—2 | 2 |
| tree | . Ă—2 | 2 |
| in | the Ă—2 | 2 |
| sun | . Ă—2 | 2 |
| log | . Ă—1 | 1 |
| a | bird Ă—1 | 1 |
| sang | in Ă—1 | 1 |
These are exactly the counts that count_pairs produces in the lab, so students can
check their bags against the computer in Block B.
Give each student one or two bags. The the and . bags are busiest, so give them to students who like being in the action. With 5 students (summer), use the small version, about 2 bags each.
cat come out of the the bag so often?” (More slips, from more counting.)Claude Shannon’s 1951 experiment, done as a class:
_ _ _ _ _ _ ..., with a gap between words.What happens: the first letters of words take many guesses, but later letters often take just one (“elepha_” → “n”). Shannon used tallies like these to estimate that English carries only about 0.6 to 1.3 bits per letter when you can see a lot of text before the gap. Most of what we write is predictable.
The connection: this is exactly the job GPT is trained on. It plays the guessing game billions of times, and “loss” measures how surprised it was by the right answer.