Professional Documents
Culture Documents
General Concepts Evaluating Forecasts How good is it? Forecasting Methods (Stationary)
Cumulative Mean Nave Forecast Moving Average Exponential Smoothing
Demand Forecasting
Forecasting is difficult especially for the future Forecasts are always wrong The less aggregated, the lower the accuracy The longer the time horizon, the lower the accuracy The past is usually a pretty good place to start Everything exhibits seasonality of some sort A good forecast is not just a number it should include a range, description of distribution, etc. Any analytical method should be supplemented by external information A forecast for one function in a company might not be useful to another function (Sales to Mkt to Mfg to Trans)
Objective
Causal / Relational
Econometric Models Leading Indicators Input-Output Models
Experimental
Customer surveys Focus group sessions Test Marketing
Time Series
Black Box Approach Uses past to predict the future
Evaluating Forecasts
Visual Review Errors Errors Measure MPE and MAPE Tracking Signal
Demand Forecasting
Generate the large number of short-term, SKU level, locally dis-aggregated demand forecasts required for production, logistics, and sales to operate successfully. Focus on:
Forecasting product demand Mature products (not new product releases) Short time horizon (weeks, months, quarters, year) Use of models to assist in the forecast Cases where demand of items is independent
Forecasting Terminology
400 350 300 250 200 150
100 50
0 0 10 20 30 40 50
Initialization
ExPost Forecast
Forecast
Forecasting Terminology
We are now looking at a future from here, and the future we were looking at in February now includes some of our past, and we can incorporate the past into our forecast. 1993, the first half, which is now the past and was the future when we issued our first forecast, is now over
Laura DAndrea Tyson, Head of the Presidents Council of Economic Advisors, quoted in November of 1993 in the Chicago Tribune, explaining why the Administration reduced its projections of economic growth to 2 percent from the 3.1percent it predicted in February.
Forecasting Problem
Suppose your fraternity/sorority house consumed the following number of cases of beer for the last 6 weekends: 8, 5, 7, 3, 6, 9 How many cases do you think your fraternity / sorority will consume this weekend?
10 9 8 7 6 5 4 3 2 1 0 0 1 2 3 Week 4 5 6 7
Cases
Cases
2 Periods 3 Periods
Cases
Forecasting Terminology
Applying this terminology to our problem using the Moving Average forecast:
t 1 2 3 4 5 6 7 8 9 10 A(t) 8 5 7 3 6 9 F(t)
Model Evaluation
6.67 5 5.33 6 6 6 6
How do you make the Weighted Moving Average forecast more responsive?
F( t 1) A( t ) (1 )F(t )
= smoothing constant (between 0 and 1)
ExPost Forecast
5 6 7 8 9
Forecast
10
6.84
0.6
0.5 0.4 0.3 0.2 0.1 0 1 2 3 4 Period 5 6 7
t 1 2 3 4 5 6 7 8 9 10
A(t) 8 5 6 3 4 15
Outlier
10 9 8 7 6 5 4 3 2 1 0 0 1 2 3 4 5 6 7
8
7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 A(t) = 0.3 = 0.5 = 0.7 = 0.9
b a
0 1 2 3 4 5 I
D a bI
D is the regressed forecast value or dependent variable in the model, a is the intercept value of the regression line, and b is the slope of the regression line.
Error
D a bI
b ni1(IiDi ) (i1Ii )( i1Di )
n n n
n (I ) (i1Ii )
n 2 i1 i n
1 n b n a i1Di ( i1Ii ) n n
100
50 0 0 2 4 6 8 10 12 14 16
As with the simple moving average model, all data points count equally with simple linear regression.
60.1
9.9
52
64.6
7.74
70
0.3 0.4
72.34
L(t) = A(t) + (1- ) F(t) L(5) = 0.3 (52) + 0.7 (70)=64.6 T(t) = [L(t) - L(t-1) ] + (1- ) T(t-1) T(5) = 0.4 [64.6 60.1] + 0.6 (9.9) = 7.74 F(t+1) = L(t) + T(t) F(6) = 64.6 + 7.74 = 72.34
60.1 64.60
9.9 7.74
0.3 0.4
70 72.34
63 72
69.54 6.62
76.16
60.1 64.60 69.54 74.91 72.62 82.46 89.24 103.01 124.41 151.82 173.55 202.92
9.9 7.74 6.62 6.12 2.76 5.59 6.06 9.15 14.05 19.39 20.33 23.94
Initialization
70 72.34 76.16 81.03 75.38 88.06 95.30 112.16 138.46 171.22 193.88 226.86 250.80 274.74 298.68
ExPost Forecast
Forecast
Regression
50
0
10
15
20
Initialization
ExPost Forecast
Forecast
2003
2004
2005
Spring Summer Fall Winter Spring Summer Fall Winter Spring Summer Fall Winter
Sp
rin g
Seasonal Model Formulas L(t) = A(t) / S(t-p) + (1- ) L(t-1) S(t) = g [A(t) / L(t)] + (1- g) S(t-p) F(t+1) = L(t) * S(t+1-p)
p is the number of periods in a season Quarterly data: p = 4 Monthly data: p = 12
2003
Spring Summer Fall Winter 2004 Spring Summer Fall Winter Average Sales per Quarter =
A(t) 16 27 39 22 16 26 43 23 26.5
S(5) = 0.60 S(6) = 1.00 S(7) = 1.55 S(8) = 0.85 L(8) = 26.5
2004
2005
2006
Spring Summer Fall Winter Spring Summer Fall Winter Spring Summer Fall Winter
A(t) 16 26 43 23 14 29 41 22
L(t)
F(t)
g 0.3 0.4
35 30
25 20 15 10 5 0 0 2 4 6 8 10 12 14 16
Forecasting: Winters Model for Data with Trend and Seasonal Components
Decomposition Forecasting
There are two ways to decompose forecast data with trend and seasonal components:
Use regression to get the trend, use the trend line to get seasonal factors Use averaging to get seasonal factors, deseasonalize the data, then use regression to get the trend.
41
Decomposition Forecasting
The following data contains trend and seasonal components:
Period 1 2 3 4 5 6 7 8 Quarter Spring Summer Fall Winter Spring Summer Fall Winter Sales 90 157 123 93 128 211 163 122
250 200 150
100 50 0 0 2 4 6 8 10
Decomposition Forecasting
The seasonal factors are obtained by the same method used for the Seasonal Model forecast:
Period 1 2 3 4 5 6 7 8 Quarter Spring Summer Fall Winter Spring Summer Fall Winter Average = Sales 90 157 123 93 128 211 163 122 135.9 Qtr. Ave. 109 184 143 107.5 Seas. Factor 0.80 1.35 1.05 0.79 1.00
Average to 1
Decomposition Forecasting
With the seasonal factors, the data can be deseasonalized by dividing the data by the seasonal factors: Deseasonalized Data
Sales 90 157 123 93 128 211 163 122 Seas. Factor 0.80 1.35 1.05 0.79 0.80 1.35 1.05 0.79 Deseas. Data 112.2 115.9 116.9 117.5 159.6 155.8 154.9 154.2
170.0 160.0 150.0 140.0 130.0 120.0 110.0 100.0 0 2 4 6 8 10
Decomposition Forecast
Regression on the de-seasonalized data produces the following results:
Slope (m) = 7.71 Intercept (b) = 101.2
Decomposition Forecasting
Period 1 2 3 4 5 6 7 8 9 10 11 12
Quarter Spring Summer Fall Winter Spring Summer Fall Winter Spring Summer Fall Winter
Forecast 87.4 157.9 130.8 104.5 112.1 199.7 163.3 128.8 136.8 241.4 195.7 153.2
300
250
200 150
100
50 0
10
11
12
Computer software gives us the ability to mess up more data on a greater scale more efficiently While software like SAP can automatically select models and model parameters for a set of data, and usually does so correctly, when the data is important, a human should review the model results One of the best tools is the human eye
Visual Review
How would you evaluate this forecast?
60 50 40 30 20 10 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Forecast Evaluation
Where Forecast is Evaluated
400 350 300 250 200 150
100
50 0 0 10 20 30 40 50
Initialization
ExPost Forecast
Forecast
Errors
400 350
300
250
200
150 100 50 0 20 25 30 35 40
All error measures compare the forecast model to the actual data for the ExPost Forecast region
Errors Measure
t 25 26 27 28 29 30 31 32 33 34 35 36 F(t) 95 125 197 227 230 274 274 255 244 211 114 85 A(t) 91 137 193 199 278 344 291 250 171 152 111 127 Sum Error F(t) - A(t) 4 -12 4 28 -48 -70 -17 5 73 59 3 -42 -13 | F(t) - A(t) | 4 12 4 28 48 70 17 5 73 59 3 42 365
All error measures are based on the comparison of forecast values to actual values in the ExPost Forecast regiondo not include data from initialization.
35 36
114 85
3 -42 -13
3 42 365
Bias
MAD
F( t ) A ( t )
n
365 30.42 12
MPE
0.446 0.037 12
1.774 0.148 12
MAPE
MPE
MAPE
0.121 0.010 12
0.792 0.066 12
Data Set 2
0.121 0.010 12 0.792 MAPE 0.066 12 MPE
Tracking Signal
Whats happened in this situation? How could we detect this in an automatic forecasting environment?
60 50
40
30 20 10
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Tracking Signal
The tracking signal can be calculated after each actual sales value is recorded. The tracking signal is calculated as: RSFE F( t ) A ( t ) TS(t) MAD(t) F(t) A(t)
n
The tracking signal is a relative measure, like MPE and MAPE, so it can be compared to a set value (typically 4 or 5) to identify when forecasting parameters and/or models need to be changed.
Tracking Signal
t 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 A(t) 15.1 16.8 11.4 18.7 11.8 17.2 12.9 22.9 24.0 32.6 38.5 36.6 40.6 51.0 51.9 F(t) 15.9 14.6 15.8 14.6 15.4 14.6 17.1 19.2 23.2 27.8 30.4 33.5 38.7 42.7 F(t) - A(t) RSFE | F(t) - A(t) | S | F(t) - A(t) | MAD TS
3.2 -2.9 2.8 -1.8 1.7 -5.8 -4.8 -9.4 -10.7 -6.2 -7.1 -12.3 -9.2
3.2 0.3 3.1 1.3 3.0 -2.8 -7.6 -17.0 -27.7 -33.9 -41.0 -53.3 -62.5
3.2 2.9 2.8 1.8 1.7 5.8 4.8 9.4 10.7 6.2 7.1 12.3 9.2
3.2 6.1 8.9 10.7 12.4 18.2 23 32.4 43.1 49.3 56.4 68.7 77.9
3.20 3.05 2.97 2.68 2.48 3.03 3.29 4.05 4.79 4.93 5.13 5.73 5.99
1.00 0.10 1.04 0.49 1.21 -0.92 -2.31 -4.20 -5.78 -6.88 -8.00 -9.31 -10.43
Tracking Signal
60 50
TS = -5.78
40
30
20 10 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15