Total Probability Theorem: Formula, Proof & Applications