Bayesian Probability Calculator

Reviewed by CalcMulti Editorial Team·Last updated: ·Probability Hub

Bayesian probability uses Bayes' theorem to update a prior probability estimate when new evidence is observed. The result is a posterior probability that incorporates both the prior belief and the new evidence.

Bayes' theorem: P(H|E) = P(E|H) × P(H) / P(E), where H is the hypothesis, E is the observed evidence, P(H) is the prior probability, P(E|H) is the likelihood, and P(H|E) is the posterior probability.

Classic medical test example: A disease affects 1% of the population (prior). A test is 90% sensitive (P(positive|disease) = 0.90) and 95% specific (P(negative|no disease) = 0.95, so P(positive|no disease) = 0.05). If you test positive, what is P(disease|positive)?

P(E) = P(pos|disease)×P(disease) + P(pos|no disease)×P(no disease) = 0.90×0.01 + 0.05×0.99 = 0.009 + 0.0495 = 0.0585. Posterior = 0.009 / 0.0585 ≈ 15.4%. Despite the positive test, the probability of disease is only ~15% because the disease is rare.

Formula

P(H|E) = P(E|H) × P(H) / P(E)

P(H)
prior probability of the hypothesis
P(E|H)
likelihood — probability of evidence given hypothesis is true
P(E)
total probability of the evidence
P(H|E)
posterior probability — updated belief after observing evidence

Bayesian Probability Update

Classic example: medical test with prior disease probability

Disclaimer

This calculator is for educational purposes only and does not constitute professional advice. Results are based on standard mathematical formulas. Always verify critical calculations with a qualified professional before making important decisions.

Frequently Asked Questions