Normal Equations for Ordinary Least Squares

Linear Algebra
Least Squares
Easy
State the normal equations for ordinary least squares.
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. 1. Differentiate the objective

    The squared error has gradient with respect to .

  2. 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

Related problems