forecasting - rob j hyndman · outline 1the state space perspective 2simple exponential smoothing...

84
3. Exponential smoothing I OTexts.com/fpp/7/ Forecasting: Principles and Practice 1 Rob J Hyndman Forecasting: Principles and Practice

Upload: trinhnhi

Post on 21-Aug-2019

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

3. Exponential smoothing I

OTexts.com/fpp/7/Forecasting: Principles and Practice 1

Rob J Hyndman

Forecasting:

Principles and Practice

Page 2: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Outline

1 The state space perspective

2 Simple exponential smoothing

3 Trend methods

4 Seasonal methods

5 Exponential smoothing methods so far

Forecasting: Principles and Practice The state space perspective 2

Page 3: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

State space perspective

Observed data: y1, . . . , yT.

Unobserved state: x1, . . . ,xT.

Forecast yT+h|T = E(yT+h|xT).The “forecast variance” is Var(yT+h|xT).A prediction interval or “interval

forecast” is a range of values of yT+hwith high probability.

Forecasting: Principles and Practice The state space perspective 3

Page 4: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

State space perspective

Observed data: y1, . . . , yT.

Unobserved state: x1, . . . ,xT.

Forecast yT+h|T = E(yT+h|xT).The “forecast variance” is Var(yT+h|xT).A prediction interval or “interval

forecast” is a range of values of yT+hwith high probability.

Forecasting: Principles and Practice The state space perspective 3

Page 5: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

State space perspective

Observed data: y1, . . . , yT.

Unobserved state: x1, . . . ,xT.

Forecast yT+h|T = E(yT+h|xT).The “forecast variance” is Var(yT+h|xT).A prediction interval or “interval

forecast” is a range of values of yT+hwith high probability.

Forecasting: Principles and Practice The state space perspective 3

Page 6: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

State space perspective

Observed data: y1, . . . , yT.

Unobserved state: x1, . . . ,xT.

Forecast yT+h|T = E(yT+h|xT).The “forecast variance” is Var(yT+h|xT).A prediction interval or “interval

forecast” is a range of values of yT+hwith high probability.

Forecasting: Principles and Practice The state space perspective 3

Page 7: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Outline

1 The state space perspective

2 Simple exponential smoothing

3 Trend methods

4 Seasonal methods

5 Exponential smoothing methods so far

Forecasting: Principles and Practice Simple exponential smoothing 4

Page 8: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple Exponential Smoothing

Component form

Forecast equation yt+h|t = `t

Smoothing equation `t = αyt + (1− α)`t−1

`1 = αy1 + (1− α)`0

Forecasting: Principles and Practice Simple exponential smoothing 5

Page 9: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple Exponential Smoothing

Component form

Forecast equation yt+h|t = `t

Smoothing equation `t = αyt + (1− α)`t−1

`1 = αy1 + (1− α)`0

Forecasting: Principles and Practice Simple exponential smoothing 5

Page 10: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple Exponential Smoothing

Component form

Forecast equation yt+h|t = `t

Smoothing equation `t = αyt + (1− α)`t−1

`1 = αy1 + (1− α)`0

`2 = αy2 + (1− α)`1 = αy2 + α(1− α)y1 + (1− α)2`0

Forecasting: Principles and Practice Simple exponential smoothing 5

Page 11: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple Exponential Smoothing

Component form

Forecast equation yt+h|t = `t

Smoothing equation `t = αyt + (1− α)`t−1

`1 = αy1 + (1− α)`0

`2 = αy2 + (1− α)`1 = αy2 + α(1− α)y1 + (1− α)2`0

`3 = αy3 + (1− α)`2 =2∑j=0

α(1− α)jy3−j + (1− α)3`0

Forecasting: Principles and Practice Simple exponential smoothing 5

Page 12: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple Exponential Smoothing

Component form

Forecast equation yt+h|t = `t

Smoothing equation `t = αyt + (1− α)`t−1

`1 = αy1 + (1− α)`0

`2 = αy2 + (1− α)`1 = αy2 + α(1− α)y1 + (1− α)2`0

`3 = αy3 + (1− α)`2 =2∑j=0

α(1− α)jy3−j + (1− α)3`0

...

`t =t−1∑j=0

α(1− α)jyt−j + (1− α)t`0

Forecasting: Principles and Practice Simple exponential smoothing 5

Page 13: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple Exponential Smoothing

Forecast equation

yt+h|t =t∑

j=1

