what is the least squares method 
the least squares method is a mathematical technique that allows the analyst to determine the best way of fitting a curve on top of a chart of data points it is widely used to make scatter plots easier to interpret and is associated with regression analysis these days the least squares method can be used as part of most statistical software programs 