Skip to main content

Note 20: Exponential Smoothing & SSOE State-Space Models

Module 5: State-Space & Ensembles

library(fpp3)

Learning Objectives

  • Distinguish Multiple-Source-of-Error (MSOE) state-space models from the Single-Source-of-Error (SSOE) innovations framework underlying ETS().
  • Write the exact SSOE measurement and state-transition equations for Simple Exponential Smoothing ETS(A,N,N), Holt’s linear trend ETS(A,A,N), and damped trend ETS(A,Ad,N).
  • Prove the algebraic equivalence between ETS(A,N,N) and ARIMA(0,1,1) and verify \(\theta_1 = \alpha - 1\) numerically.
  • Fit, diagnose, and visualize latent level and slope states for trending economic series in fable.

1. From Heuristic Smoothing to SSOE State-Space Models

Classical exponential smoothing computes recursive weighted averages of past observations, giving exponentially decaying weights to older data. Because the heuristic recursion specifies no probability distribution, it cannot supply likelihoods, information criteria, or prediction intervals.

Embedding exponential smoothing inside a state-space model resolves this by separating observed data \(y_t\) from latent states (level \(\ell_t\), slope \(b_t\)). Two statistical formulations exist:

  • Multiple-Source-of-Error (MSOE): The measurement equation and each state equation carry separate, independent disturbance terms (for example, \(y_t = \ell_{t-1} + v_t\) and \(\ell_t = \ell_{t-1} + w_t\)), as in classical Kalman-filter structural models.
  • Single-Source-of-Error (SSOE): One scalar innovation \(\varepsilon_t \stackrel{\text{iid}}{\sim} \mathcal{N}(0, \sigma^2)\) drives both the observation equation and every state-transition equation simultaneously.

The ETS (Error, Trend, Seasonal) family in fable is strictly an SSOE innovations state-space framework. Smoothing parameters \((\alpha, \beta, \gamma)\) control how much of each one-step surprise updates the latent states, enabling fast exact Gaussian maximum likelihood estimation.

Simple Exponential Smoothing: ETS(A,N,N)

When a series has no systematic trend or seasonality, ETS(A,N,N) models an additive error around a time-varying level \(\ell_t\):

\[ \begin{aligned} y_t &= \ell_{t-1} + \varepsilon_t, \\ \ell_t &= \ell_{t-1} + \alpha \varepsilon_t, \qquad \varepsilon_t \stackrel{\text{iid}}{\sim} \mathcal{N}(0, \sigma^2), \end{aligned} \]

with smoothing parameter \(0 < \alpha < 1\) and initial state \(\ell_0\). Substituting \(\varepsilon_t = y_t - \ell_{t-1}\) recovers the familiar updating rule \(\ell_t = \alpha y_t + (1 - \alpha)\ell_{t-1}\). Its \(h\)-step-ahead point forecast is flat at the terminal level: \(\hat{y}_{T+h \mid T} = \ell_T\) for all \(h \ge 1\).

Exact Equivalence to ARIMA(0,1,1)

Taking the first difference \(\Delta y_t = y_t - y_{t-1}\) of ETS(A,N,N) yields:

\[ \begin{aligned} \Delta y_t &= (\ell_{t-1} + \varepsilon_t) - (\ell_{t-2} + \varepsilon_{t-1}) \\ &= (\ell_{t-1} - \ell_{t-2}) + \varepsilon_t - \varepsilon_{t-1} \\ &= \alpha \varepsilon_{t-1} + \varepsilon_t - \varepsilon_{t-1} \\ &= \varepsilon_t + (\alpha - 1)\varepsilon_{t-1}. \end{aligned} \]

Comparing this expression to the ARIMA(0,1,1) equation \(\Delta y_t = \varepsilon_t + \theta_1 \varepsilon_{t-1}\) establishes an exact mathematical identity: ETS(A,N,N) is equivalent to ARIMA(0,1,1) without drift, with \(\theta_1 = \alpha - 1\) (equivalently \(\alpha = 1 + \theta_1\)).

2. Verifying ETS(A,N,N) = ARIMA(0,1,1) in R

We verify this identity on annual Algerian exports (as a percentage of GDP, 1960–2017) from global_economy, a series with shifting level but no sustained trend.

