Likelihood Ratios for Diagnostic Tests

Summarizing what a test result says about disease by one number per result. Positive and negative likelihood ratios; Bayes' theorem in odds form, post-test odds = likelihood ratio x pre-test odds, proved and checked on three age groups; the log-odds scale and the geometry of Fagan's nomogram; confidence intervals on the log scale, which are those of a risk ratio; the diagnostic odds ratio; likelihood ratios for bands of a continuous result instead of a single cut-off; predictive values in terms of likelihood ratios; and combining two tests, which requires conditional independence that two real measurements do not have. Worked on HbA1c, BMI and fasting glucose in NHANES adults, with worked problems on a second cut-off, one patient's post-test probabilities, the ratio needed to reach a target probability and two positive results.

The likelihood ratio of a test result, $\mathrm{LR}(r) = P(r \mid D)/P(r \mid D^c)$, states in one number what the result adds, and the odds form of Bayes' theorem, proved here, applies it to any patient: post-test odds $=$ LR $\times$ pre-test odds. For HbA1c at 6.5% against a fasting glucose of 126 mg/dL or more, in 1,975 undiagnosed NHANES 2017 to 2018 adults, $\mathrm{LR}^+ = 34.9$ (95% interval 22.6 to 54.0) and $\mathrm{LR}^- = 0.54$ (0.45 to 0.64), by the log-scale interval of a risk ratio. Ratios for bands of HbA1c rise from 0.22 below 5.7% to 113 at 7% and over. The ratios of two tests multiply only when the tests are conditionally independent given the disease status: for HbA1c and BMI the product overstates two positive results by 22%.

Give the same positive HbA1c to an adult aged 18 to 39 and to an adult over 60. With the test's overall accuracy, Bayes' theorem puts the probability of a diabetic fasting glucose at 0.36 for the first and 0.80 for the second. The test is the same; only the patient's starting point differs. How much of the final probability is the test's doing, and can that contribution be stated once, for any patient? It can: a positive result multiplies the odds of the condition by the same factor, 34.9, whatever the patient's starting point.

In Predictive Values and Bayes' Theorem, that probability came from a formula that mixes the prevalence, which describes the patient's population, with the sensitivity and specificity, which describe the test. A likelihood ratio separates the two. It summarizes the evidence of a test result in a single number. Bayes' theorem in odds form then applies it to any patient by one multiplication. The odds of disease after the test are the odds before the test times the likelihood ratio.

First we define the ratios for a positive and a negative result. Then we prove the odds form of Bayes' theorem, check it by age group and draw it as Fagan's nomogram. Next come confidence intervals, and a ratio for each band of HbA1c values. Finally we ask when the ratios of two tests can be multiplied. The article assumes the odds of Relative Risk and the Odds Ratio and the log-scale intervals of Intervals and Adjustment for Relative Risks and Odds Ratios.

The examples continue with the unit's 1,975 adults from the National Health and Nutrition Examination Survey (NHANES) 2017 to 2018, of whom 115 have a fasting plasma glucose (FPG) of 126 mg/dL or more. Sensitivity and Specificity discusses the limits of that reference definition. The test is HbA1c, either positive at 6.5% or more or as its measured value.

Likelihood ratios of a positive and a negative result

The likelihood ratio of a test result $r$ is the probability of that result in people with the condition, divided by its probability in people without it:

$$\mathrm{LR}(r) = \frac{P(r \mid D)}{P(r \mid D^c)}.$$

A result with a likelihood ratio above 1 is more common among people with the condition, and so is evidence for it. Below 1, it is evidence against; exactly 1, no evidence. (It is a ratio of two likelihoods in the general sense of The Likelihood Function, with the condition in the place of the parameter and the test result as the data. The likelihood ratio test of Likelihood Ratio, Wald and Score Tests uses a ratio of the same kind for a different purpose: it maximizes the likelihood over a parameter to test a hypothesis. Here both states are fixed, and the ratio weighs one result as evidence.) For a test with two outcomes the two ratios have names. The positive likelihood ratio is

$$\mathrm{LR}^+ = \frac{P(T^+ \mid D)}{P(T^+ \mid D^c)} = \frac{\mathrm{Se}}{1 - \mathrm{Sp}} = \frac{54/115}{25/1{,}860} = \frac{0.4696}{0.0134} = 34.94,$$

and the negative likelihood ratio is

$$\mathrm{LR}^- = \frac{P(T^- \mid D)}{P(T^- \mid D^c)} = \frac{1 - \mathrm{Se}}{\mathrm{Sp}} = \frac{61/115}{1{,}835/1{,}860} = 0.5377.$$

A positive HbA1c is 35 times as common among adults with a diabetic fasting glucose as among the others, which is strong evidence. A negative HbA1c is 0.54 times as common among them. That is weak evidence against, because more than half of them have a negative HbA1c.

