Bayes' theorem

Bayes’ theorem states that for two events xx and yy,

p(x∣y)p(y)=p(y∣x)p(x). p(x|y) p(y) = p(y|x) p(x).