VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Why Mathematics? | Residual Standard Error: Typical Regression Error and Degrees of Freedom

Why is mathematics important when a regression summary should return error to the response's original units? Residual standard error, also called residual standard deviation, takes the square root of residual mean square. It estimates the common error standard deviation under the fitted model.

Unlike R-squared, this quantity can be read in metres, dollars, marks or whatever units the response uses. Its usefulness still depends on model adequacy, independence and a sensible variance assumption.

Did You Know? Dividing SSE by n instead of its residual degrees of freedom generally understates the error scale because fitted parameters have already used information from the data.

Full chapter index

Chapters 1–4 · Understand the question
  1. The typical-error question
  2. The NIST formula
  3. A worked example
  4. Why square then square-root
Chapters 5–9 · Reproduce the example
  1. Why n minus p
  2. Parameter-count discipline
  3. Interpretation
  4. Normal-error rule of thumb
  5. Compare RMSE
Chapters 10–15 · Check assumptions
  1. Compare MAE
  2. Heteroscedasticity
  3. Nonlinearity
  4. Outliers
  5. Weighted least squares
  6. Prediction intervals
Chapters 16–20 · Explore applications
  1. A spreadsheet workflow
  2. A coding workflow
  3. Applications and careers
  4. A student investigation
  5. Common misconceptions
Chapters 21–31 · Study and verify
  1. Connection to recent mathematics articles
  2. Guidance for students and parents
  3. Practice questions
  4. Frequently asked questions
  5. A scale audit
  6. Sampling uncertainty
  7. Transformed response scales
  8. Calibration and tolerances
  9. Reporting checklist
  10. Error scale and decisions
  11. Useful next reading

CHAPTER 1 OF 31 · Understand the question

1. The typical-error question

Back to contents

Residuals measure vertical departures from fitted values. Squaring, summing, dividing by remaining degrees of freedom and taking the square root produces an error-scale estimate in response units.

Contents · Next chapter

CHAPTER 2 OF 31 · Understand the question

2. The NIST formula

Back to contents

NIST defines residual standard deviation as sigma-hat=sqrt(Q/(n-p)), where Q is residual sum of squares, n observations and p fitted parameters. Read the NIST least-squares handbook.

Contents · Previous chapter · Next chapter

CHAPTER 3 OF 31 · Understand the question

3. A worked example

Back to contents

Let n=30, p=3 including the intercept and SSE=108. Residual degrees of freedom are 27, MSE=108/27=4 and residual standard error=sqrt(4)=2 response units.

npSSE
303108
Residual error inputs.

Contents · Previous chapter · Next chapter

CHAPTER 4 OF 31 · Understand the question

4. Why square then square-root

Back to contents

Squared residuals prevent positive and negative errors from cancelling and make least-squares algebra tractable. The square root returns the summary to the response scale.

dfMSEResidual standard error
2742
Residual error result.

Contents · Previous chapter · Next chapter

CHAPTER 5 OF 31 · Reproduce the example

5. Why n minus p

Back to contents

Each estimated parameter consumes one degree of freedom under a full-rank ordinary regression. Dividing by n-p corrects the variance estimate for model fitting.

Contents · Previous chapter · Next chapter

CHAPTER 6 OF 31 · Reproduce the example

6. Parameter-count discipline

Back to contents

A three-level categorical variable may require two design columns; a spline may require several. Count coefficients in the fitted design, not casual variable labels.

Contents · Previous chapter · Next chapter

CHAPTER 7 OF 31 · Reproduce the example

7. Interpretation

Back to contents

An estimate of 2 marks describes the model’s residual scatter scale under the assumptions. It is not a promise that every prediction falls within 2 marks.

Contents · Previous chapter · Next chapter

CHAPTER 8 OF 31 · Reproduce the example

8. Normal-error rule of thumb

Back to contents

If errors are approximately normal with constant variance, many residuals lie within roughly one or two residual standard errors. Use exact intervals and diagnostics for formal work.

Contents · Previous chapter · Next chapter

CHAPTER 9 OF 31 · Reproduce the example

9. Compare RMSE

Back to contents

Training RMSE often divides SSE by n, while residual standard error divides by n-p. They answer related but different questions and should be labelled clearly.

Contents · Previous chapter · Next chapter

CHAPTER 10 OF 31 · Check assumptions

10. Compare MAE

Back to contents

Mean absolute error uses absolute rather than squared deviations and is less sensitive to large residuals. Neither summary replaces distributional inspection.

