What does the "least squares" in ordinary least squares refer to?
"Least squares" is the name given to the sum of squares with the minimum possible total value...
Suppose we are given a set of data points
The equation of a (non-vertical) line can be written:
#y = mx+c#
In ordinary least squares, we seek to find a good fit by minimising the sum of the squares of the vertical errors for each point of our dataset. We can describe this sum of squares as a function of
#s(m, c) = sum_(i=1)^n (y_i - (m x_i + c))^2#
We want to find values of
This minimised sum of squares is called "least squares". This doesn't mean that we minimise all of the individual terms, just the sum of all of them.