Like sensitivity and specificity, likelihood ratios condition on the truth, and so they do not depend on the prevalence. They inherit all the dependence on the case mix that Sensitivity and Specificity described. Deeks and Altman (2004) describe likelihood ratios above 10 and below 0.1 as providing strong evidence to rule a diagnosis in or out in most circumstances. By that rule a positive HbA1c rules in, and a negative one does not rule out. A finer scale is in common use, given as a rough guide by Jaeschke, Guyatt and Sackett (1994). Ratios above 10 or below 0.1 produce large and often conclusive changes from pre-test to post-test probability, ratios of 5 to 10 or 0.1 to 0.2 moderate shifts, ratios of 2 to 5 or 0.2 to 0.5 small but sometimes important changes, and ratios of 1 to 2 or 0.5 to 1 small and rarely important ones. The two scales agree where they overlap.

Bayes' theorem in odds form

Turning one number per result into a probability for a particular patient needs odds.

The odds of an event with probability $p$ are $p/(1 - p)$, and a probability is recovered from odds $o$ as $o/(1 + o)$, as in Relative Risk and the Odds Ratio. Before the test, the patient's probability of the condition is the pre-test probability $P(D)$, often the prevalence in a group the patient belongs to. After a result $r$ it is the post-test probability $P(D \mid r)$.

Here is the plan: write $P(D \mid r)$ and $P(D^c \mid r)$ by Bayes' theorem and divide, so that their common denominator cancels.

Proposition. Suppose $0 < P(D) < 1$. For any test result $r$ with $P(r \mid D^c) > 0$,

$$\underbrace{\frac{P(D \mid r)}{P(D^c \mid r)}}_{\text{post-test odds}} = \underbrace{\frac{P(r \mid D)}{P(r \mid D^c)}}_{\mathrm{LR}(r)} \times \underbrace{\frac{P(D)}{P(D^c)}}_{\text{pre-test odds}}.$$

Proof. The hypotheses give $P(r) \ge P(D^c)\,P(r \mid D^c) > 0$, so the probabilities given $r$ are defined, and $P(D^c \mid r) > 0$. By Bayes' theorem, $P(D \mid r) = P(D)\,P(r \mid D)/P(r)$ and $P(D^c \mid r) = P(D^c)\,P(r \mid D^c)/P(r)$. Dividing the first by the second cancels $P(r)$, which is the awkward term of the probability form, and leaves the stated product. $\square$

The proposition separates the two sources of information exactly. Everything about the patient before testing is in the pre-test odds, and everything the test result adds is in the likelihood ratio. With two statistical models in place of the condition and its absence, the same identity says that posterior odds are the Bayes factor times the prior odds (Bayes Factors and Posterior Model Probabilities, Theorem 1); a likelihood ratio is the Bayes factor of two simple hypotheses.

Take an adult aged 60 or over. Among the NHANES adults of that age without a diagnosis, 62 of 604 meet the reference definition. That is a pre-test probability of 0.1026, and pre-test odds of $0.1026/0.8974 = 0.1144$.

Example (odds are multiplied, probabilities are not). A positive HbA1c multiplies the odds by 34.94. It does not multiply this adult's probability of the condition by 35, and it cannot, since 35 times 0.1026 is more than 1. The odds become $0.1144 \times 34.94 = 3.996$, a post-test probability of $3.996/4.996 = 0.800$. The probability rises by a factor of 7.79, not 35. Odds and probability are close only when both are small. A negative result multiplies the odds by 0.5377, to 0.0615, a probability of 0.058.

The same calculation for each age group, against what was actually observed in it:

Age Pre-test probability After positive: predicted Observed After negative: predicted Observed
18–39 0.0162 0.364 6/10 = 0.600 0.0087 6/733 = 0.0082
40–59 0.0653 0.709 18/29 = 0.621 0.0362 23/599 = 0.0384
60 and over 0.1026 0.800 30/40 = 0.750 0.0579 32/564 = 0.0567

These are the predictions of the previous article reached by a different route, and they share its limitation. The likelihood ratios were computed over all ages, and the positive likelihood ratio is not constant across them. Specificity is higher among the young, so their own $\mathrm{LR}^+$ is $0.500/0.0055 = 91.4$, and the oldest group's is $0.484/0.0185 = 26.2$. The negative predictions are close in every group, because $\mathrm{LR}^-$ varies much less, from 0.50 to 0.57.

The log scale and Fagan's nomogram

Taking logarithms turns the multiplication into an addition:

$$\ln(\text{post-test odds}) = \ln(\text{pre-test odds}) + \ln \mathrm{LR}.$$

On the log-odds scale, each test result moves the patient by a fixed distance, $\ln \mathrm{LR}$, whatever the starting point. A positive HbA1c moves the log-odds up by $\ln 34.94 = 3.55$, and a negative one down by $0.62$.

Example (the same distance, different gains). The positive result moves the young adult (pre-test 0.0162) and the adult over 60 (pre-test 0.1026) by the same distance on the log-odds scale, and the older adult gains more in probability: from 0.103 to 0.800, a gain of about 0.70, against 0.016 to 0.364 for the young adult, about 0.35. The same distance is a large change in probability near 0.5 and a small one near 0 or 1. That is why a strong test changes the management of a patient with an uncertain diagnosis, and barely affects one who is almost certainly well or almost certainly ill.