Contents · Previous chapter · Next chapter

CHAPTER 11 OF 31 · Check assumptions

11. Heteroscedasticity

Back to contents

If residual spread changes with fitted value or predictor level, one pooled standard error can hide important structure. Inspect scale-location plots and consider an appropriate variance model.

Contents · Previous chapter · Next chapter

CHAPTER 12 OF 31 · Check assumptions

12. Nonlinearity

Back to contents

Systematic curvature inflates residual error and indicates a mean-model problem. Adding complexity purely to shrink the number can overfit, so use mechanism and validation.

Contents · Previous chapter · Next chapter

CHAPTER 13 OF 31 · Check assumptions

13. Outliers

Back to contents

Large squared residuals can dominate SSE. Verify data, investigate influence and report sensitivity rather than deleting cases automatically.

Contents · Previous chapter · Next chapter

CHAPTER 14 OF 31 · Check assumptions

14. Weighted least squares

Back to contents

When observations have different known precisions, a weighted model uses a different error structure. Do not interpret its scale with an unweighted formula.

Contents · Previous chapter · Next chapter

CHAPTER 15 OF 31 · Check assumptions

15. Prediction intervals

Back to contents

Residual standard error contributes the individual-observation variance term that makes prediction intervals wider than confidence intervals for a mean response.

Contents · Previous chapter · Next chapter

CHAPTER 16 OF 31 · Explore applications

16. A spreadsheet workflow

Back to contents

Save residuals, square and sum them, calculate n-p, divide and square-root. Cross-check against software output and retain units in every label.

Contents · Previous chapter · Next chapter

CHAPTER 17 OF 31 · Explore applications

17. A coding workflow

Back to contents

Return SSE, residual df, MSE and residual standard error together. Test the implementation on a small model whose residuals can be calculated by hand.

Contents · Previous chapter · Next chapter

CHAPTER 18 OF 31 · Explore applications

18. Applications and careers

Back to contents

The measure supports calibration, quality control, economics, environmental modelling, education analytics and scientific forecasting. It answers how large unexplained deviations are on the working scale.

Contents · Previous chapter · Next chapter

CHAPTER 19 OF 31 · Explore applications

19. A student investigation

Back to contents

Fit the same model after converting a response from metres to centimetres. Show that R-squared stays fixed while residual standard error multiplies by 100.

Contents · Previous chapter · Next chapter

CHAPTER 20 OF 31 · Explore applications

20. Common misconceptions

Back to contents

Residual standard error is not the standard error of a coefficient, not an accuracy percentage and not automatically an out-of-sample RMSE.

Contents · Previous chapter · Next chapter

CHAPTER 21 OF 31 · Study and verify

21. Connection to recent mathematics articles

Back to contents

The R-squared guide supplies the unitless comparison. The studentized residuals guide explains case-specific scaling.

Contents · Previous chapter · Next chapter

CHAPTER 22 OF 31 · Study and verify

22. Guidance for students and parents

Back to contents

Students should state response units and residual degrees of freedom. Parents can ask whether residual spread is stable and whether prediction errors were checked on new data.

Contents · Previous chapter · Next chapter

CHAPTER 23 OF 31 · Study and verify

23. Practice questions

Back to contents

  • Recalculate when SSE=135.
  • Convert the result from metres to centimetres.
  • Explain why p includes the intercept.

Contents · Previous chapter · Next chapter

CHAPTER 24 OF 31 · Study and verify

24. Frequently asked questions

Back to contents

### Is smaller always better? Only for comparable models and scales.

### Is it the same as RMSE? Not when denominators differ.

### Can one value describe changing variance? Poorly.

Contents · Previous chapter · Next chapter

CHAPTER 25 OF 31 · Study and verify

25. A scale audit

Back to contents

Suppose Model A has residual standard error 2.0 and Model B has 1.9 on the same response, but B introduces strong curvature at the edge and unstable coefficients. The smaller error scale is useful evidence, yet the model still needs residual, influence and validation checks. Record both units and purpose so a modest numerical improvement is not mistaken for a universal advantage.

Contents · Previous chapter · Next chapter

CHAPTER 26 OF 31 · Study and verify

26. Sampling uncertainty

Back to contents

Residual standard error is itself estimated from finite data. With few residual degrees of freedom it can vary substantially across samples. Confidence intervals for variance or sensitivity analyses can show how uncertain the scale estimate is.

Contents · Previous chapter · Next chapter

CHAPTER 27 OF 31 · Study and verify

27. Transformed response scales