algeria <- global_economy |>
  filter(Country == "Algeria")

fit_alg <- algeria |>
  model(
    ses      = ETS(Exports ~ error("A") + trend("N") + season("N")),
    arima011 = ARIMA(Exports ~ pdq(0, 1, 1) + PDQ(0, 0, 0))
  )

tidy(fit_alg) |>
  select(.model, term, estimate) |>
  fmt_tbl(digits = 4, caption = "Parameter comparison on Algeria Exports: ETS(A,N,N) vs. ARIMA(0,1,1)")
Parameter comparison on Algeria Exports: ETS(A,N,N) vs. ARIMA(0,1,1)
.model term estimate
ses alpha 0.8400
ses l[0] 39.5390
arima011 ma1 -0.1568

The estimated smoothing weight is \(\hat{\alpha} = 0.840\), giving \(\hat{\alpha} - 1 = -0.160\), which closely matches the estimated moving-average coefficient \(\hat{\theta}_1 = -0.157\). The tiny third-decimal difference arises purely from boundary handling: ETS() jointly estimates the initial level \(\ell_0\) on the raw series, whereas ARIMA(0,1,1) maximizes the exact likelihood on the first-differenced series \(y_t - y_{t-1}\).

Because ETS(A,N,N) has no slope state, applying it to a strongly trending series produces a flat horizontal forecast that immediately underpredicts continued growth. Modeling persistent growth requires adding a slope state \(b_t\).

3. Linear Trend ETS(A,A,N) and Damped Trend ETS(A,Ad,N)

Holt’s Linear Trend: ETS(A,A,N)

Holt’s linear method introduces a local slope state \(b_t\) alongside the level \(\ell_t\), driven by the same single innovation \(\varepsilon_t\):

\[ \begin{aligned} y_t &= \ell_{t-1} + b_{t-1} + \varepsilon_t, \\ \ell_t &= \ell_{t-1} + b_{t-1} + \alpha \varepsilon_t, \\ b_t &= b_{t-1} + \beta \varepsilon_t, \end{aligned} \]

where \(0 < \alpha < 1\) and \(0 < \beta < \alpha\) (or \(0 < \beta^* = \beta/\alpha < 1\)). The \(h\)-step point forecast extrapolates the terminal slope indefinitely:

\[ \hat{y}_{T+h \mid T} = \ell_T + h b_T. \]

Over long horizons, indefinite linear extrapolation routinely over-forecasts economic and demographic series.

Damped Linear Trend: ETS(A,Ad,N)

Gardner and McKenzie (1985) introduced a damping parameter \(\phi\) (typically constrained to \(0.8 \le \phi \le 0.98\) in fable to avoid numerical instability near \(0\) or degeneracy with linear trend at \(1\)):

\[ \begin{aligned} y_t &= \ell_{t-1} + \phi b_{t-1} + \varepsilon_t, \\ \ell_t &= \ell_{t-1} + \phi b_{t-1} + \alpha \varepsilon_t, \\ b_t &= \phi b_{t-1} + \beta \varepsilon_t. \end{aligned} \]

The \(h\)-step forecast sums a geometric progression of damped increments:

\[ \hat{y}_{T+h \mid T} = \ell_T + (\phi + \phi^2 + \dots + \phi^h) b_T = \ell_T + \frac{\phi(1 - \phi^h)}{1 - \phi} b_T \xrightarrow[h \to \infty]{} \ell_T + \frac{\phi}{1 - \phi} b_T. \]

Thus, short-horizon forecasts follow the current slope closely, while long-horizon forecasts bend smoothly toward a finite asymptote.

Worked Example 1: U.S. GDP Forecasts

We compare ETS(A,N,N), ETS(A,A,N), and ETS(A,Ad,N) on annual U.S. GDP (in trillions of USD) from global_economy.

usa_gdp <- global_economy |>
  filter(Country == "United States") |>
  mutate(GDP_T = GDP / 1e12)

fit_usa <- usa_gdp |>
  model(
    SES    = ETS(GDP_T ~ error("A") + trend("N") + season("N")),
    Holt   = ETS(GDP_T ~ error("A") + trend("A") + season("N")),
    Damped = ETS(GDP_T ~ error("A") + trend("Ad") + season("N"))
  )

