1,000-Person Frequency Grid & Bayes' Tree Explorer
Visualize prior prevalence, true positives, and false positives as concrete counts in a unit square and probability tree.
Watch conditioning shrink the entire universe to what actually happened—and see why rare conditions make positive tests surprising.
Medical diagnostics, email spam classification, sensor anomaly filtering, and forensic evidence evaluation.
How does observing evidence shrink the sample universe to —and why does base-rate neglect deceive intuition on rare events?
Conditioning discards every world where failed and re-normalizes remaining outcomes so true-positive probability divides by all positives (true plus false).
When prior prevalence is small, even a tiny false-positive rate multiplied across the large healthy majority can swamp true positives inside Bayes' denominator.
If a medical test is 95% accurate and you test positive for a 1%-prevalence condition, why is your real chance of having it nowhere near 95%?
Adjust disease prevalence P(H), sensitivity P(E|H), and false-positive rate P(E|Hᶜ) across a 1,000-person frequency mosaic and synchronized probability tree.
Base-rate neglect confuses P(E|H) with P(H|E). Next, Chapter S.2.3 tracks discrete counts and waiting times generated by repeated random trials.
Suppose a rare condition affects only 1% of people, and a screening test correctly spots 95% of sick people (with a 5% false-positive rate on healthy people). You test positive! How worried should you be? Most people guess 95%—yet the true answer is only 16.1%! Why? Because there are so many more healthy people than sick people that even a tiny 5% false alarm produces roughly 50 healthy positives alongside only 10 true positives. Click Zoom Into Evidence E⁺ in the 1,000-person grid below to see conditioning literally erase everyone who tested negative!
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
Read as “Hypothesis , given we already know Evidence happened.” We throw out all non- outcomes and divide the remaining slice by the new shrunk universe .
Since , Bayes simply splits all ways evidence can happen into two tree branches: True Positives plus False Positives (the Law of Total Probability).
Out of 1,000 people at 1% prevalence:
This mistake is so dangerous in courtrooms it is called the Prosecutor's Fallacy: “Probability of a random DNA match if innocent = 0.5%” is , NOT “chance the defendant is innocent given a DNA match” ! Always pause and draw the 1,000-person tree first.
Click + Apply 2nd Independent Positive Test above: your updated 16.1% becomes the brand-new Prior, and a second positive leaps to ~78.4%! Updating beliefs continuously as data arrives is the heartbeat of modern Bayesian AI.
Partitioning expresses the marginal evidence denominator as a weighted average over hypotheses—forming a genuine conditional probability measure on the reduced space .
Out of people, roughly are true positives while are false positives from the healthy majority! Natural frequency counts cure base-rate neglect instantly.
Assuming conditional independence of two confirmatory tests multiplies odds by —raising a suspect result after one positive test cleanly to after a second!
Visualize prior prevalence, true positives, and false positives as concrete counts in a unit square and probability tree.
Even with 95% sensitivity and 95% specificity (5% false positives), in 1,000 people there are ~50 false positives vs. ~10 true positives—so a single positive test is only ~16.1% likely to be real!