I have a question that I need to solve. It goes like this:
The chance of rain today if it was rainy yesterday is $0.7$. The chance of rain today if it was not rainy yesterday is $0.2$. We know that it was not rainy on Sunday. Given the fact that it was rainy on Tuesday, what are the chances that it was rainy on Monday?
I believe that it's $0.2(0.2\cdot0.7+0.7\cdot0.7)$ but I'm not sure.
$$\text{Sunday not rainy} \cases{ 0.2\text{: Monday rainy}\cases{ 0.7\text{: Tuesday rainy}\\ 0.3\text{: Tuesday not rainy} }\\ 0.8\text{: Monday not rainy}\cases{ 0.2\text{: Tuesday rainy}\\ 0.8\text{: Tuesday not rainy}} }$$
$$\begin{align*} \Pr (\text{Monday rainy} \mid \text{Tuesday rainy}) &=\frac{\Pr(\text{Monday rainy} \cap \text{Tuesday rainy})}{\Pr(\text{Tuesday rainy})}\\ &=\frac{ \Pr(\text{Monday rainy})\Pr(\text{Tuesday rainy}\mid\text{Monday rainy})}{\Pr(\text{Tuesday rainy})}\\ &= \frac{0.2\cdot 0.7}{0.2\cdot 0.7 + 0.8\cdot0.2}\\ &= \frac7{15} \end{align*}$$