Screening test accuracy calculator (PPV/NPV)

Enter sensitivity, specificity and prevalence; see what a positive result really means on an icon array of 1,000 people. With GAD-7, PHQ-9 and AI-detector examples.

What does “90% accurate” mean?

A screening test’s accuracy is described by two numbers: sensitivity (the share of people with the condition it catches) and specificity (the share of people without it that it correctly clears). But for an individual the key question is different: “My test came back positive; how likely is it that I really have this?” The answer, the positive predictive value (PPV), depends less on the test than on how common the condition is.

For the GAD-7 anxiety screen at a cut-off of 10, reported sensitivity is 89% and specificity 82%. Imagine screening 1,000 people in a community with 5% prevalence: 50 have the condition and the test catches about 45. But about 171 of the 950 without it also test positive. Of 216 positives, only 45 are real: about 21%. The same test becomes far more accurate in a psychiatric clinic, where prevalence is higher.

How to use it

Choose an example or adjust sensitivity, specificity and prevalence with the sliders. The tool calculates positive and negative predictive values, likelihood ratios and the probability if a second, independent test is also positive. Above all, it shows the result on a crowd of 1,000 people: psychologist Gerd Gigerenzer’s work showed that thinking in “how many out of 1,000” rather than percentages makes these calculations far easier to grasp.

Algorithms and individuals

The same logic applies far beyond health. In the hypothetical AI text detector example, a tool with 90% sensitivity and 95% specificity, in a class where 10% of students use AI, wrongly accuses one in three of the texts it flags. Facial recognition, risk scoring or fraud detection systems also produce many false alarms when searching for rare events. A system’s “high accuracy” doesn’t mean its decisions about individuals are correct. That’s also why the site’s GAD-7 and PHQ-9 screens are invitations to assessment, not diagnoses.

Sources

Spitzer, R. L., Kroenke, K., Williams, J. B. W., & Löwe, B. (2006). A brief measure for assessing generalized anxiety disorder: The GAD-7. Archives of Internal Medicine, 166(10), 1092–1097. · Kroenke, K., Spitzer, R. L., & Williams, J. B. W. (2001). The PHQ-9. Journal of General Internal Medicine, 16(9), 606–613. · Gigerenzer, G., & Hoffrage, U. (1995). How to improve Bayesian reasoning without instruction: Frequency formats. Psychological Review, 102(4), 684–704.

Prevalence values are illustrative. All calculations run in your browser.

Frequently asked questions

What’s the difference between sensitivity and positive predictive value?
Sensitivity is the share of people with the condition who test positive. Positive predictive value is the share of people who test positive who really have the condition. The first is a property of the test; the second depends on prevalence.
My screening test was positive; what should I do?
A positive screening result isn’t a diagnosis but a signal for a fuller assessment. You can discuss it with a mental health professional or your doctor.
What are likelihood ratios for?
LR+ shows how much a positive result raises the probability, LR− how much a negative result lowers it. An LR+ above 10 or an LR− below 0.1 is considered strong evidence.
Why does the second-test calculation assume independence?
Because repeating the same test usually repeats the same errors. The second test is assumed to use a different method; since tests can be partly correlated in reality, the value is an optimistic upper bound.

02 Systems

Organisations, data and design

People can only be as well as the systems they live in. I work in four areas so that workplaces, interfaces, trainings and processes fit the people who use them:

Related training

Evidence literacy: What numbers can and can’t say about people

We can work on this together for your team or organisation.

Request a training