Least squares is used in
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:
analysis is covered in the MiC
Quality course in Advanced Statistics.