Fagan (1975) turned the addition into a nomogram. Here is the idea: a straight line across three equally spaced vertical scales passes through the middle one at the average of its heights on the outer two. (A line that rises from height $y_L$ to height $y_R$ at a constant rate has covered half the rise at the halfway point, where its height is $y_L + \tfrac12(y_R - y_L) = \tfrac12(y_L + y_R)$.) So if the middle scale carries half the log of the likelihood ratio, the line adds.

The construction. Draw three parallel vertical scales at equal spacing.

  • On the left scale, mark each pre-test probability $p$ at the height $-\ln[p/(1-p)]$.
  • On the right, mark each post-test probability $q$ at the height $+\ln[q/(1-q)]$.
  • On the middle scale, mark each likelihood ratio at the height $\tfrac12 \ln \mathrm{LR}$.

A line from the pre-test probability on the left, at height $y_L = -\ln(\text{pre-test odds})$, through the likelihood ratio in the middle, at height $\tfrac12 \ln \mathrm{LR}$, meets the right scale at the height $y_R$ for which $\tfrac12(y_L + y_R) = \tfrac12 \ln \mathrm{LR}$. That is $y_R = 2 \cdot \tfrac12 \ln \mathrm{LR} - y_L = \ln \mathrm{LR} + \ln(\text{pre-test odds})$, the log of the post-test odds. Deeks and Altman (2004) reproduce Fagan's nomogram. They use it to update a pre-test probability of 0.1 to a post-test probability of 0.7 for a result with a likelihood ratio of about 20.

A Fagan nomogram drawn from its construction: pre-test probability on the left (increasing downward), likelihood ratio in the middle and post-test probability on the right. Follow the two lines from the pre-test probability of adults aged 60 and over, 10.3%: through the positive likelihood ratio of HbA1c at 6.5%, 34.9, one reaches 80%, and through the negative likelihood ratio, 0.54, the other reaches only 6%.
A Fagan nomogram drawn from its construction: pre-test probability on the left (increasing downward), likelihood ratio in the middle and post-test probability on the right. Follow the two lines from the pre-test probability of adults aged 60 and over, 10.3%: through the positive likelihood ratio of HbA1c at 6.5%, 34.9, one reaches 80%, and through the negative likelihood ratio, 0.54, the other reaches only 6%.

Confidence intervals

The estimates 34.94 and 0.5377 come from 115 cases and 1,860 non-cases, and their 95% intervals are $(22.6, 54.0)$ and $(0.453, 0.639)$.

The positive likelihood ratio is the ratio of two independent proportions: the proportion positive among the 115 cases, and the proportion positive among the 1,860 non-cases. In the language of Relative Risk and the Odds Ratio, it is the relative risk of a positive result in the diseased group against the non-diseased group. Deeks and Altman (2004) note that likelihood ratios can be given confidence intervals in the same way as risk ratios. The log-scale interval for a relative risk, derived in Intervals and Adjustment for Relative Risks and Odds Ratios, applies, with $x_1$ positives of $n_1$ cases and $x_0$ positives of $n_0$ non-cases:

$$\mathrm{SE}(\ln \widehat{\mathrm{LR}}) = \sqrt{\frac{1}{x_1} - \frac{1}{n_1} + \frac{1}{x_0} - \frac{1}{n_0}}, \qquad \widehat{\mathrm{LR}}\, e^{\pm 1.96\,\mathrm{SE}}.$$

For the positive likelihood ratio, $x_1 = 54$, $n_1 = 115$, $x_0 = 25$ and $n_0 = 1{,}860$. The standard error is 0.2220 and the interval is $(22.6, 54.0)$. For the negative likelihood ratio the negatives are counted instead ($x_1 = 61$, $x_0 = 1{,}835$); the standard error is 0.0878 and the interval $(0.453, 0.639)$. The interval for $\mathrm{LR}^+$ is wide in relative terms, because it rests on only 25 false positives. Even its lower end is above 10.

The variance of $\ln \widehat{\mathrm{LR}}^+$ is also written in terms of the sensitivity and specificity, as $(1 - \mathrm{Se})/(\mathrm{Se}\, n_1) + \mathrm{Sp}/[(1 - \mathrm{Sp})\, n_0]$. The two forms are equal. With $\mathrm{Se} = x_1/n_1$,

$$\frac{1 - \mathrm{Se}}{\mathrm{Se}\,n_1} = \frac{1 - x_1/n_1}{x_1} = \frac{1}{x_1} - \frac{1}{n_1},$$

and with $1 - \mathrm{Sp} = x_0/n_0$, so that $\mathrm{Sp} = 1 - x_0/n_0$,

$$\frac{\mathrm{Sp}}{(1 - \mathrm{Sp})\,n_0} = \frac{1 - x_0/n_0}{x_0} = \frac{1}{x_0} - \frac{1}{n_0}.$$

The script evaluates both forms and gets 0.2220 for the standard error from each.

The diagnostic odds ratio

Dividing the two likelihood ratios gives the diagnostic odds ratio,

