I am having trouble following a short derivation that uses the Law of Iterated Expectations that is found in the answer to another question: How to derive a regression formula
I will repeat it here:
Let $E(y|z) = \mu_{y|z}.$ Then it is shown that $E(y \mu_{y|z}) = Var(\mu_{y|z})$ in the following steps:
(1) $E(y \mu_{y|z}) = E(E(y|z, \mu_{y|z}) *\mu_{y|z})$
(2) $~~~~~~~~~~~~~= E(E(y|z) *\mu_{y|z})$
(3) $~~~~~~~~~~~~~= E(\mu^2_{y|z})$
(4) $~~~~~~~~~~~~~= Var(\mu^2_{y|z})$
I don't know all the properties of the LIE, but I do know that in general it gives $E(W) = E_Z(E(W|Z))$. With that said:
Q1. In line 1, what is going on? How is the LIE being applied in this way?
Q2. In going from line 1 to line 2, why do we not condition on $\mu_{y|z}$ anymore?
Q3. In going from line 3 to line 4, why is $(E(\mu_{y|z}))^2 = 0$ so that we get the variance?