Diagnostic Test Calculator

This calculator can determine diagnostic test characteristics (sensitivity, specificity, likelihood ratios) and/or determine the post-test probability of disease given given the pre-test probability and test characteristics. Given sample sizes, confidence intervals are also computed.

Fill out one of the sections below on the left, and then click on the 'Compute' button. Sections you don't fill out will be computed for you, and the nomogram on the right will display the probability that a patient has the disease after a positive or negative test.

Numbers of patients with and without the disease who test positive and negative:

Disease present Disease absent Total
Test positive 26
Test negative 84
Total 26 84 110

or
disease prevalence, test sensitivity, and test specificity (and, optionally, sample size):

Prevalence (e.g. 0.10):
Sensitivity (e.g. 0.80):
Specificity (e.g. 0.80):
Total sample size:

or
disease prevalence, positive likelihood ratio, and negative likelihood ratio (and, optionally, sample size):

Prevalence (e.g. 0.10):
+LR (e.g. 4):
-LR (e.g. 0.01):
Total sample size:

Optional information:

Your local prevalence (e.g. 0.10):
Probability of disease at or above which you would be comfortable treating with no further testing (e.g. 0.8)
Probability of disease at or below which you would be comfortable managing with no futher treatment or testing (e.g. 0.25)
Probability of disease at or above which you would treat (comfortable or not) and below which you would not treat, if there were no further options (e.g. 0.4)


[Nomogram image]

Prior probability (odds): 24% (0.3)
 
POSITIVE TEST:
Positive Likelihood ratio: 81
95% confidence interval: [11,568]
Posterior probability (odds): 96% (25.1)
95% confidence interval: [77%,99%]
(~ 1 in 1.0 with positive test are sick)
 
NEGATIVE TEST:
Negative Likelihood ratio: 0.04
95% confidence interval: [0.01,0.27]
Posterior probability (odds): 1% (0.0)
95% confidence interval: [0%,8%]
(~ 1 in 1.0 with negative test are well)
 
Odds = Probability / (1-Probability)
+LR = Sensitivity / (1 - Specificity)
-LR = (1 - Sensitivity) / Specificity
Posterior Odds = Prior Odds x LR
Embeddable URL: http://araw.mede.uic.edu/cgi-bin/testcalc.pl?DT=25&Dt=1&dT=1&dt=83&2x2=Compute
Diagnostic test calculator (version 2010042101). Copyright (c) 2002-2006 by Alan Schwartz <alansz@uic.edu>. This calculator is Free Software, available under the Clarified Artistic License.