Mean Squared Error (MSE)
Measuring Forecast Misses with Squared Errors
Economic forecasts rarely match every observed outcome. To summarize their accuracy, you need a measure that combines misses across several periods without allowing overpredictions and underpredictions to cancel. Mean squared forecast error does this by squaring each miss and then averaging. It is useful when large forecast mistakes deserve more weight than small ones, such as when substantial demand errors disrupt production plans.
From individual misses to one measure
A forecast error is the actual outcome minus its forecast. Let yt denote the actual outcome in evaluation period t, and let y^t denote the forecast issued before that outcome was observed. Then
A positive error means the forecast was too low; a negative error means it was too high. The mean squared forecast error is the arithmetic average of these errors after each has been squared:
Here, n is the number of evaluated forecast–outcome pairs. Calculate each error, square each error separately, add the squared errors, and divide by n. For this descriptive forecast score, the denominator is the number of evaluated pairs, not a regression degrees-of-freedom adjustment.
What squaring changes
Squaring removes the sign of an error. Consequently, equally large overpredictions and underpredictions contribute equally to the score.
Forecast situation | Error | Contribution to the sum |
|---|---|---|
Forecast is below actual by a | +a | a2 |
Forecast equals actual | 0 | 0 |
Forecast is above actual by a | −a | a2 |
The penalty grows more than proportionally with error size. An error twice as large contributes four times as much; an error three times as large contributes nine times as much. A small number of substantial misses can therefore dominate the average.
The score is nonnegative. It equals zero exactly when every evaluated forecast equals its actual outcome. A positive score does not reveal whether forecasts were generally too high or too low, because the squared contributions retain no direction.
Units also change. If outcomes are measured in kilograms, the score is measured in kg2. If outcomes are measured in dollars, its units are dollars squared. It should therefore not be described as an average miss in the original units.
Make comparisons on a common basis
For a meaningful comparison, evaluate forecasts of the same outcome over the same dates, using the same units and the same forecast horizon. Under these conditions, the smaller score indicates lower average squared error on the evaluated sample.
A lower score on different dates might reflect easier economic conditions. A lower score calculated using observations already used to fit a model may also give an optimistic picture of future performance. The score summarizes the errors you supply; it does not establish that future errors will follow the same pattern.
Changing measurement units changes the numerical score. If every actual and forecast is multiplied by c, every error is multiplied by c, and the score is multiplied by c2. This is why comparisons require matching units.
What to remember
- Subtract forecast from actual, square each error, and average over the evaluated pairs.
- Large errors receive disproportionately large penalties, regardless of direction.
- The score has squared units and cannot be negative.
- Compare forecasts on matching outcomes, dates, units, and horizons.
Example: Comparing daily delivery forecasts
A distributor forecasts the mass of produce required each day. A forecast error is the actual requirement minus its forecast. Method A issued the following one-day-ahead forecasts before the actual requirements were known.
Day | Actual requirement (kg) | Method A forecast (kg) |
|---|---|---|
Monday | 126 | 120 |
Tuesday | 132 | 135 |
Wednesday | 125 | 128 |
Thursday | 148 | 140 |
a) Calculate Method A's mean squared forecast error over the four days.
First calculate each actual-minus-forecast difference. Monday's error is ________, Tuesday's is ________, Wednesday's is ________, and Thursday's is ________. Positive errors indicate underprediction; negative errors indicate overprediction.
Square each error separately and add the results. The squared-error total is ________. The negative signs disappear through squaring, rather than cancelling the positive errors.
Divide by the four evaluated forecast–outcome pairs:
Method A's mean squared forecast error is 29.5 kg2. This is an average squared miss, so it is not an average error of 29.5 kg.
b) Method B's squared errors total 100 kg2 over the same four days. Its forecasts were also issued one day ahead. Calculate its mean squared forecast error and identify the better method by this measure.
Method B is evaluated over four days, so divide its squared-error total by four:
The two scores use the same outcome, units, dates, and forecast horizon. They can therefore be compared directly on this evaluation sample.
Method B's mean squared forecast error is 25.0 kg2, which is 4.5 kg2 lower than Method A's. Method B performs better by this measure over these four days. This sample ranking does not guarantee the same ranking on future days.
An electricity supplier evaluates forecasts of daily energy demand over four days. The actual demands were 52, 48, 61, and 55 MWh, while the corresponding forecasts were 54, 45, 62, and 51 MWh. Calculate the mean squared forecast error in squared megawatt-hours, to one decimal place.
A wholesaler evaluates daily demand forecasts measured in tonnes. Complete the missing squared errors and the overall mean squared forecast error in the table. Use actual minus forecast for the signed errors. Enter exact integers or short decimals; all squared quantities are in tonnes squared.
| Day | Actual tonnes | Forecast tonnes | Signed error tonnes | Squared error tonnes squared |
| Monday | 27 | 25 | 2 | |
| Tuesday | 31 | 34 | -3 | |
| Wednesday | 28 | 27 | 1 | |
| Thursday | 30 | 30 | 0 | |
| Overall mean squared forecast error | - | - | - |