I am stuck at this question. For example I have B=(X'X)^-1X'Y but I cannot go further and make He a part of the model. Any suggestions on how to proceed?
2 Answers
$\begingroup$
$\endgroup$
Note that you have $$ \hat{\mathbf{Y}}=\mathbf{H}\mathbf{Y} $$ Now you can replace $\mathbf{Y}$ in the equation above with $\mathbf{Y}=\mathbf{X}\beta + \epsilon$. Then you get $$ \hat{\mathbf{Y}}=\mathbf{H}(\mathbf{X}\beta + \epsilon) = \mathbf{H}\mathbf{X}\beta + \mathbf{H}\epsilon $$ Now you need to find the expression for $\mathbf{H}$, (i.e. the hat matrix) plug it in the first term and see what happens.
$\begingroup$
$\endgroup$