I understand how we get this formula
$$\Pr(H\mid E) = \frac{\Pr(H)\Pr(E\mid H)}{\Pr(E)}$$
from the fact that $\Pr(H\cap E)$ is equal to both $\Pr(H)\Pr(E\mid H)$ and $\Pr(E)\Pr(H\mid E),$ and solving for $\Pr(H\mid E).$
But how do we go from the denominator in the boldfaced formula to this new denominator below
$$\Pr(E) =\Pr(H)\Pr(E\mid H)+\Pr(\bar H)\Pr(E\mid \bar H)$$
?
Please explain it to me like I'm ten years old. I'm new to Bayes and learned the above after going over Venn diagrams several times, so break it down for me.
Thanks so much.
Look at the probability tree diagram:
$$\begin{align}P(H|E)=\frac{P(H\cap E)}{P(E)}=&\frac{P(E\cap H)}{P(E\cap H)+P(E\cap (-H))}=\\ &\frac{\color{red}{P(H)\cdot P(E|H)}}{P(H\cap E)+P((-H)\cap E)}=\\ &\frac{\color{red}{P(H)\cdot P(E|H)}}{\color{red}{P(H)\cdot P(E|H)}+\color{blue}{P(-H)\cdot P(E|(-H))}}. \end{align}$$