AI Glossary / Statistics and probability / Intermediate
Root Mean Squared Error
Definition
Root Mean Squared Error, abbreviated RMSE, is the square root of the average squared difference between predictions and observed reference values. For n equally weighted pairs, RMSE = sqrt[sum((prediction − observation)²)/n]. It is a nonnegative measure of predictive discrepancy in the same units as the target. Larger errors receive disproportionately greater influence through squaring.
What it means
RMSE translates a squared-error score back into units readers can interpret, such as minutes, kilograms, or sales units. A lower score indicates smaller squared discrepancies on the evaluated data under the stated weighting rule.
It is not a percentage accuracy and does not describe every individual error. Its usefulness depends on the reference data, prediction horizon, target scale, and evaluation design. A model can improve overall RMSE while performing poorly for a small but important group.
How it works
Match each prediction to the correct observation and time horizon. Misaligned timestamps, duplicated records, or predictions using information unavailable at decision time can invalidate an otherwise correct calculation.
Subtract the observed value from the prediction, square each resulting error, average those squares, and take the square root. Reversing the sign convention does not change RMSE, although it changes the sign of mean error.
Use a test design suited to deployment. Time-ordered forecasts often require evaluation on later periods; repeated observations from the same person or device may require grouped separation. An excellent training score alone is weak evidence of future performance.
Compare models on the same cases, units, and weighting scheme. A useful baseline might be an established forecasting rule or an appropriately constructed constant predictor. There is no universal RMSE threshold separating good and bad models across tasks.
If weights are needed, use sqrt[sum(wi errori²)/sum(wi)] for nonnegative weights with positive total. Explain whether the weights represent business importance, population representation, or observation frequency. Weighting changes the question answered.
For several output variables, specify the aggregation. Averaging separate output RMSE values is generally different from taking the square root after pooling squared errors. Mixing targets measured in unrelated units can make a single aggregate difficult to interpret.
For the same observations and weights, minimizing RMSE ranks predictions identically to minimizing mean squared error because the square root is increasing. This does not mean RMSE and MSE have the same numerical value or units.
Report additional diagnostics. Mean error reveals directional bias, mean absolute error provides a differently weighted magnitude summary, and error distributions reveal tails and subgroup differences. A confidence interval or uncertainty analysis for model comparison needs assumptions appropriate to the evaluation design; RMSE alone supplies none.
Three practical examples
- Demand forecasting: a retailer compares daily quantity predictions against observed demand on a held-out period.
- Delivery planning: an operations team evaluates arrival-time predictions in minutes for the same completed deliveries.
- Sensor calibration: engineers summarize errors between model estimates and suitable reference measurements, while tracking reference uncertainty separately.
Think of it this way
Think of an error scoreboard that penalizes a large miss more strongly than several smaller misses with the same total absolute size. The final square root restores familiar units, but it does not undo the stronger influence large misses received when their squares were averaged.
Worked example
Four observed daily quantities are 10, 12, 14, and 16. Model A predicts 11, 11, 15, and 13, giving errors 1, −1, 1, and −3. Their squared errors total 12, so MSE is 12/4 = 3 and RMSE is sqrt(3), approximately 1.732 units.
Model B predicts 12, 14, 16, and 18. Every error is 2, giving MSE 4 and RMSE 2 units. A has the lower RMSE on these four observations.
A's mean absolute error is 6/4 = 1.5 units, demonstrating that RMSE is not average absolute error. Its signed mean error is −2/4 = −0.5 units, showing that a small signed average can coexist with larger individual misses. Four cases do not establish a reliable future performance advantage.
Illustrative case study
Fictional case: Juniper Logistics evaluates two arrival-time models on the same future-week deliveries. It reports RMSE in minutes alongside the share of arrivals missed by more than an operationally important threshold.
The lower-RMSE model performs poorly on a rural route group. The team investigates that gap before deployment and preserves a separate evaluation period for confirmation. The aggregate score guides comparison without replacing route-level service requirements.
Common misconceptions and mistakes
RMSE is not bounded above by one, nor does subtracting it from one produce general accuracy.
A smaller RMSE on an easier or differently scaled dataset is not automatically an improvement.
Training RMSE can fall as a model overfits. Evaluation leakage can make even a reported test score misleading.
The usual prediction metric divides by the number of evaluated observations. A regression residual standard error using residual degrees of freedom is a different statistic.
RMSE does not itself prove causal benefit or business value.
Business use
Use RMSE where large numerical errors are especially relevant, while checking whether squared error resembles the actual decision cost. Forecasting losses may be asymmetric: underpredicting demand can matter differently from overpredicting it. Choose evaluation measures before comparing results and retain enough detail to explain which customers, periods, or products drive a change.
People also ask
Is lower always better?
For the same evaluation target and rule, lower means less squared discrepancy, but other business objectives may matter.
Can RMSE be zero?
Yes, when every positively weighted prediction matches its reference.
Is RMSE the same as RMS?
It is RMS applied specifically to error values.
Check your understanding
Answer: Two errors are −2 and 2.
What is RMSE?
Answer: It is 2, despite a signed mean of zero.
If all target values and predictions are converted from meters to centimeters, what happens?
Answer: RMSE increases by a factor of 100; predictive quality has not changed.
Related terms
- Mean Squared Error
- Root mean square
- Root-mean-square deviation
- Mean Absolute Error
- Test set
- Data leakage
- residual standard error
Learn next
Compute RMSE, mean absolute error, and mean error for the same predictions. Then examine how rankings change when a few large misses or different business weights are introduced.
More in Statistics and probability
- Ridge regression - Ridge regression is linear regression fitted with a penalty on the sum of squared coefficient values.
- Robust Bayesian analysis - Robust Bayesian analysis studies how Bayesian conclusions change when uncertain modeling inputs are varied.
- Robust methods - Robust methods are statistical procedures designed to retain useful performance when specified ideal assumptions are not exactly satisfied.
- Rotation bias - Rotation bias is a systematic difference in survey estimates associated with how long sampled units have participated in a rotating panel or with their...
- Rotational invariance - Rotational invariance is the property of a function, representation, or prediction remaining unchanged under specified rotations of its input.
- Round-robin test - A round-robin test is an interlaboratory study in which several participants independently perform measurements, analyses, or a defined process under an...
Sources
scikit-learn, root_mean_squared_error API documentation: https://scikit-learn.org/stable/modules/generated/sklearn.metrics.root_mean_squared_error.html Google, Machine Learning Glossary: https://developers.google.com/machine-learning/glossary The comparison dataset and fictional case are original teaching illustrations.
Previous: Root-mean-square deviation Next: Rotation bias