Root mean squared error summarizes residual size:
Because the square root reverses the squared scale, RMSE has the same units as the response.
Residual standard error
For an estimated regression with coefficients,
uses residual degrees of freedom. Under standard assumptions, estimates the error variance.
Context gives meaning
An RMSE of 2 is excellent if acceptable error is 10 units and poor if acceptable error is 0.1 units. Compare it with measurement resolution, natural variation, and the cost of mistakes.
Calculate it from residuals
For residuals , the squared errors are . Their mean is , so
The mean absolute error is . RMSE is larger because the residual of magnitude receives disproportionate weight.
Sampling denominator versus prediction score
Use when estimating the underlying noise variance after fitting coefficients. Use the number of held-out predictions when reporting predictive RMSE. These answer different questions and should be labeled clearly.
Check your understanding
Can RMSE be zero while the model is scientifically wrong?
Show the reasoning
Yes. An overly flexible model can interpolate the training data exactly, or leaked information can make evaluation invalid. Zero training error does not establish generalization or scientific validity.