forecasting - rob j hyndman · exponential smoothing methods seasonal component trend n a m...

135
4. Exponential smoothing II OTexts.com/fpp/7/ Forecasting: Principles and Practice 1 Rob J Hyndman Forecasting: Principles and Practice

Upload: voquynh

Post on 21-Aug-2019

231 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

4. Exponential smoothing II

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

Rob J Hyndman

Forecasting:

Principles and Practice

Page 2: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

A confusing array of methods?

All these methods can be confusing!

How to choose between them?

The ETS framework provides an

automatic way of selecting the best

method.

It was developed to solve the problem

of automatically forecasting

pharmaceutical sales across thousands

of products.Forecasting: Principles and Practice 2

Page 3: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

A confusing array of methods?

All these methods can be confusing!

How to choose between them?

The ETS framework provides an

automatic way of selecting the best

method.

It was developed to solve the problem

of automatically forecasting

pharmaceutical sales across thousands

of products.Forecasting: Principles and Practice 2

Page 4: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

A confusing array of methods?

All these methods can be confusing!

How to choose between them?

The ETS framework provides an

automatic way of selecting the best

method.

It was developed to solve the problem

of automatically forecasting

pharmaceutical sales across thousands

of products.Forecasting: Principles and Practice 2

Page 5: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

A confusing array of methods?

All these methods can be confusing!

How to choose between them?

The ETS framework provides an

automatic way of selecting the best

method.

It was developed to solve the problem

of automatically forecasting

pharmaceutical sales across thousands

of products.Forecasting: Principles and Practice 2

Page 6: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Outline

1 Taxonomy of exponential smoothingmethods

2 Innovations state space models

3 ETS in R

4 Forecasting with ETS models

Forecasting: Principles and Practice Taxonomy of exponential smoothing methods 3

Page 7: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

Forecasting: Principles and Practice Taxonomy of exponential smoothing methods 4

Page 8: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

N,N: Simple exponential smoothing

Forecasting: Principles and Practice Taxonomy of exponential smoothing methods 4

Page 9: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

N,N: Simple exponential smoothingA,N: Holt’s linear method

Forecasting: Principles and Practice Taxonomy of exponential smoothing methods 4

Page 10: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

N,N: Simple exponential smoothingA,N: Holt’s linear methodAd,N: Additive damped trend method

Forecasting: Principles and Practice Taxonomy of exponential smoothing methods 4

Page 11: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

N,N: Simple exponential smoothingA,N: Holt’s linear methodAd,N: Additive damped trend methodM,N: Exponential trend method

Forecasting: Principles and Practice Taxonomy of exponential smoothing methods 4

Page 12: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

N,N: Simple exponential smoothingA,N: Holt’s linear methodAd,N: Additive damped trend methodM,N: Exponential trend methodMd,N: Multiplicative damped trend method

Forecasting: Principles and Practice Taxonomy of exponential smoothing methods 4

Page 13: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

N,N: Simple exponential smoothingA,N: Holt’s linear methodAd,N: Additive damped trend methodM,N: Exponential trend methodMd,N: Multiplicative damped trend methodA,A: Additive Holt-Winters’ method

Forecasting: Principles and Practice Taxonomy of exponential smoothing methods 4

Page 14: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

N,N: Simple exponential smoothingA,N: Holt’s linear methodAd,N: Additive damped trend methodM,N: Exponential trend methodMd,N: Multiplicative damped trend methodA,A: Additive Holt-Winters’ methodA,M: Multiplicative Holt-Winters’ method

Forecasting: Principles and Practice Taxonomy of exponential smoothing methods 4

Page 15: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

There are 15 separate exponential smoothing methods.

Forecasting: Principles and Practice Taxonomy of exponential smoothing methods 4

Page 16: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

State space form

Forecasting: Principles and Practice Taxonomy of exponential smoothing methods 5

7/ exponential smoothing 149

ADDITIVE ERROR MODELS

Trend SeasonalN A M

N yt = `t−1 + εt yt = `t−1 + st−m + εt yt = `t−1st−m + εt`t = `t−1 +αεt `t = `t−1 +αεt `t = `t−1 +αεt/st−m

st = st−m +γεt st = st−m +γεt/`t−1

yt = `t−1 + bt−1 + εt yt = `t−1 + bt−1 + st−m + εt yt = (`t−1 + bt−1)st−m + εtA `t = `t−1 + bt−1 +αεt `t = `t−1 + bt−1 +αεt `t = `t−1 + bt−1 +αεt/st−m

bt = bt−1 + βεt bt = bt−1 + βεt bt = bt−1 + βεt/st−mst = st−m +γεt st = st−m +γεt/(`t−1 + bt−1)

yt = `t−1 +φbt−1 + εt yt = `t−1 +φbt−1 + st−m + εt yt = (`t−1 +φbt−1)st−m + εtAd `t = `t−1 +φbt−1 +αεt `t = `t−1 +φbt−1 +αεt `t = `t−1 +φbt−1 +αεt/st−m

bt = φbt−1 + βεt bt = φbt−1 + βεt bt = φbt−1 + βεt/st−mst = st−m +γεt st = st−m +γεt/(`t−1 +φbt−1)

yt = `t−1bt−1 + εt yt = `t−1bt−1 + st−m + εt yt = `t−1bt−1st−m + εtM `t = `t−1bt−1 +αεt `t = `t−1bt−1 +αεt `t = `t−1bt−1 +αεt/st−m

bt = bt−1 + βεt/`t−1 bt = bt−1 + βεt/`t−1 bt = bt−1 + βεt/(st−m`t−1)st = st−m +γεt st = st−m +γεt/(`t−1bt−1)

yt = `t−1bφt−1 + εt yt = `t−1b

φt−1 + st−m + εt yt = `t−1b

φt−1st−m + εt

Md `t = `t−1bφt−1 +αεt `t = `t−1b

φt−1 +αεt `t = `t−1b

φt−1 +αεt/st−m

bt = bφt−1 + βεt/`t−1 bt = b

φt−1 + βεt/`t−1 bt = b

φt−1 + βεt/(st−m`t−1)

st = st−m +γεt st = st−m +γεt/(`t−1bφt−1)

MULTIPLICATIVE ERROR MODELS

Trend SeasonalN A M

N yt = `t−1(1 + εt) yt = (`t−1 + st−m)(1 + εt) yt = `t−1st−m(1 + εt)`t = `t−1(1 +αεt) `t = `t−1 +α(`t−1 + st−m)εt `t = `t−1(1 +αεt)

st = st−m +γ(`t−1 + st−m)εt st = st−m(1 +γεt)

yt = (`t−1 + bt−1)(1 + εt) yt = (`t−1 + bt−1 + st−m)(1 + εt) yt = (`t−1 + bt−1)st−m(1 + εt)A `t = (`t−1 + bt−1)(1 +αεt) `t = `t−1 + bt−1 +α(`t−1 + bt−1 + st−m)εt `t = (`t−1 + bt−1)(1 +αεt)

bt = bt−1 + β(`t−1 + bt−1)εt bt = bt−1 + β(`t−1 + bt−1 + st−m)εt bt = bt−1 + β(`t−1 + bt−1)εtst = st−m +γ(`t−1 + bt−1 + st−m)εt st = st−m(1 +γεt)

yt = (`t−1 +φbt−1)(1 + εt) yt = (`t−1 +φbt−1 + st−m)(1 + εt) yt = (`t−1 +φbt−1)st−m(1 + εt)Ad `t = (`t−1 +φbt−1)(1 +αεt) `t = `t−1 +φbt−1 +α(`t−1 +φbt−1 + st−m)εt `t = (`t−1 +φbt−1)(1 +αεt)

bt = φbt−1 + β(`t−1 +φbt−1)εt bt = φbt−1 + β(`t−1 +φbt−1 + st−m)εt bt = φbt−1 + β(`t−1 +φbt−1)εtst = st−m +γ(`t−1 +φbt−1 + st−m)εt st = st−m(1 +γεt)

yt = `t−1bt−1(1 + εt) yt = (`t−1bt−1 + st−m)(1 + εt) yt = `t−1bt−1st−m(1 + εt)M `t = `t−1bt−1(1 +αεt) `t = `t−1bt−1 +α(`t−1bt−1 + st−m)εt `t = `t−1bt−1(1 +αεt)

bt = bt−1(1 + βεt) bt = bt−1 + β(`t−1bt−1 + st−m)εt/`t−1 bt = bt−1(1 + βεt)st = st−m +γ(`t−1bt−1 + st−m)εt st = st−m(1 +γεt)

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

φt−1 + st−m)(1 + εt) yt = `t−1b

φt−1st−m(1 + εt)

Md `t = `t−1bφt−1(1 +αεt) `t = `t−1b

φt−1 +α(`t−1b

φt−1 + st−m)εt `t = `t−1b

φt−1(1 +αεt)

bt = bφt−1(1 + βεt) bt = b

