Calculating the difference between the actual data and the line of best fit
Calculating the difference with the line of best fit
For any given x value, we can calculate the difference between its y value given in the data set (represented by the dot on the scatterplot) and the y value predicted by the line of best fit.