Back to contents

A residual standard error of 0.2 on a log response is not 0.2 original units. Interpret it on the fitted scale and use appropriate retransformation when communicating practical errors.

Contents · Previous chapter · Next chapter

CHAPTER 28 OF 31 · Study and verify

28. Calibration and tolerances

Back to contents

Compare the error scale with measurement resolution and decision tolerance. An engineering error of 0.5 may be excellent for one sensor and unacceptable for another. Mathematics becomes useful when units meet the real threshold.

Contents · Previous chapter · Next chapter

CHAPTER 29 OF 31 · Study and verify

29. Reporting checklist

Back to contents

Report response units, n, p, residual degrees of freedom, SSE, MSE and residual standard error. Add residual plots and an out-of-sample error measure. This small bundle makes the summary reproducible and prevents denominator confusion.

Contents · Previous chapter · Next chapter

CHAPTER 30 OF 31 · Study and verify

30. Error scale and decisions

Back to contents

Suppose a school model has residual standard error 4 marks. Whether that is useful depends on the decision: broad planning, individual intervention and a pass-fail boundary have different tolerances. Compare the error with natural score variation, measurement reliability and the cost of a wrong decision. Do not convert a typical scatter scale into a guaranteed bound for every student. Where individual consequences matter, report intervals and uncertainty in addition to the average scale. Record the threshold before fitting so the interpretation is guided by the decision rather than hindsight.

Contents · Previous chapter · Next chapter

CHAPTER 31 OF 31 · Study and verify

31. Useful next reading

Back to contents

Continue through the Mathematics Learning Hub. Compare residual standard error, MAE and PRESS on one regression dataset.

Contents · Previous chapter · Mathematics Learning Hub

Extended practice laboratory

Practice case 1: Record n

Setup: Start from the article’s residual-standard-error worked example for case 1. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 2: Count p

Setup: Start from the article’s residual-standard-error worked example for case 2. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 3: Calculate residual df

Setup: Start from the article’s residual-standard-error worked example for case 3. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 4: List residuals

Setup: Start from the article’s residual-standard-error worked example for case 4. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 5: Square residuals

Setup: Start from the article’s residual-standard-error worked example for case 5. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 6: Sum SSE

Setup: Start from the article’s residual-standard-error worked example for case 6. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 7: Calculate MSE

Setup: Start from the article’s residual-standard-error worked example for case 7. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 8: Take square root

Setup: Start from the article’s residual-standard-error worked example for case 8. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 9: Attach response units

Setup: Start from the article’s residual-standard-error worked example for case 9. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 10: Increase one residual

Setup: Start from the article’s residual-standard-error worked example for case 10. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 11: Change response units

Setup: Start from the article’s residual-standard-error worked example for case 11. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 12: Compare RMSE

Setup: Start from the article’s residual-standard-error worked example for case 12. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 13: Compare MAE

Setup: Start from the article’s residual-standard-error worked example for case 13. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 14: Inspect fan shape

Setup: Start from the article’s residual-standard-error worked example for case 14. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 15: Inspect curvature

Setup: Start from the article’s residual-standard-error worked example for case 15. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 16: Inspect outlier

Setup: Start from the article’s residual-standard-error worked example for case 16. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 17: Check leverage

Setup: Start from the article’s residual-standard-error worked example for case 17. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 18: Use weights

Setup: Start from the article’s residual-standard-error worked example for case 18. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 19: Compare prediction interval

Setup: Start from the article’s residual-standard-error worked example for case 19. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 20: Compare model A

Setup: Start from the article’s residual-standard-error worked example for case 20. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 21: Compare model B

Setup: Start from the article’s residual-standard-error worked example for case 21. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 22: Check identical rows

Setup: Start from the article’s residual-standard-error worked example for case 22. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 23: Reject accuracy percentage

Setup: Start from the article’s residual-standard-error worked example for case 23. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 24: Reject new-data claim

Setup: Start from the article’s residual-standard-error worked example for case 24. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.

Practice case 25: Write an error-scale conclusion

Setup: Start from the article’s residual-standard-error worked example for case 25. Task: Change the named quantity, recompute dependent values and compare with the original.

Check: Check the defining identity, preserve units and state one diagnostic or validation step before interpretation. Show the arithmetic, name the response and predictor units, and separate the numerical result from the claim it supports. Then vary one defensible assumption, calculate again and explain whether the conclusion changed because of the data, the fitted model or the validation purpose. Finish with one compact table or graph that could reveal a failure hidden by the summary.