Concept Architecture
Root Mean Square Error
Root mean square error (RMSE) summarises the typical scale of differences between numerical predictions and observed values by taking the square root of their average squared error. It is expressed in the outcome's original units and gives comparatively greater weight to large errors than mean absolute error (MAE). Its usefulness depends on what was predicted, when predictions were made, which observations were evaluated and whether squared-error loss reflects the decision problem.
Definition and calculation
For matched observation–prediction pairs , define residual or prediction error . The sample evaluation metric is
Squaring removes error signs and penalises larger magnitudes; averaging yields mean squared error (MSE), and taking the square root returns to the units of . RMSE is zero if and only if every evaluated prediction equals its corresponding observed value. It cannot be negative. Specify the sign convention for residuals if also reporting mean error; RMSE itself is unchanged if every residual sign is reversed.
This is an evaluation formula dividing by the number of evaluated pairs, not an unbiased estimate of residual variance with an or degrees-of-freedom correction. The predictive accuracy of a fitted model should ordinarily be estimated on data not used to fit or tune it, using a split, cross-validation or external test set suited to the deployment setting. Repeated observations from one patient and time-dependent forecasts require evaluation procedures that respect those dependencies.
Worked health service example
Suppose a service forecasts four days' urgent-care visits. The table pairs each day's prediction with the count subsequently observed; its small size is for teaching, not validation of a forecasting system.
| Day | Observed visits | Predicted visits | Error | Squared error |
|---|---|---|---|---|
| 1 | 10 | 12 | +2 | 4 |
| 2 | 20 | 19 | −1 | 1 |
| 3 | 15 | 18 | +3 | 9 |
| 4 | 25 | 23 | −2 | 4 |
The squared errors total . Thus visits squared and visits. For comparison, visits; RMSE is larger because squaring puts more emphasis on the three-visit error. The mean signed error under the stated prediction-minus-observation convention is visits, which indicates average overprediction in these four days but does not reveal the spread of errors.
The same arithmetic can be checked through the sample's population-denominator decomposition: . Here , and the mean squared deviation around it is ; . This identity describes the evaluated errors, not an independent claim about performance in future patients or days.
Interpretation and comparison
RMSE has the units of the outcome: visits for counts, currency units for costs and years for life-years. It is not a percentage, and it should not be called an average absolute error: the latter is MAE. In the same unweighted evaluation sample, by the relationship between quadratic and arithmetic means of nonnegative absolute errors. The inequality can be strict even when the mean signed error is zero.
RMSE is sensitive to unusually large residuals. That can be desirable if a missed surge or a severe cost forecast miss carries disproportionate consequences, but a few noisy or erroneous observations can dominate the score. Examine residual distributions and errors by subgroup, time and prediction level. Compare with a simple relevant baseline, and report MAE, bias or quantiles of absolute error where they help explain practical performance. A single RMSE does not tell whether errors are systematically high or low, whether intervals are calibrated, or whether the model is fair across populations.
Scores should be compared on the same target definition, units, horizon, sample, missing-data rule and weighting scheme. An RMSE of 2 visits on a small clinic is not directly comparable with 20 visits on a large hospital without a meaningful scale or baseline. In hierarchical or multivariate predictions, state whether RMSE was calculated separately for each output before aggregation; averaging component RMSEs is generally different from taking the square root after pooling all squared errors.
Weighted and population-specific versions
For specified nonnegative weights with , a weighted version is
Weights can reflect a target population, sampling design or agreed decision relevance, but they change the estimand and must be justified. If a day's cost of error is asymmetric or rises differently from the square of the residual, use a loss function matching that decision rather than assuming RMSE captures it. Record whether zero-weight observations were excluded and whether weights came from the evaluation design, not from the observed errors chosen after seeing results.
Missing observations can bias the evaluation if missingness relates to actual outcomes or forecast difficulty. For hospital utilisation or cost models, assess rare extreme values and data quality rather than trimming them solely to improve RMSE. For censored survival outcomes, ordinary squared error between a predicted event time and observed follow-up time is generally invalid because a censored time is not the true event time; use an appropriate time-specific, censoring-aware prediction metric instead. For probability forecasts of a binary event, the mean squared probability error is the Brier score; its square root has a related mathematical form but should be clearly labelled and interpreted in that probability-prediction context.
Health economic use and limits
RMSE can evaluate forecasts of health service demand, costs, resource use or modelled continuous outcomes. When choosing a model, an apparently lower test-set RMSE should be considered with calibration, uncertainty, interpretability, transportability and decision consequences. Better point prediction of costs does not automatically imply better treatment allocation or greater cost-effectiveness. In particular, decisions may depend on the joint distribution of costs and benefits, not on marginal prediction error for one outcome.
Report the target and units, prediction and observation timing, sample size, train–test separation, missing-data handling, any transformation and back-transformation, weights, RMSE with uncertainty where feasible, benchmark performance and key residual diagnostics. Do not calculate RMSE on a transformed scale and describe it as if it were in original currency or clinical units. If forecasts were updated over time, specify the information actually available at each forecast origin to avoid leakage.
Methodological sources
The scikit-learn metric reference documents the root mean squared error calculation and optional weighting for regression outputs. Chai and Draxler's RMSE versus MAE discussion examines how error distributions affect interpretation. Hyndman and Koehler's study of forecast accuracy measures explains limitations of scale-dependent comparisons. These methodological sources support the calculation and reporting principles; the four-day forecast is an original illustrative example.
Related Concepts (2)
Library
Publications
1
Statistical Analysis of Cost-Effectiveness Data — Willan & Briggs, 1st Edition ed., 2006 (John Wiley & Sons)
A synthesis of statistical methods for analysing cost-effectiveness data, including net-benefit regression, confidence intervals for the ICER, cost-effectiveness acceptability curves, and covariate adjustment. Part of the Wiley Statistics in Practice series.
BookView source →
Frequently Asked Questions (6)
What is the root mean square error?
A measure of average prediction error, the square root of the average squared difference between predicted and observed values, in the outcome's units.
Source: Willmott & Matsuura 2005
What does the root mean square error express about prediction accuracy?
The root mean square error expresses the typical size of a model's prediction errors, calculated as the square root of the average squared difference between predicted and observed values. Taking the square root returns the measure to the outcome's own units, so it can be read as a representative error, while the squaring beforehand makes it weigh large misses more heavily than the mean absolute error does. This makes it sensitive to occasional big errors. The typical prediction miss, in the outcome's units, is what it captures. Steyerberg (2009) discusses such measures.
Source: Steyerberg 2009
How is the root mean square error calculated?
The root mean square error is calculated by taking the difference between each predicted and observed value, squaring it, averaging the squared differences, and then taking the square root of that average. So the root mean square error is calculated as the square root of the mean squared error, which expresses the error in the original units of the outcome and, through the squaring, gives disproportionate weight to larger errors, making it sensitive to outliers, and this is why it conveys the typical size of the prediction error on the data's scale while emphasising the larger deviations.
Source: Willmott & Matsuura 2005
How does the root mean square error differ from the mean absolute error?
The root mean square error is the square root of the average squared error, giving greater weight to large errors through the squaring, while the mean absolute error is the average of the absolute errors, weighting all errors by their size linearly. The root mean square error is more sensitive to outliers, and the mean absolute error more robust. So the two differ in how they weight errors, with the root mean square error emphasising large errors and the mean absolute error treating them proportionally, which is why the root mean square error is preferred when large errors are especially undesirable and the mean absolute error when robustness to outliers is wanted.
Source: Willmott & Matsuura 2005
When is the root mean square error used?
The root mean square error is used to assess and compare the accuracy of predictions on the original scale of the outcome, particularly when larger errors are especially important and should be penalised more heavily. So the root mean square error is used for evaluating predictive models where the emphasis on large errors is appropriate and interpretability in the data's units is wanted, which is why it is a common measure of prediction accuracy in regression and forecasting, though its sensitivity to outliers means the mean absolute error may be preferred when a more robust measure is desired, so the choice depends on the purpose.
Source: Willmott & Matsuura 2005
How is the root mean square error interpreted?
The root mean square error is interpreted as the typical magnitude of the prediction errors in the units of the outcome, with a smaller value indicating more accurate predictions and zero indicating perfect prediction, while its emphasis on large errors means it is raised more by occasional big errors than the mean absolute error. So the root mean square error is interpreted as an average error on the original scale, weighted toward larger deviations, which makes it informative about overall accuracy and about the presence of large errors, and comparing root mean square errors across models identifies those with better predictive performance, especially where large errors matter.
Source: Willmott & Matsuura 2005
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 25 Sep 2026
Content version: 1.0.0
Canonical Identity
- Term code
- HE-ES-SA-187
Stable URI · Machine-readable · Resolvable · CC BY 4.0
