At the end of the derivation we have 2b^T I X = 2 (Xw - y)^T X^T.

Can someone clarify if the X transpose at the end is a typo? Because the dimensions doesn’t seem right. namely, (Xw - y)^T is (m, 1) and X^T is (n, m).

At the end of the derivation we have 2b^T I X = 2 (Xw - y)^T X^T.

Can someone clarify if the X transpose at the end is a typo? Because the dimensions doesn’t seem right. namely, (Xw - y)^T is (m, 1) and X^T is (n, m).