Articles & Guides › Articles › Biostatistics & Public Health
Likelihood ratios, ROC curves and test reliability
How positive and negative likelihood ratios are calculated and used with odds to turn a pretest probability into a posttest probability, how ROC curves and the area under them compare tests across every cutoff, and how precision differs from accuracy and reliability from validity, including the kappa statistic.
Biostatistics & Public Health · 6 min read · Reviewed 2026-11-17
Sensitivity and specificity describe a test, but a clinician needs to know how much a particular result should change their thinking about a particular patient. Likelihood ratios answer that question. This article covers likelihood ratios and posttest probability, receiver operating characteristic (ROC) curves, and the difference between precision and accuracy and between reliability and validity.
Key points
- LR+ is sensitivity ÷ (1 − specificity) and LR− is (1 − sensitivity) ÷ specificity; like sensitivity and specificity, they don't depend on prevalence.
- Likelihood ratios multiply odds, not probabilities: convert the pretest probability to odds, multiply, then convert back.
- An LR above 10 or below 0.1 changes probability a lot; an LR of 1 changes nothing.
- An ROC curve plots sensitivity against 1 − specificity for every cutoff; the area under it (0.5 is chance, 1.0 is perfect) measures how well a test discriminates.
- Precision is reproducibility, limited by random error; accuracy is closeness to the truth, limited by systematic error; kappa measures agreement between observers beyond chance.
Likelihood ratios and posttest probability
What a likelihood ratio is
A likelihood ratio (LR) compares how likely a given result is in someone with the disease to how likely it is in someone without it[1].
- Positive likelihood ratio (LR+) = sensitivity ÷ (1 − specificity): the true positive rate divided by the false positive rate.
- Negative likelihood ratio (LR−) = (1 − sensitivity) ÷ specificity: the false negative rate divided by the true negative rate.
Because they are built from sensitivity and specificity, likelihood ratios don't depend on prevalence, so they carry over from one setting to another.
| LR | Effect on the probability of disease |
|---|---|
| Above 10 | A large increase: strongly rules in |
| 5 to 10 | A moderate increase |
| 1 | No change: the result is useless |
| 0.1 to 0.2 | A moderate decrease |
| Below 0.1 | A large decrease: strongly rules out |
Three steps from pretest to posttest
Likelihood ratios multiply odds, not probabilities[2].
- Convert the pretest probability to odds: odds = p ÷ (1 − p).
- Multiply: posttest odds = pretest odds × LR.
- Convert back: posttest probability = odds ÷ (1 + odds).
The pretest probability comes from how common the disease is in similar patients, adjusted for the history and examination. After one test, the posttest probability becomes the pretest probability for the next.
Working it through
A test has a sensitivity of 75% and a specificity of 95%, so LR+ = 0.75 ÷ 0.05 = 15 and LR− = 0.25 ÷ 0.95, about 0.26. A patient's pretest probability is 20%, which is odds of 0.2 ÷ 0.8 = 0.25.
- Positive result: posttest odds = 0.25 × 15 = 3.75, and the posttest probability is 3.75 ÷ 4.75, about 79%.
- Negative result: posttest odds = 0.25 × 0.26, about 0.066, and the posttest probability is about 6%.
A 2 by 2 table gives the same answer. In 1,000 such patients, 200 have the disease (150 test positive, 50 negative) and 800 don't (760 test negative, 40 positive). Of the 190 positives, 150 have the disease, about 79%; of the 810 negatives, 50 have it, about 6%.
Multiplying the probability directly by the LR is a common mistake. Here it would give 0.2 × 15 = 300%, an impossible answer, and even when the result looks sensible it is wrong.
ROC curves
Reading the curve
A receiver operating characteristic (ROC) curve shows how a test with a continuous result performs at every possible cutoff[3].
- The y axis is sensitivity, the true positive rate.
- The x axis is 1 − specificity, the false positive rate.
- Each point is one cutoff. Moving up and to the right means a more lenient cutoff: more sensitive and less specific. Moving down and to the left means a stricter one.
Area under the curve
The area under the curve (AUC), or c-statistic, summarizes how well the test separates people with and without disease across all cutoffs.
| AUC | Meaning |
|---|---|
| 1.0 | Perfect discrimination; the curve hugs the upper left corner |
| 0.9 or more | Excellent |
| 0.7 to 0.8 | Acceptable to fair |
| 0.5 | No better than chance; the curve lies on the diagonal |
The AUC also equals the probability that a randomly chosen person with the disease has a more abnormal result than a randomly chosen person without it. Of two tests, the one whose curve lies higher and closer to the upper left corner, with the larger AUC, discriminates better.
Choosing a cutoff
The point closest to the upper left corner is often a reasonable single cutoff, but the right choice depends on the clinical cost of a false negative compared with a false positive[3]. A risk score for a deadly condition might be set low enough to catch nearly every case, accepting many false alarms. Moving the cutoff only moves along the same curve; it never changes the AUC. A better test is a higher curve.
Precision, accuracy and reliability
Precision and accuracy
- Precision, also called reliability or reproducibility, is how consistent repeated measurements are. It is reduced by random error. High precision means a small standard deviation and narrow confidence intervals, and larger samples improve it.
- Accuracy, or validity, is how close measurements are to the true value. It is reduced by systematic error (bias), and collecting more data doesn't fix bias[4].
Think of a dartboard. Darts tightly clustered away from the bull's-eye are precise but not accurate; darts scattered evenly around the bull's-eye are accurate on average but not precise.
| High accuracy | Low accuracy | |
|---|---|---|
| High precision | A tight cluster on target | A tight cluster off target: systematic error |
| Low precision | Scattered around the target: random error | Scattered and off target |
A clinic scale that reads 71.8, 71.9 and 71.8 kg for someone whose true weight is 70.0 kg is precise but not accurate. The readings agree closely but are consistently high: a calibration problem, which is a systematic error. Better technique and training reduce random error; recalibration fixes systematic error.
Kinds of reliability
- Test-retest reliability: the same measurement repeated on the same person gives the same result.
- Interrater reliability: different observers reach the same result for the same patient or image. It is measured with the kappa (κ) statistic, which corrects the observed agreement for the agreement expected by chance: κ = (observed − expected) ÷ (1 − expected). A κ of 1 is perfect agreement and 0 is no better than chance[5].
If two radiologists agree on 85% of chest films and chance alone would produce 50% agreement, κ = (0.85 − 0.50) ÷ (1 − 0.50) = 0.70. Their agreement beyond chance is real but well short of perfect, even though 85% sounded high.
A test can be reliable without being valid, consistently giving the same wrong answer, but an unreliable test can't be consistently valid.
Common confusions
- Odds versus probability: likelihood ratios multiply odds; multiplying a probability gives wrong, sometimes impossible, answers.
- Moving along the curve versus moving to a better curve: a new cutoff changes sensitivity and specificity but not the AUC.
- Precision versus accuracy: reproducibility and random error versus closeness to the truth and systematic error.
- Raw agreement versus kappa: two observers can agree often by chance alone; kappa removes that share.
References
- Deeks JJ, Altman DG. Diagnostic tests 4: likelihood ratios. BMJ. 2004;329(7458):168-169. doi:10.1136/bmj.329.7458.168 Link ↩
- Grimes DA, Schulz KF. Refining clinical diagnosis with likelihood ratios. Lancet. 2005;365(9469):1500-1505. doi:10.1016/S0140-6736(05)66422-7 Link ↩
- Altman DG, Bland JM. Diagnostic tests 3: receiver operating characteristic plots. BMJ. 1994;309(6948):188. doi:10.1136/bmj.309.6948.188 Link ↩
- Celentano DD, Szklo M. Gordis Epidemiology. 6th ed. Elsevier; 2019. ↩
- McHugh ML. Interrater reliability: the kappa statistic. Biochem Med (Zagreb). 2012;22(3):276-282. doi:10.11613/BM.2012.031 Link ↩