Least Squares Regression
Least squares regression is, given a set of paired observations , assuming a linear relationship defined by , where is the error (or residual) between the model and the observations; we then minimise the sum of the squares of these errors.
In practice, least squares regression means minimising as an error criterion; this results in and .
Expanding the model to a general polynomial of degree gives , and we once again minimise the sum of squared residuals to obtain the best-fitting polynomial coefficients.