Math Bell Ringer for Grades 9–12: Conditional probability and base rates with a spam filter
A free math bell ringer for grades 9–12. Put the prompt on the board as students walk in, give them three to five minutes, then go over it together. The answer and teacher notes are in the box below the prompt.
The prompt
An email filter is tested on 1,000 messages. Of these, 20% are spam. The filter flags 95% of spam messages, and it wrongly flags 2% of legitimate messages. (These numbers are made up for practice.) (a) Fill in a two-way table with rows Spam and Legitimate and columns Flagged and Not Flagged. (b) Find P(flagged). (c) Find P(spam | flagged). (d) Now suppose only 1% of messages are spam, but the filter works the same way. Find the new P(spam | flagged). Why does it change so much?
Answer and teacher notes
(a) Spam: 200 total, so 190 flagged and 10 not flagged. Legitimate: 800 total, so 16 flagged and 784 not flagged. (b) (190 + 16) ÷ 1,000 = 0.206. (c) 190 ÷ 206 ≈ 0.922, about 92%. (d) Of 1,000 messages, 10 are spam and 990 are legitimate. Flagged spam: 10 × 0.95 = 9.5. Flagged legitimate: 990 × 0.02 = 19.8. P(spam | flagged) = 9.5 ÷ 29.3 ≈ 0.324, about 32%. When spam is rare, false alarms from the huge group of legitimate messages outnumber the true catches.
Check on (c) with Bayes' rule: (0.95 × 0.20) ÷ (0.95 × 0.20 + 0.02 × 0.80) = 0.19 ÷ 0.206 ≈ 0.922. ✓ Common mistake: thinking P(spam | flagged) equals P(flagged | spam), or 95%. Those are different questions with different denominators. The idea is called the base rate: how common something is to begin with. In (d), fractions of a message are fine because these are expected counts. Extension: suppose you could change only the false-alarm rate. What rate would you need in (d) to get P(spam | flagged) above 90%? (About 0.1%: 9.5 ÷ (9.5 + 0.99) ≈ 0.906.)
Free to use. Copy, print, project or adapt any of these for your students. If you share them online, please credit Daily Bell Ringers with a link. Not for resale. License: CC BY-NC 4.0.
Browse the full Bell Ringer Library by subject and grade.