Skip to content

Bayes’ Theorem Calculator

Compute the posterior probability P(A|B) from a prior, a true-positive rate (sensitivity), and a false-positive rate. Useful for medical-test and diagnostic reasoning.

Inputs

%
0 – 100 %
%
0 – 100 %
%
0 – 100 %

Results

Enter a value to see results.

%

Details

%
\begin{aligned} P(A|B) &= \dfrac{P(B|A)\,P(A)}{P(B|A)\,P(A) + P(B|\lnot A)\,P(\lnot A)} \\ &= \dfrac{(90)(1)}{(90)(1) + (5)(1 - 1)} \\ &= ? \end{aligned}
\begin{aligned} P(B) &= P(B|A)\,P(A) + P(B|\lnot A)\,P(\lnot A) \\ &= (90)(1) + (5)(1 - 1) \\ &= ? \end{aligned}

Embed this calculator

Preview

Paste this code into your page to show the calculator.

Share this calculation

Anyone who opens this link sees your values already filled in.

200+ calculators · 10 languages · 100% free

Was this calculator helpful?

No

How can we improve this calculator?