Find the typical distance between data points and a regression line, in the same units as your data, from raw X and Y values or from a sum of squared errors.
RSE = √(SSE ÷ (n − p − 1))
Residual standard error (RSE) is the typical size of a regression model's mistakes, in the same units as the thing you're predicting. An RSE of 2.1 minutes means predictions are usually within a couple of minutes of reality.
It's essentially the standard deviation of the residuals, with one difference: it divides by the degrees of freedom rather than n, because fitting the line used up some of the information in the data.
RSE complements R². R² says what share of the variation the model explains; RSE says how far off predictions actually are. A high R² with a large RSE can still be useless for precise forecasts.
As in James, Witten, Hastie and Tibshirani, An Introduction to Statistical Learning, section 3.1.3. See Sources.
RSE² is the mean squared error of the regression, the MSE shown in an ANOVA table.
A delivery time estimated from distance will usually be within about 1 minutes, and almost always within 2. Useful for quoting customers a delivery window.
The same SSE of 100 from different numbers of points and predictors. Dividing by n would understate the error, most of all in small samples.
| n | Predictors | RSE (÷ df) | √(SSE ÷ n) |
|---|---|---|---|
| 5 | 1 | 5.774 | 4.472 |
| 10 | 1 | 3.536 | 3.162 |
| 10 | 3 | 4.082 | 3.162 |
| 30 | 1 | 1.89 | 1.826 |
| 100 | 5 | 1.031 | 1 |
One small enough for your purpose. Compare it with the mean of Y and with the precision you need: 2 minutes might be fine for deliveries but not for a train timetable.
summary(lm(...)) prints “Residual standard error: … on df degrees of freedom”.
Yes. It’s also called the standard error of the estimate, s, or σ̂. Excel’s regression output labels it “Standard Error”.
RSE² equals the regression’s mean squared error (SSE ÷ df), the MS residual in an ANOVA table.
Only if every point lies exactly on the line, which almost never happens with real data.
Each predictor uses up a degree of freedom. If it barely reduces SSE, the smaller df can push RSE up.
=STEYX(y_range, x_range) gives the RSE for a straight-line fit.
It puts the error in perspective: 2 minutes on a 30-minute average is about 7%.
Related Tools
Linear relationship strength.
Linear correlation coefficient.
Rank correlation.
Regression fit quality.
Parabolic curve fit.
Third-degree polynomial fit.