Learn Before
Formula
Residual Sum of Squares (RSS)
The Residual Sum of Squares (RSS) is the sum of the squared residuals (differences between predicted and actual values) across all data points. It is defined by the formula:
Alternatively, in simple linear regression, it can be written as:
where and are the estimated model parameters. A smaller RSS indicates that the regression model fits the data more closely.
0
2
Updated 2026-06-14
Tags
Data Science
Related
A data scientist is building a simple linear model for a set of data points. Four potential lines are generated to fit the data. According to the least squares approach, which of the following lines would be considered the best fit for the data?
Calculating a Residual
Evaluating a Linear Model's Fit
Residual Sum of Squares (RSS)