α(1− α)t−jyj + (1− α)t`0, (0 ≤ α ≤ 1)

Weights assigned to observations for:Observation α = 0.2 α = 0.4 α = 0.6 α = 0.8

yt 0.2 0.4 0.6 0.8yt−1 0.16 0.24 0.24 0.16yt−2 0.128 0.144 0.096 0.032yt−3 0.1024 0.0864 0.0384 0.0064yt−4 (0.2)(0.8)4 (0.4)(0.6)4 (0.6)(0.4)4 (0.8)(0.2)4

yt−5 (0.2)(0.8)5 (0.4)(0.6)5 (0.6)(0.4)5 (0.8)(0.2)5

Limiting cases: α→ 1, α→ 0.

Forecasting: Principles and Practice Simple exponential smoothing 6

Page 14: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple Exponential Smoothing

Forecast equation

yt+h|t =t∑

j=1

α(1− α)t−jyj + (1− α)t`0, (0 ≤ α ≤ 1)

Weights assigned to observations for:Observation α = 0.2 α = 0.4 α = 0.6 α = 0.8

yt 0.2 0.4 0.6 0.8yt−1 0.16 0.24 0.24 0.16yt−2 0.128 0.144 0.096 0.032yt−3 0.1024 0.0864 0.0384 0.0064yt−4 (0.2)(0.8)4 (0.4)(0.6)4 (0.6)(0.4)4 (0.8)(0.2)4

yt−5 (0.2)(0.8)5 (0.4)(0.6)5 (0.6)(0.4)5 (0.8)(0.2)5

Limiting cases: α→ 1, α→ 0.

Forecasting: Principles and Practice Simple exponential smoothing 6

Page 15: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple Exponential Smoothing

Forecast equation

yt+h|t =t∑

j=1

α(1− α)t−jyj + (1− α)t`0, (0 ≤ α ≤ 1)

Weights assigned to observations for:Observation α = 0.2 α = 0.4 α = 0.6 α = 0.8

yt 0.2 0.4 0.6 0.8yt−1 0.16 0.24 0.24 0.16yt−2 0.128 0.144 0.096 0.032yt−3 0.1024 0.0864 0.0384 0.0064yt−4 (0.2)(0.8)4 (0.4)(0.6)4 (0.6)(0.4)4 (0.8)(0.2)4

yt−5 (0.2)(0.8)5 (0.4)(0.6)5 (0.6)(0.4)5 (0.8)(0.2)5

Limiting cases: α→ 1, α→ 0.

Forecasting: Principles and Practice Simple exponential smoothing 6

Page 16: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple Exponential Smoothing

Component form

Forecast equation yt+h|t = `t

Smoothing equation `t = αyt + (1− α)`t−1

State space form

Observation equation yt = `t−1 + etState equation `t = `t−1 + αet

et = yt − `t−1 = yt − yt|t−1 for t = 1, . . . ,T, the one-stepwithin-sample forecast error at time t.

`t is an unobserved “state”.

Need to estimate α and `0.

Forecasting: Principles and Practice Simple exponential smoothing 7

Page 17: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple Exponential Smoothing

Component form

Forecast equation yt+h|t = `t

Smoothing equation `t = αyt + (1− α)`t−1

State space form

Observation equation yt = `t−1 + etState equation `t = `t−1 + αet

et = yt − `t−1 = yt − yt|t−1 for t = 1, . . . ,T, the one-stepwithin-sample forecast error at time t.

`t is an unobserved “state”.

Need to estimate α and `0.

Forecasting: Principles and Practice Simple exponential smoothing 7

Page 18: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple Exponential Smoothing

Component form

Forecast equation yt+h|t = `t

Smoothing equation `t = αyt + (1− α)`t−1

State space form

Observation equation yt = `t−1 + etState equation `t = `t−1 + αet

et = yt − `t−1 = yt − yt|t−1 for t = 1, . . . ,T, the one-stepwithin-sample forecast error at time t.

`t is an unobserved “state”.

Need to estimate α and `0.

Forecasting: Principles and Practice Simple exponential smoothing 7

Page 19: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple Exponential Smoothing

Component form

Forecast equation yt+h|t = `t

Smoothing equation `t = αyt + (1− α)`t−1

State space form

Observation equation yt = `t−1 + etState equation `t = `t−1 + αet

et = yt − `t−1 = yt − yt|t−1 for t = 1, . . . ,T, the one-stepwithin-sample forecast error at time t.

`t is an unobserved “state”.

Need to estimate α and `0.

Forecasting: Principles and Practice Simple exponential smoothing 7

Page 20: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple exponential smoothing

Year

No.

str

ikes

in U

S

1950 1960 1970 1980 1990

3500

4000

4500

5000

5500

6000

Forecasting: Principles and Practice Simple exponential smoothing 8

Page 21: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple exponential smoothing

Forecasting: Principles and Practice Simple exponential smoothing 9

Page 22: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Optimisation

Need to choose value for α and `0

