Bayes' Theorem

P(A|B) = P(B|A) × P(A) / [P(B|A) × P(A) + P(B|A') × P(A')]