I've been trying to understand the algebra behind:
Is there an equivalent of PEMDAS for matrices?
Even if I assume $(y^T-X^TB^T)(y-XB)$, I get $y^Ty-y^TXB-X^TB^Ty+X^TB^TXB$ which does not equal the above.
To get the above result, I used the following properties:
$(A+B)^T = A^T + B^T$ and assumed there is still a parenthesis wrapped around it. (PEMDAS Question)
$(A+B)(C+D)=(AC+AD+BC+BD)$ by multiplication and distributive property.
What above simplifications am I missing?
