237. M-N-M

SES + mult. seasonality and errors

ETS(𝑀,𝑁,𝑀)𝑥𝑡=𝑙𝑡1𝑠𝑡𝑚(1+𝜀𝑡)𝑙𝑡=𝑙𝑡1(1+𝛼𝜀𝑡)𝑠𝑡=𝑠𝑡𝑚(1+𝛾𝜀𝑡)𝑥̂𝑡+|𝑡=𝑙𝑡𝑠𝑡+𝑚+
Example: ETS(𝑀,𝑁,𝑀)

Given

  • Smoothing parameters: 𝛼=0.5, 𝛾=0.2
  • Initial states: 𝑙0=12, (𝑠3,𝑠2,𝑠1,𝑠0)=(1.2,1,0.8,1), seasonal period 𝑚=4
  • Data:
𝑡12345678910111213141516
x𝑡121081114129131614111518161317

Step 1 — formula

Observation:

𝑥𝑡=(𝑙𝑡1𝑠𝑡𝑚)(1+𝜀𝑡)

Conditional mean (one-step-ahead forecast 𝑥̂𝑡|𝑡1=𝜇𝑡):

𝜇𝑡=𝑙𝑡1𝑠𝑡𝑚

Innovation:

𝜀𝑡=(𝑥𝑡𝜇𝑡)/𝜇𝑡

State updates:

𝑙𝑡=𝑙𝑡1(1+𝛼𝜀𝑡)𝑠𝑡=𝑠𝑡𝑚(1+𝛾𝜀𝑡)

Forecast steps ahead from time 𝑡 (using current-period states):

𝑥̂𝑡+|𝑡=𝑙𝑡𝑠𝑡+𝑚+

where 𝑚+=((1)mod𝑚)+1 picks the right seasonal slot for the period steps ahead (cycles through 1,2,,𝑚).

Step 2 — apply at 𝑡=1

𝜇1=121.2=14.4𝜀1=(𝑥1𝜇1)/𝜇1=(1214.4)/14.4=0.1667𝑙1=12(1+0.5(0.1667))=11𝑠1=1.2(1+0.2(0.1667))=1.16

Step 3 — iterate

Each column header is the equation that produced its values. Values rounded to 4 decimal places; arithmetic performed at full precision.

𝑡𝑥𝑡𝜇𝑡=𝑙𝑡1𝑠𝑡𝑚𝜀𝑡𝑙𝑡=𝑙𝑡1(1+𝛼𝜀𝑡)𝑠𝑡=𝑠𝑡𝑚(1+𝛾𝜀𝑡)
11214.40.1667111.16
210110.090910.50.9818
388.40.047610.250.7924
41110.250.073210.6251.0146
51412.3250.135911.3471.1915
61211.14070.077111.78460.997
799.33790.036211.57140.7866
81311.74070.107312.19191.0364
91614.52710.101412.811.2157
101412.77110.096213.42631.0162
111110.56180.041513.70490.7932
121514.20370.056114.0891.048
131817.12790.050914.44771.2281
141614.6810.089815.09671.0344
151311.97430.085715.74330.8068
161716.49930.030315.98221.0544