Calculate the standard error of regression (SER) from the sum of squared residuals, number of observations and predictors, plus degrees of freedom and MSE.

The total of the squared residuals, Σ(y − ŷ)², often shown as Residual SS in regression output.

1 for simple linear regression. Do not count the intercept.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Standard error of regressionFinds the standard error of regression, the degrees of freedom and the mean squared error of a fitted modelRequires the sum of squared residuals, the number of observations and the number of predictors

The sum of squared residuals is the figure regression software prints as Residual SS, SSE or SSR. The number of predictors is 1 for simple linear regression and does not count the intercept. The number of observations has to be larger than the number of predictors plus 1.

Standard Error of Regression Formulas

SER = √(SSE ÷ (n − k − 1)) [1]
SERStandard error of regression, in the units of y
SSESum of squared residuals, Σ(y − ŷ)²
nNumber of observations
kNumber of predictors, not counting the intercept

The handbook formula divides by n − p, where p is the number of parameters in the model [1]. A model with k predictors and an intercept has p = k + 1 parameters, which gives n − k − 1. The result estimates the standard deviation of the model’s error term, and it is often called the residual standard deviation [1].

df = n − k − 1
MSE = SSE ÷ df

The calculator reports both of these with the result. With SSE = 200, n = 30 and k = 2, the degrees of freedom are 30 − 2 − 1 = 27, the mean squared error is 200 ÷ 27 = 7.407407 and the standard error of regression is √7.407407 = 2.721655. With SSE = 50 from a simple linear regression on 12 points, df = 10, MSE = 5 and SER = 2.236068.

Limits of This Estimate

  • The formula assumes the model has an intercept. For a model fitted through the origin, the divisor is n − k, so enter one fewer predictor to get that result.
  • The result is the typical size of a residual. It is not the standard error of a slope or of any other coefficient, and it is not the standard error of the mean.
  • The value is in the units of y, so it cannot be compared between models whose responses are on different scales, such as y and log y.
  • With very few degrees of freedom the estimate is unstable, and with none it cannot be computed.

Sources

  1. NIST/SEMATECH e-Handbook of Statistical Methods, Section 4.4.3.1, Least Squares: residual standard deviation formula and its meaning