Why a positive test means different things in different groups
A worked MedQ-AI example showing how prevalence changes the meaning of a positive result while sensitivity and specificity stay fixed.
Compare two groups of 1,000
Suppose a fictional test has 90% sensitivity and 90% specificity in both groups. In Group A, 10% have the condition. In Group B, 50% have it. Start by counting positive results among people with the condition and among those without it.
| Count | Group A | Group B |
|---|---|---|
| With the condition | 100 | 500 |
| True positives | 90 | 450 |
| Without the condition | 900 | 500 |
| False positives | 90 | 50 |
| Probability of the condition after a positive test | 90 ÷ 180 = 50% | 450 ÷ 500 = 90% |
Look at who makes up the positives
The false-positive rate among people without the condition is 10% in both groups. The lower-prevalence group has more people without the condition, so that same rate produces more false positives. The positive predictive value counts true positives among all positive results.
Try a third group
Keep sensitivity and specificity at 90%. If 20% of the next 1,000 people have the condition, how many people test positive in each category?
Show the calculation
There are 180 true positives out of 200 people with the condition and 80 false positives out of 800 without it. The positive predictive value is 180 ÷ 260, or about 69%.
The percentages are teaching assumptions. Altman and Bland’s BMJ note on predictive values explains how prevalence affects these measures. This worked example is part of the learning resources from MedQ-AI, founded by Chris Taicher, MD.