Skip to content
AP Statistics · Probability, Random Variables, and Probability Distributions

Bayes theorem

Bayes theorem appears in 4 reviewed AP Statistics questions and sits in Probability, Random Variables, and Probability Distributions. Below are worked examples showing exactly how the exam tests it, with the answer marked and every distractor explained.

How Bayes theorem is tested

Example 1Harder
A rare disease affects 1 in 5,000 people. A medical test for the disease has a 99% true positive rate (sensitivity) and a 98% true negative rate (specificity). If a randomly selected person tests positive, what is the approximate probability that the person actually has the disease?
  1. AApproximately 99%, because the test has 99% sensitivity
  2. BApproximately 50%, because either the person has it or does not
  3. CApproximately 98%, because the test has 98% specificity
  4. DApproximately 0.5%, because the disease is rare and most positives are false positivesCorrect

Why D is right

Using Bayes' theorem: P(disease | positive) = P(positive | disease) * P(disease) / P(positive). P(disease) = 1/5000 = 0.0002. P(positive | disease) = 0.99. P(positive | no disease) = 0.02. P(positive) = 0.99(0.0002) + 0.02(0.9998) = 0.000198 + 0.019996 = 0.020194. P(disease | positive) = 0.000198/0.020194 ≈ 0.0098, or about 1%. Even with a very accurate test, the extreme rarity of the disease means most positive results are false positives.
Why the other 3 choices miss
A
Incorrect. The 99% sensitivity describes the test's ability to detect the disease when present, not the probability of having the disease given a positive test. When the disease is rare, these are very different quantities.
B
Incorrect. The probability is not 50/50. The base rate (prevalence) of the disease strongly influences the posterior probability through Bayes' theorem.
C
Incorrect. The 98% specificity means 98% of healthy people test negative, but the 2% who test positive vastly outnumber the true positives because healthy people far outnumber sick people.

Studied alongside

Other concepts from Probability, Random Variables, and Probability Distributions.