13 Research methods, statistics, critical review and evidence-based practice13.5 Diagnostic studies

13.5.2 Diagnostic test sensitivity, specificity and likelihood ratios

5 min read3 figures

Written by Resident Doctor Committee · Published

Try it

Likelihood ratio chain

Interactive

Before any test5.0%
Test 1: multiply the odds by 8.00. Moderate evidence for the diagnosis.+24.6 percentage pointsAfter test 129.6%
Test 2: multiply the odds by 4.00. Weak evidence for the diagnosis.+33.1 percentage pointsAfter test 262.7%
Final probability
62.7%Started at 5.0%.
All the ratios together
32.00One ratio of that size applied once gives exactly the same answer.
Tests in the chain
2Up to 4 here.
The odds at each step, which is where the multiplying happens.
StepProbability beforeLikelihood ratioProbability after
Test 15.0%8.0029.6%
Test 229.6%4.0062.7%

Multiplying ratios like this assumes the tests are independent once the diagnosis is known. Two questionnaires asking much the same questions break that assumption, and chaining them overstates the certainty. Notice too that a ratio between 0.5 and 2 barely moves the probability at all, however many times it is applied.

From 5%, a positive questionnaire (LR+ 8) and then a positive clinician-rated scale (LR+ 4) give about 30% and then about 63%. Change the second LR to 0.3 for a negative result, then swap the order: the final figure is the same.

The 2x2 table

A diagnostic study compares an index test with a reference standard, often a structured diagnostic interview in psychiatry, in the kind of patients the test will be used on.

In the worked example below, 200 primary care patients complete a depression questionnaire and a diagnostic interview.

Depression on interview

No depression on interview

Row total

Questionnaire positive

a = 36, true positives (TP)

b = 32, false positives (FP)

68

Questionnaire negative

c = 4, false negatives (FN)

d = 128, true negatives (TN)

132

Column total

40

160

200

  • Sensitivity, specificity and the false positive and false negative rates are read down the disease-status columns.

  • Predictive values are read across the test-result rows.

  • Accuracy and prevalence use the whole table.

Sensitivity and the false negative rate

  • Sensitivity is the probability that a person who truly has the disorder tests positive: TP/(TP+FN) = 36/40 = 90%. True disease status fixes it.

  • A sensitivity of 100% means there are no false negatives, so everyone with the condition tests positive. It says nothing about false positives.

  • The false negative rate is 1 minus sensitivity, FN/(FN+TP) = 4/40 = 10%.

  • The chance that a true case tests negative on every one of several independent tests is the false negative rate raised to the number of tests.

  • When two tests share the same specificity, the one with higher sensitivity detects more true cases and misses fewer.

Specificity and the false positive rate

  • Specificity is the proportion of people truly without the condition whom the test classifies as negative: TN/(TN+FP) = 128/160 = 80%. It holds whatever the prevalence.

  • The false positive rate is 1 minus specificity, FP/(FP+TN) = 32/160 = 20%, read from the same disease-free column. It forms the x-axis of a receiver operating characteristic (ROC) curve.

  • Two tests given to the same sample can differ in direction, one more sensitive and the other more specific, so both measures are calculated for each test.

Predictive values

Measure

Formula

Read from

Example

Positive predictive value (PPV)

TP/(TP+FP)

Test-positive row

36/68 = 53%

Negative predictive value (NPV)

TN/(TN+FN)

Test-negative row

128/132 = 97%

  • PPV is the chance that a positive result is right, and equals the post-test probability after a positive result.

  • The denominator of NPV is all negative results, not everyone without the condition.

  • The chance of having the condition despite a negative result, FN/(FN+TN), is 1 minus the NPV.

  • Raising sensitivity, with specificity and prevalence held constant, raises both predictive values. NPV rises because missed cases leave the negative group, and PPV rises because extra true positives join an unchanged pool of false positives.

  • Sensitivity is the probability of a positive result given disease, whereas PPV is the probability of disease given a positive result. Swapping them is the inverse fallacy.

  • When disease is uncommon, even a small false positive rate produces many false positives, because non-cases greatly outnumber cases.

