Positive Predictive Value

Probability
Bayes Theorem
Conditional Probability
Medical Testing
Author

Apurva Nakade

Published

August 1, 2026

A standard mammogram has 80% sensitivity and 90% specificity: if you have cancer, it comes back positive 80% of the time; if you don’t, it comes back negative 90% of the time. You test positive. What are the odds you actually have cancer? Drag the sliders below — the dots are a simulated population, red for the fraction with the condition, dark for the fraction without.

Why this matters

Even with a highly accurate test, a positive result is far less conclusive than it sounds when the condition is rare: there are so many more healthy people that a small false-positive rate among them can outnumber the true positives among the few who are actually sick. That’s what the shaded regions above show — the region between the lines mixes true and false positives, and at low prevalence the false ones dominate.

This is also why retesting works so well. Each repeat test is applied to a population where the effective prevalence has already jumped to the previous round’s PPV, so the same sensitivity and specificity produce a much sharper result — and the chance of missing the condition across repeated tests (the false-negative rate, compounding each round) shrinks just as fast. These updates are exactly what Bayes’ theorem formalizes: \(P(\text{condition} \mid \text{positive}) = \dfrac{P(\text{positive} \mid \text{condition})\, P(\text{condition})}{P(\text{positive})}\).