Author-reviewedEvidence: highv1.0.0

Mean Squared Error

Mean squared error is the average of squared differences between predictions or estimates and their corresponding observed or reference values, evaluated over a specified set or sampling process.

Last reviewed byDr Darrin Baines

Concept Architecture

Mean Squared Error: Concept Architecture

Orientation and learning roadmap

This page moves from the choice of a prediction target to the calculation and interpretation of squared errors. It then separates held-out prediction performance from estimator risk and residual variance, before applying the measure to utility mapping and other health economic predictions.

Define the target and evaluation set

Predictions can concern patient utilities, healthcare costs, event rates, or model parameters, but an error has meaning only relative to a named observed or reference target. For a fixed set of nn paired observations, denote the target by yiy_i and the prediction by y^i\widehat{y}_i, with both measured on the same scale and at the same relevant time.

The unweighted empirical mean squared error (MSE) is

MSE=1n∑i=1n(yi−y^i)2.\mathrm{MSE}=\frac{1}{n}\sum_{i=1}^{n}(y_i-\widehat{y}_i)^2.

Each difference is squared before averaging, so positive and negative errors cannot cancel and larger absolute errors receive disproportionate weight. The result has squared units: a utility prediction has utility-squared MSE, while a cost prediction in pounds has pounds-squared MSE. A smaller value indicates closer predictions on this particular dataset and scale, not necessarily a better decision model overall.

Worked example: utility predictions

Suppose three patients have observed utility values of 0.800.80, 0.600.60, and 0.400.40, while a mapping algorithm predicts 0.700.70, 0.500.50, and 0.600.60. The example treats each patient equally and uses paired observations measured with the same utility value set.

PatientObserved yiy_iPredicted y^i\widehat{y}_iError yi−y^iy_i-\widehat{y}_iSquared error
10.800.700.100.01
20.600.500.100.01
30.400.60-0.200.04

The sum of squared errors is 0.01+0.01+0.04=0.060.01+0.01+0.04=0.06, so MSE=0.06/3=0.02\mathrm{MSE}=0.06/3=0.02 utility squared. The corresponding root mean squared error is RMSE=0.02≈0.1414\mathrm{RMSE}=\sqrt{0.02}\approx 0.1414 utility units, while the signed mean error is zero because 0.10+0.10−0.20=00.10+0.10-0.20=0. Zero average signed error does not imply good prediction for each patient or for a clinically important subgroup.

Prediction error versus estimator mean squared error

The same mathematical idea also evaluates an estimator θ^\widehat{\theta} of a fixed parameter θ\theta across repeated hypothetical samples. In that setting, the expectation is taken over the sampling distribution and the classical decomposition separates sampling variance from squared bias.

MSE⁡(θ^)=E ⁣[(θ^−θ)2]=Var⁡(θ^)+[E(θ^)−θ]2.\operatorname{MSE}(\widehat{\theta}) =E\!\left[(\widehat{\theta}-\theta)^2\right] =\operatorname{Var}(\widehat{\theta}) +\left[E(\widehat{\theta})-\theta\right]^2.

This estimator-risk quantity is not the same as the empirical average of patient-level prediction errors, even though both use squared differences. In prediction, noise in future outcomes and the setting of evaluation matter; in parameter estimation, the true parameter and sampling process define the expectation. Authors should state which use of MSE they mean rather than importing a bias–variance conclusion from one target to the other without qualification.

Validation and comparison

An error calculated on the same records used to fit and tune a flexible model can be optimistically small. Hold-out validation, cross-validation with all preprocessing and tuning performed inside each training fold, or independent external validation better evaluates performance in new data.

Compare models on the same outcome definition, valuation set, case mix, and evaluation records. Check error across severe and mild health states as well as treatment groups, because an acceptable overall MSE can hide systematic bias at the ends of a utility scale. If observations have prespecified weights, a weighted average can be used, but the weights, denominator, and population they represent must be disclosed.

Related measures and limitations

Root mean squared error (RMSE) is the square root of MSE and returns the result to the original outcome unit; mean absolute error (MAE) averages absolute errors instead. Both reveal magnitude without the signed direction of error, so calibration and mean error should be reported when systematic overprediction or underprediction matters.