φt−1 + β(`t−1b

φt−1 + st−m)εt/`t−1 bt = b

φt−1(1 + βεt)

st = st−m +γ(`t−1bφt−1 + st−m)εt st = st−m(1 +γεt)

Table 7.10: State space equationsfor each of the models in the ETSframework.

Page 17: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Outline

1 Taxonomy of exponential smoothingmethods

2 Innovations state space models

3 ETS in R

4 Forecasting with ETS models

Forecasting: Principles and Practice Innovations state space models 6

Page 18: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Methods v Models

Exponential smoothing methods

Algorithms that return point forecasts.

Innovations state space models

Generate same point forecasts but can alsogenerate forecast intervals.

A stochastic (or random) data generatingprocess that can generate an entire forecastdistribution.

Allow for “proper” model selection.

Forecasting: Principles and Practice Innovations state space models 7

Page 19: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Methods v Models

Exponential smoothing methods

Algorithms that return point forecasts.

Innovations state space models

Generate same point forecasts but can alsogenerate forecast intervals.

A stochastic (or random) data generatingprocess that can generate an entire forecastdistribution.

Allow for “proper” model selection.

Forecasting: Principles and Practice Innovations state space models 7

Page 20: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Methods v Models

Exponential smoothing methods

Algorithms that return point forecasts.

Innovations state space models

Generate same point forecasts but can alsogenerate forecast intervals.

A stochastic (or random) data generatingprocess that can generate an entire forecastdistribution.

Allow for “proper” model selection.

Forecasting: Principles and Practice Innovations state space models 7

Page 21: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Methods v Models

Exponential smoothing methods

Algorithms that return point forecasts.

Innovations state space models

Generate same point forecasts but can alsogenerate forecast intervals.

A stochastic (or random) data generatingprocess that can generate an entire forecastdistribution.

Allow for “proper” model selection.

Forecasting: Principles and Practice Innovations state space models 7

Page 22: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Methods v Models

Exponential smoothing methods

Algorithms that return point forecasts.

Innovations state space models

Generate same point forecasts but can alsogenerate forecast intervals.

A stochastic (or random) data generatingprocess that can generate an entire forecastdistribution.

Allow for “proper” model selection.

Forecasting: Principles and Practice Innovations state space models 7

Page 23: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS models

Each model has an observation equation andtransition equations, one for each state (level,trend, seasonal), i.e., state space models.

Two models for each method: one with additiveand one with multiplicative errors, i.e., in total30 models.ETS(Error,Trend,Seasonal):

Error= {A, M}Trend = {N, A, Ad, M, Md}Seasonal = {N, A, M}.

Forecasting: Principles and Practice Innovations state space models 8

Page 24: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS models

Each model has an observation equation andtransition equations, one for each state (level,trend, seasonal), i.e., state space models.

Two models for each method: one with additiveand one with multiplicative errors, i.e., in total30 models.ETS(Error,Trend,Seasonal):

Error= {A, M}Trend = {N, A, Ad, M, Md}Seasonal = {N, A, M}.

Forecasting: Principles and Practice Innovations state space models 8

Page 25: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS models

Each model has an observation equation andtransition equations, one for each state (level,trend, seasonal), i.e., state space models.

Two models for each method: one with additiveand one with multiplicative errors, i.e., in total30 models.ETS(Error,Trend,Seasonal):

Error= {A, M}Trend = {N, A, Ad, M, Md}Seasonal = {N, A, M}.

Forecasting: Principles and Practice Innovations state space models 8

Page 26: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS models

Each model has an observation equation andtransition equations, one for each state (level,trend, seasonal), i.e., state space models.

Two models for each method: one with additiveand one with multiplicative errors, i.e., in total30 models.ETS(Error,Trend,Seasonal):

Error= {A, M}Trend = {N, A, Ad, M, Md}Seasonal = {N, A, M}.

Forecasting: Principles and Practice Innovations state space models 8

Page 27: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS models

Each model has an observation equation andtransition equations, one for each state (level,trend, seasonal), i.e., state space models.

Two models for each method: one with additiveand one with multiplicative errors, i.e., in total30 models.ETS(Error,Trend,Seasonal):

Error= {A, M}Trend = {N, A, Ad, M, Md}Seasonal = {N, A, M}.

Forecasting: Principles and Practice Innovations state space models 8

Page 28: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS models

Each model has an observation equation andtransition equations, one for each state (level,trend, seasonal), i.e., state space models.

Two models for each method: one with additiveand one with multiplicative errors, i.e., in total30 models.ETS(Error,Trend,Seasonal):

Error= {A, M}Trend = {N, A, Ad, M, Md}Seasonal = {N, A, M}.

Forecasting: Principles and Practice Innovations state space models 8

Page 29: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

General notation E T S : ExponenTial Smoothing

Examples:A,N,N: Simple exponential smoothing with additive errorsA,A,N: Holt’s linear method with additive errorsM,A,M: Multiplicative Holt-Winters’ method with multiplicative errors

Forecasting: Principles and Practice Innovations state space models 9

Page 30: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

General notation E T S : ExponenTial Smoothing

Examples:A,N,N: Simple exponential smoothing with additive errorsA,A,N: Holt’s linear method with additive errorsM,A,M: Multiplicative Holt-Winters’ method with multiplicative errors

Forecasting: Principles and Practice Innovations state space models 9

Page 31: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

General notation E T S : ExponenTial Smoothing↑

TrendExamples:

A,N,N: Simple exponential smoothing with additive errorsA,A,N: Holt’s linear method with additive errorsM,A,M: Multiplicative Holt-Winters’ method with multiplicative errors

Forecasting: Principles and Practice Innovations state space models 9

Page 32: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

General notation E T S : ExponenTial Smoothing↑ ↖

Trend SeasonalExamples:

A,N,N: Simple exponential smoothing with additive errorsA,A,N: Holt’s linear method with additive errorsM,A,M: Multiplicative Holt-Winters’ method with multiplicative errors

Forecasting: Principles and Practice Innovations state space models 9

Page 33: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

General notation E T S : ExponenTial Smoothing↗ ↑ ↖

Error Trend SeasonalExamples:

A,N,N: Simple exponential smoothing with additive errorsA,A,N: Holt’s linear method with additive errorsM,A,M: Multiplicative Holt-Winters’ method with multiplicative errors

Forecasting: Principles and Practice Innovations state space models 9

Page 34: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

General notation E T S : ExponenTial Smoothing↗ ↑ ↖

Error Trend SeasonalExamples:

A,N,N: Simple exponential smoothing with additive errorsA,A,N: Holt’s linear method with additive errorsM,A,M: Multiplicative Holt-Winters’ method with multiplicative errors

Forecasting: Principles and Practice Innovations state space models 9

Page 35: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing methods

Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) N,N N,A N,M

A (Additive) A,N A,A A,M

Ad (Additive damped) Ad,N Ad,A Ad,M

M (Multiplicative) M,N M,A M,M

Md (Multiplicative damped) Md,N Md,A Md,M

General notation E T S : ExponenTial Smoothing↗ ↑ ↖

Error Trend SeasonalExamples:

A,N,N: Simple exponential smoothing with additive errorsA,A,N: Holt’s linear method with additive errorsM,A,M: Multiplicative Holt-Winters’ method with multiplicative errors

Forecasting: Principles and Practice Innovations state space models 9

Innovations state space models

å All ETS models can be written in innovationsstate space form.

å Additive and multiplicative versions give thesame point forecasts but different predictionintervals.

Page 36: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS(A,N,N)

Observation equation yt = `t−1 + εt,

State equation `t = `t−1 + αεt

et = yt − yt|t−1 = εt

Assume εt ∼ NID(0, σ2)

“innovations” or “single source of error”because same error process, εt.

Forecasting: Principles and Practice Innovations state space models 10

Page 37: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS(A,N,N)

Observation equation yt = `t−1 + εt,

State equation `t = `t−1 + αεt

et = yt − yt|t−1 = εt

Assume εt ∼ NID(0, σ2)

“innovations” or “single source of error”because same error process, εt.

Forecasting: Principles and Practice Innovations state space models 10

Page 38: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS(A,N,N)

Observation equation yt = `t−1 + εt,

State equation `t = `t−1 + αεt

et = yt − yt|t−1 = εt

Assume εt ∼ NID(0, σ2)

“innovations” or “single source of error”because same error process, εt.

Forecasting: Principles and Practice Innovations state space models 10

Page 39: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS(M,N,N)

SES with multiplicative errors.

Specify relative errors εt =yt−yt|t−1

yt|t−1∼ NID(0, σ2)

Substituting yt|t−1 = `t−1 gives:yt = `t−1 + `t−1εtet = yt − yt|t−1 = `t−1εt

Observation equation yt = `t−1(1 + εt)

State equation `t = `t−1(1 + αεt)

Models with additive and multiplicative errorswith the same parameters generate the samepoint forecasts but different predictionintervals.

Forecasting: Principles and Practice Innovations state space models 11

Page 40: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS(M,N,N)

SES with multiplicative errors.

Specify relative errors εt =yt−yt|t−1

yt|t−1∼ NID(0, σ2)

Substituting yt|t−1 = `t−1 gives:yt = `t−1 + `t−1εtet = yt − yt|t−1 = `t−1εt

Observation equation yt = `t−1(1 + εt)

State equation `t = `t−1(1 + αεt)

Models with additive and multiplicative errorswith the same parameters generate the samepoint forecasts but different predictionintervals.

Forecasting: Principles and Practice Innovations state space models 11

Page 41: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS(M,N,N)

SES with multiplicative errors.

Specify relative errors εt =yt−yt|t−1

yt|t−1∼ NID(0, σ2)

Substituting yt|t−1 = `t−1 gives:yt = `t−1 + `t−1εtet = yt − yt|t−1 = `t−1εt

Observation equation yt = `t−1(1 + εt)

State equation `t = `t−1(1 + αεt)

Models with additive and multiplicative errorswith the same parameters generate the samepoint forecasts but different predictionintervals.

Forecasting: Principles and Practice Innovations state space models 11

Page 42: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS(M,N,N)

SES with multiplicative errors.

Specify relative errors εt =yt−yt|t−1

yt|t−1∼ NID(0, σ2)

Substituting yt|t−1 = `t−1 gives:yt = `t−1 + `t−1εtet = yt − yt|t−1 = `t−1εt

Observation equation yt = `t−1(1 + εt)

State equation `t = `t−1(1 + αεt)

Models with additive and multiplicative errorswith the same parameters generate the samepoint forecasts but different predictionintervals.

Forecasting: Principles and Practice Innovations state space models 11

Page 43: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS(M,N,N)

SES with multiplicative errors.

Specify relative errors εt =yt−yt|t−1

yt|t−1∼ NID(0, σ2)

Substituting yt|t−1 = `t−1 gives:yt = `t−1 + `t−1εtet = yt − yt|t−1 = `t−1εt

Observation equation yt = `t−1(1 + εt)

State equation `t = `t−1(1 + αεt)

Models with additive and multiplicative errorswith the same parameters generate the samepoint forecasts but different predictionintervals.

Forecasting: Principles and Practice Innovations state space models 11

Page 44: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS(M,N,N)

SES with multiplicative errors.

Specify relative errors εt =yt−yt|t−1

yt|t−1∼ NID(0, σ2)

Substituting yt|t−1 = `t−1 gives:yt = `t−1 + `t−1εtet = yt − yt|t−1 = `t−1εt

Observation equation yt = `t−1(1 + εt)

State equation `t = `t−1(1 + αεt)

Models with additive and multiplicative errorswith the same parameters generate the samepoint forecasts but different predictionintervals.

Forecasting: Principles and Practice Innovations state space models 11

Page 45: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS(M,N,N)

SES with multiplicative errors.

Specify relative errors εt =yt−yt|t−1

yt|t−1∼ NID(0, σ2)

Substituting yt|t−1 = `t−1 gives:yt = `t−1 + `t−1εtet = yt − yt|t−1 = `t−1εt

Observation equation yt = `t−1(1 + εt)

State equation `t = `t−1(1 + αεt)

Models with additive and multiplicative errorswith the same parameters generate the samepoint forecasts but different predictionintervals.

Forecasting: Principles and Practice Innovations state space models 11

Page 46: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Holt’s linear method

ETS(A,A,N)

yt = `t−1 + bt−1 + εt

`t = `t−1 + bt−1 + αεt

bt = bt−1 + βεt

ETS(M,A,N)

yt = (`t−1 + bt−1)(1 + εt)

`t = (`t−1 + bt−1)(1 + αεt)

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

Forecasting: Principles and Practice Innovations state space models 12

Page 47: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Holt’s linear method

ETS(A,A,N)

yt = `t−1 + bt−1 + εt

`t = `t−1 + bt−1 + αεt

bt = bt−1 + βεt

ETS(M,A,N)

yt = (`t−1 + bt−1)(1 + εt)

`t = (`t−1 + bt−1)(1 + αεt)

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

Forecasting: Principles and Practice Innovations state space models 12

Page 48: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

ETS(A,A,A)

Holt-Winters additive method with additive errors.

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

Observation equation yt = `t−1 + bt−1 + st−m + εt

State equations `t = `t−1 + bt−1 + αεt

bt = bt−1 + βεt

st = st−m + γεt

Forecast errors: εt = yt − yt|t−1

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

Forecasting: Principles and Practice Innovations state space models 13

Page 49: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Additive error models

Forecasting: Principles and Practice Innovations state space models 14

7/ exponential smoothing 149

ADDITIVE ERROR MODELS

Trend SeasonalN A M

N yt = `t−1 + εt yt = `t−1 + st−m + εt yt = `t−1st−m + εt`t = `t−1 +αεt `t = `t−1 +αεt `t = `t−1 +αεt/st−m

st = st−m +γεt st = st−m +γεt/`t−1

yt = `t−1 + bt−1 + εt yt = `t−1 + bt−1 + st−m + εt yt = (`t−1 + bt−1)st−m + εtA `t = `t−1 + bt−1 +αεt `t = `t−1 + bt−1 +αεt `t = `t−1 + bt−1 +αεt/st−m

bt = bt−1 + βεt bt = bt−1 + βεt bt = bt−1 + βεt/st−mst = st−m +γεt st = st−m +γεt/(`t−1 + bt−1)

yt = `t−1 +φbt−1 + εt yt = `t−1 +φbt−1 + st−m + εt yt = (`t−1 +φbt−1)st−m + εtAd `t = `t−1 +φbt−1 +αεt `t = `t−1 +φbt−1 +αεt `t = `t−1 +φbt−1 +αεt/st−m

bt = φbt−1 + βεt bt = φbt−1 + βεt bt = φbt−1 + βεt/st−mst = st−m +γεt st = st−m +γεt/(`t−1 +φbt−1)

yt = `t−1bt−1 + εt yt = `t−1bt−1 + st−m + εt yt = `t−1bt−1st−m + εtM `t = `t−1bt−1 +αεt `t = `t−1bt−1 +αεt `t = `t−1bt−1 +αεt/st−m

bt = bt−1 + βεt/`t−1 bt = bt−1 + βεt/`t−1 bt = bt−1 + βεt/(st−m`t−1)st = st−m +γεt st = st−m +γεt/(`t−1bt−1)

yt = `t−1bφt−1 + εt yt = `t−1b

φt−1 + st−m + εt yt = `t−1b

φt−1st−m + εt

Md `t = `t−1bφt−1 +αεt `t = `t−1b

φt−1 +αεt `t = `t−1b

φt−1 +αεt/st−m

bt = bφt−1 + βεt/`t−1 bt = b

φt−1 + βεt/`t−1 bt = b

φt−1 + βεt/(st−m`t−1)

st = st−m +γεt st = st−m +γεt/(`t−1bφt−1)

MULTIPLICATIVE ERROR MODELS

Trend SeasonalN A M

N yt = `t−1(1 + εt) yt = (`t−1 + st−m)(1 + εt) yt = `t−1st−m(1 + εt)`t = `t−1(1 +αεt) `t = `t−1 +α(`t−1 + st−m)εt `t = `t−1(1 +αεt)

st = st−m +γ(`t−1 + st−m)εt st = st−m(1 +γεt)

yt = (`t−1 + bt−1)(1 + εt) yt = (`t−1 + bt−1 + st−m)(1 + εt) yt = (`t−1 + bt−1)st−m(1 + εt)A `t = (`t−1 + bt−1)(1 +αεt) `t = `t−1 + bt−1 +α(`t−1 + bt−1 + st−m)εt `t = (`t−1 + bt−1)(1 +αεt)

bt = bt−1 + β(`t−1 + bt−1)εt bt = bt−1 + β(`t−1 + bt−1 + st−m)εt bt = bt−1 + β(`t−1 + bt−1)εtst = st−m +γ(`t−1 + bt−1 + st−m)εt st = st−m(1 +γεt)

yt = (`t−1 +φbt−1)(1 + εt) yt = (`t−1 +φbt−1 + st−m)(1 + εt) yt = (`t−1 +φbt−1)st−m(1 + εt)Ad `t = (`t−1 +φbt−1)(1 +αεt) `t = `t−1 +φbt−1 +α(`t−1 +φbt−1 + st−m)εt `t = (`t−1 +φbt−1)(1 +αεt)

bt = φbt−1 + β(`t−1 +φbt−1)εt bt = φbt−1 + β(`t−1 +φbt−1 + st−m)εt bt = φbt−1 + β(`t−1 +φbt−1)εtst = st−m +γ(`t−1 +φbt−1 + st−m)εt st = st−m(1 +γεt)

yt = `t−1bt−1(1 + εt) yt = (`t−1bt−1 + st−m)(1 + εt) yt = `t−1bt−1st−m(1 + εt)M `t = `t−1bt−1(1 +αεt) `t = `t−1bt−1 +α(`t−1bt−1 + st−m)εt `t = `t−1bt−1(1 +αεt)

bt = bt−1(1 + βεt) bt = bt−1 + β(`t−1bt−1 + st−m)εt/`t−1 bt = bt−1(1 + βεt)st = st−m +γ(`t−1bt−1 + st−m)εt st = st−m(1 +γεt)

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

φt−1 + st−m)(1 + εt) yt = `t−1b

φt−1st−m(1 + εt)

Md `t = `t−1bφt−1(1 +αεt) `t = `t−1b

φt−1 +α(`t−1b

φt−1 + st−m)εt `t = `t−1b

φt−1(1 +αεt)

bt = bφt−1(1 + βεt) bt = b

φt−1 + β(`t−1b

φt−1 + st−m)εt/`t−1 bt = b

φt−1(1 + βεt)

st = st−m +γ(`t−1bφt−1 + st−m)εt st = st−m(1 +γεt)

Table 7.10: State space equationsfor each of the models in the ETSframework.

Page 50: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Multiplicative error models

Forecasting: Principles and Practice Innovations state space models 15

7/ exponential smoothing 149

ADDITIVE ERROR MODELS

Trend SeasonalN A M

N yt = `t−1 + εt yt = `t−1 + st−m + εt yt = `t−1st−m + εt`t = `t−1 +αεt `t = `t−1 +αεt `t = `t−1 +αεt/st−m

st = st−m +γεt st = st−m +γεt/`t−1

yt = `t−1 + bt−1 + εt yt = `t−1 + bt−1 + st−m + εt yt = (`t−1 + bt−1)st−m + εtA `t = `t−1 + bt−1 +αεt `t = `t−1 + bt−1 +αεt `t = `t−1 + bt−1 +αεt/st−m

bt = bt−1 + βεt bt = bt−1 + βεt bt = bt−1 + βεt/st−mst = st−m +γεt st = st−m +γεt/(`t−1 + bt−1)

yt = `t−1 +φbt−1 + εt yt = `t−1 +φbt−1 + st−m + εt yt = (`t−1 +φbt−1)st−m + εtAd `t = `t−1 +φbt−1 +αεt `t = `t−1 +φbt−1 +αεt `t = `t−1 +φbt−1 +αεt/st−m

bt = φbt−1 + βεt bt = φbt−1 + βεt bt = φbt−1 + βεt/st−mst = st−m +γεt st = st−m +γεt/(`t−1 +φbt−1)

yt = `t−1bt−1 + εt yt = `t−1bt−1 + st−m + εt yt = `t−1bt−1st−m + εtM `t = `t−1bt−1 +αεt `t = `t−1bt−1 +αεt `t = `t−1bt−1 +αεt/st−m

bt = bt−1 + βεt/`t−1 bt = bt−1 + βεt/`t−1 bt = bt−1 + βεt/(st−m`t−1)st = st−m +γεt st = st−m +γεt/(`t−1bt−1)

yt = `t−1bφt−1 + εt yt = `t−1b

φt−1 + st−m + εt yt = `t−1b

φt−1st−m + εt

Md `t = `t−1bφt−1 +αεt `t = `t−1b

φt−1 +αεt `t = `t−1b

φt−1 +αεt/st−m

bt = bφt−1 + βεt/`t−1 bt = b

φt−1 + βεt/`t−1 bt = b

φt−1 + βεt/(st−m`t−1)

st = st−m +γεt st = st−m +γεt/(`t−1bφt−1)

MULTIPLICATIVE ERROR MODELS

Trend SeasonalN A M

N yt = `t−1(1 + εt) yt = (`t−1 + st−m)(1 + εt) yt = `t−1st−m(1 + εt)`t = `t−1(1 +αεt) `t = `t−1 +α(`t−1 + st−m)εt `t = `t−1(1 +αεt)

st = st−m +γ(`t−1 + st−m)εt st = st−m(1 +γεt)

yt = (`t−1 + bt−1)(1 + εt) yt = (`t−1 + bt−1 + st−m)(1 + εt) yt = (`t−1 + bt−1)st−m(1 + εt)A `t = (`t−1 + bt−1)(1 +αεt) `t = `t−1 + bt−1 +α(`t−1 + bt−1 + st−m)εt `t = (`t−1 + bt−1)(1 +αεt)

bt = bt−1 + β(`t−1 + bt−1)εt bt = bt−1 + β(`t−1 + bt−1 + st−m)εt bt = bt−1 + β(`t−1 + bt−1)εtst = st−m +γ(`t−1 + bt−1 + st−m)εt st = st−m(1 +γεt)

yt = (`t−1 +φbt−1)(1 + εt) yt = (`t−1 +φbt−1 + st−m)(1 + εt) yt = (`t−1 +φbt−1)st−m(1 + εt)Ad `t = (`t−1 +φbt−1)(1 +αεt) `t = `t−1 +φbt−1 +α(`t−1 +φbt−1 + st−m)εt `t = (`t−1 +φbt−1)(1 +αεt)

bt = φbt−1 + β(`t−1 +φbt−1)εt bt = φbt−1 + β(`t−1 +φbt−1 + st−m)εt bt = φbt−1 + β(`t−1 +φbt−1)εtst = st−m +γ(`t−1 +φbt−1 + st−m)εt st = st−m(1 +γεt)

yt = `t−1bt−1(1 + εt) yt = (`t−1bt−1 + st−m)(1 + εt) yt = `t−1bt−1st−m(1 + εt)M `t = `t−1bt−1(1 +αεt) `t = `t−1bt−1 +α(`t−1bt−1 + st−m)εt `t = `t−1bt−1(1 +αεt)

bt = bt−1(1 + βεt) bt = bt−1 + β(`t−1bt−1 + st−m)εt/`t−1 bt = bt−1(1 + βεt)st = st−m +γ(`t−1bt−1 + st−m)εt st = st−m(1 +γεt)

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

φt−1 + st−m)(1 + εt) yt = `t−1b

φt−1st−m(1 + εt)

Md `t = `t−1bφt−1(1 +αεt) `t = `t−1b

φt−1 +α(`t−1b

φt−1 + st−m)εt `t = `t−1b

φt−1(1 +αεt)

bt = bφt−1(1 + βεt) bt = b

φt−1 + β(`t−1b

φt−1 + st−m)εt/`t−1 bt = b

φt−1(1 + βεt)

st = st−m +γ(`t−1bφt−1 + st−m)εt st = st−m(1 +γεt)

Table 7.10: State space equationsfor each of the models in the ETSframework.

Page 51: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Innovations state space models

Let xt = (`t,bt, st, st−1, . . . , st−m+1) and εtiid∼ N(0, σ2).

yt = h(xt−1)︸ ︷︷ ︸+ k(xt−1)εt︸ ︷︷ ︸µt et

xt = f(xt−1) + g(xt−1)εt

Additive errors:k(x) = 1. yt = µt + εt.

Multiplicative errors:k(xt−1) = µt. yt = µt(1 + εt).εt = (yt − µt)/µt is relative error.

Forecasting: Principles and Practice Innovations state space models 16

Page 52: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Innovations state space models

All the methods can be written in this statespace form.

The only difference between the additive errorand multiplicative error models is in theobservation equation.

Additive and multiplicative versions give thesame point forecasts.

Forecasting: Principles and Practice Innovations state space models 17

Page 53: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Innovations state space models

All the methods can be written in this statespace form.

The only difference between the additive errorand multiplicative error models is in theobservation equation.

Additive and multiplicative versions give thesame point forecasts.

Forecasting: Principles and Practice Innovations state space models 17

Page 54: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Innovations state space models

All the methods can be written in this statespace form.

The only difference between the additive errorand multiplicative error models is in theobservation equation.

Additive and multiplicative versions give thesame point forecasts.

Forecasting: Principles and Practice Innovations state space models 17

Page 55: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Some unstable models

Some of the combinations of (Error, Trend,Seasonal) can lead to numerical difficulties; seeequations with division by a state.

These are: ETS(M,M,A), ETS(M,Md,A),ETS(A,N,M), ETS(A,A,M), ETS(A,Ad,M),ETS(A,M,N), ETS(A,M,A), ETS(A,M,M),ETS(A,Md,N), ETS(A,Md,A), and ETS(A,Md,M).

Models with multiplicative errors are useful forstrictly positive data – but are not numericallystable with data containing zeros or negativevalues. In that case only the six fully additivemodels will be applied.

Forecasting: Principles and Practice Innovations state space models 18

Page 56: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Some unstable models

Some of the combinations of (Error, Trend,Seasonal) can lead to numerical difficulties; seeequations with division by a state.

These are: ETS(M,M,A), ETS(M,Md,A),ETS(A,N,M), ETS(A,A,M), ETS(A,Ad,M),ETS(A,M,N), ETS(A,M,A), ETS(A,M,M),ETS(A,Md,N), ETS(A,Md,A), and ETS(A,Md,M).

Models with multiplicative errors are useful forstrictly positive data – but are not numericallystable with data containing zeros or negativevalues. In that case only the six fully additivemodels will be applied.

Forecasting: Principles and Practice Innovations state space models 18

Page 57: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Some unstable models

Some of the combinations of (Error, Trend,Seasonal) can lead to numerical difficulties; seeequations with division by a state.

These are: ETS(M,M,A), ETS(M,Md,A),ETS(A,N,M), ETS(A,A,M), ETS(A,Ad,M),ETS(A,M,N), ETS(A,M,A), ETS(A,M,M),ETS(A,Md,N), ETS(A,Md,A), and ETS(A,Md,M).

Models with multiplicative errors are useful forstrictly positive data – but are not numericallystable with data containing zeros or negativevalues. In that case only the six fully additivemodels will be applied.

Forecasting: Principles and Practice Innovations state space models 18

Page 58: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing models

Additive Error Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) A,N,N A,N,A A,N,M

A (Additive) A,A,N A,A,A A,A,M

Ad (Additive damped) A,Ad,N A,Ad,A A,Ad,M

M (Multiplicative) A,M,N A,M,A A,M,M

Md (Multiplicative damped) A,Md,N A,Md,A A,Md,M

Multiplicative Error Seasonal ComponentTrend N A M

Component (None) (Additive) (Multiplicative)

N (None) M,N,N M,N,A M,N,M

A (Additive) M,A,N M,A,A M,A,M

Ad (Additive damped) M,Ad,N M,Ad,A M,Ad,M

M (Multiplicative) M,M,N M,M,A M,M,M

Md (Multiplicative damped) M,Md,N M,Md,A M,Md,M

Forecasting: Principles and Practice Innovations state space models 19

Page 59: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Innovations state space models

Estimation

L∗(θ,x0) = n log

( n∑t=1

ε2t /k

2(xt−1)

)+ 2

n∑t=1

log |k(xt−1)|

= −2 log(Likelihood) + constant

Estimate parameters θ = (α, β, γ, φ) and initialstates x0 = (`0,b0, s0, s−1, . . . , s−m+1) byminimizing L∗.

Forecasting: Principles and Practice Innovations state space models 20

Page 60: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Innovations state space models

Estimation

L∗(θ,x0) = n log

( n∑t=1

ε2t /k

2(xt−1)

)+ 2

n∑t=1

log |k(xt−1)|

= −2 log(Likelihood) + constant

Estimate parameters θ = (α, β, γ, φ) and initialstates x0 = (`0,b0, s0, s−1, . . . , s−m+1) byminimizing L∗.

Forecasting: Principles and Practice Innovations state space models 20

Page 61: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Parameter restrictionsUsual region

Traditional restrictions in the methods0 < α, β∗, γ∗, φ < 1 — equations interpreted asweighted averages.

In models we set β = αβ∗ and γ = (1− α)γ∗ therefore0 < α < 1, 0 < β < α and 0 < γ < 1− α.

0.8 < φ < 0.98 — to prevent numerical difficulties.

Admissible region

To prevent observations in the distant past having acontinuing effect on current forecasts.

Usually (but not always) less restrictive than theusual region.

For example for ETS(A,N,N):usual 0 < α < 1 — admissible is 0 < α < 2.

Forecasting: Principles and Practice Innovations state space models 21

Page 62: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Parameter restrictionsUsual region

Traditional restrictions in the methods0 < α, β∗, γ∗, φ < 1 — equations interpreted asweighted averages.

In models we set β = αβ∗ and γ = (1− α)γ∗ therefore0 < α < 1, 0 < β < α and 0 < γ < 1− α.

0.8 < φ < 0.98 — to prevent numerical difficulties.

Admissible region

To prevent observations in the distant past having acontinuing effect on current forecasts.

Usually (but not always) less restrictive than theusual region.

For example for ETS(A,N,N):usual 0 < α < 1 — admissible is 0 < α < 2.

Forecasting: Principles and Practice Innovations state space models 21

Page 63: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Parameter restrictionsUsual region

Traditional restrictions in the methods0 < α, β∗, γ∗, φ < 1 — equations interpreted asweighted averages.

In models we set β = αβ∗ and γ = (1− α)γ∗ therefore0 < α < 1, 0 < β < α and 0 < γ < 1− α.

0.8 < φ < 0.98 — to prevent numerical difficulties.

Admissible region

To prevent observations in the distant past having acontinuing effect on current forecasts.

Usually (but not always) less restrictive than theusual region.

For example for ETS(A,N,N):usual 0 < α < 1 — admissible is 0 < α < 2.

Forecasting: Principles and Practice Innovations state space models 21

Page 64: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Parameter restrictionsUsual region

Traditional restrictions in the methods0 < α, β∗, γ∗, φ < 1 — equations interpreted asweighted averages.

In models we set β = αβ∗ and γ = (1− α)γ∗ therefore0 < α < 1, 0 < β < α and 0 < γ < 1− α.

0.8 < φ < 0.98 — to prevent numerical difficulties.

Admissible region

To prevent observations in the distant past having acontinuing effect on current forecasts.

Usually (but not always) less restrictive than theusual region.

For example for ETS(A,N,N):usual 0 < α < 1 — admissible is 0 < α < 2.

Forecasting: Principles and Practice Innovations state space models 21

Page 65: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Parameter restrictionsUsual region

Traditional restrictions in the methods0 < α, β∗, γ∗, φ < 1 — equations interpreted asweighted averages.

In models we set β = αβ∗ and γ = (1− α)γ∗ therefore0 < α < 1, 0 < β < α and 0 < γ < 1− α.

0.8 < φ < 0.98 — to prevent numerical difficulties.

Admissible region

To prevent observations in the distant past having acontinuing effect on current forecasts.

Usually (but not always) less restrictive than theusual region.

For example for ETS(A,N,N):usual 0 < α < 1 — admissible is 0 < α < 2.

Forecasting: Principles and Practice Innovations state space models 21

Page 66: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Parameter restrictionsUsual region

Traditional restrictions in the methods0 < α, β∗, γ∗, φ < 1 — equations interpreted asweighted averages.

In models we set β = αβ∗ and γ = (1− α)γ∗ therefore0 < α < 1, 0 < β < α and 0 < γ < 1− α.

0.8 < φ < 0.98 — to prevent numerical difficulties.

Admissible region

To prevent observations in the distant past having acontinuing effect on current forecasts.

Usually (but not always) less restrictive than theusual region.

For example for ETS(A,N,N):usual 0 < α < 1 — admissible is 0 < α < 2.

Forecasting: Principles and Practice Innovations state space models 21

Page 67: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Parameter restrictionsUsual region

Traditional restrictions in the methods0 < α, β∗, γ∗, φ < 1 — equations interpreted asweighted averages.

In models we set β = αβ∗ and γ = (1− α)γ∗ therefore0 < α < 1, 0 < β < α and 0 < γ < 1− α.

0.8 < φ < 0.98 — to prevent numerical difficulties.

Admissible region

To prevent observations in the distant past having acontinuing effect on current forecasts.

Usually (but not always) less restrictive than theusual region.

For example for ETS(A,N,N):usual 0 < α < 1 — admissible is 0 < α < 2.

Forecasting: Principles and Practice Innovations state space models 21

Page 68: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Model selectionAkaike’s Information Criterion

AIC = −2 log(Likelihood) + 2p

where p is the number of estimated parameters inthe model.

Minimizing the AIC gives the best model forprediction.

AIC corrected (for small sample bias)

AICC = AIC +2(p+ 1)(p+ 2)

n− p

Schwartz’ Bayesian IC

BIC = AIC + p(log(n)− 2)

Forecasting: Principles and Practice Innovations state space models 22

Page 69: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Model selectionAkaike’s Information Criterion

AIC = −2 log(Likelihood) + 2p

where p is the number of estimated parameters inthe model.

Minimizing the AIC gives the best model forprediction.

AIC corrected (for small sample bias)

AICC = AIC +2(p+ 1)(p+ 2)

n− p

Schwartz’ Bayesian IC

BIC = AIC + p(log(n)− 2)

Forecasting: Principles and Practice Innovations state space models 22

Page 70: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Model selectionAkaike’s Information Criterion

AIC = −2 log(Likelihood) + 2p

where p is the number of estimated parameters inthe model.

Minimizing the AIC gives the best model forprediction.

AIC corrected (for small sample bias)

AICC = AIC +2(p+ 1)(p+ 2)

n− p

Schwartz’ Bayesian IC

BIC = AIC + p(log(n)− 2)

Forecasting: Principles and Practice Innovations state space models 22

Page 71: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Model selectionAkaike’s Information Criterion

AIC = −2 log(Likelihood) + 2p

where p is the number of estimated parameters inthe model.

Minimizing the AIC gives the best model forprediction.

AIC corrected (for small sample bias)

AICC = AIC +2(p+ 1)(p+ 2)

n− p

Schwartz’ Bayesian IC

BIC = AIC + p(log(n)− 2)

Forecasting: Principles and Practice Innovations state space models 22

Page 72: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Model selectionAkaike’s Information Criterion

AIC = −2 log(Likelihood) + 2p

where p is the number of estimated parameters inthe model.

Minimizing the AIC gives the best model forprediction.

AIC corrected (for small sample bias)

AICC = AIC +2(p+ 1)(p+ 2)

n− p

Schwartz’ Bayesian IC

BIC = AIC + p(log(n)− 2)

Forecasting: Principles and Practice Innovations state space models 22

Page 73: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Akaike’s Information Criterion

Value of AIC/AICc/BIC given in the R output.

AIC does not have much meaning by itself. Onlyuseful in comparison to AIC value for anothermodel fitted to same data set.

Consider several models with AIC values closeto the minimum.

A difference in AIC values of 2 or less is notregarded as substantial and you may choosethe simpler but non-optimal model.

AIC can be negative.

Forecasting: Principles and Practice Innovations state space models 23

Page 74: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Akaike’s Information Criterion

Value of AIC/AICc/BIC given in the R output.

AIC does not have much meaning by itself. Onlyuseful in comparison to AIC value for anothermodel fitted to same data set.

Consider several models with AIC values closeto the minimum.

A difference in AIC values of 2 or less is notregarded as substantial and you may choosethe simpler but non-optimal model.

AIC can be negative.

Forecasting: Principles and Practice Innovations state space models 23

Page 75: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Akaike’s Information Criterion

Value of AIC/AICc/BIC given in the R output.

AIC does not have much meaning by itself. Onlyuseful in comparison to AIC value for anothermodel fitted to same data set.

Consider several models with AIC values closeto the minimum.

A difference in AIC values of 2 or less is notregarded as substantial and you may choosethe simpler but non-optimal model.

AIC can be negative.

Forecasting: Principles and Practice Innovations state space models 23

Page 76: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Akaike’s Information Criterion

Value of AIC/AICc/BIC given in the R output.

AIC does not have much meaning by itself. Onlyuseful in comparison to AIC value for anothermodel fitted to same data set.

Consider several models with AIC values closeto the minimum.

A difference in AIC values of 2 or less is notregarded as substantial and you may choosethe simpler but non-optimal model.

AIC can be negative.

Forecasting: Principles and Practice Innovations state space models 23

Page 77: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Akaike’s Information Criterion

Value of AIC/AICc/BIC given in the R output.

AIC does not have much meaning by itself. Onlyuseful in comparison to AIC value for anothermodel fitted to same data set.

Consider several models with AIC values closeto the minimum.

A difference in AIC values of 2 or less is notregarded as substantial and you may choosethe simpler but non-optimal model.

AIC can be negative.

Forecasting: Principles and Practice Innovations state space models 23

Page 78: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Automatic forecasting

From Hyndman et al. (IJF, 2002):

Apply each model that is appropriate to thedata. Optimize parameters and initial valuesusing MLE (or some other criterion).

Select best method using AICc:

Produce forecasts using best method.

Obtain prediction intervals using underlyingstate space model.

Method performed very well in M3 competition.

Forecasting: Principles and Practice Innovations state space models 24

Page 79: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Automatic forecasting

From Hyndman et al. (IJF, 2002):

Apply each model that is appropriate to thedata. Optimize parameters and initial valuesusing MLE (or some other criterion).

Select best method using AICc:

Produce forecasts using best method.

Obtain prediction intervals using underlyingstate space model.

Method performed very well in M3 competition.

Forecasting: Principles and Practice Innovations state space models 24

Page 80: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Automatic forecasting

From Hyndman et al. (IJF, 2002):

Apply each model that is appropriate to thedata. Optimize parameters and initial valuesusing MLE (or some other criterion).

Select best method using AICc:

Produce forecasts using best method.

Obtain prediction intervals using underlyingstate space model.

Method performed very well in M3 competition.

Forecasting: Principles and Practice Innovations state space models 24

Page 81: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Automatic forecasting

From Hyndman et al. (IJF, 2002):

Apply each model that is appropriate to thedata. Optimize parameters and initial valuesusing MLE (or some other criterion).

Select best method using AICc:

Produce forecasts using best method.

Obtain prediction intervals using underlyingstate space model.

Method performed very well in M3 competition.

Forecasting: Principles and Practice Innovations state space models 24

Page 82: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Automatic forecasting

From Hyndman et al. (IJF, 2002):

Apply each model that is appropriate to thedata. Optimize parameters and initial valuesusing MLE (or some other criterion).

Select best method using AICc:

Produce forecasts using best method.

Obtain prediction intervals using underlyingstate space model.

Method performed very well in M3 competition.

Forecasting: Principles and Practice Innovations state space models 24

Page 83: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Outline

1 Taxonomy of exponential smoothingmethods

2 Innovations state space models

3 ETS in R

4 Forecasting with ETS models

Forecasting: Principles and Practice ETS in R 25

Page 84: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing

fit <- ets(ausbeer)fit2 <- ets(ausbeer,model="AAA",damped=FALSE)fcast1 <- forecast(fit, h=20)fcast2 <- forecast(fit2, h=20)

ets(y, model="ZZZ", damped=NULL, alpha=NULL,beta=NULL, gamma=NULL, phi=NULL,additive.only=FALSE,lower=c(rep(0.0001,3),0.80),upper=c(rep(0.9999,3),0.98),opt.crit=c("lik","amse","mse","sigma"), nmse=3,bounds=c("both","usual","admissible"),ic=c("aic","aicc","bic"), restrict=TRUE)

Forecasting: Principles and Practice ETS in R 26

Page 85: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing

fit <- ets(ausbeer)fit2 <- ets(ausbeer,model="AAA",damped=FALSE)fcast1 <- forecast(fit, h=20)fcast2 <- forecast(fit2, h=20)

ets(y, model="ZZZ", damped=NULL, alpha=NULL,beta=NULL, gamma=NULL, phi=NULL,additive.only=FALSE,lower=c(rep(0.0001,3),0.80),upper=c(rep(0.9999,3),0.98),opt.crit=c("lik","amse","mse","sigma"), nmse=3,bounds=c("both","usual","admissible"),ic=c("aic","aicc","bic"), restrict=TRUE)

Forecasting: Principles and Practice ETS in R 26

Page 86: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing> fitETS(M,Md,M)

Smoothing parameters:alpha = 0.1776beta = 0.0454gamma = 0.1947phi = 0.9549

Initial states:l = 263.8531b = 0.9997s = 1.1856 0.9109 0.8612 1.0423

sigma: 0.0356

AIC AICc BIC2272.549 2273.444 2302.715

Forecasting: Principles and Practice ETS in R 27

Page 87: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing

> fit2ETS(A,A,A)

Smoothing parameters:alpha = 0.2079beta = 0.0304gamma = 0.2483

Initial states:l = 255.6559b = 0.5687s = 52.3841 -27.1061 -37.6758 12.3978

sigma: 15.9053

AIC AICc BIC2312.768 2313.481 2339.583

Forecasting: Principles and Practice ETS in R 28

Page 88: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing

ets() function

Automatically chooses a model by default usingthe AIC, AICc or BIC.

Can handle any combination of trend,seasonality and damping

Produces prediction intervals for every model

Ensures the parameters are admissible(equivalent to invertible)

Produces an object of class ets.

Forecasting: Principles and Practice ETS in R 29

Page 89: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing

ets() function

Automatically chooses a model by default usingthe AIC, AICc or BIC.

Can handle any combination of trend,seasonality and damping

Produces prediction intervals for every model

Ensures the parameters are admissible(equivalent to invertible)

Produces an object of class ets.

Forecasting: Principles and Practice ETS in R 29

Page 90: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing

ets() function

Automatically chooses a model by default usingthe AIC, AICc or BIC.

Can handle any combination of trend,seasonality and damping

Produces prediction intervals for every model

Ensures the parameters are admissible(equivalent to invertible)

Produces an object of class ets.

Forecasting: Principles and Practice ETS in R 29

Page 91: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing

ets() function

Automatically chooses a model by default usingthe AIC, AICc or BIC.

Can handle any combination of trend,seasonality and damping

Produces prediction intervals for every model

Ensures the parameters are admissible(equivalent to invertible)

Produces an object of class ets.

Forecasting: Principles and Practice ETS in R 29

Page 92: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing

ets() function

Automatically chooses a model by default usingthe AIC, AICc or BIC.

Can handle any combination of trend,seasonality and damping

Produces prediction intervals for every model

Ensures the parameters are admissible(equivalent to invertible)

Produces an object of class ets.

Forecasting: Principles and Practice ETS in R 29

Page 93: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing

ets objects

Methods: coef(), plot(), summary(),

residuals(), fitted(), simulate()

and forecast()

plot() function shows time plots of the

original time series along with the

extracted components (level, growth

and seasonal).

Forecasting: Principles and Practice ETS in R 30

Page 94: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing

ets objects

Methods: coef(), plot(), summary(),

residuals(), fitted(), simulate()

and forecast()

plot() function shows time plots of the

original time series along with the

extracted components (level, growth

and seasonal).

Forecasting: Principles and Practice ETS in R 30

Page 95: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing

Forecasting: Principles and Practice ETS in R 31

200

400

600

obse

rved

250

350

450

leve

l

0.99

01.

005

slop

e

0.9

1.1

1960 1970 1980 1990 2000 2010

seas

on

Time

Decomposition by ETS(M,Md,M) methodplot(fit)

Page 96: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Goodness-of-fit

> accuracy(fit)ME RMSE MAE MPE MAPE MASE

0.17847 15.48781 11.77800 0.07204 2.81921 0.20705

> accuracy(fit2)ME RMSE MAE MPE MAPE MASE

-0.11711 15.90526 12.18930 -0.03765 2.91255 0.21428

Forecasting: Principles and Practice ETS in R 32

Page 97: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecast intervals

Forecasting: Principles and Practice ETS in R 33

Forecasts from ETS(M,Md,M)

1995 2000 2005 2010

300

350

400

450

500

550

600

> plot(forecast(fit,level=c(50,80,95)))

Page 98: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecast intervals

Forecasting: Principles and Practice ETS in R 33

Forecasts from ETS(M,Md,M)

1995 2000 2005 2010

300

350

400

450

500

550

600

> plot(forecast(fit,fan=TRUE))

Page 99: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Exponential smoothing

ets() function also allows refitting model to newdata set.

> usfit <- ets(usnetelec[1:45])> test <- ets(usnetelec[46:55], model = usfit)

> accuracy(test)ME RMSE MAE MPE MAPE MASE

-3.35419 58.02763 43.85545 -0.07624 1.18483 0.52452

> accuracy(forecast(usfit,10), usnetelec[46:55])ME RMSE MAE MPE MAPE MASE

40.7034 61.2075 46.3246 1.0980 1.2620 0.6776

Forecasting: Principles and Practice ETS in R 34

Page 100: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

ets(y, model="ZZZ", damped=NULL,alpha=NULL, beta=NULL,gamma=NULL, phi=NULL,additive.only=FALSE,lambda=NULLlower=c(rep(0.0001,3),0.80),upper=c(rep(0.9999,3),0.98),opt.crit=c("lik","amse","mse","sigma"),nmse=3,bounds=c("both","usual","admissible"),ic=c("aic","aicc","bic"), restrict=TRUE)

Forecasting: Principles and Practice ETS in R 35

Page 101: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

yThe time series to be forecast.

modeluse the ETS classification and notation: “N” for none,“A” for additive, “M” for multiplicative, or “Z” forautomatic selection. Default ZZZ all components areselected using the information criterion.

dampedIf damped=TRUE, then a damped trend will be used(either Ad or Md).damped=FALSE, then a non-damped trend will used.If damped=NULL (the default), then either a dampedor a non-damped trend will be selected according tothe information criterion chosen.

Forecasting: Principles and Practice ETS in R 36

Page 102: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

yThe time series to be forecast.

modeluse the ETS classification and notation: “N” for none,“A” for additive, “M” for multiplicative, or “Z” forautomatic selection. Default ZZZ all components areselected using the information criterion.

dampedIf damped=TRUE, then a damped trend will be used(either Ad or Md).damped=FALSE, then a non-damped trend will used.If damped=NULL (the default), then either a dampedor a non-damped trend will be selected according tothe information criterion chosen.

Forecasting: Principles and Practice ETS in R 36

Page 103: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

yThe time series to be forecast.

modeluse the ETS classification and notation: “N” for none,“A” for additive, “M” for multiplicative, or “Z” forautomatic selection. Default ZZZ all components areselected using the information criterion.

dampedIf damped=TRUE, then a damped trend will be used(either Ad or Md).damped=FALSE, then a non-damped trend will used.If damped=NULL (the default), then either a dampedor a non-damped trend will be selected according tothe information criterion chosen.

Forecasting: Principles and Practice ETS in R 36

Page 104: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

yThe time series to be forecast.

modeluse the ETS classification and notation: “N” for none,“A” for additive, “M” for multiplicative, or “Z” forautomatic selection. Default ZZZ all components areselected using the information criterion.

dampedIf damped=TRUE, then a damped trend will be used(either Ad or Md).damped=FALSE, then a non-damped trend will used.If damped=NULL (the default), then either a dampedor a non-damped trend will be selected according tothe information criterion chosen.

Forecasting: Principles and Practice ETS in R 36

Page 105: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

yThe time series to be forecast.

modeluse the ETS classification and notation: “N” for none,“A” for additive, “M” for multiplicative, or “Z” forautomatic selection. Default ZZZ all components areselected using the information criterion.

dampedIf damped=TRUE, then a damped trend will be used(either Ad or Md).damped=FALSE, then a non-damped trend will used.If damped=NULL (the default), then either a dampedor a non-damped trend will be selected according tothe information criterion chosen.

Forecasting: Principles and Practice ETS in R 36

Page 106: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

yThe time series to be forecast.

modeluse the ETS classification and notation: “N” for none,“A” for additive, “M” for multiplicative, or “Z” forautomatic selection. Default ZZZ all components areselected using the information criterion.

dampedIf damped=TRUE, then a damped trend will be used(either Ad or Md).damped=FALSE, then a non-damped trend will used.If damped=NULL (the default), then either a dampedor a non-damped trend will be selected according tothe information criterion chosen.

Forecasting: Principles and Practice ETS in R 36

Page 107: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in Ralpha, beta, gamma, phiThe values of the smoothing parameters can bespecified using these arguments. If they are set toNULL (the default value for each of them), theparameters are estimated.

additive.onlyOnly models with additive components will beconsidered if additive.only=TRUE. Otherwise allmodels will be considered.

lambdaBox-Cox transformation parameter. It will be ignoredif lambda=NULL (the default value). Otherwise, thetime series will be transformed before the model isestimated. When lambda is not NULL,additive.only is set to TRUE.

Forecasting: Principles and Practice ETS in R 37

Page 108: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in Ralpha, beta, gamma, phiThe values of the smoothing parameters can bespecified using these arguments. If they are set toNULL (the default value for each of them), theparameters are estimated.

additive.onlyOnly models with additive components will beconsidered if additive.only=TRUE. Otherwise allmodels will be considered.

lambdaBox-Cox transformation parameter. It will be ignoredif lambda=NULL (the default value). Otherwise, thetime series will be transformed before the model isestimated. When lambda is not NULL,additive.only is set to TRUE.

Forecasting: Principles and Practice ETS in R 37

Page 109: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in Ralpha, beta, gamma, phiThe values of the smoothing parameters can bespecified using these arguments. If they are set toNULL (the default value for each of them), theparameters are estimated.

additive.onlyOnly models with additive components will beconsidered if additive.only=TRUE. Otherwise allmodels will be considered.

lambdaBox-Cox transformation parameter. It will be ignoredif lambda=NULL (the default value). Otherwise, thetime series will be transformed before the model isestimated. When lambda is not NULL,additive.only is set to TRUE.

Forecasting: Principles and Practice ETS in R 37

Page 110: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

lower,upper bounds for the parameter estimates ofα, β, γ and φ.opt.crit=lik (default) optimisation criterion usedfor estimation.bounds Constraints on the parameters.

usual region – "bounds=usual";admissible region – "bounds=admissible";"bounds=both" (the default) requires theparameters to satisfy both sets of constraints.

ic=aic (the default) information criterion to be usedin selecting models.restrict=TRUE (the default) models that causenumerical difficulties are not considered in modelselection.

Forecasting: Principles and Practice ETS in R 38

Page 111: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

lower,upper bounds for the parameter estimates ofα, β, γ and φ.opt.crit=lik (default) optimisation criterion usedfor estimation.bounds Constraints on the parameters.

usual region – "bounds=usual";admissible region – "bounds=admissible";"bounds=both" (the default) requires theparameters to satisfy both sets of constraints.

ic=aic (the default) information criterion to be usedin selecting models.restrict=TRUE (the default) models that causenumerical difficulties are not considered in modelselection.

Forecasting: Principles and Practice ETS in R 38

Page 112: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

lower,upper bounds for the parameter estimates ofα, β, γ and φ.opt.crit=lik (default) optimisation criterion usedfor estimation.bounds Constraints on the parameters.

usual region – "bounds=usual";admissible region – "bounds=admissible";"bounds=both" (the default) requires theparameters to satisfy both sets of constraints.

ic=aic (the default) information criterion to be usedin selecting models.restrict=TRUE (the default) models that causenumerical difficulties are not considered in modelselection.

Forecasting: Principles and Practice ETS in R 38

Page 113: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

lower,upper bounds for the parameter estimates ofα, β, γ and φ.opt.crit=lik (default) optimisation criterion usedfor estimation.bounds Constraints on the parameters.

usual region – "bounds=usual";admissible region – "bounds=admissible";"bounds=both" (the default) requires theparameters to satisfy both sets of constraints.

ic=aic (the default) information criterion to be usedin selecting models.restrict=TRUE (the default) models that causenumerical difficulties are not considered in modelselection.

Forecasting: Principles and Practice ETS in R 38

Page 114: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

lower,upper bounds for the parameter estimates ofα, β, γ and φ.opt.crit=lik (default) optimisation criterion usedfor estimation.bounds Constraints on the parameters.

usual region – "bounds=usual";admissible region – "bounds=admissible";"bounds=both" (the default) requires theparameters to satisfy both sets of constraints.

ic=aic (the default) information criterion to be usedin selecting models.restrict=TRUE (the default) models that causenumerical difficulties are not considered in modelselection.

Forecasting: Principles and Practice ETS in R 38

Page 115: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

lower,upper bounds for the parameter estimates ofα, β, γ and φ.opt.crit=lik (default) optimisation criterion usedfor estimation.bounds Constraints on the parameters.

usual region – "bounds=usual";admissible region – "bounds=admissible";"bounds=both" (the default) requires theparameters to satisfy both sets of constraints.

ic=aic (the default) information criterion to be usedin selecting models.restrict=TRUE (the default) models that causenumerical difficulties are not considered in modelselection.

Forecasting: Principles and Practice ETS in R 38

Page 116: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

lower,upper bounds for the parameter estimates ofα, β, γ and φ.opt.crit=lik (default) optimisation criterion usedfor estimation.bounds Constraints on the parameters.

usual region – "bounds=usual";admissible region – "bounds=admissible";"bounds=both" (the default) requires theparameters to satisfy both sets of constraints.

ic=aic (the default) information criterion to be usedin selecting models.restrict=TRUE (the default) models that causenumerical difficulties are not considered in modelselection.

Forecasting: Principles and Practice ETS in R 38

Page 117: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

The ets() function in R

lower,upper bounds for the parameter estimates ofα, β, γ and φ.opt.crit=lik (default) optimisation criterion usedfor estimation.bounds Constraints on the parameters.

usual region – "bounds=usual";admissible region – "bounds=admissible";"bounds=both" (the default) requires theparameters to satisfy both sets of constraints.

ic=aic (the default) information criterion to be usedin selecting models.restrict=TRUE (the default) models that causenumerical difficulties are not considered in modelselection.

Forecasting: Principles and Practice ETS in R 38

Page 118: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Outline

1 Taxonomy of exponential smoothingmethods

2 Innovations state space models

3 ETS in R

4 Forecasting with ETS models

Forecasting: Principles and Practice Forecasting with ETS models 39

Page 119: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Point forecasts obtained by iterating equationsfor t = T + 1, . . . , T + h, setting εt = 0 for t > T.

Not the same as E(yt+h|xt) unless trend andseasonality are both additive.

Point forecasts for ETS(A,x,y) are identical toETS(M,x,y) if the parameters are the same.

Prediction intervals will differ between modelswith additive and multiplicative methods.

Exact PI available for many models.

Otherwise, simulate future sample paths,conditional on last estimate of states, andobtain PI from percentiles of simulated paths.

Forecasting: Principles and Practice Forecasting with ETS models 40

Page 120: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Point forecasts obtained by iterating equationsfor t = T + 1, . . . , T + h, setting εt = 0 for t > T.

Not the same as E(yt+h|xt) unless trend andseasonality are both additive.

Point forecasts for ETS(A,x,y) are identical toETS(M,x,y) if the parameters are the same.

Prediction intervals will differ between modelswith additive and multiplicative methods.

Exact PI available for many models.

Otherwise, simulate future sample paths,conditional on last estimate of states, andobtain PI from percentiles of simulated paths.

Forecasting: Principles and Practice Forecasting with ETS models 40

Page 121: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Point forecasts obtained by iterating equationsfor t = T + 1, . . . , T + h, setting εt = 0 for t > T.

Not the same as E(yt+h|xt) unless trend andseasonality are both additive.

Point forecasts for ETS(A,x,y) are identical toETS(M,x,y) if the parameters are the same.

Prediction intervals will differ between modelswith additive and multiplicative methods.

Exact PI available for many models.

Otherwise, simulate future sample paths,conditional on last estimate of states, andobtain PI from percentiles of simulated paths.

Forecasting: Principles and Practice Forecasting with ETS models 40

Page 122: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Point forecasts obtained by iterating equationsfor t = T + 1, . . . , T + h, setting εt = 0 for t > T.

Not the same as E(yt+h|xt) unless trend andseasonality are both additive.

Point forecasts for ETS(A,x,y) are identical toETS(M,x,y) if the parameters are the same.

Prediction intervals will differ between modelswith additive and multiplicative methods.

Exact PI available for many models.

Otherwise, simulate future sample paths,conditional on last estimate of states, andobtain PI from percentiles of simulated paths.

Forecasting: Principles and Practice Forecasting with ETS models 40

Page 123: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Point forecasts obtained by iterating equationsfor t = T + 1, . . . , T + h, setting εt = 0 for t > T.

Not the same as E(yt+h|xt) unless trend andseasonality are both additive.

Point forecasts for ETS(A,x,y) are identical toETS(M,x,y) if the parameters are the same.

Prediction intervals will differ between modelswith additive and multiplicative methods.

Exact PI available for many models.

Otherwise, simulate future sample paths,conditional on last estimate of states, andobtain PI from percentiles of simulated paths.

Forecasting: Principles and Practice Forecasting with ETS models 40

Page 124: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Point forecasts obtained by iterating equationsfor t = T + 1, . . . , T + h, setting εt = 0 for t > T.

Not the same as E(yt+h|xt) unless trend andseasonality are both additive.

Point forecasts for ETS(A,x,y) are identical toETS(M,x,y) if the parameters are the same.

Prediction intervals will differ between modelswith additive and multiplicative methods.

Exact PI available for many models.

Otherwise, simulate future sample paths,conditional on last estimate of states, andobtain PI from percentiles of simulated paths.

Forecasting: Principles and Practice Forecasting with ETS models 40

Page 125: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Point forecasts: iterate the equations fort = T + 1,T + 2, . . . ,T + h and set all εt = 0 for t > T.For example, for ETS(M,A,N):

yT+1 = (`T + bT)(1 + εT+1)

Therefore yT+1|T = `T + bTyT+2 = (`T+1 + bT+1)(1 + εT+1) =

[(`T + bT)(1 + αεT+1) + bT + β(`T + bT)εT+1] (1 + εT+1)

Therefore yT+2|T = `T + 2bT and so on.

Identical forecast with Holt’s linear method andETS(A,A,N). So the point forecasts obtained from themethod and from the two models that underly themethod are identical (assuming the same parametervalues are used).

Forecasting: Principles and Practice Forecasting with ETS models 41

Page 126: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Point forecasts: iterate the equations fort = T + 1,T + 2, . . . ,T + h and set all εt = 0 for t > T.For example, for ETS(M,A,N):

yT+1 = (`T + bT)(1 + εT+1)

Therefore yT+1|T = `T + bTyT+2 = (`T+1 + bT+1)(1 + εT+1) =

[(`T + bT)(1 + αεT+1) + bT + β(`T + bT)εT+1] (1 + εT+1)

Therefore yT+2|T = `T + 2bT and so on.

Identical forecast with Holt’s linear method andETS(A,A,N). So the point forecasts obtained from themethod and from the two models that underly themethod are identical (assuming the same parametervalues are used).

Forecasting: Principles and Practice Forecasting with ETS models 41

Page 127: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Point forecasts: iterate the equations fort = T + 1,T + 2, . . . ,T + h and set all εt = 0 for t > T.For example, for ETS(M,A,N):

yT+1 = (`T + bT)(1 + εT+1)

Therefore yT+1|T = `T + bTyT+2 = (`T+1 + bT+1)(1 + εT+1) =

