$$P(H|E) = \frac{P(E|H)P(H)}{P(E)}$$

(more commonly known as Bayes's theorem, but I like my name better)