Epidemiology Concept

Sensitivity vs Specificity — Diagnostic Test Metrics

By Dr. Sonu Lakeshar

Sensitivity and specificity are the two fundamental properties of any diagnostic or screening test. They describe how well the test correctly identifies people with disease (sensitivity) and people without disease (specificity). Together with disease prevalence, they determine the predictive values that clinicians actually care about at the bedside.

On This Page
  1. Overview
  2. 2x2 Table
  3. Sensitivity
  4. Specificity
  5. Predictive Values
  6. Likelihood Ratios
  7. FAQs

Every diagnostic or screening test has four possible outcomes: true positive (diseased, test positive), false positive (not diseased, test positive), false negative (diseased, test negative), and true negative (not diseased, test negative). These four outcomes form the standard 2x2 table that underpins all diagnostic test evaluation. Sensitivity and specificity are properties of the test itself — they don't change with disease prevalence. Predictive values (PPV, NPV), however, depend on both test properties and disease prevalence.

Disease +Disease -Total
Test +TP (True Positive)FP (False Positive)TP+FP
Test -FN (False Negative)TN (True Negative)FN+TN
TotalTP+FNFP+TNN

Key formulas:

  • Sensitivity = TP / (TP+FN) = ability to detect disease when present
  • Specificity = TN / (TN+FP) = ability to exclude disease when absent
  • PPV = TP / (TP+FP) = probability of disease given a positive test
  • NPV = TN / (TN+FN) = probability of no disease given a negative test
  • Accuracy = (TP+TN) / N = overall correctness
  • Prevalence = (TP+FN) / N

Sensitivity is the proportion of truly diseased persons who test positive. A highly sensitive test catches most cases — it has few false negatives. The mnemonic is SnNOut: a Sensitive test, when Negative, rules Out disease.

Use a highly sensitive test when:

  • The consequence of missing a case is severe (e.g., HIV screening of blood donors — must not miss any positive unit)
  • The disease is highly contagious and contact tracing depends on detection (e.g., TB)
  • The initial screening round, followed by a more specific confirmatory test (e.g., HIV ELISA followed by Western blot)
  • Rule-out strategy at primary care level (e.g., D-dimer to rule out DVT)

Example: A test with 99% sensitivity misses only 1 in 100 true cases. A test with 80% sensitivity misses 20 in 100 — unacceptable for serious diseases.

Specificity is the proportion of truly non-diseased persons who test negative. A highly specific test correctly identifies healthy people — it has few false positives. The mnemonic is SpPIn: a Specific test, when Positive, rules In disease.

Use a highly specific test when:

  • The consequence of a false positive is severe (psychological harm, unnecessary treatment, e.g., HIV confirmation by Western blot)
  • The treatment is toxic or expensive (you want to be sure before starting)
  • Confirmatory testing after a positive screening test
  • Rule-in strategy in patients with suggestive clinical features

Example: Western blot for HIV has >99% specificity — a positive result is essentially diagnostic.

PPV and NPV are what clinicians actually use at the bedside — they answer 'given this test result, what is the probability my patient has the disease?'

  • PPV (Positive Predictive Value): Probability that a positive test is a true positive
  • NPV (Negative Predictive Value): Probability that a negative test is a true negative

Crucially, predictive values depend on disease prevalence in the tested population:

  • In a high-prevalence population, PPV is high (a positive test is more likely to be true)
  • In a low-prevalence population, PPV falls dramatically (most positives are false positives)
  • Example: An HIV test with 99% sensitivity and 99% specificity has PPV of 50% in a low-prevalence population (1 in 1000) but 99% in a high-prevalence population (1 in 10)

This is why screening tests for rare diseases are problematic — even excellent tests generate too many false positives.

Likelihood ratios (LR) combine sensitivity and specificity into a single metric that is independent of prevalence:

  • LR+ (Positive Likelihood Ratio): Sensitivity / (1 - Specificity). Values >10 strongly support diagnosis.
  • LR- (Negative Likelihood Ratio): (1 - Sensitivity) / Specificity. Values <0.1 strongly rule out diagnosis.

LRs allow clinicians to combine pre-test probability (clinical suspicion) with test result to get post-test probability using Bayes' theorem. This is the modern way to use diagnostic tests at the bedside, replacing rigid cutoffs.

What is the difference between sensitivity and specificity?
Sensitivity = TP/(TP+FN) — proportion of diseased persons who test positive. A sensitive test catches most cases (few false negatives), used when missing a case is dangerous. Specificity = TN/(TN+FP) — proportion of non-diseased persons who test negative. A specific test avoids false alarms (few false positives), used when false positives are costly.
What is the difference between sensitivity and PPV?
Sensitivity is a property of the test alone — it tells you what % of diseased people will test positive. PPV tells you, given a positive test result, what is the probability the patient truly has disease. PPV depends on both sensitivity AND disease prevalence. The same test has different PPV in different populations.
What do SnNOut and SpPIn mean?
SnNOut: a Sensitive test, when Negative, rules Out disease (a highly sensitive negative test makes disease unlikely). SpPIn: a Specific test, when Positive, rules In disease (a highly specific positive test confirms diagnosis). These mnemonics guide when to use sensitive vs specific tests.
How does prevalence affect predictive values?
PPV increases with prevalence; NPV decreases with prevalence. A test with 99% sensitivity and 99% specificity has PPV of 50% in a population with 1:1000 prevalence (most positives are false positives) but 99% PPV at 1:10 prevalence. This is why screening tests for rare diseases generate many false positives — even excellent tests.
What is a likelihood ratio?
LR combines sensitivity and specificity into a single prevalence-independent metric. LR+ = Sensitivity/(1-Specificity); LR- = (1-Sensitivity)/Specificity. LR+ &gt;10 strongly supports diagnosis; LR- &lt;0.1 strongly rules out. LRs allow combining pre-test probability with test result to calculate post-test probability using Bayes' theorem.

Sensitivity and specificity are the conceptual core of diagnostic test interpretation. For UPSC CMS aspirants, the 2x2 table, the four formulas, the SnNOut/SpPIn mnemonics, and the effect of prevalence on PPV are among the most frequently tested PSM topics.

🎓 Explore More on CMS Prep
CMS Prep covers UPSC CMS previous year questions, NEET PG, INICET, FMGE, AFMS, and complete careers-after-MBBS guidance — all free, no login.