Sum of Squared Errors (SSE) › Interpretation Guidelines

Michael BrenndoerferApril 22, 20254 min read
Machine Learning from ScratchAll chapters
Part 3 of 9Foundations
Chapter 23Sum of Squared Errors (SSE) › Interpretation Guidelines
Reading section 4 of 10 · Interpretation Guidelines · 4 minSection 4 of 10 · 4 min

Book contents

Section 4 of 10 · 4 min read

Sum of Squared Errors (SSE) › Interpretation GuidelinesOne section · Sections in this chapter4 / 10 ↓
Reading tools Definitions & inline links

Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.

Article links

Make inline references clickable

Understanding SSE Values

SSE values provide a direct measure of how well a regression model fits the observed data. However, interpreting the magnitude of SSE requires context:

  • Absolute values are context-dependent: The scale of SSE depends on the units and range of your target variable (yy). For example, an SSE of 100 might indicate a poor fit for a dataset where yy ranges from 0 to 10, but could be excellent if yy ranges from 0 to 10,000.
  • Relative comparison is key: SSE is most useful when comparing different models on the same dataset. A lower SSE indicates that the model's predictions are, on average, closer to the actual values.
  • Zero is the ideal: An SSE of 0 means the model predicts every data point perfectly.this is rare in practice and may indicate overfitting if achieved on training data.

SSE by itself does not account for the number of data points or the complexity of the model. For more interpretable or comparable metrics, practitioners often use related measures such as Mean Squared Error (MSE), Root Mean Squared Error (RMSE), or R-squared, all of which are derived from SSE.

Hint
  • SSE = 0: Perfect fit - all predictions exactly match the actual values
  • Small SSE: Good model fit with small prediction errors
  • Large SSE: Poor model fit with substantial prediction errors
  • SSE is always ≥ 0: Since we're summing squared values

Comparing SSE Across Models

When you are evaluating multiple models using the same dataset, it is important to compare their SSE values to assess which model provides a better fit.

Hint
  • Lower SSE = Better fit (assuming same number of parameters)
  • SSE alone doesn't account for model complexity - more complex models can achieve lower SSE even if they're overfitting

Relationship to Other Metrics

The Sum of Squared Errors (SSE) is foundational for several key regression metrics that provide more interpretable or standardized assessments of model performance. By understanding SSE, you can more easily interpret related measures such as Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and R-squared, all of which are derived directly from the SSE calculation. Here's how these related metrics are defined and interpreted:

Mean Squared Error (MSE)

MSE=SSEn=1n∑i=1n(yi−y^i)2MSE = \frac{SSE}{n} = \frac{1}{n} \sum_{i=1}^n (y_i - \hat{y}_i)^2

MSE represents the average squared difference between the observed values and the predicted values. By dividing SSE by the number of observations (nn), MSE provides a scale-adjusted measure of model error that is easier to compare across datasets of the same target variable. Lower MSE values indicate better model performance.

Root Mean Squared Error (RMSE)

RMSE=MSE=SSEnRMSE = \sqrt{MSE} = \sqrt{\frac{SSE}{n}}

RMSE is simply the square root of the MSE. This brings the error metric back to the original units of the target variable (yy), making it more interpretable in practical terms. For example, if yy is measured in dollars, RMSE is also in dollars. Like MSE, lower RMSE values indicate a better fit.

R-squared (R2R^2)

R2=1−SSESSTR^2 = 1 - \frac{SSE}{SST}

where SSTSST is the total sum of squares:

SST=∑i=1n(yi−yˉ)2SST = \sum_{i=1}^n (y_i - \bar{y})^2

R2R^2 measures the proportion of variance in the observed data that is explained by the model. It ranges from 0 to 1 for models that do not overfit, with higher values indicating a better fit. An R2R^2 of 1 means the model explains all the variability in the data, while an R2R^2 of 0 means it explains none.

Summary Table

MetricFormulaInterpretation
MSESSEn\frac{SSE}{n}Average squared error (scale-dependent)
RMSESSEn\sqrt{\frac{SSE}{n}}Average error in original units
R2R^21−SSESST1 - \frac{SSE}{SST}Proportion of variance explained by the model

These metrics, all derived from SSE, are commonly used to evaluate and compare regression models. They each provide a different perspective on model performance and are often reported together for an overall assessment.