$$\mathrm{DOR} = \frac{\mathrm{LR}^+}{\mathrm{LR}^-} = \frac{\mathrm{Se}/(1 - \mathrm{Se})}{(1 - \mathrm{Sp})/\mathrm{Sp}} = \frac{\mathrm{TP} \cdot \mathrm{TN}}{\mathrm{FP} \cdot \mathrm{FN}} = \frac{54 \times 1{,}835}{25 \times 61} = 65.0.$$

It is the odds ratio of the 2 by 2 table, with Woolf's interval from the same article as the interval above. It is a single summary of a test's discrimination, convenient for combining studies in a meta-analysis. But like any single number it hides the split between the two kinds of error. A test with sensitivity 0.9 and specificity 0.6, and one with sensitivity 0.6 and specificity 0.9, have the same DOR, 13.5, and very different uses.

Likelihood ratios for bands of a continuous result

Dichotomizing at 6.5% treats 6.5% and 9% alike, and 6.4% and 4.8% alike. Deeks and Altman (2004) point out that computing likelihood ratios does not require dichotomizing the result at all.

The table splits HbA1c into the bands the American Diabetes Association uses (ADA, 2025, Tables 2.1 and 2.2): below 5.7%, the prediabetes range of 5.7% to 6.4%, and 6.5% or more. The two outer bands are divided further.

Example (a "negative" result that is evidence for the condition). An HbA1c from 6.0% to 6.4% is "negative" at the 6.5% cut-off, yet it is evidence for the condition, not against it. The band's likelihood ratio is 2.70:

HbA1c band Cases (share of 115) Non-cases (share of 1,860) LR (95% CI) Post-test probability at prevalence 5.8%
below 5.7% 17 (0.148) 1,265 (0.680) 0.217 (0.140, 0.337) 0.013
5.7–5.9% 12 (0.104) 378 (0.203) 0.513 (0.298, 0.884) 0.031
6.0–6.4% 32 (0.278) 192 (0.103) 2.70 (1.95, 3.73) 0.143
6.5–6.9% 26 (0.226) 21 (0.011) 20.0 (11.6, 34.5) 0.553
7.0% and over 28 (0.243) 4 (0.002) 113 (40, 317) 0.875
Likelihood ratios for five HbA1c bands with 95% intervals, on a log scale; the dotted line at 1 separates evidence against a diabetic fasting glucose from evidence for it. Notice that the ratios rise steadily with HbA1c, from 0.22 below 5.7% to 113 at 7% and over, and that the 6.0–6.4% band already lies above the line.
Likelihood ratios for five HbA1c bands with 95% intervals, on a log scale; the dotted line at 1 separates evidence against a diabetic fasting glucose from evidence for it. Notice that the ratios rise steadily with HbA1c, from 0.22 below 5.7% to 113 at 7% and over, and that the 6.0–6.4% band already lies above the line.

The single positive likelihood ratio, 34.9, is an average of the two upper bands' ratios, 20.0 and 113. The weights are the shares of the false positives each band contains ($21/25$ and $4/25$), because both its numerator and its denominator are sums over the bands. Writing $b$ for a band at or above the cut-off,

$$\mathrm{LR}^+ = \frac{\sum_b P(b \mid D)}{\sum_b P(b \mid D^c)} = \sum_b \frac{P(b \mid D^c)}{\sum_{b'} P(b' \mid D^c)} \cdot \frac{P(b \mid D)}{P(b \mid D^c)},$$

a weighted average of the band ratios $\mathrm{LR}(b)$ whose weights are each band's share of the positive results among the non-cases. Here $\tfrac{21}{25} \times 20.02 + \tfrac{4}{25} \times 113.2 = 16.82 + 18.11 = 34.94$. Read band by band, an HbA1c of 6.6% carries about half the evidence that "positive" suggests, and one of 7.5% more than three times as much. The band from 6.0% to 6.4% raises the probability from 0.058 to 0.143.

Interval likelihood ratios keep the information that a cut-off throws away. Their cost is wider intervals, since each band has fewer people. ROC Curves for Diagnostic Tests shows that the likelihood ratio of a band is the slope of the ROC curve over that band.

Predictive values from likelihood ratios

Writing prevalence as odds turns the predictive values of the previous article into short formulas. With prevalence $\pi$, the post-test odds after a positive result are $\mathrm{LR}^+ \pi/(1 - \pi)$, so

$$\mathrm{PPV} = \frac{\pi\,\mathrm{LR}^+}{\pi\,\mathrm{LR}^+ + (1 - \pi)}, \qquad 1 - \mathrm{NPV} = \frac{\pi\,\mathrm{LR}^-}{\pi\,\mathrm{LR}^- + (1 - \pi)},$$

and so $\mathrm{NPV} = (1 - \pi)/[(1 - \pi) + \pi\,\mathrm{LR}^-]$. The first formula is the conversion from odds to probability, $o/(1 + o)$ with $o = \mathrm{LR}^+\pi/(1 - \pi)$, after multiplying the numerator and the denominator by $1 - \pi$. The second is the same conversion for the post-test odds after a negative result, $\mathrm{LR}^-\pi/(1 - \pi)$, whose probability is the probability of the condition given a negative result, $1 - \mathrm{NPV}$. At the NHANES prevalence, these give 0.6835 and 0.9678, the values read from the table.

