---
tags: Probability
---
# Further Topics on RVs: Conditional Expectation and Variance Revisited
by AWfulsome
---
Two useful probability laws:
* Law of iterated expectations
$$
E[E[X|Y]] = E[X]
$$
* Law of total variance
$$
\mathrm{var}(X) = E[\mathrm{var}(X|Y)] + \mathrm{var}(E[X|Y])
$$
### More on Conditional Expectation
* $E[X|Y = y]$ in fact can be viewed as *a function of $Y$*, because its value depends on the value $y$ of $Y$.
* Is $E[X|Y]$ a random variable?
* What is the expected value of $E[X|Y]$?
:::spoiler Example


:::