Sensitivity and specificity stay fixed at 90% while positive predictive value rises and negative predictive value falls as the disorder becomes more common, so at 10% prevalence a positive result is right only half the time. Drawn for MRCPsychiatrist

Prevalence and accuracy

  • Pre-test probability, before any result is known, is the prevalence in the patient's group: those with the condition divided by the whole sample (40/200 = 20%).

  • Diagnostic accuracy is the proportion of everyone tested whom the test classifies correctly: (TP+TN)/total = 164/200 = 82%. It is a prevalence-weighted average of sensitivity and specificity.

Likelihood ratios

Ratio

Formula

Example

Meaning

Positive likelihood ratio (LR+)

Sensitivity / (1 minus specificity)

0.90/0.20 = 4.5

A positive result is 4.5 times as likely in cases as in non-cases

Negative likelihood ratio (LR-)

(1 minus sensitivity) / specificity

0.10/0.80 = 0.125

A negative result is one-eighth as likely in cases

  • LR+ is the true positive rate over the false positive rate, and it multiplies the pre-test odds after a positive result.

  • An LR- well below 1 makes the condition much less likely after a negative result.

  • Predictive values are probabilities that depend on prevalence, whereas likelihood ratios are multipliers of odds built from sensitivity and specificity.

  • Likelihood ratios are not calculated from sample prevalence, but they can still vary across populations and disease spectra.

LR+

LR-

Change in odds

Above 10

Below 0.1

Usually large, but not conclusive alone

Around 5

Around 0.2

Moderate

0.5 to 2

0.5 to 2

Small

From pre-test to post-test probability

  1. Pre-test odds = p/(1 - p) = 0.20/0.80 = 0.25.

  2. After a positive result, odds = 0.25 x 4.5 = 1.125, so probability = 1.125/2.125, about 53%.

  3. After a negative result, odds = 0.25 x 0.125 = 0.03125, so probability is about 3%.

A straight line from a pre-test probability of 0.2 through a likelihood ratio of 4.5 meets the post-test scale at about 0.53, giving the same answer as the odds calculation above. Mikael Häggström, Public domain, via Wikimedia Commons

The positive screen therefore calls for further assessment rather than confirming depression.

Cut-offs

Sensitivity and specificity apply only at a stated cut-off.

Cut-off

Sensitivity

Specificity

Other effects

Lower, towards the unaffected end of the score range

Rises

Falls

More true positives

Higher, stricter

Falls

Rises

False positive rate and NPV fall

  • The lowest cut-off on a screening scale classifies the most people as positive, so it gives the highest sensitivity at the cost of specificity.

  • On an ordinal score, sensitivity at a cut-off is found by cumulatively grouping everyone at or above the cut-off as test positive.

  • Moving a cut-off changes sensitivity and specificity only through people who score at the value being crossed, so one measure can stay fixed while the other changes.

  • When a condition is serious but curable if found early, and a confirmatory test follows, the screening cut-off is set low enough to catch every case, accepting more false positives.

Moving the cut-off down to A catches every case (100% sensitivity, no false negatives) at the cost of more false positives, while moving it up to B removes false positives (100% specificity) but misses cases. Blue64701, CC BY-SA 4.0, via Wikimedia Commons

Combining tests

Strategy

Positive when

Sensitivity

Specificity

Parallel

Either test is positive

Rises

Falls

Serial

Both tests are positive

Falls

Rises

Screening programmes

Wilson and Jungner's principles (World Health Organization, 1968) include these requirements.

  • The natural history of the condition, including its progression from latent or early stage to declared disease, must be adequately understood.

  • There must be a recognisable latent or early symptomatic stage, a detectable pre-symptomatic window.

  • The test must be acceptable to the population screened.

  • There must be an accepted treatment for cases found.

The principles reject screening only the already symptomatic, treating a screening score as a diagnosis, one-off screening and ignoring cost.