least squares regression method formula