keepcalculator

06 Numbers and Powers

SSE Calculator: What It Measures and How It Works

Card No. 06·0711 · Updated · Standard formula, shown below

The calculator on this card is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

An SSE calculator computes the sum of squared errors: the total of the squared differences between observed values and their predicted or fitted values. Enter each observed value and its corresponding predicted value to get SSE, a nonnegative measure of how far the predictions are from the data.

Formula

The formula is SSE = Σ(yᵢ − ŷᵢ)², where yᵢ is an observed value, ŷᵢ is its corresponding predicted value, and the sum covers all paired observations. The calculator subtracts each prediction from its observation, squares the difference, then adds those squared differences. Both lists must have the same number of values, and values at the same position must refer to the same case.

The input lists are numbers without a built-in unit. If the original values represent a measured quantity, SSE has the square of that quantity’s unit—for example, squared meters (m²), squared seconds (s²), or squared dollars. If the data are unitless, SSE is unitless.

Worked Example

Using the defaults, the observed values are 3, 5, 7, and 9; the predicted values are 2, 6, 6, and 10. Pair and calculate each residual and its square:

  • 3 − 2 = 1; 1² = 1
  • 5 − 6 = −1; (−1)² = 1
  • 7 − 6 = 1; 1² = 1
  • 9 − 10 = −1; (−1)² = 1

Therefore, SSE = 1 + 1 + 1 + 1 = 4. The negative residuals do not cancel the positive ones because every residual is squared before the values are added.

What SSE Tells You

SSE is a measure of total squared prediction error for a particular set of observations. A smaller SSE indicates that the predictions are closer to the observations in squared-error terms, when the same data and units are used. An SSE of zero means every prediction exactly matches its corresponding observation.

Squaring makes larger errors count disproportionately more. A residual of 4 contributes 16 to SSE, while a residual of 1 contributes 1. This can make SSE useful when large misses should carry substantial weight, but it also means one unusual value can dominate the total.

SSE does not tell you the direction of the errors: it does not show whether predictions tend to be too high or too low. It also does not provide a scale-free score. SSE values from datasets with different numbers of observations or different measurement units are not directly comparable. For example, converting measurements from meters to centimeters multiplies every residual by 100 and SSE by 10,000.

When to Use an SSE Calculator

SSE commonly appears in regression, curve fitting, forecasting evaluation, and other methods that compare measured outcomes with model predictions. It can help describe the fit of one model to one dataset, or serve as a quantity that a fitting procedure seeks to reduce.

  • Check a set of predictions: Pair each actual outcome with the model’s prediction for that same observation.
  • Compare candidate fits: Compare SSE values only when both calculations use the same observed data, the same outcome scale, and the same number of cases.
  • Review a calculation: Inspect residuals and squared residuals separately to see which cases contribute most to the total.

For instance, if two models predict the same four measured values and one has SSE 4 while the other has SSE 9, the first has the lower total squared error on those observations. That alone does not establish that it will predict new data better. A model can fit the data used to build it closely and still perform poorly on different data.

SSE Compared With Other Error Measures

SSE is related to several statistics, but they answer different questions. The mean squared error (MSE) divides a sum of squared errors by a specified count. Depending on context, that divisor may be the number of observations, or a residual degrees-of-freedom count such as n − p, where p is the number of fitted parameters. Check the convention being used; there is no single divisor that applies to every use of the term.

The root mean squared error (RMSE) is the square root of an MSE. It returns to the same units as the observations and is often easier to interpret as a typical error scale, although it remains sensitive to large errors. The sum of absolute errors instead adds the absolute residuals, so a residual of −2 contributes 2 rather than 4. This changes how large misses affect the total.

SSE is also not the same as R-squared. In a common regression definition, R-squared compares residual SSE with the total variation around the observed mean; it is a relative statistic, not simply another name for SSE. Its interpretation and possible range depend on the model and evaluation setting.

Common Input and Interpretation Mistakes

  • Pairing values incorrectly: The first observation must match the first prediction, and so on. A reordered list can produce a misleading result even if it contains the right numbers.
  • Using lists of different lengths: Every observation needs exactly one prediction. Do not silently omit missing cases from only one list.
  • Comparing incompatible scales: SSE changes when the measurement unit changes and generally grows with the number of observations. Use consistent data and units for comparisons.
  • Reading SSE as an average: SSE is a total, not an error per observation. For an average-based measure, calculate MSE using the appropriate divisor.
  • Rounding too early: Keep full precision for residuals and squared errors, then round the final displayed answer. Rounding intermediate values can change the total.

Predictions and observations must also use the same scale. Do not compare a prediction in kilograms with an observation in pounds without converting one of them first. If you transform the outcome—for example, by taking logarithms—SSE describes errors on that transformed scale, not directly in the original units.

Frequently Asked Questions

What does SSE stand for?
SSE usually stands for sum of squared errors, also called the sum of squared residuals in many modeling contexts. It is the sum of the squared differences between observed and fitted or predicted values.

Can SSE be negative?
No. Each residual is squared, so every contribution is zero or positive. SSE is zero only when all paired predictions equal their observations.

Is a lower SSE always better?
A lower SSE means a smaller total squared error on the data being evaluated. It is meaningful as a comparison only when the dataset, outcome scale, and calculation basis are comparable; it does not by itself prove better performance on new data.

How do I calculate SSE by hand?
Subtract each predicted value from its observed value, square each residual, and add the squares. Keep each observation paired with its own prediction.

What is the difference between SSE and MSE?
SSE is the total of the squared residuals. MSE divides a squared-error total by a chosen count; the correct divisor depends on the statistical context.

Why does changing units change SSE?
Residuals change by the unit-conversion factor, and squaring them squares that factor. Converting from meters to centimeters, for example, multiplies SSE by 100².

Related

Formula used
in obs | Observed values | - | 3, 5, 7, 9
in pred | Predicted values | - | 2, 6, 6, 10
out sse | Sum of squared errors | units² | sum((obs - pred)^2) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →