How to use this calculator
Sum squared residuals to measure the total squared difference between matched observed responses and model predictions.
- Enter Observed values, Predicted values. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
How Sum of squared residuals calculator works
Sum squared residuals to measure the total squared difference between matched observed responses and model predictions.
Inputs and units
- Observed values: List the observed response for each case; order must match the prediction list.
- Predicted values: List one fitted or predicted response for each observation, in the same order and units.
Formula and method
SSE = Σᵢ (yᵢ − ŷᵢ)²
Worked example
For observed values 3, 5, 8 and predictions 2, 7, 8, residuals are 1, −2, 0. Squaring and summing gives SSE = 1 + 4 + 0 = 5 response-units².
Interpreting the result
SSE is zero for a perfect fit and grows with residual size. It also tends to grow with sample size, so compare models on the same observations and response scale.
Assumptions and limits
The result is in squared response units and is not normalized for the number of cases. It does not alone account for model complexity or establish that a model is appropriate.
Sources and method
- Definitions and scale behavior for regression error metrics. scikit-learn model evaluation
Frequently asked questions
Why are the residuals squared?
Squaring prevents positive and negative errors from cancelling and gives larger misses more weight.
Can SSE compare datasets with different units?
No. The squared units and sample size affect its magnitude; use a normalized metric for comparisons.
How do I use the Sum of squared residuals calculator?
Enter Observed values, Predicted values. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Sum of squared residuals?
For observed values 3, 5, 8 and predictions 2, 7, 8, residuals are 1, −2, 0. Squaring and summing gives SSE = 1 + 4 + 0 = 5 response-units².
What does the Sum of squared residuals calculator calculate?
Sum squared residuals to measure the total squared difference between matched observed responses and model predictions.