Diagnostic Odds Ratio (DOR) Calculator
Calculate the diagnostic odds ratio (DOR), a single-number summary of a classifier's discriminative power.
Inputs
Diagnostic Odds Ratio
340.0000
TP × TN
68,000
FP × FN
200
Step by step
Numerator: TP × TN
80 × 850
= 68000
Denominator: FP × FN
20 × 10
= 200
DOR: numerator / denominator
68000 ÷ 200
= 340.0000
How it works
The Diagnostic Odds Ratio (DOR) is a single-number summary of how well a classifier discriminates between positive and negative cases: DOR = (TP × TN) / (FP × FN). It expresses the odds of a positive prediction occurring in someone who truly has the condition, relative to the odds of a positive prediction in someone who doesn't. A DOR of 1 means the test has no discriminative value; higher values indicate better discrimination, and DOR is undefined (infinite) when there are zero false positives or false negatives.
Formula
DOR = (TP * TN) / (FP * FN)
- TP
- True positives
- TN
- True negatives
- FP
- False positives
- FN
- False negatives
Frequently Asked Questions
What does a DOR of 1 mean?
A DOR of 1 means the odds of a positive test result are the same whether or not the condition is truly present, indicating the test provides no discriminative information at all.
Why can DOR be undefined?
If either FP or FN is zero, the denominator becomes zero and DOR is mathematically undefined (infinite) — this happens with a 'perfect' classifier on the given data, and in practice a small correction (like adding 0.5 to each cell) is sometimes applied to avoid this.
How does DOR compare to sensitivity and specificity?
DOR combines both sensitivity and specificity information into one number via the odds ratio, which is convenient for ranking classifiers, but it can obscure whether performance is driven by the positive or negative class, so it's best used alongside — not instead of — sensitivity and specificity.