The normal equation for a matrix equation
with real
and
is that which minimizes the sum of the square differences between the left and right
sides:
It is called a normal equation because is normal to the range of
.
Here,
is the Gram matrix of the columns of
. It is also a normal matrix.