01 / 21

Predictive Values
& Prevalence

Understand how disease prevalence shapes the meaning of a positive or negative test result: the keys to PPV and NPV.

Biostatistics

What Is a Diagnostic Test?

A diagnostic test classifies individuals as positive (likely has the disease) or negative (likely disease-free). But no test is perfect: it can produce true and false results in both directions.

True Positive (TP)
Test says "positive" and the person truly has the disease.
False Positive (FP)
Test says "positive" but the person is actually healthy.
False Negative (FN)
Test says "negative" but the person actually has the disease.
True Negative (TN)
Test says "negative" and the person truly is healthy.

The \(2 \times 2\) Contingency Table

\(\text{Disease}^+\)
\(\text{Disease}^-\)
\(\text{Test}^+\)
\(\text{Test}^-\)
TP FP FN TN \(\text{PPV} = \frac{\text{TP}}{\text{TP} + \text{FP}}\) \(\text{NPV} = \frac{\text{TN}}{\text{TN} + \text{FN}}\)

Sensitivity & Specificity

Before we dive into predictive values, we need two intrinsic test properties that do not depend on prevalence:

Sensitivity (Sn)
The probability the test is positive given the person has the disease: \(\text{Sn} = \frac{TP}{TP + FN}\)
Specificity (Sp)
The probability the test is negative given the person is healthy: \(\text{Sp} = \frac{TN}{TN + FP}\)

What Are PPV & NPV?

Positive Predictive Value
If the test result is positive, what is the probability the person truly has the disease? $$\text{PPV} = \frac{TP}{TP + FP}$$
Negative Predictive Value
If the test result is negative, what is the probability the person truly is disease-free? $$\text{NPV} = \frac{TN}{TN + FN}$$

The Bayes' Theorem Connection

PPV can be derived directly from Bayes' theorem. Let \(p\) = prevalence, \(\text{Sn}\) = sensitivity, and \(\text{Sp}\) = specificity:

Why Prevalence Changes Everything

Curves shown for \(\text{Sn} = 95\%\), \(\text{Sp} = 95\%\)

Predictive Value (%) Prevalence (%) 0 25 50 75 100 10 30 50 70 90 PPV NPV

Intrinsic vs. Extrinsic Measures

Intrinsic (Test Property) Extrinsic (Population-Dependent)
Measures Sensitivity, Specificity PPV, NPV
Depends on Prevalence? No Yes
Conditions on True disease status Test result
Clinical Question "How good is this test?" "What does my result mean?"

The Prevalence Paradox

Imagine screening 10,000 people for a disease with prevalence = \(1\%\), using a test with \(\text{Sn} = 95\%\) and \(\text{Sp} = 95\%\).

100 Diseased
(\(1\%\) of 10,000)
9,900 Healthy
(\(99\%\) of 10,000)
TP = 95
\(\text{Sn} = 95\%\)
FN = 5 FP = 495
\(5\%\) of 9,900
TN = 9,405 \(\text{PPV} = \frac{95}{95 + 495} = 16.1\%\)

How Prevalence Shifts the Numbers

Same test (\(\text{Sn} = 95\%\), \(\text{Sp} = 95\%\)), different populations:

Prevalence PPV NPV
\(1\%\) \(16.1\%\) \(99.9\%\)
\(10\%\) \(67.9\%\) \(99.4\%\)
\(50\%\) \(95.0\%\) \(95.0\%\)
\(90\%\) \(99.4\%\) \(67.9\%\)

Intuition: Why Low Prevalence Tanks PPV

1
Huge healthy pool. When prevalence is low, the vast majority of people tested are healthy.
2
Even a small FP rate creates many false alarms. \(5\%\) of 9,900 healthy people = 495 false positives.
3
True positives are few. \(95\%\) of only 100 diseased people = 95 true positives.
4
FP swamps TP. So \(\text{PPV} = \frac{95}{95 + 495}\) is very low because false positives outnumber true positives.

