Forecasting and Business Analysis
Introduction
| Forecasting and Business Analysis |
| Copyright Upmarket Software Services. This file must not be used without permission. |
Forecast Evaluation Using EXCEL
This is a simple exercise where two very simple naïve models are estimated and then a series of evaluation techniques are used. The purpose of this spreadsheet is to allow you to see the various formula that can be used for these applications.
- The naive forecast tab shows the two forecasting methods
- The evaluation tab shows the basic evaluation methods for these two naive forecasts
Two Naive Forecasts
| Naïve Forecast 1 | |
| Actual | Forecast1 |
| 7.60 | |
| 9.70 | 7.60 |
| 9.60 | 9.70 |
| 7.50 | 9.60 |
| 7.20 | 7.50 |
| 7.00 | 7.20 |
| 6.20 | 7.00 |
| 5.50 | 6.20 |
| 5.30 | 5.50 |
| 5.50 | 5.30 |
| 5.50 | |
| Naïve Forecast 2 | |
| Actual | Forecast2 |
| 7.60 | |
| 9.70 | |
| 9.60 | 10.8 |
| 7.50 | 9.6 |
| 7.20 | 6.5 |
| 7.00 | 7.1 |
| 6.20 | 6.9 |
| 5.50 | 5.8 |
| 5.30 | 5.2 |
| 5.50 | 5.2 |
| 5.6 |
Two Naive Forecasts
Actual
Forecast1
Forecast2
Calculating the Errors
| Naïve Forecast 1 | |||||||
| Actual | Forecast1 | Error | Asb Error | % error | Abs % Error | Adj MAPE | Squared Error |
| 7.60 | |||||||
| 9.70 | 7.60 | ||||||
| 9.60 | 9.70 | -0.10 | 0.10 | -0.01 | 0.01 | 0.00 | 0.01 |
| 7.50 | 9.60 | -2.10 | 2.10 | -0.28 | 0.28 | 0.03 | 4.41 |
| 7.20 | 7.50 | -0.30 | 0.30 | -0.04 | 0.04 | 0.01 | 0.09 |
| 7.00 | 7.20 | -0.20 | 0.20 | -0.03 | 0.03 | 0.00 | 0.04 |
| 6.20 | 7.00 | -0.80 | 0.80 | -0.13 | 0.13 | 0.02 | 0.64 |
| 5.50 | 6.20 | -0.70 | 0.70 | -0.13 | 0.13 | 0.01 | 0.49 |
| 5.30 | 5.50 | -0.20 | 0.20 | -0.04 | 0.04 | 0.00 | 0.04 |
| 5.50 | 5.30 | 0.20 | 0.20 | 0.04 | 0.04 | 0.00 | 0.04 |
| 5.50 | |||||||
| Naïve Forecast 2 | |||||||
| Actual | Forecast2 | Error | Asb Error | % error | Abs % Error | Adj MAPE | Squared Error |
| 7.60 | |||||||
| 9.70 | |||||||
| 9.60 | 10.8 | -1.15 | 1.15 | -0.12 | 0.12 | 0.01 | 1.32 |
| 7.50 | 9.6 | -2.05 | 2.05 | -0.27 | 0.27 | 0.03 | 4.20 |
| 7.20 | 6.5 | 0.75 | 0.75 | 0.10 | 0.10 | 0.01 | 0.56 |
| 7.00 | 7.1 | -0.05 | 0.05 | -0.01 | 0.01 | 0.00 | 0.00 |
| 6.20 | 6.9 | -0.70 | 0.70 | -0.11 | 0.11 | 0.01 | 0.49 |
| 5.50 | 5.8 | -0.30 | 0.30 | -0.05 | 0.05 | 0.01 | 0.09 |
| 5.30 | 5.2 | 0.15 | 0.15 | 0.03 | 0.03 | 0.00 | 0.02 |
| 5.50 | 5.2 | 0.30 | 0.30 | 0.05 | 0.05 | 0.01 | 0.09 |
The most simple naïve forecast uses the last periods data as a forecast for the next. In other words "what ever happened last period will happen the next period"
This can be expressed as
Ft=At-1
The second naïve model uses the last value and the DIRECTION of the last change in values. So the last value is adjusted depending on if the last change in direction was positive or negative. This change is then weighted. This can be expressed as
Ft=At-1+P(At-1-At-2)
At-1-At-2 is the change
Pis the weight In this example a 50% weight (p=.5) is used
CALCULATING THE ERRORS
The "error" for each data point is simply the difference between the observed value and the forecast. In other words, how wrong were you!! This is either positive or negative. In most cases the positives and negatives almost even each other out so that the positive errors are approximately equal to the negative errors. So if you take the mean of these the Mean Error is almost nothing. In most cases the "absolute error" is more important this measures the value of the error but ignores the sign. So they are all positive. Another common error estimate is the percentage error. This is simply the error expressed in terms of the actual value. This often helps in the comparison of errors for time series with different relative values. Maybe a 10% error is acceptable and this then has meaning regardless of the magnitude of the actual values.
The Squared error is simply the error squared. This also removes the direction of the error (all measured as positives) and also highlights large errors by making them exponentially larger.
Forecast Errors (forecast 1)
| Naïve Forecast 1 | ||||||||
| Actual | Forecast1 | Error | Asb Error | % error | Abs % Error | Squared Error | (At-At-1)^2 | |
| 7.60 | ||||||||
| 9.70 | 7.60 | |||||||
| 9.60 | 9.70 | -0.10 | 0.10 | -0.01 | 0.01 | 0.01 | 0.01 | |
| 7.50 | 9.60 | -2.10 | 2.10 | -0.28 | 0.28 | 4.41 | 4.41 | |
| 7.20 | 7.50 | -0.30 | 0.30 | -0.04 | 0.04 | 0.09 | 0.09 | |
| 7.00 | 7.20 | -0.20 | 0.20 | -0.03 | 0.03 | 0.04 | 0.04 | |
| 6.20 | 7.00 | -0.80 | 0.80 | -0.13 | 0.13 | 0.64 | 0.64 | |
| 5.50 | 6.20 | -0.70 | 0.70 | -0.13 | 0.13 | 0.49 | 0.49 | |
| 5.30 | 5.50 | -0.20 | 0.20 | -0.04 | 0.04 | 0.04 | 0.04 | |
| 5.50 | 5.30 | 0.20 | 0.20 | 0.04 | 0.04 | 0.04 | 0.04 | |
| 5.50 | ||||||||
| ME | -0.53 | |||||||
| MAE | 0.58 | |||||||
| MPE | -0.08 | |||||||
| MAPE | 0.09 | |||||||
| MSE | 0.72 | |||||||
| RMSE | 0.85 | |||||||
| Theil's U | 1.00 |
The final forecast evaluation is based on the summary statistics of the errors. Most of these involve taking the mean of the various errors. The mean error is thus the mean of the errors, which will often be very small because of the positive and negative values. The Mean Absolute Percentage Error is a popular measure as it measures the average error (regardless of direction) in percentage terms. The root mean squared error is also popular as it highlights forecasts when there are a number of very large errors.
Forecast Evaluation
Forecast Errors (forecast 2)
| Naïve Forecast 2 | ||||||||
| Actual | Forecast2 | Error | Asb Error | % error | Abs % Error | Squared Error | (At-At-1)^2 | |
| 7.60 | ||||||||
| 9.70 | ||||||||
| 9.60 | 10.75 | -1.15 | 1.15 | -0.12 | 0.12 | 1.32 | 0.01 | |
| 7.50 | 9.55 | -2.05 | 2.05 | -0.27 | 0.27 | 4.20 | 4.41 | |
| 7.20 | 6.45 | 0.75 | 0.75 | 0.10 | 0.10 | 0.56 | 0.09 | |
| 7.00 | 7.05 | -0.05 | 0.05 | -0.01 | 0.01 | 0.00 | 0.04 | |
| 6.20 | 6.90 | -0.70 | 0.70 | -0.11 | 0.11 | 0.49 | 0.64 | |
| 5.50 | 5.80 | -0.30 | 0.30 | -0.05 | 0.05 | 0.09 | 0.49 | |
| 5.30 | 5.15 | 0.15 | 0.15 | 0.03 | 0.03 | 0.02 | 0.04 | |
| 5.50 | 5.20 | 0.30 | 0.30 | 0.05 | 0.05 | 0.09 | 0.04 | |
| 5.60 | ||||||||
| ME | -0.38 | |||||||
| MAE | 0.68 | |||||||
| MPE | -0.05 | |||||||
| MAPE | 0.09 | |||||||
| MSE | 0.85 | |||||||
| RMSE | 0.92 | |||||||
| Theil's U | 1.09 |
Forecast Evaluation
The final forecast evaluation is based on the summary statistics of the errors. Most of these involve taking the mean of the various errors. The mean error is thus the mean of the errors, which will often be very small because of the positive and negative values. The Mean Absolute Percentage Error is a popular measure as it measures the average error (regardless of direction) in percentage terms. The root mean squared error is also popular as it highlights forecasts when there are a number of very large errors.
Summary
| Naïve Forecast 1 | Naïve Forecast 2 | ||
| ME | -0.5250 | -0.3813 | |
| MAE | 0.5750 | 0.6813 | |
| MPE | -0.0773 | -0.0476 | |
| MAPE | 0.0864 | 0.0943 | |
| MSE | 0.7200 | 0.8478 | |
| RMSE | 0.8485 | 0.9208 | |
| Theil's U | 1.0000 | 1.0851 |