[(`T + bT)(1 + αεT+1) + bT + β(`T + bT)εT+1] (1 + εT+1)

Therefore yT+2|T = `T + 2bT and so on.

Identical forecast with Holt’s linear method andETS(A,A,N). So the point forecasts obtained from themethod and from the two models that underly themethod are identical (assuming the same parametervalues are used).

Forecasting: Principles and Practice Forecasting with ETS models 41

Page 128: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Point forecasts: iterate the equations fort = T + 1,T + 2, . . . ,T + h and set all εt = 0 for t > T.For example, for ETS(M,A,N):

yT+1 = (`T + bT)(1 + εT+1)

Therefore yT+1|T = `T + bTyT+2 = (`T+1 + bT+1)(1 + εT+1) =

[(`T + bT)(1 + αεT+1) + bT + β(`T + bT)εT+1] (1 + εT+1)

Therefore yT+2|T = `T + 2bT and so on.

Identical forecast with Holt’s linear method andETS(A,A,N). So the point forecasts obtained from themethod and from the two models that underly themethod are identical (assuming the same parametervalues are used).

Forecasting: Principles and Practice Forecasting with ETS models 41

Page 129: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Point forecasts: iterate the equations fort = T + 1,T + 2, . . . ,T + h and set all εt = 0 for t > T.For example, for ETS(M,A,N):

yT+1 = (`T + bT)(1 + εT+1)

