Likelihood ratios in diagnostic testing
Intermediate
What you need first. Nothing else on this path comes first. This page is part of Statistical inference.
In statistical inference, likelihood ratios in diagnostic testing are factors that convert the prior odds of a condition into posterior odds after a test result. A positive test is more common among people who have a condition than among people who do not. The likelihood ratio of that result is how many times more common. Multiplied by the prior odds of the condition, it gives the posterior odds. Sensitivity alone does not. The ratio uses both the true-positive rate and the false-positive rate, and the base rate stays outside it, in the prior odds. [1] [2]
Likelihood ratios in diagnostic testing
| Fact | Value |
|---|---|
| Topic | Statistical inference |
| Listed on | Statistical inference |
| Worked example | 1 |
Motivating example
In Canada, about 0.35 percent of women over 40 develop breast cancer in a given year. A mammogram gives a false negative in about 11 percent of women who have cancer, so the sensitivity is . It gives a false positive in 7 percent of women who do not. A positive mammogram is therefore times as likely if cancer is present as if it is not. In a population where the base rate is , the prior odds are about . Posterior odds are prior odds times , about , and the posterior probability is about . The ratio was moderately large. The prior odds were tiny. The product is still a small probability. OpenIntro’s direct calculation gives the same conclusion: , the marginal probability of a positive test is , and . [2] [1]
Intuition
Bayes’ theorem in odds form is a product. The posterior odds of one state against another equal the prior odds multiplied by the likelihood ratio . The marginal probability of the data cancels, which is why the ratio, and not the two conditional probabilities separately, is the factor the test contributes. A ratio of 1 leaves the odds unchanged. A ratio above 1 raises the odds of the condition. A ratio below 1 lowers them. The base rate never enters the ratio. It enters the prior odds. Two populations with the same test and different base rates share the likelihood ratio and do not share the posterior probability. [1]
Definition
In diagnostic testing, is “condition present,” is “condition absent,” and is the test result. For a positive result, is the sensitivity and is the false-positive rate, one minus the specificity. Their quotient is the positive likelihood ratio. For a negative result the numerator is the false-negative rate and the denominator is the specificity. The posterior odds are
The posterior probability is the posterior odds divided by one plus the posterior odds. [1] [2]
The bronchoscopy figures in Gelman’s decision analysis give a sharper positive ratio. Detection probability and false-positive probability yield a positive likelihood ratio . A negative result has probability if cancer is present and if it is not, so the negative likelihood ratio is . Starting from prior probability , prior odds , a positive result moves the probability to
A negative result moves it to
The likelihood ratio is the factor that makes that update a multiplication. The decision of whether to run the test is a further question: it needs the losses, not only the updated probability. [1]
Statistical use
Report the likelihood ratio of the result that was observed, and report the prior odds separately. A positive ratio near will not move a decision. A large positive ratio still leaves a small posterior probability when the prior odds are small enough, which is the usual screening case. OpenIntro’s mammogram is that case: doctors often run more tests after a first positive result, because a rare condition and an imperfect test leave the posterior probability near 4 percent. For a negative result, quote the negative ratio rather than repeating the sensitivity. Sequential independent updates multiply likelihood ratios. Gelman’s hemophilia calculation is the same arithmetic on a different datum: prior odds , likelihood ratio from two unaffected sons, posterior odds . A third observation uses the previous posterior as the next prior. The multiplication is valid when the conditional probabilities factor. [2] [1]
Worked example
Mammogram: sensitivity , false-positive rate , base rate . The positive likelihood ratio is . Prior odds are . Posterior odds are . The posterior probability is , matching the direct Bayes calculation that divides by the marginal probability of a positive test. [2] [1]
Your turn. Sensitivity is , the false-positive rate is , and the base rate is . Compute the positive likelihood ratio, the prior odds, the posterior odds, and the posterior probability.
The likelihood ratio is . The prior odds are . The posterior odds are . The posterior probability is .
Common misconceptions
The likelihood ratio is not a probability and need not lie between 0 and 1. It is not the positive predictive value. The predictive value folds the base rate in. It is not the likelihood-ratio test statistic that compares maximised parametric likelihoods. A large ratio does not mean the condition is probably present. That depends on the prior odds. Quoting only the sensitivity uses the numerator and drops the denominator, which is where a common false positive shrinks the ratio. [1] [2]
The ratio uses conditional probabilities for the same kind of patient and the same decision threshold that will be used in practice. A sensitivity from a study of advanced disease overstates the numerator for early screening. The multiplication into prior odds assumes the two states are the only alternatives being weighed. Independent multiplication across repeated tests fails if the tests share errors. The ratio does not include the harm of the test. In the bronchoscopy example the updated probabilities, positive or negative, did not change the preferred treatment, and the test itself carried a risk. Whether to run the test is a decision problem that needs losses as well as this factor. [1] [2]
Connections
Bayes’ rule is the inversion that turns the likelihood ratio and the prior odds into a posterior. A base rate is the prior probability that the ratio deliberately leaves out. Posterior probability is what the odds are converted back into. A likelihood-ratio test is a different object: a comparison of maximised likelihoods inside a parametric model, not the diagnostic factor . The mammogram arithmetic and the bronchoscopy arithmetic are the diagnostic factor. The name is shared. The calculation is not. [1] [2]
Check yourself
Try these questions before opening an answer.
Mammogram ratio
Sensitivity 0.89 and false-positive rate 0.07. What is the positive likelihood ratio?
The ratio is 0.89/0.07, about 12.714.
Posterior probability
Prior odds about 0.003512 times a likelihood ratio of about 12.714. What is the posterior probability?
The posterior probability is about 0.0427.
A simpler test
Sensitivity 0.80, false-positive rate 0.10, base rate 0.20. What are the posterior odds and the posterior probability?
The posterior odds are 2 and the posterior probability is 2/3.
See also
Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability
References
- ^ a b c d e f g h i j a. (Ch. 1, §1.3, p. 8) b. (Ch. 1, §1.3, p. 8) c. (Ch. 1, §1.3, p. 8) d. (Ch. 1, §1.3, p. 8) e. (Ch. 9, §9.3, pp. 245–246) f. (Ch. 1, §1.3–1.4, pp. 8–9) g. (Ch. 1, §1.3, p. 8) h. (Ch. 1, §1.3, p. 8) i. (Ch. 9, §9.3, pp. 245–246) j. (Ch. 1, §1.3, p. 8; Ch. 9, §9.3, p. 246) Gelman, A., Carlin, J. B., Stern, H. S., Dunson, D. B., Vehtari, A. & Rubin, D. B. (2013). Bayesian Data Analysis. Chapman and Hall/CRC. https://doi.org/10.1201/b16018
- ^ a b c d e f g h a. (Ch. 3, §3.2.8) b. (Ch. 3, §3.2.8) c. (Ch. 3, §3.2.8) d. (Ch. 3, §3.2.8) e. (Ch. 3, §3.2.8) f. (Ch. 3, §3.2.8) g. (Ch. 3, §3.2.8) h. (Ch. 3, §3.2.8) Diez, D. M., Çetinkaya-Rundel, M. & Barr, C. D. (2019). OpenIntro Statistics (4th ed.). OpenIntro. https://www.openintro.org/book/os/
Cite this page
StatWiki (2026). "Likelihood ratios in diagnostic testing." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/likelihood-ratios-in-diagnostic-testing.html
@misc{statwiki_likelihood_ratios_in_diagnostic_testing,
author = {{StatWiki}},
title = {{Likelihood ratios in diagnostic testing}},
year = {2026},
url = {https://www.statwiki.io/articles/likelihood-ratios-in-diagnostic-testing.html},
urldate = {2026-12-02},
note = {StatWiki, last updated 2 December 2026}
}