Likelihood Ratio Calculator

Likelihood Ratio Calculator

Turn sensitivity and specificity into LR+ and LR−, then apply one to the probability you already had. Likelihood ratios are the only test property that combines directly with a pre-test probability.

Likelihood Ratio

Sens, spec, pre-test → post-test
Of people with the disease, the percentage the test calls positive.
Of people without the disease, the percentage the test calls negative. Capped just below 100% here, because a perfectly specific test gives an infinite LR+.
Your estimate of the probability of disease before the test — from prevalence in your setting, a clinical prediction rule, or judgement. It is an estimate, and the page shows how much the answer depends on it.
A positive result multiplies the odds by LR+, a negative result by LR−.
69.2% post-test probabilityExample

Sensitivity 90%, specificity 90%, pre-test probability 20%, positive result

From test properties to one patient's probability

LR+ = sensitivity ÷ (1 − specificity)
LR− = (1 − sensitivity) ÷ specificity
pre-test odds = p ÷ (1 − p)
post-test odds = pre-test odds × LR
post-test probability = odds ÷ (1 + odds)
LR+
how many times more often a positive result occurs in someone with the disease than in someone without it. Above 10 is conventionally a large shift; between 0.5 and 2 is barely a shift at all
LR−
how many times more often a negative result occurs in someone with the disease than in someone without it. Below 0.1 is a large shift downward. A good rule-out test has a very small LR−, which needs high sensitivity
odds
the detour that makes this work. Probabilities cannot be multiplied by a likelihood ratio; odds can. Convert to odds, multiply, convert back — that is the whole of Bayes's theorem in this setting
pre-test probability
yours to estimate, from local prevalence, a validated prediction rule or experience. It is the least precise input and usually the most influential, which is an argument for stating it out loud rather than for avoiding the calculation
why not PPV
PPV answers the same question but only for the population it was measured in. A likelihood ratio is a property of the test, so it can be carried to your patient and applied to your own pre-test probability. That is the entire reason the form exists

Worked example

Sensitivity 90%, specificity 90%, pre-test probability 20%, positive result
LR+ = 0.90 ÷ (1 − 0.90) = 9.0
Pre-test odds = 0.20 ÷ 0.80 = 0.25
Post-test odds = 0.25 × 9.0 = 2.25
Post-test probability = 2.25 ÷ 3.25 = 69.2%
The same test coming back negative gives LR− = 0.10 ÷ 0.90 = 0.111, post-test odds 0.25 × 0.111 = 0.0278, and a post-test probability of 2.7%
So one test takes a patient from 20% to either 69% or 2.7%. Notice that the negative result is far more decisive here than the positive one, which is what an LR− of 0.11 against an LR+ of 9.0 means in practice

How much a likelihood ratio moves a probability

LRConventional reading10% pre-test becomes50% pre-test becomes
10Large, often decisive increase53%91%
5Moderate increase36%83%
2Small increase18%67%
1No information whatsoever10%50%
0.5Small decrease5.3%33%
0.2Moderate decrease2.2%17%
0.1Large, often decisive decrease1.1%9.1%
An LR of 1 leaves the probability exactly where it was: the result was equally likely in disease and in health, so it carried no information. Note how the same likelihood ratio moves a low pre-test probability much less, in absolute terms, than a middling one.

What each figure is good for

FigureBelongs toCan you carry it to your patient?
SensitivityThe testOnly indirectly — it does not by itself say what a result means
SpecificityThe testSame
PPV / NPVThe test and the study populationNo, unless your population matches theirs
LR+ and LR−The testYes — multiply your own pre-test odds by it
Post-test probabilityThis patientIt is the answer, and it is only as good as the pre-test estimate you fed it
This is the practical case for likelihood ratios. They are stable properties of a test, like sensitivity and specificity, but unlike those two they combine in one step with the probability you already had.

The one test property you can apply to your own patient

Sensitivity and specificity are properties of a test, but neither answers the question actually being asked at the bedside, which is what this result means for this person. Predictive values answer that question, but only for the population in which they were measured, and if that population is not yours they mislead. Likelihood ratios sit in between: they are stable properties of the test, and they combine in a single multiplication with whatever probability you had before testing.

The mechanism is Bayes's theorem, and the only awkward part is that probabilities cannot be multiplied by a likelihood ratio — odds can. So the arithmetic goes in three steps: convert the pre-test probability to odds, multiply by the likelihood ratio, convert back. A 20% pre-test probability is odds of 0.25. A positive result on a 90%-sensitive, 90%-specific test carries an LR+ of 9, giving post-test odds of 2.25 and a post-test probability of 69%. A negative result on the same test carries an LR− of 0.11 and takes the same patient down to 2.7%.

The conventional readings are worth memorising because they let you judge a test at a glance. An LR above 10, or below 0.1, produces a large and often conclusive change in probability. Between 2 and 5, or between 0.2 and 0.5, the change is small. Between 0.5 and 2 the result is very nearly uninformative, and an LR of exactly 1 means the finding was just as likely in disease as in health — it has told you nothing and should not change what you do. A surprising number of investigations ordered daily sit in that range.

Two cautions. The first is that a positive and a negative result on the same test rarely carry equal weight: a highly sensitive test rules out well and rules in poorly, and the reverse holds for a highly specific one, which is why LR+ and LR− must be quoted as a pair. The second is that the post-test probability inherits every weakness of the pre-test estimate. That estimate is a judgement, and the honest response is to state it explicitly and see whether a plausible range of values changes the decision. If it does not, the imprecision did not matter; if it does, that is worth knowing before the result comes back.

Frequently asked questions

What is a good likelihood ratio?

Conventionally, an LR+ above 10 or an LR− below 0.1 produces a large and often decisive change in probability. Ratios between 5 and 10, or 0.1 and 0.2, are moderate. Anything between 0.5 and 2 barely moves the probability and rarely justifies the test.

How do I calculate post-test probability from a likelihood ratio?

Convert the pre-test probability to odds by dividing it by one minus itself, multiply those odds by the likelihood ratio, then convert back with odds divided by one plus odds. A 20% pre-test probability and an LR+ of 9 give 0.25 × 9 = 2.25, which is a 69% post-test probability.

Why use likelihood ratios instead of predictive values?

Because predictive values belong to the population they were measured in and change with prevalence, while likelihood ratios are properties of the test. That lets you take the LR from a published study and apply it to your own patient's pre-test probability.

What does a likelihood ratio of 1 mean?

That the result carries no information. It occurred equally often in people with and without the disease, so the post-test probability is identical to the pre-test probability and the test has changed nothing.

How accurate does the pre-test probability need to be?

Accurate enough that the decision does not flip. It is an estimate, so try the calculation at the top and bottom of a plausible range. If the management is the same across that range, the imprecision is harmless; if it is not, no single number should be trusted and you need better information first.

Related calculators

References

  1. Fagan TJ. Nomogram for Bayes's theorem. N Engl J Med. 1975;293(5):257.
  2. Deeks JJ, Altman DG. Diagnostic tests 4: likelihood ratios. BMJ. 2004;329(7458):168–169.
  3. Jaeschke R, Guyatt GH, Sackett DL. Users' guides to the medical literature III: how to use an article about a diagnostic test. JAMA. 1994;271(9):703–707.

Medical Disclaimer: The tools and content provided here are for educational and reference purposes only. They are not intended to substitute for professional medical advice, diagnosis, or treatment. Clinical decisions should always be based on the comprehensive assessment of a qualified healthcare professional.