๐Ÿ“Š FormStat
FormStat Guides ยท By Abdul Hannan

Sensitivity and Specificity Explained (With PPV, NPV and Likelihood Ratios)

Every diagnostic test you will ever order โ€” a rapid dengue test, a urine dipstick, a screening questionnaire โ€” is judged by the same handful of numbers: sensitivity, specificity, predictive values, and likelihood ratios. They appear in viva questions, in journal articles, and in the fine print of every test kit. This guide builds all of them from one simple table, then shows you the one idea students most often miss: why the same test can be trustworthy in a hospital ward and misleading in a screening camp.

The Setup: A Test Against the Gold Standard

To evaluate a test, you compare it against the best available reference โ€” the gold standard โ€” in the same patients. Each person then falls into one of four boxes:

Disease: PresentDisease: AbsentTotal
Test positiveTrue positive (TP) = 90False positive (FP) = 10100
Test negativeFalse negative (FN) = 10True negative (TN) = 90100
Total100100200

Imagine testing 200 people: 100 truly have the disease and 100 truly do not. The test correctly catches 90 of the diseased, misses 10, correctly clears 90 of the healthy, and wrongly labels 10 as positive. Every measure below is just a different way of slicing these four numbers.

Sensitivity and Specificity: Properties of the Test

Sensitivity answers: of all the people who truly have the disease, how many does the test catch?

Sensitivity = TP รท (TP + FN) = 90 รท 100 = 90%

The 10 missed patients are the false negatives โ€” the dangerous error when missing a diagnosis is costly.

Specificity answers: of all the people who truly do not have the disease, how many does the test correctly clear?

Specificity = TN รท (TN + FP) = 90 รท 100 = 90%

Notice that sensitivity only looks at the diseased column and specificity only at the healthy column. Neither one knows anything about how common the disease is in your population โ€” remember that; it becomes crucial below.

PPV and NPV: What the Patient Actually Asks

A patient never asks "what is this test's sensitivity?" They ask: "My test is positive โ€” what is the chance I really have the disease?" That is the positive predictive value (PPV):

PPV = TP รท (TP + FP) = 90 รท 100 = 90%

And the mirror question โ€” "my test is negative, am I clear?" โ€” is the negative predictive value (NPV):

NPV = TN รท (TN + FN) = 90 รท 100 = 90%

In this tidy example everything is 90%, which makes it a friendly first example โ€” but notice that PPV and NPV read the table by rows (among test-positives, among test-negatives), while sensitivity and specificity read by columns. That difference is exactly where prevalence enters.

Likelihood Ratios and the Youden Index

Likelihood ratios compress a test's performance into how much a result should change your mind:

As rough benchmarks: LR+ above 10 or LRโˆ’ below 0.1 is strong evidence; values near 1 mean the test barely changes anything. Likelihood ratios are popular in evidence-based medicine because, unlike PPV, they do not depend on prevalence โ€” you combine them with your own pre-test probability for the patient in front of you.

The Youden index (J) = sensitivity + specificity โˆ’ 1 = 0.90 + 0.90 โˆ’ 1 = 0.8. It is a single summary score for a test (1 is perfect, 0 is useless) and is commonly used to pick the best cut-off point on an ROC curve.

The Prevalence Effect: Same Test, Shocking Difference

Now take the identical test โ€” still 90% sensitive, still 90% specific โ€” and use it for mass screening where the disease is rare: prevalence 1%. Test 10,000 people:

Disease: PresentDisease: AbsentTotal
Test positiveTP = 90FP = 9901,080
Test negativeFN = 10TN = 8,9108,920
Total1009,90010,000

Only 100 of the 10,000 people have the disease; the test catches 90 of them. But among the 9,900 healthy people, a 90%-specific test still produces 10% false positives โ€” 990 of them. Now compute the PPV:

PPV = 90 รท 1,080 โ‰ˆ 8.3%

