The law of total probability finds an event’s overall probability by adding its probabilities across mutually exclusive, exhaustive cases. Before applying Bayes’ theorem to a positive test, count both ways it can occur: a diseased patient tests positive, or a disease-free patient receives a false positive. section 2.2.2
For a positive test D, add the probabilities of a positive result in each case: disease H and no disease. section 2.2.2
A rare disease and a positive test
With a disease prevalence of 0.001, sensitivity of 0.99, and false-positive rate of 0.01, the overall chance of a positive result is 0.01098. This provides the denominator for Bayes’ theorem, which gives a 9% chance of disease after a positive result. section 2.2.2
