Conditional Probability and Bayes' Theorem Calculator

Calculate P(A|B) with Bayes' theorem from a prior probability, likelihood, and false-positive rate. Understand the base rate fallacy with a worked medical example.

Inputs

Venn diagram — events A and BTwo overlapping circles A and B inside a rectangle representing sample space S. The three regions are A only, the intersection A∩B, and B only.SABA∩B
%
0 – 100 %
%
0 – 100 %
%
0 – 100 %

Results

%
%
%
\begin{aligned} P(A \cap B) &= P(A) \cdot P(B|A) \\ &= (30\%)(80\%) \\ &= ?\% \end{aligned}
\begin{aligned} P(B) &= P(A)\,P(B|A) + (1 - P(A))\,P(B|\neg A) \\ &= (30\%)(80\%) + (100\% - 30\%)(10\%) \\ &= ?\% \end{aligned}
\begin{aligned} P(A|B) &= \dfrac{P(A \cap B)}{P(B)} \\ &= \dfrac{?\%}{?\%} \\ &= ?\% \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?