Read that again. The same test, with the same sensitivity and specificity, went from a PPV of 90% to a PPV of about 8%. Over 9 out of 10 positive results in this screening camp are false alarms. Sensitivity and specificity did not change โ€” they are properties of the test. PPV collapsed because predictive values are properties of the test plus the population. This is why screening rare diseases in low-prevalence populations always needs a confirmatory test for positives, and why examiners love this calculation. (The NPV, meanwhile, rises to nearly 100% โ€” a negative result in a low-prevalence setting is very reassuring, another reason the calculation matters.)

SnOut and SpIn: The Two Mnemonics Worth Memorizing

SnOut: a highly Sensitive test, when Negative, rules the disease Out. If a test catches nearly everyone with the disease, a negative result leaves little room for the disease to hide. Sensitive tests are for ruling out โ€” and for screening, where missing a case is the worst outcome.

SpIn: a highly Specific test, when Positive, rules the disease In. If a test almost never cries wolf in healthy people, a positive result is strong evidence the disease is truly present. Specific tests are for confirming.

Screening Tests vs Confirmatory Tests

This is the practical application of SnOut/SpIn. A screening test is applied to large, mostly healthy populations: it must be cheap, safe, and above all sensitive โ€” catch every possible case, accepting false positives along the way. A confirmatory test is then applied to the screen-positives: it must be specific โ€” sort the true cases from the false alarms before treatment or labeling begins. The prevalence example above is exactly this logic in numbers: screening with the first test alone would tell 990 healthy people they might be sick; the confirmatory step rescues them. When you design or critique a screening program in community medicine, this two-step structure โ€” and the prevalence of the target population โ€” is the heart of the discussion.

Which Error Is Worse? It Depends on the Disease

No real test maximizes both measures at once, so choosing a test โ€” or a cut-off โ€” means deciding which mistake you fear more. A false negative in a dangerous, treatable disease (a missed cancer, a missed ectopic pregnancy) can be catastrophic, so those tests are tuned for sensitivity: better to frighten some healthy patients temporarily than to send one true case home. A false positive carries its own costs: anxiety, unnecessary biopsies and treatment, and a disease label that may follow the patient for years. Where a positive result triggers something risky or irreversible, specificity takes priority. There is no universally "best" test โ€” only the best balance of errors for the clinical situation, which is why these five numbers must always be read together, never one at a time.

How to Write It in a Results Section

"Against the gold standard, the test showed a sensitivity of 90% and a specificity of 90%. The positive and negative predictive values were 90% and 90% respectively (LR+ = 9.0, LRโˆ’ = 0.11, Youden index = 0.8) at the study prevalence; predictive values should be interpreted in light of the prevalence in the tested population." That last clause is the mark of a student who actually understands this topic โ€” examiners and reviewers notice it.

Frequently Asked Questions

Is a test with 90% sensitivity automatically a good test?

No. Sensitivity alone says nothing about false positives. A test that calls everyone positive has 100% sensitivity and is useless. Always judge sensitivity and specificity together โ€” and ask about predictive values at your population's prevalence. If you are new to the p-values and confidence intervals that accompany these numbers, start with our guide on what a p-value really means.

Why do research papers report sensitivity and specificity but clinicians care about PPV?

Because sensitivity and specificity travel: they are (roughly) stable properties of the test, so a study done in one hospital informs another. PPV and NPV do not travel โ€” they depend on local prevalence. Papers report the stable quantities; you must convert them mentally for your own ward or community.

Can a test have high sensitivity and high specificity at the same time?

Yes โ€” good tests do. But for any single test with an adjustable cut-off (like a blood level), pushing the cut-off one way trades one against the other: loosen it and sensitivity rises while specificity falls. The ROC curve maps this trade-off, and the Youden index picks the cut-off that balances them. Choosing where to land also depends on your study design โ€” see which statistical test you need for the wider decision picture.

Run It Free on Your Phone

You do not need SPSS or a laptop for any of this. Open FormStat's Diagnostic Suite โ€” enter your TP, FP, FN and TN and get sensitivity, specificity, PPV, NPV, likelihood ratios and the Youden index instantly, all with Wilson 95% confidence intervals, free on your phone.

Try it yourself โ€” free.
Run this analysis in seconds with the FormStat app. No signup, no laptop, works offline.

โ† All guides