Linear Regression

Shows the best fits (y on x and x on y). Gaps between data points and best fit line are shown for y on x. Also a line by eye can be drawn with gaps to be minimised

1. Draw best fit by eye using red buttons and varying m and c. 2. Show the vertical gap between the data and this line (ygaps). 3. Now compare the the calculated regression line (bestfit) and the corresponding gaps. (fitygaps) 4. Compare the line of regression of x on y (bestfitx)