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.01,P(B∣A)=0.99,P(B∣A′)=0.05
P(A∣B)=0.166667
P(B)
0.0594
P(not A | B)
0.833333
Fraction
61
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.01, P(A′)=0.99, P(B∣A)=0.99 and P(B∣A′)=0.05.