Similarly to regression — we choose α and `0 byminimising MSE:

MSE =1

T

T∑t=1

(yt − yt|t−1)2 =

1

T

T∑t=1

e2t .

Unlike regression there is no closed formsolution — use numerical optimization.

Forecasting: Principles and Practice Simple exponential smoothing 10

Page 23: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Optimisation

Need to choose value for α and `0

Similarly to regression — we choose α and `0 byminimising MSE:

MSE =1

T

T∑t=1

(yt − yt|t−1)2 =

1

T

T∑t=1

e2t .

Unlike regression there is no closed formsolution — use numerical optimization.

Forecasting: Principles and Practice Simple exponential smoothing 10

Page 24: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Optimisation

Need to choose value for α and `0

Similarly to regression — we choose α and `0 byminimising MSE:

MSE =1

T

T∑t=1

(yt − yt|t−1)2 =

1

T

T∑t=1

e2t .

Unlike regression there is no closed formsolution — use numerical optimization.

Forecasting: Principles and Practice Simple exponential smoothing 10

Page 25: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple exponential smoothing

Forecasting: Principles and Practice Simple exponential smoothing 11

Page 26: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple exponential smoothing

Forecasting: Principles and Practice Simple exponential smoothing 12

0.0 0.2 0.4 0.6 0.8 1.0

0.8

1.0

1.2

1.4

1.6

1.8

2.0

alpha

MS

E (

'000

000

)

α = 0.68

Page 27: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple exponential smoothing

Multi-step forecasts

yT+h|T = yT+1|T, h = 2,3, . . .

A “flat” forecast function.

Remember, a forecast is an estimated mean ofa future value.

So with no trend, no seasonality, and no otherpatterns, the forecasts are constant.

Forecasting: Principles and Practice Simple exponential smoothing 13

Page 28: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple exponential smoothing

Multi-step forecasts

yT+h|T = yT+1|T, h = 2,3, . . .

A “flat” forecast function.

Remember, a forecast is an estimated mean ofa future value.

So with no trend, no seasonality, and no otherpatterns, the forecasts are constant.

Forecasting: Principles and Practice Simple exponential smoothing 13

Page 29: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple exponential smoothing

Multi-step forecasts

yT+h|T = yT+1|T, h = 2,3, . . .

A “flat” forecast function.

Remember, a forecast is an estimated mean ofa future value.

So with no trend, no seasonality, and no otherpatterns, the forecasts are constant.

Forecasting: Principles and Practice Simple exponential smoothing 13

Page 30: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Simple exponential smoothing

Multi-step forecasts

yT+h|T = yT+1|T, h = 2,3, . . .

A “flat” forecast function.

Remember, a forecast is an estimated mean ofa future value.

So with no trend, no seasonality, and no otherpatterns, the forecasts are constant.

Forecasting: Principles and Practice Simple exponential smoothing 13

Page 31: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

SES in R

library(fpp)

fit <- ses(oil, h=3)

plot(fit)

summary(fit)

Forecasting: Principles and Practice Simple exponential smoothing 14

Page 32: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Outline

1 The state space perspective

2 Simple exponential smoothing

3 Trend methods

4 Seasonal methods

5 Exponential smoothing methods so far

Forecasting: Principles and Practice Trend methods 15

Page 33: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt’s local trend method

Holt (1957) extended SES to allow forecastingof data with trends.Two smoothing parameters: α and β∗ (withvalues between 0 and 1).

yt+h|t = `t + hbt`t = αyt + (1− α)(`t−1 + bt−1)

bt = β∗(`t − `t−1) + (1− β∗)bt−1

`t denotes an estimate of the level of the seriesat time tbt denotes an estimate of the slope of theseries at time t.

Forecasting: Principles and Practice Trend methods 16

Page 34: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt’s local trend method

Holt (1957) extended SES to allow forecastingof data with trends.Two smoothing parameters: α and β∗ (withvalues between 0 and 1).

yt+h|t = `t + hbt`t = αyt + (1− α)(`t−1 + bt−1)

bt = β∗(`t − `t−1) + (1− β∗)bt−1

`t denotes an estimate of the level of the seriesat time tbt denotes an estimate of the slope of theseries at time t.

Forecasting: Principles and Practice Trend methods 16

Page 35: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt’s local trend method

Holt (1957) extended SES to allow forecastingof data with trends.Two smoothing parameters: α and β∗ (withvalues between 0 and 1).

yt+h|t = `t + hbt`t = αyt + (1− α)(`t−1 + bt−1)

bt = β∗(`t − `t−1) + (1− β∗)bt−1

