Linear Regression by Least Square Fitting

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

Input



Output

Slope, tanø = 0.9999
Equation of Least Square Fitting Line is [y = mx + c]: y = 0.9999x – 0.0993

This entry was posted in Projects. Bookmark the permalink.