Example (a common misstatement: the NPV with the specificity in place of $1 - \pi$). The negative predictive value is sometimes written as $\mathrm{Sp}/(\mathrm{LR}^-\,\pi + \mathrm{Sp})$. That expression has the specificity where the probability of no disease, $1 - \pi$, belongs. The correct form is $(1 - \pi)/[(1 - \pi) + \pi\,\mathrm{LR}^-]$, derived above. The two differ little when the condition is rare, 0.9692 against the correct 0.9678 here, and substantially when it is common. At a prevalence of 0.5 the misstated form gives 0.7859 against the correct 0.6503.

Combining two tests

If one test result multiplies the odds by $\mathrm{LR}_1$, a second result applied afterwards multiplies the new odds by its own likelihood ratio. It is tempting to write

$$\text{post-test odds} = \mathrm{LR}_2 \times \mathrm{LR}_1 \times \text{pre-test odds}.$$

The odds form of Bayes' theorem holds for any result, including the pair of results $(r_1, r_2)$. The pair's likelihood ratio is $P(r_1, r_2 \mid D)/P(r_1, r_2 \mid D^c)$. That ratio equals $\mathrm{LR}_1 \times \mathrm{LR}_2$ when

$$P(r_1, r_2 \mid D) = P(r_1 \mid D)\,P(r_2 \mid D) \quad\text{and}\quad P(r_1, r_2 \mid D^c) = P(r_1 \mid D^c)\,P(r_2 \mid D^c),$$

that is, when the two results are conditionally independent given the disease status. Dividing the first equation by the second gives the product of the two ratios. The condition is sufficient for the multiplication, and it is the assumption under which likelihood ratios are multiplied in practice.

It is not necessary. The equality concerns one pair of results, and it also holds when both joint probabilities exceed the products by the same factor.

Example (the product holds for one pair without conditional independence). For two tests with positive and negative results, take

  • among people with the condition: $P(++ \mid D) = 0.72$, $P(+- \mid D) = P(-+ \mid D) = 0.08$ and $P(-- \mid D) = 0.12$;
  • among people without it: $P(++ \mid D^c) = 0.045$, $P(+- \mid D^c) = P(-+ \mid D^c) = 0.155$ and $P(-- \mid D^c) = 0.645$.

Each test then has sensitivity $0.72 + 0.08 = 0.8$ and false positive rate $0.045 + 0.155 = 0.2$, so $\mathrm{LR}^+ = 4$ and $\mathrm{LR}^- = 0.2/0.8 = 0.25$ for each. The pair $++$ has ratio $0.72/0.045 = 16 = 4 \times 4$, the product. Yet the tests are dependent within each group: $0.72 \ne 0.8 \times 0.8 = 0.64$ and $0.045 \ne 0.2 \times 0.2 = 0.04$. And for the pair $+-$ the product fails: the joint ratio is $0.08/0.155 = 0.52$, while $\mathrm{LR}_1^+ \times \mathrm{LR}_2^- = 4 \times 0.25 = 1$. The script checks the example in exact fractions.

Example (a common misstatement: likelihood ratios multiply if the tests are independent). The condition is conditional independence given the disease status, which is a different condition from independence of the two tests in the population. Neither implies the other.

In one direction, two tests that are conditionally independent and both informative are positively associated in the population, so they are not independent in it. Write $a_i = P(T_i^+ \mid D)$ and $b_i = P(T_i^+ \mid D^c)$ for test $i$, and $\pi$ for the prevalence. By the law of total probability and conditional independence, $P(T_1^+ \cap T_2^+) = \pi a_1 a_2 + (1 - \pi) b_1 b_2$ and $P(T_i^+) = \pi a_i + (1 - \pi) b_i$. Expanding the product of the two single probabilities and collecting terms,

$$P(T_1^+ \cap T_2^+) - P(T_1^+)\,P(T_2^+) = \pi(1 - \pi)\,(a_1 a_2 + b_1 b_2 - a_1 b_2 - b_1 a_2) = \pi(1 - \pi)\,(a_1 - b_1)(a_2 - b_2),$$

which is positive when each test is positive more often among people with the condition, $a_i > b_i$, and $0 < \pi < 1$.

In the other direction, two tests can be independent in the population without being conditionally independent. Take a prevalence of one half. Among people with the condition let the four pairs $++$, $+-$, $-+$, $--$ have probabilities 0.5, 0.1, 0.1 and 0.3, and among people without it 0, 0.4, 0.4 and 0.2. In the population each pair then has probability $\tfrac12(0.5 + 0) = \tfrac12(0.1 + 0.4) = \tfrac12(0.3 + 0.2) = 0.25$, and each test is positive with probability 0.5, so the tests are independent: $0.25 = 0.5 \times 0.5$. Within the groups they are not. With the condition each test is positive with probability 0.6 and both with probability 0.5, not 0.36. Without it each is positive with probability 0.4 and both with probability 0, not 0.16.

What the multiplication needs is that, among the diseased and separately among the non-diseased, one result carries no information about the other. If both tests respond to severity, or to the same nuisance factor, the condition fails, and multiplying counts the shared evidence twice. The same assumption underlies naive Bayes classification, which multiplies the likelihood ratios of many words.

