Sum of Squared Errors (SSE) › Limitations and Considerations
Machine Learning from ScratchAll chapters Sum of Squared Errors (SSE) › Limitations and ConsiderationsOne section · Sections in this chapter8 / 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
SSE Limitations
SSE is a foundational metric, but it is not always the best or only choice for evaluating model performance. Here are some important limitations and considerations to keep in mind when using SSE:
-
Scale dependency: SSE is measured in the squared units of the target variable. This means that if your target variable is measured in thousands, the SSE will be in millions, making it difficult to interpret or compare across datasets with different scales. For this reason, metrics like Mean Squared Error (MSE), Root Mean Squared Error (RMSE), or R-squared are often preferred for interpretability and comparison.
-
Sensitivity to outliers: Because errors are squared, a single large error (outlier) can disproportionately increase the SSE. This makes SSE highly sensitive to outliers, as demonstrated in the previous visualization. If your data contains outliers or is not normally distributed, consider using metrics less sensitive to outliers, such as Mean Absolute Error (MAE).
-
No upper bound: SSE does not have a natural upper limit. Its value depends on the number of data points and the scale of the target variable, making it difficult to judge what constitutes a "good" or "bad" SSE without additional context.
-
Sample size dependency: SSE generally increases as the number of observations increases, even if the model's performance per observation remains the same. This means SSE is not directly comparable across datasets of different sizes.
-
Not always aligned with business goals: In some applications, large errors may be more costly than small ones, or vice versa. SSE penalizes large errors more heavily, which may or may not align with the real-world costs associated with prediction errors in your specific context.
Because of these limitations, it is important to use SSE alongside other evaluation metrics and to consider the context of your data and modeling goals. Check for outliers, consider the scale of your variables, and use cross-validation to assess how well your model generalizes to new data.
When SSE Might Not Be Appropriate
SSE may not be the most appropriate metric in certain situations. For example, when the error distribution is heavy-tailed and does not follow a normal distribution, SSE can be misleading. Similarly, if your data contains many outliers, more stable alternatives such as Mean Absolute Error (MAE) may give a better assessment of model performance. Additionally, when comparing models across different target variables that are measured on different scales, SSE can be difficult to interpret and may not allow for fair comparisons.
Best Practices
When working with SSE, it is best practice to use relative metrics such as Mean Squared Error (MSE), Root Mean Squared Error (RMSE), or R-squared, as these provide more interpretable and comparable measures of model performance. Examine your data for outliers or influential points before relying solely on SSE, since outliers can have a disproportionate impact on the metric. To assess how well your model generalizes to new data, apply SSE (or related metrics) to validation or test sets using cross-validation techniques. To reduce sensitivity to outliers, consider alternative metrics such as Mean Absolute Error (MAE), which are less affected by extreme values.