Least Square Method Formula