The NHANES data allow a check with two inexpensive screening measurements: HbA1c of 5.7% or more (the prediabetes threshold), and a body mass index (BMI) of 30 or more (obesity). On the 1,942 adults with a BMI (113 cases):

  • HbA1c at 5.7% has $\mathrm{LR}^+ = 2.652$ and $\mathrm{LR}^- = 0.221$;
  • BMI at 30 has $\mathrm{LR}^+ = 1.741$ and $\mathrm{LR}^- = 0.582$.

Example (two positive results). For an adult positive on both, the product of the two likelihood ratios overstates the evidence. The four combinations:

HbA1c $\ge 5.7\%$ BMI $\ge 30$ Cases Non-cases Joint LR Product of LRs
yes yes 61 260 3.797 4.617
yes no 35 326 1.738 1.542
no yes 10 400 0.405 0.385
no no 7 843 0.134 0.129

The product overstates the evidence of two positive results by 22% (4.617 against 3.797). It also makes two negative results look slightly stronger evidence against than they are (0.129 against 0.134).

The reason is visible within each group. Among the cases, the odds ratio between the two tests is 1.22, and among the non-cases 1.68. The first rests on only 7 and 10 cases in the two cells where HbA1c is below 5.7%, so it is imprecise. Even among adults whose fasting glucose is on the same side of 126, those with a BMI of 30 or more are more likely to have an HbA1c of 5.7% or more. So the second result partly repeats the first. The overstatement is modest here because the association is moderate. Two tests of the same kind, such as two glucose measurements, share more of their sources of error, and the overstatement is then expected to be larger. These data hold no such pair to measure it on.

Serial and parallel testing

The same failure affects the two standard rules for combining tests. Under serial testing, a person is positive only if both tests are positive. Under parallel testing, a person is positive if either is. With conditional independence:

  • serial testing has sensitivity $\mathrm{Se}_1\mathrm{Se}_2$ and specificity $1 - (1 - \mathrm{Sp}_1)(1 - \mathrm{Sp}_2)$;
  • parallel testing has sensitivity $1 - (1 - \mathrm{Se}_1)(1 - \mathrm{Se}_2)$ and specificity $\mathrm{Sp}_1\mathrm{Sp}_2$.

Each formula is the product rule for independent events, applied within one disease group. A person with the condition is positive under the serial rule when both tests are positive, which has probability $\mathrm{Se}_1\mathrm{Se}_2$. A person without it is positive under the serial rule when both tests give false positives, with probability $(1 - \mathrm{Sp}_1)(1 - \mathrm{Sp}_2)$, and the specificity is the complement. Under the parallel rule a person with the condition is missed when both tests are negative. Negative results are the complements of positive ones, and complements of independent events are independent (The Rules of Probability), so this has probability $(1 - \mathrm{Se}_1)(1 - \mathrm{Se}_2)$, and the sensitivity is the complement. A person without the condition is negative under the parallel rule when both tests are negative, with probability $\mathrm{Sp}_1\mathrm{Sp}_2$.

For the two tests here, the sensitivities are 0.850 and 0.628 and the specificities 0.680 and 0.639:

Rule Sensitivity: observed if independent Specificity: observed if independent
Serial (both positive) 0.540 0.534 0.858 0.884
Parallel (either positive) 0.938 0.944 0.461 0.434

Serial testing gains less specificity, and parallel testing less sensitivity, than the independence formulas promise. Positively associated tests tend to make their errors together. The right way to combine two tests is to estimate the joint likelihood ratios of their combinations from data, as in the table above. Another is to fit a model such as logistic regression that allows for the association.

Summary

Quantity Formula HbA1c $\ge 6.5\%$
Positive likelihood ratio $\mathrm{Se}/(1 - \mathrm{Sp})$ 34.9 (22.6, 54.0)
Negative likelihood ratio $(1 - \mathrm{Se})/\mathrm{Sp}$ 0.538 (0.453, 0.639)
Odds form of Bayes' theorem post-test odds $= \mathrm{LR} \times$ pre-test odds
Diagnostic odds ratio $\mathrm{LR}^+/\mathrm{LR}^- = \mathrm{TP}\cdot\mathrm{TN}/(\mathrm{FP}\cdot\mathrm{FN})$ 65.0
$\mathrm{SE}(\ln \mathrm{LR})$ $\sqrt{1/x_1 - 1/n_1 + 1/x_0 - 1/n_0}$ 0.2220, 0.0878

Worked problems

These problems are posed on the unit's own data, the 1,975 NHANES adults, and each is solved from the results above and from Intervals and Adjustment for Relative Risks and Odds Ratios; none is taken from the course text. The script recomputes every number.

Problem 1. At the cut-off of 6.0%, HbA1c is positive in 86 of the 115 adults with the condition and in 217 of the 1,860 without. Find both likelihood ratios with their 95% intervals and the diagnostic odds ratio, and compare them with the values at 6.5%.

