Bayes' theorem

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

p(xy)p(y)=p(yx)p(x). p(x|y) p(y) = p(y|x) p(x).