Please I know the least squares solution for $\hat\beta = (X^TX)^{-1}X^Ty$ but I don't know how they were able to get
$X\hat\beta= X(X^TX)^{-1}X^Ty = UU^Ty$
These are the steps I followed :
$X\hat\beta = U\sum V^T(V\sum^T U^TU\sum V^T)^{-1}V\sum^T U^Ty \quad (1)$
$X\hat\beta = U\sum V^TV\sum^T U^Ty \quad(2)$
$X\hat\beta = UU^Ty \quad(3)$
Please from $(1)$ , why is $U^TU = I$ and $UU^Ty \neq I$?