Least Square Fitting Formula