Professional Documents
Culture Documents
Predictive Analysis
INFERENCE PREDICTION
e.g. What is the impact of e.g. What sales levels does our
advertising on sales? model predict for next year?
TIME SERIES
PATTERNS
60 60
40 40
20 20
0 0
0 5 10 15 20 25 30 0 5 10 15 20 25 30
60 60
40 40
20 20
0 0
0 5 10 15 20 25 30 0 5 10 15 20 25 30
FORECASTING
METHODS
1 K−1
ഥ
• Moving average: Yt = σi=0 Yt−𝑖 , K ≥ 1, t=1,..,T.
K
• One-sided MA
• The forecast is the mean of the most recent K time periods:
1 K−1
T+1
Y ഥT = YT−𝑖
=Y
K i=0
• K is the “order” of the MA.
• Small K leads to more volatile forecasts (why?)
• Large K leads to more stable forecasts
Example - MA
• Given the following data, calculate three-month moving average forecasts, where valid.
trending up
20.0
0.0
0 5 10 15 20 25 30
Double Moving Averages (DMA)
• DMA is designed to correct the persistent forecasting errors associated with data trend.
• One set of moving averages is first computed and then a moving average is calculated
on the first moving average:
Yt + Yt−1 + ⋯ + Yt−K+1
Mt =
K
′
Mt + Mt−1 + ⋯ + Mt−K+1
Mt =
K
DMA Forecasts
Sales
forecasting errors DMA(3)
MA(3)
100.0
associated with data trend
80.0
60.0
40.0
20.0
0.0
0 5 10 15 20 25 30
Single Exponential Smoothing (SES)
• Since 0<α<1, the coefficients are smaller for observations in distant past.
• Higher α gives greater weights to recent observations.
• The sum of coefficients = 1.
Example - SES
Sales
have persistent errors when data SES(0.6)
100.0
have trends.
80.0
60.0
40.0
20.0
0.0
0 5 10 15 20 25 30
Holt’s Method
• Holt’s method adjusts the current level by adding the trend in the previous period.
• The trend is not constant for the entire data set, but is different at each time period.
• Also called double exponential smoothing (just like double moving average): smoothing
both the level and the slope parameters.
Holt’s Method: Equations
Year t Yt Lt Tt Yt+p
80.0
60.0
40.0
20.0
0.0
0 5 10 15 20 25 30
Forecasting using regression analysis
𝑦ෝ𝑡 = 𝛼 + 𝛽1 𝑡
Where
𝑦ෝ𝑡 : dependent variable
𝛼: intercept
𝛽1 : slope coefficient
𝑡: time period
DECISION-MAKING
BIASES
HHHHHHHHHH
• Next flip:
H or T?
Gambler’s Fallacy
Harvard Financial Aid Office, 2015, "Harvard graduate school tuition", doi:10.7910/DVN/LV0YSQ
Forecasting
▪ Linear:
FORECAST()
▪ Exponential Smoothing:
FORECAST.ETS()