Probability and Randomness
This calculator uses Bayes' theorem to determine the probability of a condition (like a disease) after a diagnostic test has been performed.
See how the calculator works with real-world scenarios.
Scenario: A common condition with a prevalence of 20% is tested with a moderately accurate test.
Prior Prob: 20%
Sensitivity: 85%, Specificity: 80%
Scenario: A rare disease with a prevalence of 0.1% is tested with a highly accurate test.
Prior Prob: 0.1%
Sensitivity: 99%, Specificity: 99%
Scenario: A screening test designed to not miss any cases (high sensitivity) but may have more false positives (lower specificity).
Prior Prob: 5%
Sensitivity: 99.5%, Specificity: 85%
Scenario: A confirmatory test that is very good at ruling out a condition (high specificity) but might miss some actual cases.
Prior Prob: 15%
Sensitivity: 80%, Specificity: 99.8%