# How prevalence changes the meaning of a positive test

By Rehan Vaid

When a condition is uncommon, even a test with high sensitivity and specificity can yield more false positives than true positives.

## Research question

Why can the same test produce a different proportion of genuine positives in two populations?

## Answer

Positive predictive value is the proportion of positive results that correspond to the target condition. Even if sensitivity and specificity are identical in two populations, prevalence determines how many people with and without the condition are tested. In a population with fewer people who have the condition, there are fewer true positives and more opportunities for false positives. As a result, a positive finding can carry a different probability of the condition in each setting.

## Use the correct denominator

Sensitivity uses people with the condition as its denominator. Specificity uses people without it. Positive predictive value uses all positive results, including both true and false positives. Keeping these denominators separate prevents a statement such as 90% sensitivity from being read as a 90% probability that any positive result represents the condition.

## Compare two hypothetical populations

Assume 10,000 people per population, with 90% sensitivity and 95% specificity in both. At 1% prevalence, the test yields 90 true positives and 495 false positives. The predictive value is 90 out of 585, or 15.4%. At 10% prevalence, the respective counts are 900 and 450, and the predictive value is 900 out of 1,350, or 66.7%. The arithmetic changes with prevalence alone in this example.

## Check the population before transferring the estimate

Real tests may behave differently across settings because disease severity, competing diagnoses, the reference standard and verification procedures can vary. A reported predictive value therefore belongs with the study’s recruitment method and case definition. The hypothetical cohorts isolate one source of variation and supply no performance estimate for a named test.

## Positive predictive value at two prevalences

Hypothetical calculation

In each scenario, 10,000 people are tested at 90% sensitivity and 95% specificity. Positive predictive value is true positives divided by all positive results. Values are rounded to one decimal place.

- 1% prevalence. True positives = 90, False positives = 495, Predictive value (%) = 15.4.

- 10% prevalence. True positives = 900, False positives = 450, Predictive value (%) = 66.7.

[Figure data (CSV)](https://journalofbiohacking.com/assets/field-notes/predictive-value.csv)

## Following the negative results

In the article’s hypothetical population with 1% prevalence, ten people with the condition and 9,405 people without it receive a negative result. The negative predictive value is 9,405 divided by 9,415, approximately 99.9%. The denominator differs from the denominator for positive predictive value. A report that uses only the word accuracy leaves both conditional questions open.

[Video transcript](https://journalofbiohacking.com/assets/field-notes/predictive-value-transcript.txt)

## References

- [Merck Manual Professional Edition. Understanding Medical Tests and Test Results](https://www.merckmanuals.com/professional/special-subjects/clinical-decision-making/understanding-medical-tests-and-test-results). Read the sections on sensitivity, specificity, predictive values and dichotomous tests. Both numerical scenarios in this article are newly calculated hypothetical examples.

- [FDA statistical guidance for studies evaluating diagnostic tests](https://www.fda.gov/regulatory-information/search-fda-guidance-documents/statistical-guidance-reporting-results-studies-evaluating-diagnostic-tests-guidance-industry-and-fda). Read the guidance text on predictive values and assessment against a reference standard.

[Read this article online](https://journalofbiohacking.com/field-notes/predictive-value/)