Therefore yT+1|T = `T + bTyT+2 = (`T+1 + bT+1)(1 + εT+1) =

[(`T + bT)(1 + αεT+1) + bT + β(`T + bT)εT+1] (1 + εT+1)

Therefore yT+2|T = `T + 2bT and so on.

Identical forecast with Holt’s linear method andETS(A,A,N). So the point forecasts obtained from themethod and from the two models that underly themethod are identical (assuming the same parametervalues are used).

Forecasting: Principles and Practice Forecasting with ETS models 41

Page 130: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Point forecasts: iterate the equations fort = T + 1,T + 2, . . . ,T + h and set all εt = 0 for t > T.For example, for ETS(M,A,N):

yT+1 = (`T + bT)(1 + εT+1)

Therefore yT+1|T = `T + bTyT+2 = (`T+1 + bT+1)(1 + εT+1) =

[(`T + bT)(1 + αεT+1) + bT + β(`T + bT)εT+1] (1 + εT+1)

Therefore yT+2|T = `T + 2bT and so on.

Identical forecast with Holt’s linear method andETS(A,A,N). So the point forecasts obtained from themethod and from the two models that underly themethod are identical (assuming the same parametervalues are used).

Forecasting: Principles and Practice Forecasting with ETS models 41

Page 131: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Point forecasts: iterate the equations fort = T + 1,T + 2, . . . ,T + h and set all εt = 0 for t > T.For example, for ETS(M,A,N):

yT+1 = (`T + bT)(1 + εT+1)

