Bayes’ Theorem Visualization
Compare prior and posterior probabilities with a hypothetical screening test and an interactive probability area diagram.
P(H|E) = P(E|H) · P(H)P(E)
Probability of the condition given a positive result
9.9 / 109.8 ≈ 9.02%
Expected counts in 10,000 people
- Condition present
- 10
- True positives
- 9.9
- Condition absent
- 9,990
- False positives
- 99.9
- Total positives
- 109.8
Expected population breakdown
True positives 9.9
False negatives 0.1
False positives 99.9
True negatives 9,890.1
Probability comparison
Posterior probability P(H|E)
40.00% / 50.00% = 80.00%
P(H) = 50%
P(H∩E) = 40.00%
P(E) = 40.00% + 10.00% = 50.00%
Probability area diagram
Probability comparison
Read the denominator
Adding the H and ¬H branches gives P(E). In the screening example, these branches contribute true positives and false positives. The posterior uses all positive results as its denominator.