Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Forecasting
Slides 13b:
Time-Series Models;
Measuring Forecast Error
Forecasting Models
Forecasting
Techniques
Delphi
Naive
Method
Moving
Jury of Executive
Average
Opinion
Weighted
Sales Force
Moving Average
Composite
Exponential
Consumer Market
Smoothing
Survey
Trend Analysis
Causal
Methods
Seasonality
Simple Analysis
Regression
Analysis Multiplicative
Decomposition
Multiple
Regression
Analysis
Time Series Models
General Form: Y = T * C * S ± ε, where
• T = Trend - long term movement of mean
• C = (Business) Cycle - an upturn or downturn not caused
by seasonal variation; effect of the economy
• S = Seasonal Variation - repetitive pattern observed over
a specific time period
• ε = Error (random variation)
Future
Linear trend time series
Time
Time Series: Stationary Models
Stationary Model Assumptions
• Assumes item forecasted will stay steady over time (constant
mean; random variation only)
• Techniques will smooth out short-term irregularities
• Forecast for period t+1 is equal to forecast for period t+k; the
forecast is revised only when new data becomes available.
Stationary Model Types
• Naïve Forecast
• Moving Average
• Weighted Moving Average
• Exponential Smoothing
Stationary Time Series Models:
The Naïve Model
Whatever happened
last period will
happen again this time
The model is simple Ft Yt 1
and flexible
Provides a baseline to or
measure other models
Attempts to capture Ft Yt 4 : Quarterly data
seasonal factors at the Ft Yt 12 : Monthly data
expense of ignoring
trend
Measures of Forecast Error
( Forecast Error Yt Ft )
T
• Bias - The arithmetic sum of the
errors Bias (forecast error) /T
t 1
• MAD - Mean Absolute Deviation T
• MAPE – Mean Absolute Percentage (Yt Ft ) / T
Error t 1
• Mean Square Error (MSE) - Similar T
to simple sample variance MSE | forecast error |2 /T
• Standard Error - Standard deviation t 1
of the sampling distribution (the T
square (Yt Ft ) 2 / T
root of the MSE) t 1
• Bias, MAD, and MAPE - typically T T
used for time series MAD | forecast
t 1
error | /T |Yt Ft | / T
t 1
T
MAPE 100 [|Yt Ft | / Yt ] / T
t 1
Naïve Forecast
Wallace Garden Supply
Forecasting
Storage Shed Sales
25
20
15
Actual Value
Sheds
Naïve Forecast
10
0
February March April May June July August September October November December
Period
Stationary Time Series Models:
Moving Averages
Actual
Period Value Three-Month Moving Averages
January 10
February 12
March 16
April 13 10 + 12 + 16 / 3 = 12.67
May 17 12 + 16 + 13 / 3 = 13.67
June 19 16 + 13 + 17 / 3 = 15.33
July 15 13 + 17 + 19 / 3 = 16.33
August 20 17 + 19 + 15 / 3 = 17.00
September 22 19 + 15 + 20 / 3 = 18.00
October 19 15 + 20 + 22 / 3 = 19.00
November 21 20 + 22 + 19 / 3 = 20.33
December 19 22 + 19 + 21 / 3 = 20.67
Moving Averages Forecast
Wallace Garden Supply
Forecasting 3 period moving average
Actual Value - Forecast
25
20
15
Actual Value
Value
Forecast
10
0
1 2 3 4 5 6 7 8 9 10 11 12
Time
Stability vs. Responsiveness
• Should I use a 2-period moving average or
a 3-period moving average?
– The larger the “n” the more stable the forecast.
– A 2-period model will be more responsive to
change.
– We don’t want to chase outliers.
– But we don’t want to take forever to correct for
a real change.
– We must balance stability with responsiveness.
Stationary Time Series Models:
Weighted Moving Averages
• The Weighted Moving Average Method
– Historical values of the time series are assigned
different weights when performing the forecast
Actual
Period Value Weights Three-Month Weighted Moving Averages
January 10 0.222
February 12 0.593
March 16 0.185
April 13 2.2 + 7.1 + 3 / 1 = 12.298
May 17 2.7 + 9.5 + 2.4 / 1 = 14.556
June 19 3.5 + 7.7 + 3.2 / 1 = 14.407
July 15 2.9 + 10 + 3.5 / 1 = 16.484
August 20 3.8 + 11 + 2.8 / 1 = 17.814
September 22 4.2 + 8.9 + 3.7 / 1 = 16.815
October 19 3.3 + 12 + 4.1 / 1 = 19.262
November 21 4.4 + 13 + 3.5 / 1 = 21.000
December 19 4.9 + 11 + 3.9 / 1 = 20.036
Actual
Period Value(Yt ) Ŷ t-1 α Y t-1 Ŷt-1 Ŷt
January 10 = 10 0.1
February 12 10 + 0.1 *( 10 - 10 )= 10.000
March 16 10 + 0.1 *( 12 - 10 )= 10.200
April 13 10.2 + 0.1 *( 16 - 10.2 )= 10.780
May 17 10.78 + 0.1 *( 13 - 10.78 )= 11.002
June 19 11.002 + 0.1 *( 17 - 11.002 )= 11.602
July 15 11.602 + 0.1 *( 19 - 11.602 )= 12.342
August 20 12.342 + 0.1 *( 15 - 12.342 )= 12.607
September 22 12.607 + 0.1 *( 20 - 12.607 )= 13.347
October 19 13.347 + 0.1 *( 22 - 13.347 )= 14.212
November 21 14.212 + 0.1 *( 19 - 14.212 )= 14.691
December 19 14.691 + 0.1 *( 21 - 14.691 )= 15.322
Class Exercise: What is the forecast for January of the following year?
How about March? Find the Bias, Mad & MAPE. (Note: α equals 0.1.)
Exponential Smoothing
(Alpha = .419)
Wallace Garden Supply
Forecasting Exponential smoothing
25
20
15
Sh ed s
Actual value
Forecast
10
0
Evaluating the Performance
of Forecasting Techniques
Time 1 2 3 4 5 6
Time series: 100 110 90 80 105 115
3-Period Moving average: 100 93.33 91.6
Error for the 3-Period MA: - 20 11.67 23.4
3-Period Weighted MA(.5, .3, .2) 98 89 85.5
Error for the 3-Period WMA - 18 16 29.5
Performance Measures –
MAD for the Sample Example
MAD =
t| = |-20| + |11.67| + |23.4|
= 18.35
n 3
MAD =
t| = |-18| + |116| + |29.5| = 21.17
n 3
Performance Measures –
MAPE for the Sample Example
Objective: Minimize
the squared deviations!
Time
Least Squares Method
Where
^
Y a bX
^
Y = predicted value of the dependent variable (demand)
a = Y-axis intercept = Y - b* X _ _
[ XY - n X Y ]
b = Slope of the regression line =
_
2
2
X - n X
Linear Trend Data & Error Analysis
Midwestern Manufacturing Company
Forecasting Linear trend analysis
Enter the actual values in cells shaded YELLOW. Enter new time period at the bottom to forecast
160
140
y = 10.536x + 56.714
120
100
Va lue
80
60
40
20
0
1 2 3 4 5 6 7
Time