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%

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
Each cell represents 10 people. The colored areas follow the expected counts.

Probability comparison

The strip shows positive results. Blue is true positives and orange is false positives.

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.