Skip to main content

Sum of Squared Residuals

Sum of Squared Residuals, or RSS, is the total of all squared differences between observed and predicted values in a regression model. In Honors Statistics, it measures how far your line of best fit misses the data overall.

Last updated July 2026•Fiveable Content Team

What is Sum of Squared Residuals?

Sum of Squared Residuals is the total squared distance between each data point’s actual value and the value predicted by a regression line. In Honors Statistics, you will usually see it written as RSS or referred to as the residual sum of squares.

A residual is the vertical difference between an observed point and the predicted value from the model. If a point sits above the regression line, the residual is positive. If it sits below, the residual is negative. RSS turns all of those leftover differences into one number by squaring them first, then adding them up.

The squaring matters because it keeps positive and negative residuals from canceling each other out. It also makes large misses count more than small ones. So if one prediction is way off, RSS grows quickly, which tells you the model is not fitting the data very well.

Here is the basic idea in a fuel efficiency regression. Suppose a car’s weight predicts MPG. If the model predicts 30 MPG for a car but the actual value is 27 MPG, the residual is -3, and the squared residual is 9. If another car is predicted at 22 MPG and actually gets 21 MPG, the residual is -1, and the squared residual is 1. RSS adds those squared misses across all the cars in the dataset.

In regression, the goal of ordinary least squares is to choose the line with the smallest RSS. That line is called the line of best fit because it leaves the least total squared error. A smaller RSS means the model tracks the data more closely, while a larger RSS means there is more unexplained variation left in the residuals.

RSS is not used by itself in the same way as a final grade. It is a fitting measure, so you read it relative to the size of the data and usually compare it to another model, or connect it to R-squared and other regression outputs. The main question it answers is simple: how much error is left after the line does its job?

Why Sum of Squared Residuals matters in Honors Statistics

Sum of Squared Residuals is the number that tells you how well a regression model actually matches the data in Honors Statistics. When you graph a scatterplot and fit a line, RSS gives you a way to judge the line with more than a visual guess.

This matters because regression is not just about drawing a line through points. You are trying to model a relationship, like how vehicle weight relates to fuel efficiency, and RSS shows how much the model misses by. If two lines look similar, the one with the smaller RSS fits the data better.

RSS also connects directly to the idea of unexplained variation. The smaller the RSS, the less leftover error the model has. That makes it a bridge to R-squared, since R-squared describes how much of the variation is explained by the regression model rather than left in the residuals.

In class, RSS often shows up when you compare models, interpret regression output, or explain why one line is preferred over another. It helps you move from "this line looks okay" to "this line leaves less total error." That is the kind of reasoning Honors Statistics wants you to show.

Keep studying Honors Statistics Unit 12

How Sum of Squared Residuals connects across the course

Residual

A residual is the single-point difference between an observed value and a predicted value. RSS is just the sum of all those residuals after each one is squared. If you can identify one residual on a scatterplot, you are already partway to understanding how RSS is built.

Regression Analysis

Regression analysis uses a line or equation to model the relationship between variables. RSS is one of the main ways to judge whether that model fits well. When you compare regression results, a lower RSS usually means the model leaves less error behind.

Goodness of Fit

Goodness of fit describes how closely a model matches the data it is trying to represent. RSS is one of the clearest numerical checks for fit in linear regression. A small RSS means the predictions stay close to the observed points, while a large RSS suggests a weaker fit.

Random Error Term

The random error term represents the part of a response variable that your model cannot explain. RSS measures that leftover error across the whole dataset. In a regression problem, RSS is a practical way to see the total impact of all those random deviations.

Is Sum of Squared Residuals on the Honors Statistics exam?

On a problem set or quiz, you may be asked to calculate RSS from a table of observed and predicted values, or to decide which regression line fits better. The move is always the same: find each residual, square it, then add the squares.

You may also see a graph or regression output and need to explain what a smaller RSS means in context. For a fuel-efficiency question, that could mean the model’s predicted MPG is closer to the actual MPG values for the cars in the sample.

If a question asks about model choice, do not focus on whether residuals cancel out, because they do not once they are squared. The point is to measure total error, not average signed error. On written responses, use the language of observed values, predicted values, and leftover variation.

Sum of Squared Residuals vs Residual

A residual is one difference for one data point, while sum of squared residuals is the total after you square and add all the residuals. Residuals can be positive or negative, but RSS is always nonnegative because of the squaring step.

Key things to remember about Sum of Squared Residuals

  • Sum of Squared Residuals, or RSS, is the total of the squared differences between observed values and predicted values in a regression model.

  • A smaller RSS means the line or model fits the data better because it leaves less unexplained error.

  • Residuals are the individual misses, while RSS combines all of those misses into one overall fit measure.

  • In Honors Statistics, RSS shows up when you compare regression models, interpret output, or justify a line of best fit.

  • RSS is central to ordinary least squares, which chooses the regression line that minimizes total squared error.

Frequently asked questions about Sum of Squared Residuals

What is Sum of Squared Residuals in Honors Statistics?

It is the total of the squared differences between actual data values and the values predicted by a regression model. In Honors Statistics, it is used to measure how closely a line of best fit matches the data. The smaller the RSS, the better the fit.

How do you calculate Sum of Squared Residuals?

First find each residual by subtracting the predicted value from the observed value. Then square each residual and add all of those squared values together. Squaring matters because it removes negatives and makes larger errors count more.

Is Sum of Squared Residuals the same as residuals?

No. A residual is the error for one data point, while RSS is the sum of all squared residuals across the whole dataset. If you only have one residual, you do not yet have RSS.

Why does a lower RSS mean a better regression model?

A lower RSS means the predictions stay closer to the actual data points overall. That leaves less unexplained variation in the response variable. In a regression comparison, the model with the smaller RSS is usually the tighter fit.