Professional Documents
Culture Documents
Moving Average
Where 𝑥" are the observations, 𝐴" is the moving average at time, t.
The moving average uses n consecutive time periods.
Date USD (AM) USD (PM) GBP (AM) GBP (PM) EURO (AM) EURO (PM)
… …
1968-01-09 35.14 NA 14.576 NA NA NA
Exponential Smoothing
"
1
𝐴" = , 𝑥"
𝑘
"'%($
https://en.wikipedia.org/wiki/Exponential_smoothing
Three Smoothing Methods
𝑠: = 𝑥:
𝑠" = 𝛼𝑥" + 1 − 𝛼 𝑠"'$ ; 𝑡 > 0
0<𝛼<1
Try different values of alpha (.1, .2, …, .9) and
compute the RMSE.
Choose the 𝛼 with the lowest RMSE.
R Code Example
Number of lags: 25
Recap
Exponential Smoothing:
Holt-Winters Forecasting Model
Dr. Sung Won Kim
Limitations of Exponential Smoothing
R Dataset: AirPassengers
Monthly Airline Passengers: 1949–1960
Simple Exponential Smoothing
Forecast equation:
𝑦C"(J = 𝑙"
Level equation:
𝑙" = 𝛼𝑦" + 1 − 𝛼 𝑙"'$
𝑙" is the level (smoothed value).
ℎ = 1 gives the fitted values.
Holt’s Linear Trend
https://otexts.com/fpp2/holt.html
Holt-Winters Additive Method
Forecast: 𝑦C"(J = 𝑙" + ℎ𝑏" + 𝑠"(J'P(%($)
Level: 𝑙" = 𝛼(𝑦" − 𝑠"'P ) + 1 − 𝛼 𝑙"'$ + 𝑏"'$
Trend: 𝑏" = β 𝑙" − 𝑙"'$ + 1 − 𝛽 𝑏"'$
Seasonality: 𝑠" = 𝛾 𝑦" − 𝑙"'$ − 𝑏"'$ + 1 − 𝛾 𝑠"'P
𝑙" is the level (smoothed value).
ℎ is the number of steps ahead.
𝑏" is the weighted average of the trend.
𝑠" is the seasonality estimate.
https://otexts.com/fpp2/holt.html
Holt-Winters Multiplicative Method
Introduction
https://en.wikipedia.org/wiki/Autoregressive_model
White Noise
WHITE NOISE