Lably
Skip to content

Residual sum of squares

  • 2 min read
  • 3 chapters

Related on Lably

Through Statistics, Summation and Square (algebra)

In general, total sum of squares = explained sum of squares + residual sum of squares. For a proof of this in the multivariate ordinary least squares (OLS) case, see partitioning in the general OLS model.

One explanatory variable

In a model with a single explanatory variable, RSS is given by:

RSS=∑i=1n(yi−f(xi))2

where yi is the ith value of the variable to be predicted, xi is the ith value of the explanatory variable, and f(xi) is the predicted value of yi (also termed yi^). In a standard linear simple regression model, yi=α+βxi+εi, where α and β are coefficients, y and x are the regressand and the regressor, respectively, and ε is the error term. The sum of squares of residuals is the sum of squares of ε^i; that is

RSS=∑i=1n(ε^i)2=∑i=1n(yi−(α^+β^xi))2

where α^ is the estimated value of the constant term α and β^ is the estimated value of the slope coefficient β.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Statistics