Least squares is used in
regression
analysis to calculate the position
of the regression line. The regression line,
or the line of 'best fit', is positioned
to minimize the sum of the squares of the
deviations of the points from the line:
Regression
analysis is covered in the MiC
Quality course in Advanced Statistics.