`t denotes an estimate of the level of the seriesat time tbt denotes an estimate of the slope of theseries at time t.

Forecasting: Principles and Practice Trend methods 16

Page 36: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt’s local trend method

Holt (1957) extended SES to allow forecastingof data with trends.Two smoothing parameters: α and β∗ (withvalues between 0 and 1).

yt+h|t = `t + hbt`t = αyt + (1− α)(`t−1 + bt−1)

bt = β∗(`t − `t−1) + (1− β∗)bt−1

`t denotes an estimate of the level of the seriesat time tbt denotes an estimate of the slope of theseries at time t.

Forecasting: Principles and Practice Trend methods 16

Page 37: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt’s local trend method

Holt (1957) extended SES to allow forecastingof data with trends.Two smoothing parameters: α and β∗ (withvalues between 0 and 1).

yt+h|t = `t + hbt`t = αyt + (1− α)(`t−1 + bt−1)

bt = β∗(`t − `t−1) + (1− β∗)bt−1

`t denotes an estimate of the level of the seriesat time tbt denotes an estimate of the slope of theseries at time t.

Forecasting: Principles and Practice Trend methods 16

Page 38: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt’s local trend method

Holt (1957) extended SES to allow forecastingof data with trends.Two smoothing parameters: α and β∗ (withvalues between 0 and 1).

yt+h|t = `t + hbt`t = αyt + (1− α)(`t−1 + bt−1)

bt = β∗(`t − `t−1) + (1− β∗)bt−1

`t denotes an estimate of the level of the seriesat time tbt denotes an estimate of the slope of theseries at time t.

Forecasting: Principles and Practice Trend methods 16

Page 39: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt’s linear trendComponent form

Forecast yt+h|t = `t + hbt

Level `t = αyt + (1− α)(`t−1 + bt−1)

Trend bt = β∗(`t − `t−1) + (1− β∗)bt−1,

State space form

Observation equation yt = `t−1 + bt−1 + etState equations `t = `t−1 + bt−1 + αet

bt = bt−1 + βet

β = αβ∗

et = yt − (`t−1 + bt−1) = yt − yt|t−1

Need to estimate α, β, `0,b0.Forecasting: Principles and Practice Trend methods 17

Page 40: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt’s linear trendComponent form

Forecast yt+h|t = `t + hbt

Level `t = αyt + (1− α)(`t−1 + bt−1)

Trend bt = β∗(`t − `t−1) + (1− β∗)bt−1,

State space form

Observation equation yt = `t−1 + bt−1 + etState equations `t = `t−1 + bt−1 + αet

bt = bt−1 + βet

β = αβ∗

et = yt − (`t−1 + bt−1) = yt − yt|t−1

Need to estimate α, β, `0,b0.Forecasting: Principles and Practice Trend methods 17

Page 41: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt’s linear trendComponent form

Forecast yt+h|t = `t + hbt

Level `t = αyt + (1− α)(`t−1 + bt−1)

Trend bt = β∗(`t − `t−1) + (1− β∗)bt−1,

State space form

Observation equation yt = `t−1 + bt−1 + etState equations `t = `t−1 + bt−1 + αet

bt = bt−1 + βet

β = αβ∗

et = yt − (`t−1 + bt−1) = yt − yt|t−1

Need to estimate α, β, `0,b0.Forecasting: Principles and Practice Trend methods 17

Page 42: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt’s linear trendComponent form

Forecast yt+h|t = `t + hbt

Level `t = αyt + (1− α)(`t−1 + bt−1)

Trend bt = β∗(`t − `t−1) + (1− β∗)bt−1,

State space form

Observation equation yt = `t−1 + bt−1 + etState equations `t = `t−1 + bt−1 + αet

bt = bt−1 + βet

β = αβ∗

et = yt − (`t−1 + bt−1) = yt − yt|t−1

