Bayes' Theorem Calculator

Compute the posterior probability from a prior, sensitivity, and false-positive rate

Frequently Asked Questions

What is Bayes' theorem?

P(A|B) = P(B|A)·P(A) / P(B), where P(B) = P(B|A)·P(A) + P(B|¬A)·P(¬A). It updates a prior belief with new evidence to a posterior.

Why can a positive test still mean low risk?

With a rare condition (low prior), even a good test produces many false positives relative to true positives, so P(disease | positive) can be surprisingly small.

What are sensitivity and false-positive rate?

Sensitivity = P(positive | has condition); false-positive rate = P(positive | no condition) = 1 − specificity. Both feed the posterior calculation.

What is the natural-frequency restatement?

Expressing the same problem as "out of 1,000 people…" makes it intuitive: count true vs false positives directly instead of juggling conditional probabilities.

Important Disclaimer: Estimates for informational purposes only.

This calculator provides estimates for informational purposes only. Results are based on assumptions and may not reflect actual outcomes. Consult qualified professionals in relevant fields before making important decisions based on these results.