Enrichment · STEM Explorations
Set how common something is and how often a clue turns up when it is true and when it is not. Guess the new chance, then check yourself against a count of 1,000 cases, a tree and the arithmetic. Add more clues and watch the chance move.
The worked example is a made-up screening test for a condition that 1 person in 100 has. Lock in a guess before you look at the answer. Five more examples are in the menu.
Loading the visualizer. If nothing appears, turn on JavaScript.
Enrichment · STEM ExplorationsFree
One division, shown three ways.
Bayes’ rule answers one question: after a clue shows up, what share of all the ways that clue can show up are cases where the thing is true. Written with probabilities, P(true | clue) = P(true) × P(clue | true) ÷ [P(true) × P(clue | true) + P(not true) × P(clue | not true)].
In the worked example that is 1% × 90% ÷ (1% × 90% + 99% × 9%) = 0.9% ÷ 9.81% = 9.2%. The squares and the tree show the same division with whole people: 9 of 98.
The strength of a clue is its likelihood ratio: how many times as likely the clue is when the thing is true as when it is not. Multiply the odds you started with by that ratio and you have the new odds. A second clue multiplies again, which is why the order does not matter. The chain assumes each clue is independent of the others once the truth is known. Real clues often overlap, such as a repeat of the same test on the same sample, and then they count for less.
The starting chance is the prior or base rate, and the result is the posterior. For a medical test, the chance of a positive result when the condition is present is the test’s sensitivity, and the chance of a positive when it is absent is 1 minus its specificity. The share of positives that are true is the positive predictive value.
The squares use whole-number arithmetic, so the four groups always add up to the total. Before each release the calculator is run against exact fractions on 4,500 random cases and has to agree on every one.
Every example uses made-up numbers. This page does arithmetic; it does not interpret a real medical test or any other real result. For the accuracy of a real test, and for what a result means for you, ask the clinician or the laboratory that ordered it. Support: team@caveatacademic.com.