Mathwords logoMathwords

Likelihood Ratio — Definition, Formula & Example

A likelihood ratio is a number that tells you how much more likely a piece of evidence, such as a positive test result, is when a condition is present than when it is absent. It measures how strongly that evidence should change your belief.

For observed evidence EE and two competing hypotheses H1H_1 and H0H_0, the likelihood ratio is LR=P(E∣H1)P(E∣H0)\text{LR} = \dfrac{P(E \mid H_1)}{P(E \mid H_0)}. In diagnostic testing, H1H_1 is "disease present," H0H_0 is "disease absent," and EE is the test result. In the odds form of Bayes' theorem, posterior odds == prior odds ×\times LR. The likelihood ratio test in statistics uses the same idea: it compares the likelihoods of two parameter values, or two maximized likelihoods.

Key Formula

LR+=P(T+∣D)P(T+∣Dˉ)=sensitivity1−specificity\text{LR}^{+} = \frac{P(T^{+} \mid D)}{P(T^{+} \mid \bar{D})} = \frac{\text{sensitivity}}{1 - \text{specificity}}
Where:
  • LR+\text{LR}^{+} = Positive likelihood ratio: how many times more likely a positive result is in someone with the condition than in someone without it
  • sensitivity\text{sensitivity} = The true positive rate: the probability that the test comes back positive for a person who has the condition
  • specificity\text{specificity} = The true negative rate: the probability that the test comes back negative for a person who does not have the condition. One minus this value is the false positive rate.

How It Works

An LR above 1 raises the probability of the condition, an LR below 1 lowers it, and an LR of exactly 1 means the result carries no information. A positive result uses LR+=sensitivity1−specificity\text{LR}^{+} = \frac{\text{sensitivity}}{1-\text{specificity}}. A negative result uses LR−=1−sensitivityspecificity\text{LR}^{-} = \frac{1-\text{sensitivity}}{\text{specificity}}. To update a probability, convert it to odds, multiply by the LR, then convert back. Do not confuse the LR with an odds ratio. An odds ratio compares the odds of an outcome between two groups, such as treatment and placebo. A likelihood ratio compares the probability of one piece of evidence under two hypotheses.

Worked Example

Problem: Suppose a rapid strep throat test has 90% sensitivity and 80% specificity. In a clinic, 10% of patients with sore throats actually have strep. A patient tests positive. Find the positive likelihood ratio and the probability that this patient has strep.
Step 1: Divide the true positive rate by the false positive rate. The false positive rate is 1 minus the specificity.
LR+=0.901−0.80=0.900.20=4.5\text{LR}^{+} = \frac{0.90}{1 - 0.80} = \frac{0.90}{0.20} = 4.5
Step 2: Convert the pre-test probability of 10% to odds. Then multiply those odds by the likelihood ratio.
pre-test odds=0.100.90=19,post-test odds=19×4.5=0.5\text{pre-test odds} = \frac{0.10}{0.90} = \frac{1}{9}, \qquad \text{post-test odds} = \frac{1}{9} \times 4.5 = 0.5
Step 3: Convert the post-test odds back to a probability using p = odds / (1 + odds).
p=0.51+0.5=13≈33%p = \frac{0.5}{1 + 0.5} = \frac{1}{3} \approx 33\%
Answer: LR+=4.5\text{LR}^{+} = 4.5. A positive result raises the patient's probability of strep from 10% to 13\frac{1}{3}, or about 33%.

Why It Matters

Doctors use likelihood ratios in evidence-based medicine to decide whether a test result justifies treatment. A single LR summarizes a test without regard to how common the disease is, so one value works in any clinic. You can then combine it with each clinic's own prevalence. The same quantity drives the likelihood ratio test in college statistics courses and Bayesian spam filters.

Common Mistakes

Mistake: Multiplying the pre-test probability directly by the LR. In the example, this gives 0.10×4.5=0.450.10 \times 4.5 = 0.45, or 45%.
Correction: The LR multiplies odds, not probabilities. Convert 10% to odds of 19\frac{1}{9}, multiply to get 0.50.5, then convert back to get about 33%. Multiplying probabilities can even produce values above 1.

Related Terms

  • Likelihood — The measure of how well data fit a hypothesis
  • Bayes' Theorem — Its odds form multiplies prior odds by this ratio
  • Conditional Probability — Both parts of the ratio are conditional probabilities
  • Odds Ratio — Compares outcome odds between groups, not evidence between hypotheses
  • Complement of an Event — Gives the false positive rate as one minus specificity
  • Event — Test results and disease status are the events compared