Least Squares Method: What It Means, How to Use It, With Examples