Least Square Fitting Method Formula