Positive likelihood ratio. The sensitivity is $86/115 = 0.7478$ and the false positive rate $217/1{,}860 = 0.1167$, so $\mathrm{LR}^+ = 0.7478/0.1167 = 6.410$ and $\ln \mathrm{LR}^+ = 1.8578$. Its standard error is

$$\sqrt{\frac{1}{86} - \frac{1}{115} + \frac{1}{217} - \frac{1}{1{,}860}} = \sqrt{0.00293 + 0.00407} = \sqrt{0.00700} = 0.0837.$$

The interval for the logarithm is $1.8578 \pm 1.96 \times 0.0837 = (1.6938,\ 2.0219)$, and exponentiating gives $(5.44,\ 7.55)$.

Negative likelihood ratio. The negatives are 29 of the 115 cases and 1,643 of the 1,860 others, so $\mathrm{LR}^- = 0.2522/0.8833 = 0.2855$. Its standard error is $\sqrt{1/29 - 1/115 + 1/1{,}643 - 1/1{,}860} = 0.1608$, and the interval is $0.2855 \times e^{\pm 1.96 \times 0.1608} = (0.208,\ 0.391)$.

Diagnostic odds ratio.

$$\mathrm{DOR} = \frac{86 \times 1{,}643}{217 \times 29} = \frac{141{,}298}{6{,}293} = 22.45,$$

which is also $6.410/0.2855$. Woolf's standard error is $\sqrt{1/86 + 1/217 + 1/29 + 1/1{,}643} = 0.2266$, and the interval is $(14.4,\ 35.0)$.

The comparison.

Cut-off $\mathrm{LR}^+$ $\mathrm{LR}^-$ DOR
6.5% 34.9 (22.6, 54.0) 0.538 (0.453, 0.639) 65.0
6.0% 6.41 (5.44, 7.55) 0.285 (0.208, 0.391) 22.5

Lowering the cut-off weakens the positive result and strengthens the negative one. At 6.0% a positive result no longer reaches the level of 10 that rules a diagnosis in, and a negative result is still far from the 0.1 that rules one out. The interval for $\mathrm{LR}^+$ is much narrower at 6.0%, because it rests on 217 false positives instead of 25. The diagnostic odds ratio falls from 65.0 to 22.5. It is not a property of the measurement alone: it changes with the cut-off.

Problem 2. An adult aged 40 to 59 has no diagnosis. Among the NHANES adults of that age, 41 of 628 have the condition. Find the probability of the condition after an HbA1c (a) below 5.7%, (b) from 6.0% to 6.4%, and (c) of 7.0% or more, using the band likelihood ratios.

The pre-test probability is $41/628 = 0.0653$, and the pre-test odds are $0.0653/0.9347 = 0.06985$. Each result multiplies the odds by the likelihood ratio of its band, and the probability is recovered as odds$/(1 +$ odds$)$:

Result LR of the band Post-test odds Post-test probability
below 5.7% 0.217 $0.06985 \times 0.217 = 0.0152$ 0.0150
6.0–6.4% 2.696 $0.06985 \times 2.696 = 0.1883$ 0.1584
7.0% and over 113.2 $0.06985 \times 113.2 = 7.91$ 0.8877

The same adult ends with a probability of 1.5%, 16% or 89%, depending on the result. At the 6.5% cut-off the first two results would both be reported as "negative," with a post-test probability of 0.036 for each. These predictions carry the limits found above: the band ratios were computed over all ages, and they hold for this age group only as far as the test behaves the same way in it.

Problem 3. Take the pre-test probability to be the overall prevalence, 0.0582. (a) How large a likelihood ratio is needed for the post-test probability to reach one half, and which HbA1c results supply it? (b) How small a likelihood ratio is needed to bring the probability down to 0.01, and does any HbA1c result supply it?

The pre-test odds are $0.0582/0.9418 = 0.06183$.

(a) A probability of one half is odds of 1, so the likelihood ratio must be at least $1/0.06183 = (1 - \pi)/\pi = 16.17$. A positive result at 6.5% supplies it (34.9), and so do the bands 6.5–6.9% (20.0) and 7.0% and over (113). The band 6.0–6.4% does not (2.70). This threshold, $(1 - \pi)/\pi$, reappears in ROC Curves for Diagnostic Tests as the slope of the iso-cost lines when the two errors cost the same.

(b) A probability of 0.01 is odds of $0.01/0.99 = 0.01010$, so the likelihood ratio must be at most $0.01010/0.06183 = 0.1634$. None of the five bands supplies it. The negative result at 6.5% has $\mathrm{LR}^- = 0.538$ and leaves a probability of 0.0322, and even the lowest band, below 5.7%, has a ratio of 0.217 and leaves 0.0133. That band is wide. Split more finely, the lowest HbA1c values do carry enough evidence. Below 5.4% there are 3 cases and 700 non-cases, a ratio of $(3/115)/(700/1{,}860) = 0.069$, which brings the probability down to 0.0043, the observed $3/703$. Below 5.2% there are 2 cases and 381 non-cases (a ratio of 0.085), and below 5.0% 1 case and 158 non-cases (0.102). These finer ratios rest on one to three cases, so they are very imprecise. The answer therefore depends on how the result is reported: in five bands, HbA1c can make the condition likely but cannot bring its probability below 1%, and reported as a value below 5.4% it can.