Therefore yT+1|T = `T + bTyT+2 = (`T+1 + bT+1)(1 + εT+1) =

[(`T + bT)(1 + αεT+1) + bT + β(`T + bT)εT+1] (1 + εT+1)

Therefore yT+2|T = `T + 2bT and so on.

Identical forecast with Holt’s linear method andETS(A,A,N). So the point forecasts obtained from themethod and from the two models that underly themethod are identical (assuming the same parametervalues are used).

Forecasting: Principles and Practice Forecasting with ETS models 41

Page 132: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Prediction intervals: cannot be generated usingthe methods.

The prediction intervals will differ betweenmodels with additive and multiplicativemethods.

Exact formulae for some models.

More general to simulate future sample paths,conditional on the last estimate of the states,and to obtain prediction intervals from thepercentiles of these simulated future paths.

Options are available in R using the forecastfunction in the forecast package.

Forecasting: Principles and Practice Forecasting with ETS models 42

Page 133: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Prediction intervals: cannot be generated usingthe methods.

The prediction intervals will differ betweenmodels with additive and multiplicativemethods.

Exact formulae for some models.

More general to simulate future sample paths,conditional on the last estimate of the states,and to obtain prediction intervals from thepercentiles of these simulated future paths.

Options are available in R using the forecastfunction in the forecast package.

Forecasting: Principles and Practice Forecasting with ETS models 42

Page 134: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Prediction intervals: cannot be generated usingthe methods.

The prediction intervals will differ betweenmodels with additive and multiplicativemethods.

Exact formulae for some models.

More general to simulate future sample paths,conditional on the last estimate of the states,and to obtain prediction intervals from thepercentiles of these simulated future paths.

Options are available in R using the forecastfunction in the forecast package.

Forecasting: Principles and Practice Forecasting with ETS models 42

Page 135: Forecasting - Rob J Hyndman · Exponential smoothing methods Seasonal Component Trend N A M Component (None) (Additive) (Multiplicative) N (None) N,N N,A N,M A (Additive) A,N A,AA,M

Forecasting with ETS models

Prediction intervals: cannot be generated usingthe methods.

The prediction intervals will differ betweenmodels with additive and multiplicativemethods.

Exact formulae for some models.

More general to simulate future sample paths,conditional on the last estimate of the states,and to obtain prediction intervals from thepercentiles of these simulated future paths.

Options are available in R using the forecastfunction in the forecast package.

Forecasting: Principles and Practice Forecasting with ETS models 42