If we have two random variables X and Y which share a joint pdf and pmf (there is a discrete and a continuous scenario), how do we calculate:
Var[Var[X|Y]] - I looked at the Theory of Total Variance and it deals with Var[X|Y] but not this. An additional intuitive explanation will also be very much appreciated.
Additionally, does E[Var[X|Y]] = [E[X]]^2 * Var[Y] hold for continuous cases too?
Apologies in advance if the formatting is off. This is my first question on this site. Thanks in advance!
For any two random variables $X,Y$, we can define a random variable $X\vert Y$ which represents the value of $X$ given the value of $Y$. Thus, according to the standard definition, we have $$V(X\vert Y )= E(X^2\vert Y) - E^2 (X\vert Y)$$ The RHS is some function of $Y$ so $V(X\vert Y)$ would be a function of $Y$ which is a random variable and you can calculate it's variance in the usual manner. I don't see a way to provide a better answer, as it really depends on the random variables and their dependence.
For example, let $Y$ be some RV and $X\vert Y$ be either $Y$ or $-Y$ with equal probabilities. Then $E(X\vert Y)=0$ and $E(X^2\vert Y)=Y^2$, hence $Var(X\vert Y)=Y^2$. It follows that $$V(V(X\vert Y)) = V(Y^2)=E((Y^2)^2)-E^2(Y^2)=E(Y^4)-E^2(Y^2)$$ Choose your favorite $Y$, compute the appropriate expectations and you'll have your answer.