Mathwords logoMathwords

Positive and Negative Predictive Values — Definition, Formula & Example

Positive and negative predictive values are the probabilities that a diagnostic test result is correct. PPV tells you how likely you are to actually have a condition after a positive result. NPV tells you how likely you are to be free of it after a negative result.

Let DD be the event that a person has the condition and let ++ and −- denote the test results. The positive predictive value is the conditional probability PPV=P(D∣+)\text{PPV} = P(D \mid +). The negative predictive value is NPV=P(Dc∣−)\text{NPV} = P(D^c \mid -). Unlike sensitivity P(+∣D)P(+ \mid D) and specificity P(−∣Dc)P(- \mid D^c), both predictive values depend on the prevalence P(D)P(D) in the population being tested.

Key Formula

PPV=TPTP+FPNPV=TNTN+FN\text{PPV} = \frac{\text{TP}}{\text{TP} + \text{FP}} \qquad \text{NPV} = \frac{\text{TN}}{\text{TN} + \text{FN}}
Where:
  • TP\text{TP} = True positives: people with the condition who test positive
  • FP\text{FP} = False positives: people without the condition who test positive
  • TN\text{TN} = True negatives: people without the condition who test negative
  • FN\text{FN} = False negatives: people with the condition who test negative

Worked Example

Problem: A screening test has 90% sensitivity and 90% specificity. It is given to 1,000 people, and 10% of them have the condition. Find the PPV and the NPV.
Step 1: Split the group. 10% of 1,000 gives 100 people with the condition and 900 without. Apply sensitivity to the 100 and specificity to the 900 to fill the four cells of a two-way table.
TP=0.90×100=90,FN=10,TN=0.90×900=810,FP=90\text{TP} = 0.90 \times 100 = 90, \quad \text{FN} = 10, \quad \text{TN} = 0.90 \times 900 = 810, \quad \text{FP} = 90
Step 2: For PPV, look only at the positive results. There are 90 true positives and 90 false positives.
PPV=9090+90=90180=0.5\text{PPV} = \frac{90}{90 + 90} = \frac{90}{180} = 0.5
Step 3: For NPV, look only at the negative results. There are 810 true negatives and 10 false negatives.
NPV=810810+10=810820≈0.988\text{NPV} = \frac{810}{810 + 10} = \frac{810}{820} \approx 0.988
Answer: PPV = 0.5 and NPV ≈ 0.988. A positive result means only a 50% chance of having the condition. A negative result means about a 98.8% chance of not having it.

Why It Matters

AP Statistics problems often give a test's accuracy rates and how common a condition is, then ask for the probability of disease given a positive result. You answer with a tree diagram or a two-way table, which is exactly a PPV calculation. Doctors, epidemiologists, and the designers of spam filters and fraud alerts use PPV to judge whether a positive flag is worth acting on.

Common Mistakes

Mistake: Treating sensitivity as the chance that a positive result is correct. A student might say a 90% sensitive test means a positive result is 90% likely to be right.
Correction: Sensitivity is P(+∣D)P(+ \mid D), but PPV is P(D∣+)P(D \mid +). These are reversed conditional probabilities. In the example, sensitivity is 90% but PPV is only 50%, because only 10% of people have the condition, so the 10% of healthy people who test positive (90 people) equal the true positives.

Related Terms