How to Calculate PPV & NPV

1
Choose a convenient population size. Pick \(N = 10{,}000\) (or \(1{,}000\)) for easy arithmetic.
2
Split by disease status. Diseased = \(N \times p\). Healthy = \(N \times (1 - p)\).
3
Apply sensitivity. \(\text{TP} = \text{Diseased} \times \text{Sn}\). \(\text{FN} = \text{Diseased} - \text{TP}\).
4
Apply specificity. \(\text{TN} = \text{Healthy} \times \text{Sp}\). \(\text{FP} = \text{Healthy} - \text{TN}\).
5
Compute PPV & NPV. \(\text{PPV} = \frac{\text{TP}}{\text{TP}+\text{FP}}\), \(\text{NPV} = \frac{\text{TN}}{\text{TN}+\text{FN}}\).

Example 1: HIV Screening

A rapid HIV test has \(\text{Sn} = 99.7\%\) and \(\text{Sp} = 99.5\%\). Prevalence in a low-risk population is \(0.1\%\). Screen 100,000 people.

1
Diseased = \(100{,}000 \times 0.001 = 100\). Healthy = \(99{,}900\).
2
TP = \(100 \times 0.997 = 99.7\). FN = \(100 \times 0.003 = 0.3\).
3
FP = \(99{,}900 \times 0.005 = 499.5\). TN = \(99{,}900 \times 0.995 = 99{,}400.5\).
4
PPV = \(\frac{99.7}{99.7 + 499.5} = \frac{99.7}{599.2} \approx\) \(16.6\%\). NPV = \(\frac{99{,}400.5}{99{,}400.5 + 0.3} \approx\) \(99.9997\%\).

Example 2: Strep Throat in a Clinic

A rapid strep test: \(\text{Sn} = 86\%\), \(\text{Sp} = 95\%\). In a pediatric clinic during winter, prevalence = \(30\%\). Use \(N = 1{,}000\).

1
Diseased = 300. Healthy = 700.
2
TP = \(300 \times 0.86 = 258\). FN = 42.
3
TN = \(700 \times 0.95 = 665\). FP = 35.
4
PPV = \(\frac{258}{258+35} = \frac{258}{293} \approx\) \(88.1\%\). NPV = \(\frac{665}{665+42} = \frac{665}{707} \approx\) \(94.1\%\).

Example 3: Direct Bayes Formula

A mammogram has \(\text{Sn} = 90\%\) and \(\text{Sp} = 88\%\). Breast cancer prevalence in screened women age 40-49 is about \(1.5\%\). Find PPV using the formula directly:

About 9 out of 10 positive mammograms in this age group are false alarms: a vital fact for patient counseling.

Common Mistakes

Confusing Sensitivity with PPV
Sensitivity conditions on disease status. PPV conditions on the test result. They answer different questions.
Ignoring Prevalence
Assuming a "\(99\%\) accurate" test means \(99\%\) of positives are correct. Without knowing prevalence, you cannot determine PPV.
Mixing Up Rows and Columns
PPV uses the Test+ row (TP + FP). Sensitivity uses the Disease+ column (TP + FN). Swapping them gives the wrong answer.

Question 1 of 5

A disease has a prevalence of \(5\%\). A test has sensitivity = \(90\%\) and specificity = \(90\%\). In a group of 10,000 people, how many false positives would you expect?

Question 2 of 5

All else being equal, what happens to PPV when the prevalence of the disease increases?

Question 3 of 5

A test has \(\text{Sn} = 95\%\) and \(\text{Sp} = 95\%\). Prevalence is \(50\%\). What is the PPV?

Question 4 of 5

Which of the following is NOT affected by disease prevalence?

Question 5 of 5

In a low-prevalence population, a test with \(99\%\) sensitivity and \(99\%\) specificity produces a positive result. Which statement best describes the situation?