Why $y^T(X \hat{\beta}) = (X\hat{\beta})^Ty$

37 Views Asked by At

In the article, Derivation: Ordinary Least Squares Solution and Normal Equations

I don't understand how enter image description here becomes enter image description here in the equation enter image description here

It seems no matrix transpose rules can apply to it to get the result.