Quality of the fit

We can measure the quality using R2R^2, a measure for the percentage of variability of the dependent variable.

It is the residual sum of squares (difference to y at the point x) divided by the total sum of squares (difference to mean y)

IMG - Residiual Error.png