Earlier, we defined the residuals as the vertical distance between the fitted regression line and the data points. Another way to look at this is, the residual is the difference between the predicted value and the observed value,
Note that the sum of residuals,
, always equals
zero. However, the quantity we minimized to obtain our least
squares equation was the residual sum of squares, SSRes,
An alternative formula for SSRes is
Notice that the residual sum of squares is never negative. The larger SSRes is, the further away from the line data points fall.