MSE strongly penalises an extreme error and may be sensitive to outliers, miscoding, or heavy-tailed costs. Its numerical value also changes when the outcome is rescaled, making raw MSE values for different outcome units directly incomparable. A low utility-level MSE does not establish that between-treatment utility differences or incremental quality-adjusted life-years (QALYs) are unbiased.

Use in health economic decisions

Utility mapping, survival prediction, demand forecasts, and cost models can use MSE as one diagnostic of prediction accuracy. Decision-makers need to know whether errors distort the particular quantities feeding a cost-effectiveness or budget-impact model, especially in patient groups whose health states, resource use, or survival differ by strategy.

For cost data with a few very expensive cases, minimising squared error may prioritise those cases while worsening typical-patient predictions; whether that is desirable depends on the use of the forecasts. The chosen evaluation set should reflect the application population, and uncertainty in a fitted model should propagate into downstream economic analysis. MSE is a statistical loss measure, not a measure of health-system efficiency or social welfare.

Source basis and further learning

The sources below anchor the metric in statistical software and in the evaluation of mapped health-state utilities. Their application depends on a clear outcome scale and an honest separation of training and validation data.

Library

Publications

1
  • Book

    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.

Frequently Asked Questions (6)

  • What is the mean squared error?

    A measure of the average squared difference between predicted and actual values, penalising larger errors more heavily due to squaring.

    Source: Casella G, Berger RL. Statistical Inference. 2nd ed. Duxbury; 2002.

  • Why does the mean squared error weigh large misses so heavily?

    The mean squared error averages the squared differences between predictions and actual values, and squaring is what makes it weigh large misses so heavily: an error twice as big contributes four times as much. This emphasis suits situations where big mistakes are especially costly, and it has a convenient mathematical form that decomposes neatly into the model's bias and its variance. The trade-off is heightened sensitivity to outliers. Punishing large errors disproportionately is its defining feature. Hastie and colleagues (2009) discuss this measure.

    Source: Hastie et al. 2009

  • How is the mean squared error calculated?

    The mean squared error is calculated by taking the difference between each predicted and actual value, squaring it, summing the squared errors, and dividing by the number of observations, giving the average squared error. So the mean squared error is calculated as the average of the squared prediction errors, which measures error in squared units and emphasises larger deviations through the squaring, and taking its square root gives the root mean squared error, which returns the measure to the original scale of the data, making it more directly interpretable while retaining the emphasis on larger errors.

    Source: Casella & Berger 2002

  • Why does the mean squared error penalise large errors?

    The mean squared error penalises large errors because it squares each error before averaging, so an error twice as large contributes four times as much to the total, making large errors dominate the measure. This emphasis reflects a view that large errors are disproportionately undesirable. So the mean squared error penalises large errors through the squaring, which weights big deviations far more than small ones, making it sensitive to outliers and appropriate when large errors are especially costly, though this same property means a few extreme errors can dominate the measure, which is why the mean absolute error is preferred when such robustness is wanted.

    Source: Casella & Berger 2002

  • How does the mean squared error relate to bias and variance?

    The mean squared error of an estimator can be decomposed into the square of its bias plus its variance, so it captures both systematic error and variability in a single measure. This decomposition underlies the bias-variance tradeoff. So the mean squared error relates to bias and variance as their combination, expressing the total expected squared error as the sum of the squared bias and the variance, which is why minimising the mean squared error involves balancing bias against variance, and this makes the mean squared error a central criterion in estimation and prediction, linking accuracy to the tradeoff between fitting too simply and too flexibly.

    Source: Casella & Berger 2002

  • How is the mean squared error used?

    The mean squared error is used to assess and compare the accuracy of predictions or estimators, with lower values indicating better performance, and as a criterion to fit models, since methods such as least squares minimise it. It is common in regression and prediction. So the mean squared error is used both to evaluate how well predictions match actual values and as an objective to be minimised in fitting models, which makes it a foundational measure in statistics and machine learning, though its sensitivity to large errors and its squared units are considered, with the root mean squared error often reported for interpretability on the original scale.

    Source: Casella & Berger 2002

Trust Record

Verified by Dr Darrin Baines

British health economist

Professional identity: darrinbaines.org

Verification date: 24 Sep 2026

Content version: 1.0.0

Canonical Identity

Term code
HE-ES-SA-113

Stable URI · Machine-readable · Resolvable · CC BY 4.0