Need to estimate α, β, `0,b0.Forecasting: Principles and Practice Trend methods 17

Page 43: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt’s method in R

fit2 <- holt(ausair, h=5)

plot(fit2)

summary(fit2)

Forecasting: Principles and Practice Trend methods 18

Page 44: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt’s method in R

fit1 <- holt(strikes)plot(fit1$model)plot(fit1, plot.conf=FALSE)lines(fitted(fit1), col="red")fit1$model

fit2 <- ses(strikes)plot(fit2$model)plot(fit2, plot.conf=FALSE)lines(fit1$mean, col="red")

accuracy(fit1)accuracy(fit2)

Forecasting: Principles and Practice Trend methods 19

Page 45: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Comparing Holt and SES

Holt’s method will almost always have betterin-sample RMSE because it is optimized overone additional parameter.

It may not be better on other measures.

You need to compare out-of-sample RMSE(using a test set) for the comparison to beuseful.

But we don’t have enough data.

A better method for comparison will be in thenext session!

Forecasting: Principles and Practice Trend methods 20

Page 46: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Comparing Holt and SES

Holt’s method will almost always have betterin-sample RMSE because it is optimized overone additional parameter.

It may not be better on other measures.

You need to compare out-of-sample RMSE(using a test set) for the comparison to beuseful.

But we don’t have enough data.

A better method for comparison will be in thenext session!

Forecasting: Principles and Practice Trend methods 20

Page 47: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Comparing Holt and SES

Holt’s method will almost always have betterin-sample RMSE because it is optimized overone additional parameter.

It may not be better on other measures.

You need to compare out-of-sample RMSE(using a test set) for the comparison to beuseful.

But we don’t have enough data.

A better method for comparison will be in thenext session!

Forecasting: Principles and Practice Trend methods 20

Page 48: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Comparing Holt and SES

Holt’s method will almost always have betterin-sample RMSE because it is optimized overone additional parameter.

It may not be better on other measures.

You need to compare out-of-sample RMSE(using a test set) for the comparison to beuseful.

But we don’t have enough data.

A better method for comparison will be in thenext session!

Forecasting: Principles and Practice Trend methods 20

Page 49: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Comparing Holt and SES

Holt’s method will almost always have betterin-sample RMSE because it is optimized overone additional parameter.

It may not be better on other measures.

You need to compare out-of-sample RMSE(using a test set) for the comparison to beuseful.

But we don’t have enough data.

A better method for comparison will be in thenext session!

Forecasting: Principles and Practice Trend methods 20

Page 50: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Exponential trend method

Multiplicative version of Holt’s method

State space form

Forecast equation yt+h|t = `tbht

