Least squares method of fitting a line ( the line of best fit or the regression line) through the scatter diagram is a method which minimizes the sum of squared vertical deviations from the fitted lines. In other words the line to be fitted will pass through the points of the scatter diagram in such a fashion that the sum of the squares of the vertical deviations of these points from the line will be a minimum