The sum of square residuals, written , measures the total squared difference between observed values and the values predicted by a regression model. For models fitted to the same data, a smaller generally indicates a closer fit.
How Is It Calculated?
A residual is the vertical difference between an observed value and its predicted value :
The residuals are squared and added:
Squaring prevents positive and negative residuals from cancelling. It also gives greater weight to large prediction errors.
Suppose a model produces residuals , , and . Then
If another model fitted to the same observations has residuals , , and , then its sum is . The second model fits these data more closely because .
However, the total alone does not show where the model fails. A residual plot helps identify structure: residuals scattered randomly around zero support the chosen model, while a curve or trend suggests that the model form is unsuitable. Because each residual is squared, one unusually large error can strongly increase the total. Therefore, inspect both the numerical value and the residual pattern before making a final judgement.
| Value of | Interpretation |
|---|---|
| Every predicted value equals its observed value: a perfect fit to the data. |
A common misconception is that the model with the smallest is always the best model. Comparisons are meaningful only for the same response data and scale; model shape, context, extrapolation, and possible overfitting must also be considered. Unlike , is not standardized and has squared units.
Exam Technique
This is AHL 4.13 Non-linear regression, so it is HL-only and may appear on any GDC-active HL paper. Use technology to obtain , compare candidate models, and finish with a contextual judgement rather than merely stating which value is smaller.
