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.5,P(B∣A)=0.8,P(B∣A′)=0.4
P(A∣B)=0.666667
P(B)
0.6
P(not A | B)
0.333333
Fraction
32
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.5, P(A′)=0.5, P(B∣A)=0.8 and P(B∣A′)=0.4.