Skip to main content
Calcimator

Bayesian Prior Calculator

Apply Bayes' theorem to update a prior probability given test sensitivity and false positive rate. Calculate the posterior probability after a positive or negative result.

Inputs

Results

Posterior P(A | positive test)

0.16

Posterior P(A | negative test)

0

Positive Likelihood Ratio19
Negative Likelihood Ratio0.05
Prior Odds0.01
Posterior Odds (after + test)0.19
Information Gain (bits)4.01
How to Use This Calculator
  1. Enter the Prior Probability — your belief that the condition is present before seeing the test result (e.g., disease prevalence).
  2. Enter the Sensitivity (true positive rate) — the probability the test is positive given the condition is present.
  3. Enter the False Positive Rate — the probability the test is positive when the condition is absent (1 − Specificity).
  4. Bayes' theorem updates the prior: P(condition | positive test) = (sensitivity × prior) / P(positive test).
  5. The Posterior Probability is the updated belief after a positive result; it depends heavily on the prior.
  6. Low prevalence dramatically reduces the positive predictive value even for highly sensitive tests — this is the base rate fallacy.
Ad Placeholder

Related Calculators

Ad Placeholder