Conditional probability: ten thousand people, two circles, and a fraction of one of them

Quiz 0, question 5. A disease affects 1% of people. The test is positive for 99% of those who have it, and for 5% of those who do not. Someone tests positive: P(disease | positive)?

The population sorted into two overlapping circles, with one conditional probability highlighted Left: ten thousand small squares. Pink means sick and positive, black means sick but missed by the test, blue means well but positive, pale means well and negative. Press sort and the squares rearrange, without leaving the square, into two overlapping discs: one holding everyone who is sick, one holding everyone who tested positive, with areas exactly proportional to the counts. Choosing a probability dims everyone outside its denominator, so the answer is the visible fraction of the circle that stays lit. Right: the same four counts as a tree.
prevalence% sensitivity% false positive rate%
sort 0.00 highlight