Calculates the Linear Regression of points by Least Square Fitting method [Vertical Offsets] and respectively draws the plots.
Input: X and Y co-ordinates of points
Output: Slope of the Fitting Line, Equation of Least Square Fitting Line
Least Square Fitting
Output
Slope, tanø = 0.9999
Equation of Least Square Fitting Line is [y = mx + c]: y = 0.9999x – 0.0993