Normal Equations for Ordinary Least Squares
Linear Algebra
Least Squares
Easy
Hint 1
Least squares minimizes over .
Hint 2
Differentiate the squared residual norm with respect to and set the gradient to zero.
Show worked solution
1. Differentiate the objective
The squared error has gradient with respect to .
2. Set the gradient to zero
Setting the gradient to zero and rearranging gives the normal equations.
Answer: X^T X beta = X^T y
Related roles: Browse quant jobs