Problem 4. Among the 1,942 adults with a BMI on record, 113 have the condition. Of these, 61 are positive on both screens (HbA1c of 5.7% or more and BMI of 30 or more), and of the 1,829 others, 260 are. Find the probability of the condition for an adult positive on both, first with the joint likelihood ratio and then with the product of the two separate ratios, 2.652 and 1.741.

The pre-test probability is $113/1{,}942 = 0.0582$, with odds $113/1{,}829 = 0.06178$.

Joint ratio. The pair "both positive" has probability $61/113 = 0.5398$ among the cases and $260/1{,}829 = 0.1422$ among the others, so its likelihood ratio is

$$\frac{61/113}{260/1{,}829} = \frac{61 \times 1{,}829}{113 \times 260} = \frac{111{,}569}{29{,}380} = 3.797.$$

The post-test odds are $0.06178 \times 3.797 = 0.2346$, a probability of $0.2346/1.2346 = 0.1900$. This is exactly the observed share: of the $61 + 260 = 321$ adults positive on both, 61 have the condition, and $61/321 = 0.1900$. It must be, because the odds form of Bayes' theorem is an identity when the ratio and the pre-test odds come from the same table.

Product of the ratios. $2.652 \times 1.741 = 4.617$. The post-test odds would be $0.06178 \times 4.617 = 0.2852$, a probability of $0.2852/1.2852 = 0.2219$.

The product puts the probability at 22.2% when 19.0% of such adults have the condition. The error is the double counting described above: an adult with a BMI of 30 or more is more likely to have an HbA1c of 5.7% or more whether or not the fasting glucose is diabetic, so the second positive result adds less than its separate ratio says.

What we have learned

A likelihood ratio states once what a test result adds, separately from the patient. A positive HbA1c multiplies the odds of a diabetic fasting glucose by 34.9, and a negative one by 0.54. On the log-odds scale the update is an addition, which Fagan's nomogram draws with a ruler. The ratios are relative risks of a result, so they take the log-scale intervals of the previous unit. Giving each band of HbA1c its own ratio recovers evidence that a single cut-off discards. The ratios of two tests multiply only when the tests are conditionally independent, which HbA1c and BMI are not.

The bands show that every HbA1c value carries evidence, so the line between positive and negative is a choice. ROC Curves for Diagnostic Tests measures how well HbA1c separates the two groups over all possible lines, by an area of 0.889 under its curve, and shows that the best place for the line depends on the prevalence and on the cost of each kind of error.

In Python

import numpy as np

def lr_ci(x1, n1, x0, n0, z=1.96):
    """Likelihood ratio (x1/n1)/(x0/n0) with its log-scale 95% interval."""
    lr = (x1 / n1) / (x0 / n0)
    se = np.sqrt(1 / x1 - 1 / n1 + 1 / x0 - 1 / n0)
    return lr, lr * np.exp(-z * se), lr * np.exp(z * se)

print(lr_ci(54, 115, 25, 1860))     # LR+ 34.94 (22.6, 54.0)
print(lr_ci(61, 115, 1835, 1860))   # LR- 0.538 (0.453, 0.639)

pre = 62 / 604                      # adults aged 60 and over
odds = pre / (1 - pre) * 34.94
print(odds / (1 + odds))            # post-test probability 0.800

Every number in this article is computed by tools/experiments/applied-statistics/likelihood-ratios-for-diagnostic-tests.py in the site's repository, from the NHANES files loaded by screendata.py.

References

  • American Diabetes Association Professional Practice Committee (2025). 2. Diagnosis and classification of diabetes: Standards of Care in Diabetes–2025. Diabetes Care, 48(Suppl. 1), S27–S49. https://doi.org/10.2337/dc25-S002 record · 7 pages
  • Deeks, J. J., and Altman, D. G. (2004). Diagnostic tests 4: Likelihood ratios. BMJ, 329(7458), 168–169. record · 2 pages
  • Fagan, T. J. (1975). Nomogram for Bayes's theorem (letter). New England Journal of Medicine, 293(5), 257. record
  • Jaeschke, R., Guyatt, G. H., and Sackett, D. L. (1994). Users' guides to the medical literature. III. How to use an article about a diagnostic test. B. What are the results and will they help me in caring for my patients? JAMA, 271(9), 703–707. record
  • National Center for Health Statistics (2020). National Health and Nutrition Examination Survey 2017–2018: DEMO_J, DIQ_J, BMX_J, GLU_J and GHB_J data files. Centers for Disease Control and Prevention. https://wwwn.cdc.gov/nchs/nhanes/continuousnhanes/default.aspx?BeginYear=2017 record · 109 pages
  • Pagano, M., Gauvreau, K., and Mattie, H. (2022). Principles of Biostatistics (3rd ed.). CRC Press. The course text. record · 48 pages

Reviewed: verified, 16 Nov 2026 · checked against sources, 23 Nov 2026 · citations checked, 16 Nov 2026 · editorial review, 23 Nov 2026 · 8 revisions