glance(fit_usa) |>
  select(.model, sigma2, AIC, AICc, BIC) |>
  fmt_tbl(digits = 3, caption = "Information criteria for non-seasonal ETS models on U.S. GDP")
Information criteria for non-seasonal ETS models on U.S. GDP
.model sigma2 AIC AICc BIC
SES 0.169 136.44 136.89 142.62
Holt 0.033 43.00 44.15 53.30
Damped 0.037 50.87 52.52 63.23
fit_usa |>
  forecast(h = 15) |>
  anchor_fc(usa_gdp) |>
  autoplot(usa_gdp |> filter(Year >= 1990), level = NULL, linewidth = 0.9) +
  labs(
    title = "U.S. GDP: Flat vs. Linear vs. Damped Trend Forecasts",
    subtitle = TeX(r"(Damping ($\phi = 0.86$) moderates long-horizon extrapolation)"),
    x = "Year",
    y = "GDP (Trillions of USD)",
    colour = "Model"
  )
Figure 1: Fifteen-year U.S. GDP forecasts comparing flat SES, linear Holt, and damped-trend ETS(A,Ad,N) models.

Notice how SES remains flat at the 2017 level, Holt projects a straight line upward forever, and Damped (\(\hat{\phi} \approx 0.857\)) curves gradually downward from the linear trajectory.

4. Inspecting Latent States on U.S. Private Employment

Because ETS is a state-space model, components() extracts the filtered trajectories of the hidden level \(\ell_t\), slope \(b_t\), and one-step innovations \(\varepsilon_t\). We examine monthly U.S. Total Private payroll employment (us_employment, in millions) from 1990 onward.

us_emp <- us_employment |>
  filter(Title == "Total Private", year(Month) >= 1990) |>
  mutate(Employed_M = Employed / 1e3)

fit_emp <- us_emp |>
  model(
    Holt   = ETS(Employed_M ~ error("A") + trend("A") + season("N")),
    Damped = ETS(Employed_M ~ error("A") + trend("Ad") + season("N"))
  )

tidy(fit_emp) |>
  select(.model, term, estimate) |>
  fmt_tbl(digits = 4, caption = "Estimated SSOE parameters for U.S. Total Private employment (millions)")
Estimated SSOE parameters for U.S. Total Private employment (millions)
.model term estimate
Holt alpha 0.9999
Holt beta 0.0001
Holt l[0] 90.2045
Holt b[0] 0.1050
Damped alpha 0.9999
Damped beta 0.0082
Damped phi 0.9800
Damped l[0] 89.6237
Damped b[0] 0.2464
fit_emp |>
  select(Damped) |>
  components() |>
  autoplot(na.rm = TRUE) +
  labs(
    title = "ETS(A,Ad,N) Latent States: U.S. Total Private Employment",
    subtitle = "Slope state captures expansions and the 2008-2009 recession contraction",
    x = "Month"
  )
Figure 2: Filtered SSOE state components (observed series, level, slope, and one-step innovations) for damped-trend ETS(A,Ad,N) on U.S. Total Private employment.

The filtered slope panel clearly marks the negative growth during the 2001 and 2008–2009 recessions and the sustained recovery afterward. Notice also the recurring regular spikes in the remainder panel: Total Private (CEU0500000001) is not seasonally adjusted, so omitting a seasonal state leaves strong annual cycles in the innovations. Note 21 extends the SSOE equations to capture both additive and multiplicative seasonality.

Practice Exercises

Exercise 1: Trend Damping on Australian Population

Filter global_economy to Country == "Australia" and rescale Population to millions (Pop_M = Population / 1e6). Fit ETS(A,A,N), ETS(A,Ad,N) with free \(\phi\), and ETS(A,Ad,N) with fixed phi = 0.90. Inspect the estimated \(\hat{\phi}\) in the free damped model and compare 15-year forecasts.

Solution

Because Australia’s population grew smoothly and steadily from 1960 to 2017, unconstrained estimation pushes \(\hat{\phi}\) right up against fable’s default upper bound of 0.98, making the free damped model almost indistinguishable from Holt’s linear trend. Imposing a stronger damping factor (phi = 0.90) visibly bends the 15-year trajectory downward.

