Statisticsdrill

Level 2: Probability Problem 15 of 53 Pro

Bayes: a positive screening result

A statistics problem from Statisticsdrill. Solve it with one answer box, with a fresh sample on every attempt and the worked steps and spreadsheet function in the answer, and it is checked the moment you submit.

The task

Suppose a screening test checks patients for a condition. 0.5% of items are affected. The screen flags 85% of affected items (sensitivity) and correctly clears 99% of the others (specificity). A patient is flagged. What is the probability it is really affected? Round to 4 decimal places.

What this problem teaches

The formula: P(D | +) = P(+ | D) P(D) / [ P(+ | D) P(D) + P(+ | not D) P(not D) ]. When the condition is rare, most flags are false alarms even with an accurate screen.

A hint if you get stuck

P(true | flagged) = true flags / all flags. All flags = prevalence × sensitivity + (1 - prevalence) × (1 - specificity).

This problem is part of Pro

Pro unlocks all 53 problems, with worked solutions and progress saved to your account. The free problems work without an account.

You create a free account first, so Pro is attached to it.

Monthly is charged today and then every month until you cancel, in one click from your account page. Lifetime is one payment with no renewals. Full refund within 14 days of paying.

Start with the free problems

More problems in Probability