NCEA Level 1 · Year 11 · Maths · 6 minutes
Probability: tree diagrams and two-way tables
📚 Teaching this? Find more classroom videos and plan the lesson with Kuraplan: https://kuraplan.com/videos
Transcript
A positive test. That sounds like an answer. But in some situations, could it be more likely false than true? In November twenty twenty, the United States Food and Drug Administration warned that rapid antigen tests could give false positives. We're going to investigate the maths behind that problem. Two pictures will crack it: a probability tree, and a two way table.
First, our imaginary screening programme. These are teaching numbers, not the performance of a real test. Imagine ten thousand people. One per cent have a condition: one hundred people. The other nine thousand nine hundred do not. Our test catches ninety nine per cent of people who have the condition. It also wrongly flags two per cent of people who do not. Before we calculate, predict this: will most positives be true or false?
Draw the first split: condition, probability zero point zero one; no condition, zero point nine nine. Branches leaving the same point add to one. Now each group takes a test. From condition, positive is zero point nine nine, negative is zero point zero one. From no condition, positive is zero point zero two, negative is zero point nine eight. Those second probabilities depend on which first branch you followed.
Follow one complete path: condition and positive. Multiply zero point zero one by zero point nine nine. That is zero point zero zero nine nine. Out of ten thousand, that gives ninety nine true positives. Now follow no condition and positive: zero point nine nine times zero point zero two. That is zero point zero one nine eight, giving one hundred and ninety eight false positives. Tiny error rate. Huge starting group. That's the trap.
If you want a positive result, either of those two paths works. They're mutually exclusive: one person cannot both have and not have the condition. So add their probabilities. Zero point zero zero nine nine, plus zero point zero one nine eight, equals zero point zero two nine seven. Across our ten thousand people, that means two hundred and ninety seven positives altogether. Multiply along a path. Add separate, mutually exclusive paths.
Chapter two: put everyone in a table. Rows show condition or no condition. Columns show positive or negative. Our four cells are ninety nine true positives, one false negative, one hundred and ninety eight false positives, and nine thousand seven hundred and two true negatives. Check the edges: the first row totals one hundred; the second, nine thousand nine hundred. The positive column totals two hundred and ninety seven. Every person belongs in exactly one cell.
Chapter three: now the question changes. Given a positive result, what's the probability the person has the condition? Given is a spotlight. Ignore everyone in the negative column. You're choosing from just the two hundred and ninety seven positives. Ninety nine of them have the condition. So divide ninety nine by two hundred and ninety seven. That is one third, about thirty three per cent. In this example, two thirds of positive results are false positives.
Wait. Didn't we say ninety nine per cent? Yes: that's positive given condition. One third is condition given positive. Reversing the words changes the group you start with, and therefore the denominator. The test hasn't changed; the question has. This explains why a positive result needs context, including how common the condition is and how well the test performs. Our imaginary numbers explain the trap; they don't interpret anyone's real test.
Chapter four: your turn. From our table, what's the probability that a randomly chosen person has the condition and tests negative? Pause and choose your denominator. There is one such person out of all ten thousand. So the answer is one over ten thousand. Now change it: given the person has the condition, what's the probability of a negative result? Same cell, new group: one out of one hundred. That's one per cent.
The same branching method works outside medicine. A bag holds three red counters and two white counters. You draw randomly, twice without replacement. For red then white: three fifths times two quarters equals three tenths. Why quarters? One counter has gone. For white then red: two fifths times three quarters, also three tenths. Exactly one red can happen in either order, so add those separate paths: three tenths plus three tenths equals three fifths.
Here's your answer writing toolkit. Label each branch, and check each split adds to one. Multiply along a complete path. Add mutually exclusive paths when either outcome works. In a table, given means restrict the group before dividing. Use those phrases to explain your working, not just decorate it. Back at that positive test, ninety nine true positives sat beside one hundred and ninety eight false positives. The surprise wasn't hidden in the test. It was hidden in the denominator.
Sources
Every fact in the video, and where it comes from.
- 1cdc.gov/locs/2020/fda_issues_safety_letter_about_false…
- On 3 November 2020 the US FDA issued a letter warning that false positives can occur with rapid antigen tests for SARS-CoV-2.
- 2openstax.org/books/introductory-business-statistics/pages/3…
- A two-way contingency table groups observations by two variables; row and column totals identify appropriate denominators for conditional probabilities.
- Constructed teaching example, not measured clinical data: N=10000, prevalence=.01, sensitivity=.99, false positive rate=.02. Cells: TP=99,FN=1,FP=198,TN=9702; row totals 100,9900; column totals297,9703. P(+)=.0297; P(condition|+)=99/297=1/3, P(no condition|+)=2/3; P(+|condition)=99/100=.99; P(condition and negative)=1/10000; P(negative|condition)=1/100=.01. Exact arithmetic, author-calculated using cited rules.
- 3openstax.org/books/introductory-statistics-2e/pages/3-5-tre…
- Probability trees use conditional probabilities on successive branches; multiply along paths, add disjoint paths; branches from one node sum to one.
- Without replacement constructed example: 3 red,2 white. P(RW)=(3/5)(2/4)=3/10; P(WR)=(2/5)(3/4)=3/10; P(exactly one red)=3/5.
- 4ncbi.nlm.nih.gov/books/NBK557491
- Predictive value depends on prevalence as well as sensitivity and specificity; reversing conditional probabilities changes the conditioning group.
Image and sound credits
- “SIEMENS Healthineers CLINITEST Rapid COVID-19 Antigen Test positive” by I prefer not to be attributed for this image. If you absolutely have to, uploader is author. (Public domain) — https://commons.wikimedia.org/wiki/File:SIEMENS_Healthineers_CLINITEST_Rapid_COVID-19_Antigen_Test_positive.jpg
- “Corona Antigen Rapid Test (50688051641)” by dronepicr, CC BY 2.0 (https://creativecommons.org/licenses/by/2.0/) — https://commons.wikimedia.org/w/index.php?curid=97319355
- “LRMC’s process for COVID-19 testing (6143253)” by Marcy Sanchez (Public domain) — https://commons.wikimedia.org/wiki/File:LRMC%E2%80%99s_process_for_COVID-19_testing_(6143253).jpg
- “LRMC’s process for COVID-19 testing (6143255)” by Marcy Sanchez (Public domain) — https://commons.wikimedia.org/wiki/File:LRMC%E2%80%99s_process_for_COVID-19_testing_(6143255).jpg
- “NHGRI researcher uses a pipette to remove DNA from a micro test tube” by Maggie Bartlett, NHGRI (Public domain) — https://commons.wikimedia.org/wiki/File:NHGRI_researcher_uses_a_pipette_to_remove_DNA_from_a_micro_test_tube.jpg
- “LRMC’s process for COVID-19 testing (6143254)” by Marcy Sanchez (Public domain) — https://commons.wikimedia.org/wiki/File:LRMC%E2%80%99s_process_for_COVID-19_testing_(6143254).jpg
- “Corner of Stockton and Jackson Street, crowd, San Francisco (April 2007)” by Jennifer Woodard Maderazo, CC BY 2.0 (https://creativecommons.org/licenses/by/2.0) — https://commons.wikimedia.org/wiki/File:Corner_of_Stockton_and_Jackson_Street,_crowd,_San_Francisco_(April_2007).jpg
- “Marbles in glass” by Glenda Green, CC BY 3.0 (https://creativecommons.org/licenses/by/3.0) — https://commons.wikimedia.org/wiki/File:Marbles_in_glass.jpg
- Paper textures: ambientCG (CC0).
- Sound effects: Freesound contributors (CC0), see public/kit/sfx/CREDITS.txt.
- Voice: Gemini TTS. Music: ACE-Step.
- Photos show illustrative testing scenes; the numerical example is fictional.
Teaching this next week?
Kuraplan turns this topic into a lesson plan, slides and a worksheet for your class in about a minute.
Plan a lesson on this topic