Bayesian Inference Calculator

Apply Bayes' theorem to a binary hypothesis using a prior probability, sensitivity, and false-positive rate; view the evidence probability, posterior probability, and change from the prior.

This Bayesian Inference Calculator applies Bayes' theorem to a binary hypothesis H. Enter the prior probability P(H), evidence sensitivity P(E|H), and false-positive rate P(E|not H). The results are the evidence probability P(E), posterior probability P(H|E), and the change from prior to posterior.

  1. Enter the prior probability of the hypothesis as a percentage from 0 to 100.
  2. Enter the sensitivity, P(E|H), as a percentage from 0 to 100.
  3. Enter the false-positive rate, P(E|not H), as a percentage from 0 to 100.
  4. Read P(E), P(H|E), and the percentage-point change from the prior.

Binary-hypothesis Bayes formula

Evidence probability: P(E) = P(E|H)P(H) + P(E|not H)P(not H).

Posterior probability: P(H|E) = P(E|H)P(H) / P(E).

The posterior change is P(H|E) − P(H), expressed in percentage points.

Interpreting Bayesian results

The evidence rate sets the denominator

P(E) combines evidence from cases where H is true and where it is false. The posterior updates the prior using the supplied sensitivity and false-positive rate. For a prior of 1%, sensitivity of 90%, and false-positive rate of 5%, P(E) is 5.85% and P(H|E) is approximately 15.3846%.

Statistics tips and best practices

Common mistakes to avoid

This is a mathematical update for user-supplied probabilities, not a diagnosis or validation of a test. Verify consequential evidence and assumptions with qualified professionals.

Related Calculators