Enter P(A), P(B given A) and P(B given not A) to reverse the conditional with Bayes' theorem.
A probability from 0 to 1, as a decimal or a fraction.
A probability from 0 to 1, as a decimal or a fraction.
A probability from 0 to 1, as a decimal or a fraction.
Try
Result
You enteredP(A)=0.3,P(B∣A)=0.9,P(B∣A′)=0.2
P(A∣B)=0.658537
P(B)
0.41
P(not A | B)
0.341463
Fraction
4127
Show the work
1
Law of total probability
B can only happen together with A or together with the complement A′, and these two cases do not overlap, so the chance of B is the sum of the two. Here P(A)=0.3, P(A′)=0.7, P(B∣A)=0.9 and P(B∣A′)=0.2.