Meaning and conditions
Sensitivity and specificity concern the same positive class, reference status and suitable testing population. Pretest probability is additionally needed for post-test probabilities. Zero denominators may mean infinite LR or impossible evidence; the bounded calculator does not invent finite numbers for them.[1][2]
Sensitivity and specificity describe test characteristics. Positive and negative predictive values additionally use baseline frequency; ROC AUC instead summarizes ranking discrimination across thresholds.[1][2]
Derivation and relations
Compare the same result’s likelihood across two states and update their odds with Bayes’ rule.[1][2]
- Specify the positive class and reference condition. SensitivitySe=P(+|D), specificitySp=P(−|not D), with prior probability p=P(D).
- Compare the same test result’s probability across conditions: LR+=Se/(1−Sp), LR−=(1−Se)/Sp. Check zero denominators separately.
- Convert prior probability to odds p/(1−p). Multiply by the LR for the observed result, then convert back using odds/(1+odds).
- Direct Bayes fractions avoid unnecessary infinite odds at p=0 or 1: for a positive result use pSe/[pSe+(1−p)(1−Sp)]. Its denominator, the test-result probability, must be positive.
See the model
The same test result at different prior probabilities
Free with a Quanta account. Your download stays ready after registration.
Two complete worked examples
A positive and a negative result
- Given
- Fictional test with Se=0.9, Sp=0.8 and pretest probability p=0.1.
- Find
- Calculate both likelihood ratios and post-test probabilities.
Calculate both ratios.
Prior odds are 1/9; after a positive result they become 4.5/9=1/2.
After a negative result, odds are 1/72.
Result: Positive: about 33.33% instead of 10%; negative: about 1.37%. LR+=4.5 is not itself a 450% probability.
Check: The direct positive Bayes calculation 0.09/(0.09+0.18)=1/3 confirms the odds method.
A reversely informative test
- Given
- A different fictional test has Se=0.2, Sp=0.3, p=0.4; class labels remain fixed.
- Find
- Understand an unusual direction of diagnostic information.
Calculate LR without arbitrarily clipping at 1.
A positive result is more common without disease; update directly.
A negative result increases disease probability here.
Result: Positive lowers probability to 16%; negative raises it to 64%. The model is mathematically defined but reversed relative to the usual useful test orientation.
Check: The positive class was not switched afterward. LR+below 1 is not mathematically impossible.
Recall the method later with the formula’s flashcards.
11 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Units, interpretation and limits
All quantities are dimensionless; Se, Sp and p lie in[0,1]. LR may exceed 1 and is not a percentage probability. The calculator offers explicitly labeled percentages and fractions for probabilities.[1][2]
This fixed calculation establishes neither clinical suitability nor transportability of entered test characteristics. Uncertainty and dependent multiple tests require separate assessment.[1][2]
Five exercises with distinct learning goals
Calculate · Foundation
Se=0.8, Sp=0.9, p=0.2: calculate LR+, LR− and P(D|+).
Show hint
Use the actual prior probability for P(D|+).
Learning goal: Calculate LR and positive post-test value
Show solution and calculation
LR+=0.8/0.1=8, LR−=0.2/0.9=2/9.
P(D|+)=0.16/(0.16+0.08)=2/3≈0.666667.
Sensitivity 0.8 differs from post-test probability 2/3.
Rearrange · Application
Post-test odds are 1/2 and the result LR is 4.5. Find pretest probability.
Show hint
Divide odds by LR before converting back to p.
Learning goal: Recover pretest odds
Show solution and calculation
Pretest odds=(1/2)/(9/2)=1/9.
Thus p=(1/9)/(1+1/9)=1/10=0.1.
The division applies to odds, not probabilities.
Interpret · Application
Se=Sp=0.5 and p=0.3. What do positive and negative results change?
Show hint
Both LR values equal 1.
Learning goal: Interpret a likelihood ratio of 1
Show solution and calculation
LR+=0.5/0.5=1 and LR−=0.5/0.5=1.
Both results leave odds, and therefore p=0.3, unchanged.
Under the model the test adds no diagnostic information for this distinction.
Error analysis · Application
With p=0.1 and LR+=4.5, someone reports P(D|+)=0.45. Correct this.
Show hint
First use p/(1−p), then multiply.
Learning goal: Do not multiply probability directly by LR
Show solution and calculation
Pretest odds=1/9 and post-test odds=(1/9)·4.5=1/2.
Converting back gives p+=(1/2)/(1+1/2)=1/3.
Direct multiplication of p by LR skips the required odds scale.
Transfer · Challenge
For Se=Sp=1 and p=0.4, find P(D|+)and P(D|−). What about a positive result when p=0?
Show hint
Use direct Bayes fractions and check their denominators.
Learning goal: Distinguish perfect tests and impossible evidence
Show solution and calculation
At p=0.4, the positive and negative evidence probabilities are 0.4 and 0.6, giving post-test values 1 and 0.
At p=0, a positive result is impossible under this perfect model: denominator 0, so conditional post-test probability is undefined.
LR+ is infinite, not a finite calculator output.
Check your understanding with the formula’s reference test.
8 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Sources for this explanation
Quanta · Updated November 9, 2026
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Added a full article with explicit validity conditions, two authored examples, five checked exercises and an original native data graphic.
Cite this reference page
Quanta. Diagnostic Likelihood Ratios. Updated November 9, 2026. https://quanta-study.de/en/formula-sheet/diagnostische-likelihood-ratios
When citing a specific scientific statement, also cite the specialist source linked to that statement.