top of page

Data & Analytics

Residual Sum of Squares (RSS)

The sum of the squared differences between observed and predicted values in a regression model.

01

■ definition

About

Residual Sum of Squares (RSS)

The residual sum of squares is the total of the squared differences between observed values and the values predicted by a regression model: RSS = Σ(yᵢ − ŷᵢ)², summed over all observations. Each term measures one prediction error, and squaring makes positive and negative errors count alike while penalizing large errors disproportionately. Ordinary least squares, the standard regression method, is defined by this quantity: it chooses the coefficients that make RSS as small as possible for the data at hand.

RSS is also the building block of most regression diagnostics. In a model with an intercept, the total sum of squares (TSS) splits exactly into the explained sum of squares plus RSS, which yields R-squared as 1 − RSS/TSS. Dividing RSS by the residual degrees of freedom and taking the square root gives the residual standard deviation, the typical error size. On its own, RSS depends on the scale of the outcome and the number of observations, so it compares models only when they are fitted to the same data and the same outcome variable.

02

■ real-world examples

How It Plays Out in Practice

The residual sum of squares is the total of the squared differences between observed values and the values predicted by a regression model: RSS = Σ(yᵢ − ŷᵢ)², summed over all observations. Each term measures one prediction error, and squaring makes positive and negative errors count alike while penalizing large errors disproportionately. Ordinary least squares, the standard regression method, is defined by this quantity: it chooses the coefficients that make RSS as small as possible for the data at hand.

RSS is also the building block of most regression diagnostics. In a model with an intercept, the total sum of squares (TSS) splits exactly into the explained sum of squares plus RSS, which yields R-squared as 1 − RSS/TSS. Dividing RSS by the residual degrees of freedom and taking the square root gives the residual standard deviation, the typical error size. On its own, RSS depends on the scale of the outcome and the number of observations, so it compares models only when they are fitted to the same data and the same outcome variable.

03

■ key takeaways

What to Remember

◆

The residual sum of squares adds up the squared gaps between actual values and regression predictions, so larger errors count disproportionately more.

◆

Ordinary least squares estimation is defined by minimizing RSS; the fitted line is the one that makes this total as small as the data allow.

◆

With an intercept in the model, total sum of squares equals explained sum of squares plus RSS, which is what makes R-squared equal to 1 − RSS/TSS.

◆

RSS grows with sample size and outcome scale, so it is valid for comparing models only when they use the same observations and the same outcome variable.

04

■ breaking it down

Understanding Residual Sum of Squares (RSS)

01

Definition and Formula

RSS = Σ(yᵢ − ŷᵢ)² over all observations, where ŷᵢ is the model's fitted value. Squaring removes the sign of each error and weights a miss of ten a hundred times as heavily as a miss of one.

02

OLS Minimizes RSS

The least squares criterion is not arbitrary: minimizing RSS produces the familiar regression coefficients, and under standard assumptions those estimates have strong efficiency properties among linear estimators.

03

Decomposing Total Variation

Total variation in the outcome splits into the part the model captures and the part it misses: TSS = ESS + RSS. The identity holds exactly for least squares models that include an intercept term.

04

From RSS to Fit Measures

R-squared, the residual standard deviation, and F-statistics are all arithmetic transformations of RSS. Understanding RSS therefore explains most of the summary output that regression software prints.

05

■ why it matters

The Importance of

Residual Sum of Squares (RSS)

RSS is the quantity on which the entire logic of regression rests, and grasping it turns regression output from a printout into an argument. Every headline statistic a business user sees, R-squared, standard errors, significance tests, is derived from how much of the total variation remains in the residual sum of squares after the model has done its work. A manager who understands RSS can ask the two questions that matter about any model: how much error is left, and did the added variables reduce it enough to justify their complexity?

It is also a practical comparison tool. Vendors and analysts present competing forecasting models; refitting them to the same data and comparing RSS, adjusted for degrees of freedom, cuts through presentation. RSS keeps attention where businesses feel pain: not on average performance, but on the big forecast failures that break budgets and stock plans.

did you know

In a regression with an intercept, total variation splits exactly: the total sum of squares equals the explained sum of squares plus the residual sum of squares, which is why R-squared can be written as 1 − RSS/TSS.

06

■ strategies

Working With RSS Effectively

Use RSS to compare models on equal footing and to trace headline fit statistics back to the errors they summarize.

01

Compare Only on Identical Data

Refit competing models to the same observations and outcome before comparing RSS. Differences in sample or scale make the raw totals meaningless.

02

Penalize Added Variables

RSS never rises when a variable is added, so judge improvements against the degrees of freedom spent. Adjusted R-squared and the residual standard deviation build in that penalty.

03

Inspect the Largest Residuals

Because errors are squared, a handful of observations often dominates RSS. Examine the biggest contributors for data errors, outliers, or a missing explanatory factor.

04

Remember the Units Are Squared

RSS is in squared units of the outcome, which no manager thinks in. Convert it to the residual standard deviation before presenting results to decision-makers.

05

Use It in Formal Tests

Comparing the RSS of restricted and unrestricted models produces F-tests for whether groups of variables matter. It is the standard route to testing model structure.

06

Report It Transparently

State RSS, sample size, and the number of predictors together. Those three numbers let any reader reconstruct the model's fit and check claims made about it.

07

■ summary

The Bottom Line

The residual sum of squares is the sum of squared differences between observed values and regression predictions, the quantity that ordinary least squares exists to minimize. It anchors the decomposition of total variation into explained and unexplained parts, and it feeds R-squared, the residual standard deviation, and F-tests. Meaningful only across models fitted to the same data, RSS is the raw material from which nearly every statement about regression fit is made.

■ related service

Building forecasting models and need help judging whether the fit is good enough to use?

Model claims are easy to make and hard to check without the underlying error measures. Intenovate helps businesses evaluate forecasting and analytics models on common data, interpret fit statistics such as RSS and R-squared correctly, and set evidence standards before models guide spending.

■ keep learning

Related Articles

bottom of page