Observation equation yt = (`t−1bt−1) + etState equations `t = `t−1bt−1 + αet

bt = bt−1 + βet/`t−1

`t denotes an estimate of the level of the series attime tbt denotes an estimate of the relative growth of theseries at time t.In R: holt(x, exponential=TRUE)

Forecasting: Principles and Practice Trend methods 21

Page 51: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Exponential trend method

Multiplicative version of Holt’s method

State space form

Forecast equation yt+h|t = `tbht

Observation equation yt = (`t−1bt−1) + etState equations `t = `t−1bt−1 + αet

bt = bt−1 + βet/`t−1

`t denotes an estimate of the level of the series attime tbt denotes an estimate of the relative growth of theseries at time t.In R: holt(x, exponential=TRUE)

Forecasting: Principles and Practice Trend methods 21

Page 52: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Exponential trend method

Multiplicative version of Holt’s method

State space form

Forecast equation yt+h|t = `tbht

Observation equation yt = (`t−1bt−1) + etState equations `t = `t−1bt−1 + αet

bt = bt−1 + βet/`t−1

`t denotes an estimate of the level of the series attime tbt denotes an estimate of the relative growth of theseries at time t.In R: holt(x, exponential=TRUE)

Forecasting: Principles and Practice Trend methods 21

Page 53: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Exponential trend method

Multiplicative version of Holt’s method

State space form

Forecast equation yt+h|t = `tbht

Observation equation yt = (`t−1bt−1) + etState equations `t = `t−1bt−1 + αet

bt = bt−1 + βet/`t−1

`t denotes an estimate of the level of the series attime tbt denotes an estimate of the relative growth of theseries at time t.In R: holt(x, exponential=TRUE)

Forecasting: Principles and Practice Trend methods 21

Page 54: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Additive damped trend

Gardner and McKenzie (1985) suggested that thetrends should be “damped” to be more conservativefor longer forecast horizons.Damping parameter 0 < φ < 1.

State space form

Forecast equation yt+h|t = `t + (φ+ φ2 + · · ·+ φh)bt

Observation equation yt = `t−1 + φbt−1 + etState equations `t = `t−1 + φbt−1 + αet

bt = φbt−1 + βet

If φ = 1, identical to Holt’s linear trend.As h→∞, yT+h|T → `T + φbT/(1− φ).Short-run forecasts trended, long-run forecasts constant.

Forecasting: Principles and Practice Trend methods 22

Page 55: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Additive damped trend

Gardner and McKenzie (1985) suggested that thetrends should be “damped” to be more conservativefor longer forecast horizons.Damping parameter 0 < φ < 1.

State space form

Forecast equation yt+h|t = `t + (φ+ φ2 + · · ·+ φh)bt

Observation equation yt = `t−1 + φbt−1 + etState equations `t = `t−1 + φbt−1 + αet

bt = φbt−1 + βet

If φ = 1, identical to Holt’s linear trend.As h→∞, yT+h|T → `T + φbT/(1− φ).Short-run forecasts trended, long-run forecasts constant.

Forecasting: Principles and Practice Trend methods 22

Page 56: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Additive damped trend

Gardner and McKenzie (1985) suggested that thetrends should be “damped” to be more conservativefor longer forecast horizons.Damping parameter 0 < φ < 1.

State space form

Forecast equation yt+h|t = `t + (φ+ φ2 + · · ·+ φh)bt

Observation equation yt = `t−1 + φbt−1 + etState equations `t = `t−1 + φbt−1 + αet

bt = φbt−1 + βet

If φ = 1, identical to Holt’s linear trend.As h→∞, yT+h|T → `T + φbT/(1− φ).Short-run forecasts trended, long-run forecasts constant.

Forecasting: Principles and Practice Trend methods 22

Page 57: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Additive damped trend

Gardner and McKenzie (1985) suggested that thetrends should be “damped” to be more conservativefor longer forecast horizons.Damping parameter 0 < φ < 1.

State space form

Forecast equation yt+h|t = `t + (φ+ φ2 + · · ·+ φh)bt

Observation equation yt = `t−1 + φbt−1 + etState equations `t = `t−1 + φbt−1 + αet

bt = φbt−1 + βet

If φ = 1, identical to Holt’s linear trend.As h→∞, yT+h|T → `T + φbT/(1− φ).Short-run forecasts trended, long-run forecasts constant.

Forecasting: Principles and Practice Trend methods 22

Page 58: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Additive damped trend

Gardner and McKenzie (1985) suggested that thetrends should be “damped” to be more conservativefor longer forecast horizons.Damping parameter 0 < φ < 1.

State space form

Forecast equation yt+h|t = `t + (φ+ φ2 + · · ·+ φh)bt

Observation equation yt = `t−1 + φbt−1 + etState equations `t = `t−1 + φbt−1 + αet

bt = φbt−1 + βet

If φ = 1, identical to Holt’s linear trend.As h→∞, yT+h|T → `T + φbT/(1− φ).Short-run forecasts trended, long-run forecasts constant.

Forecasting: Principles and Practice Trend methods 22

Page 59: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Additive damped trend

Gardner and McKenzie (1985) suggested that thetrends should be “damped” to be more conservativefor longer forecast horizons.Damping parameter 0 < φ < 1.

State space form

Forecast equation yt+h|t = `t + (φ+ φ2 + · · ·+ φh)bt

Observation equation yt = `t−1 + φbt−1 + etState equations `t = `t−1 + φbt−1 + αet

bt = φbt−1 + βet

If φ = 1, identical to Holt’s linear trend.As h→∞, yT+h|T → `T + φbT/(1− φ).Short-run forecasts trended, long-run forecasts constant.

Forecasting: Principles and Practice Trend methods 22

Page 60: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Additive damped trend

Gardner and McKenzie (1985) suggested that thetrends should be “damped” to be more conservativefor longer forecast horizons.Damping parameter 0 < φ < 1.

State space form

Forecast equation yt+h|t = `t + (φ+ φ2 + · · ·+ φh)bt

Observation equation yt = `t−1 + φbt−1 + etState equations `t = `t−1 + φbt−1 + αet

bt = φbt−1 + βet

If φ = 1, identical to Holt’s linear trend.As h→∞, yT+h|T → `T + φbT/(1− φ).Short-run forecasts trended, long-run forecasts constant.

Forecasting: Principles and Practice Trend methods 22

Page 61: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Damped trend method

Forecasting: Principles and Practice Trend methods 23

Forecasts from damped Holt's method

1950 1960 1970 1980 1990

2500

3500

4500

5500

Page 62: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Trend methods in R

fit4 <- holt(air, h=5, damped=TRUE)

plot(fit4)

summary(fit4)

Forecasting: Principles and Practice Trend methods 24

Page 63: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Example: Sheep in Asia

●●

●●

●●

● ●

● ●

● ●●

●●

● ● ●● ●

●●

●●

Forecasts from Holt's method with exponential trend

Live

stoc

k, s

heep

in A

sia

(mill

ions

)

1970 1980 1990 2000 2010

300

350

400

450

●●

● ●

DataSESHolt'sExponentialAdditive DampedMultiplicative Damped

Forecasting: Principles and Practice Trend methods 25

Page 64: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Multiplicative damped trend method

Taylor (2003) introduced multiplicative damping.

yt+h|t = `tb(φ+φ2+···+φh)t

`t = αyt + (1− α)(`t−1bφt−1)

bt = β∗(`t/`t−1) + (1− β∗)bφt−1

φ = 1 gives exponential trend method

Forecasts converge to `T + bφ/(1−φ)T as h→∞.

Forecasting: Principles and Practice Trend methods 26

Page 65: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Multiplicative damped trend method

Taylor (2003) introduced multiplicative damping.

yt+h|t = `tb(φ+φ2+···+φh)t

`t = αyt + (1− α)(`t−1bφt−1)

bt = β∗(`t/`t−1) + (1− β∗)bφt−1

φ = 1 gives exponential trend method

Forecasts converge to `T + bφ/(1−φ)T as h→∞.

Forecasting: Principles and Practice Trend methods 26

Page 66: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Multiplicative damped trend method

Taylor (2003) introduced multiplicative damping.

yt+h|t = `tb(φ+φ2+···+φh)t

`t = αyt + (1− α)(`t−1bφt−1)

bt = β∗(`t/`t−1) + (1− β∗)bφt−1

φ = 1 gives exponential trend method

Forecasts converge to `T + bφ/(1−φ)T as h→∞.

Forecasting: Principles and Practice Trend methods 26

Page 67: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Outline

1 The state space perspective

2 Simple exponential smoothing

3 Trend methods

4 Seasonal methods

5 Exponential smoothing methods so far

Forecasting: Principles and Practice Seasonal methods 27

Page 68: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt-Winters additive methodHolt and Winters extended Holt’s method to captureseasonality.

Three smoothing equations—one for the level, onefor trend, and one for seasonality.

Parameters: 0 ≤ α ≤ 1, 0 ≤ β∗ ≤ 1, 0 ≤ γ ≤ 1− αand m = period of seasonality.

State space form

yt+h|t = `t + hbt + st−m+h+m

yt = `t−1 + bt−1 + st−m + et`t = `t−1 + bt−1 + αetbt = bt−1 + βetst = st−m + γet.

Forecasting: Principles and Practice Seasonal methods 28

Page 69: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt-Winters additive methodHolt and Winters extended Holt’s method to captureseasonality.

Three smoothing equations—one for the level, onefor trend, and one for seasonality.

Parameters: 0 ≤ α ≤ 1, 0 ≤ β∗ ≤ 1, 0 ≤ γ ≤ 1− αand m = period of seasonality.

State space form

yt+h|t = `t + hbt + st−m+h+m

yt = `t−1 + bt−1 + st−m + et`t = `t−1 + bt−1 + αetbt = bt−1 + βetst = st−m + γet.

Forecasting: Principles and Practice Seasonal methods 28

Page 70: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt-Winters additive methodHolt and Winters extended Holt’s method to captureseasonality.

Three smoothing equations—one for the level, onefor trend, and one for seasonality.

Parameters: 0 ≤ α ≤ 1, 0 ≤ β∗ ≤ 1, 0 ≤ γ ≤ 1− αand m = period of seasonality.

State space form

yt+h|t = `t + hbt + st−m+h+m

yt = `t−1 + bt−1 + st−m + et`t = `t−1 + bt−1 + αetbt = bt−1 + βetst = st−m + γet.

Forecasting: Principles and Practice Seasonal methods 28

Page 71: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt-Winters additive methodHolt and Winters extended Holt’s method to captureseasonality.

Three smoothing equations—one for the level, onefor trend, and one for seasonality.

Parameters: 0 ≤ α ≤ 1, 0 ≤ β∗ ≤ 1, 0 ≤ γ ≤ 1− αand m = period of seasonality.

State space form

yt+h|t = `t + hbt + st−m+h+m

yt = `t−1 + bt−1 + st−m + et`t = `t−1 + bt−1 + αetbt = bt−1 + βetst = st−m + γet.

Forecasting: Principles and Practice Seasonal methods 28

Page 72: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt-Winters additive methodHolt and Winters extended Holt’s method to captureseasonality.

Three smoothing equations—one for the level, onefor trend, and one for seasonality.

Parameters: 0 ≤ α ≤ 1, 0 ≤ β∗ ≤ 1, 0 ≤ γ ≤ 1− αand m = period of seasonality.

State space form

yt+h|t = `t + hbt + st−m+h+m

yt = `t−1 + bt−1 + st−m + et`t = `t−1 + bt−1 + αetbt = bt−1 + βetst = st−m + γet.

Forecasting: Principles and Practice Seasonal methods 28

Page 73: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt-Winters additive methodHolt and Winters extended Holt’s method to captureseasonality.

Three smoothing equations—one for the level, onefor trend, and one for seasonality.

Parameters: 0 ≤ α ≤ 1, 0 ≤ β∗ ≤ 1, 0 ≤ γ ≤ 1− αand m = period of seasonality.

State space form

yt+h|t = `t + hbt + st−m+h+m

h+m = b(h− 1) mod mc+ 1

yt = `t−1 + bt−1 + st−m + et`t = `t−1 + bt−1 + αetbt = bt−1 + βetst = st−m + γet.

Forecasting: Principles and Practice Seasonal methods 28

Page 74: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt-Winters multiplicative method

Holt-Winters multiplicative method

yt+h|t = (`t + hbt)st−m+h+m

yt = (`t−1 + bt−1)st−m + et`t = `t−1 + bt−1 + αet/st−mbt = bt−1 + βet/st−mst = st−m + γet/(`t−1 + bt−1).

Most textbooks use st = γ(yt/`t) + (1− γ)st−mWe optimize for α, β∗, γ, `0, b0, s0, s−1, . . . , s1−m.

Forecasting: Principles and Practice Seasonal methods 29

Page 75: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt-Winters multiplicative method

Holt-Winters multiplicative method

yt+h|t = (`t + hbt)st−m+h+m

yt = (`t−1 + bt−1)st−m + et`t = `t−1 + bt−1 + αet/st−mbt = bt−1 + βet/st−mst = st−m + γet/(`t−1 + bt−1).

Most textbooks use st = γ(yt/`t) + (1− γ)st−mWe optimize for α, β∗, γ, `0, b0, s0, s−1, . . . , s1−m.

Forecasting: Principles and Practice Seasonal methods 29

Page 76: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Seasonal methods in R

aus1 <- hw(austourists)aus2 <- hw(austourists, seasonal="mult")

plot(aus1)plot(aus2)

summary(aus1)summary(aus2)

Forecasting: Principles and Practice Seasonal methods 30

Page 77: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Holt-Winters damped method

Often the single most accurate forecasting methodfor seasonal data:

State space form

yt = (`t−1 + φbt−1)st−m + et`t = `t−1 + φbt−1 + αet/st−mbt = φbt−1 + βet/st−mst = st−m + γet/(`t−1 + φbt−1).

Forecasting: Principles and Practice Seasonal methods 31

Page 78: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Seasonal methods in R

aus3 <- hw(austourists, seasonal="mult",damped=TRUE)

summary(aus3)

plot(aus3)

Forecasting: Principles and Practice Seasonal methods 32

Page 79: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Outline

1 The state space perspective

2 Simple exponential smoothing

3 Trend methods

4 Seasonal methods

5 Exponential smoothing methods so far

Forecasting: Principles and Practice Exponential smoothing methods so far 33

Page 80: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Exponential smoothing methods

Simple exponential smoothing: no trend.ses(x)

Holt’s method: linear trend.holt(x)

Exponential trend method.holt(x, exponential=TRUE)

Damped trend method.holt(x, damped=TRUE)

Holt-Winters methodshw(x, damped=TRUE, exponential=TRUE,

seasonal="additive")

Forecasting: Principles and Practice Exponential smoothing methods so far 34

Page 81: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Exponential smoothing methods

Simple exponential smoothing: no trend.ses(x)

Holt’s method: linear trend.holt(x)

Exponential trend method.holt(x, exponential=TRUE)

Damped trend method.holt(x, damped=TRUE)

Holt-Winters methodshw(x, damped=TRUE, exponential=TRUE,

seasonal="additive")

Forecasting: Principles and Practice Exponential smoothing methods so far 34

Page 82: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Exponential smoothing methods

Simple exponential smoothing: no trend.ses(x)

Holt’s method: linear trend.holt(x)

Exponential trend method.holt(x, exponential=TRUE)

Damped trend method.holt(x, damped=TRUE)

Holt-Winters methodshw(x, damped=TRUE, exponential=TRUE,

seasonal="additive")

Forecasting: Principles and Practice Exponential smoothing methods so far 34

Page 83: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Exponential smoothing methods

Simple exponential smoothing: no trend.ses(x)

Holt’s method: linear trend.holt(x)

Exponential trend method.holt(x, exponential=TRUE)

Damped trend method.holt(x, damped=TRUE)

Holt-Winters methodshw(x, damped=TRUE, exponential=TRUE,

seasonal="additive")

Forecasting: Principles and Practice Exponential smoothing methods so far 34

Page 84: Forecasting - Rob J Hyndman · Outline 1The state space perspective 2Simple exponential smoothing 3Trend methods 4Seasonal methods 5Exponential smoothing methods so far Forecasting:

Exponential smoothing methods

Simple exponential smoothing: no trend.ses(x)

Holt’s method: linear trend.holt(x)

Exponential trend method.holt(x, exponential=TRUE)

Damped trend method.holt(x, damped=TRUE)

Holt-Winters methodshw(x, damped=TRUE, exponential=TRUE,

seasonal="additive")

Forecasting: Principles and Practice Exponential smoothing methods so far 34