Bayes Theorem
Event A:
Event B:
P(B):
P(A|B):
P(A|~B):
P(B)*P(A|B)
P(B|A) =
-----------------------------
P(B)*P(A|B) + P(~B)*P(A|~B)
P(B|A) =