aus_pop <- global_economy |>
  filter(Country == "Australia") |>
  mutate(Pop_M = Population / 1e6)

fit_pop <- aus_pop |>
  model(
    Holt        = ETS(Pop_M ~ error("A") + trend("A") + season("N")),
    Damped_free = ETS(Pop_M ~ error("A") + trend("Ad") + season("N")),
    Damped_090  = ETS(Pop_M ~ error("A") + trend("Ad", phi = 0.90) + season("N"))
  )

tidy(fit_pop) |>
  filter(term %in% c("alpha", "beta", "phi")) |>
  select(.model, term, estimate) |>
  fmt_tbl(digits = 4, caption = "Smoothing and damping estimates for Australian population")
Smoothing and damping estimates for Australian population
.model term estimate
Holt alpha 0.9999
Holt beta 0.3266
Damped_free alpha 0.9986
Damped_free beta 0.4272
Damped_free phi 0.9800
Damped_090 alpha 0.8682
Damped_090 beta 0.8167
Damped_090 phi 0.9000
fit_pop |>
  forecast(h = 15) |>
  anchor_fc(aus_pop) |>
  autoplot(aus_pop |> filter(Year >= 1995), level = NULL, linewidth = 0.9) +
  labs(
    title = TeX(r"(Australian Population: Sensitivity to Damping $\phi$)", bold = TRUE),
    subtitle = TeX(r"(Unconstrained $\hat{\phi} = 0.98$ vs. fixed $\phi = 0.90$ over 15 years)"),
    x = "Year",
    y = "Population (Millions)",
    colour = "Model"
  )
Figure 3: Fifteen-year Australian population forecasts comparing Holt’s linear trend, free damped trend (phi = 0.98), and strongly damped trend (phi = 0.90).

Exercise 2: Empirical Check of \(\theta_1 \approx \alpha - 1\)

Using global_economy filtered to Country == "Algeria", repeat the ETS(A,N,N) vs. ARIMA(0,1,1) comparison on Imports (% of GDP). Verify that \(\hat{\theta}_1 \approx \hat{\alpha} - 1\) and compare their 5-year point forecasts.

Solution

Both models yield nearly identical smoothing parameters (\(\hat{\alpha} - 1 \approx \hat{\theta}_1\)) and virtually identical flat 5-year point forecasts.

fit_imp <- global_economy |>
  filter(Country == "Algeria") |>
  model(
    ses      = ETS(Imports ~ error("A") + trend("N") + season("N")),
    arima011 = ARIMA(Imports ~ pdq(0, 1, 1) + PDQ(0, 0, 0))
  )

tidy(fit_imp) |>
  select(.model, term, estimate) |>
  fmt_tbl(digits = 4, caption = "ETS(A,N,N) vs. ARIMA(0,1,1) parameters on Algeria Imports")
ETS(A,N,N) vs. ARIMA(0,1,1) parameters on Algeria Imports
.model term estimate
ses alpha 0.7297
ses l[0] 64.1041
arima011 ma1 -0.2656
fit_imp |>
  forecast(h = 5) |>
  as_tibble() |>
  select(.model, Year, .mean) |>
  pivot_wider(names_from = .model, values_from = .mean) |>
  fmt_tbl(digits = 3, caption = "Five-year point forecasts (% of GDP)")
Five-year point forecasts (% of GDP)
Year ses arima011
2018 33.92 33.92
2019 33.92 33.92
2020 33.92 33.92
2021 33.92 33.92
2022 33.92 33.92

Key Takeaways

  • ETS models are Single-Source-of-Error (SSOE) state-space models in which one innovation \(\varepsilon_t\) simultaneously drives the observation equation and every latent state update.
  • ETS(A,N,N) is algebraically equivalent to ARIMA(0,1,1) without drift via \(\theta_1 = \alpha - 1\), and produces flat forecasts unsuitable for trending series.
  • Adding a slope state gives Holt’s linear trend ETS(A,A,N), while multiplying the slope by \(0.8 \le \phi \le 0.98\) yields ETS(A,Ad,N), preventing indefinite linear extrapolation.
  • Calling components() exposes filtered latent states and diagnostic residuals, immediately revealing unmodeled seasonality when present.
Back to top