## 9.10 ARIMA vs ETS

It is a commonly held myth that ARIMA models are more general than exponential smoothing. While linear exponential smoothing models are all special cases of ARIMA models, the non-linear exponential smoothing models have no equivalent ARIMA counterparts. On the other hand, there are also many ARIMA models that have no exponential smoothing counterparts. In particular, all ETS models are non-stationary, while some ARIMA models are stationary. Figure 9.28 shows the overlap between the two model classes.

The ETS models with seasonality or non-damped trend or both have two unit roots (i.e., they need two levels of differencing to make them stationary). All other ETS models have one unit root (they need one level of differencing to make them stationary).

Table 9.3 gives the equivalence relationships for the two classes of models. For the seasonal models, the ARIMA parameters have a large number of restrictions.

ETS model | ARIMA model | Parameters |
---|---|---|

ETS(A,N,N) | ARIMA(0,1,1) | \(\theta_1=\alpha-1\) |

ETS(A,A,N) | ARIMA(0,2,2) | \(\theta_1=\alpha+\beta-2\) |

\(\theta_2=1-\alpha\) | ||

ETS(A,A\(_d\),N) | ARIMA(1,1,2) | \(\phi_1=\phi\) |

\(\theta_1=\alpha+\phi\beta-1-\phi\) | ||

\(\theta_2=(1-\alpha)\phi\) | ||

ETS(A,N,A) | ARIMA(0,1,\(m\))(0,1,0)\(_m\) | |

ETS(A,A,A) | ARIMA(0,1,\(m+1\))(0,1,0)\(_m\) | |

ETS(A,A\(_d\),A) | ARIMA(0,1,\(m+1\))(0,1,0)\(_m\) |

The AICc is useful for selecting between models in the same class. For example, we can use it to select an ARIMA model between candidate ARIMA models^{17} or an ETS model between candidate ETS models. However, it cannot be used to compare between ETS and ARIMA models because they are in different model classes, and the likelihood is computed in different ways. The examples below demonstrate selecting between these classes of models.

### Example: Comparing `ARIMA()`

and `ETS()`

on non-seasonal data

We can use time series cross-validation to compare an ARIMA model and an ETS model. Let’s consider the Australian population from the `global_economy`

dataset, as introduced in Section 8.2.

```
<- global_economy %>% filter(Code == "AUS") %>%
aus_economy mutate(Population = Population/1e6)
%>%
aus_economy slice(-n()) %>%
stretch_tsibble(.init = 10) %>%
model(
ETS(Population),
ARIMA(Population)
%>%
) forecast(h = 1) %>%
accuracy(aus_economy)
#> # A tibble: 2 x 11
#> .model Country .type ME RMSE MAE MPE MAPE MASE RMSSE ACF1
#> <chr> <fct> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 ARIMA(Popul… Austra… Test 0.0420 0.194 0.0789 0.277 0.509 0.317 0.746 0.188
#> 2 ETS(Populat… Austra… Test 0.0202 0.0774 0.0543 0.112 0.327 0.218 0.298 0.506
```

In this case the ETS model has higher accuracy on the cross-validated performance measures. Below we generate and plot forecasts for the next 5 years generated from an ETS model.

```
%>%
aus_economy model(ETS(Population)) %>%
forecast(h = "5 years") %>%
autoplot(aus_economy)
```

### Example: Comparing `ARIMA()`

and `ETS()`

on seasonal data

In this case we want to compare seasonal ARIMA and ETS models applied to the quarterly cement production data (from `aus_production`

). Because the series is relatively long, we can afford to use a training and a test set rather than time series cross-validation. The advantage is that this is much faster. We create a training set from the beginning of 1988 to the end of 2007 and select an ARIMA and an ETS model using the `ARIMA()`

and `ETS()`

functions.

```
# Consider the cement data beginning in 1988
<- aus_production %>%
cement filter(year(Quarter) >= 1988)
# Use 20 years of the data as the training set
<- cement %>%
train filter(year(Quarter) <= 2007)
```

The output below shows the ARIMA model selected and estimated by `ARIMA()`

. The ARIMA model does well in capturing all the dynamics in the data as the residuals seem to be white noise.

```
<- train %>% model(ARIMA(Cement))
fit_arima report(fit_arima)
```

```
#> Series: Cement
#> Model: ARIMA(1,0,1)(2,1,1)[4] w/ drift
#>
#> Coefficients:
#> ar1 ma1 sar1 sar2 sma1 constant
#> 0.8886 -0.2366 0.081 -0.2345 -0.8979 5.388
#> s.e. 0.0842 0.1334 0.157 0.1392 0.1780 1.484
#>
#> sigma^2 estimated as 11456: log likelihood=-463.5
#> AIC=941 AICc=942.7 BIC=957.4
gg_tsresiduals(fit_arima, lag_max = 16)
```

```
augment(fit_arima) %>%
features(.resid, ljung_box, lag = 16, dof = 6)
```

```
#> # A tibble: 1 x 3
#> .model lb_stat lb_pvalue
#> <chr> <dbl> <dbl>
#> 1 ARIMA(Cement) 6.37 0.783
```

The output below also shows the ETS model selected and estimated by `ETS()`

. This model also does well in capturing all the dynamics in the data, as the residuals similarly appear to be white noise.

```
<- train %>% model(ETS(Cement))
fit_ets report(fit_ets)
```

```
#> Series: Cement
#> Model: ETS(M,N,M)
#> Smoothing parameters:
#> alpha = 0.7534
#> gamma = 1e-04
#>
#> Initial states:
#> l s1 s2 s3 s4
#> 1695 1.031 1.045 1.011 0.9122
#>
#> sigma^2: 0.0034
#>
#> AIC AICc BIC
#> 1104 1106 1121
%>% gg_tsresiduals(lag_max = 16) fit_ets
```

```
augment(fit_ets) %>%
features(.resid, ljung_box, lag = 16, dof = 6)
```

```
#> # A tibble: 1 x 3
#> .model lb_stat lb_pvalue
#> <chr> <dbl> <dbl>
#> 1 ETS(Cement) 9.82 0.456
```

The output below evaluates the forecasting performance of the two competing models over the test set. In this case the ARIMA model seems to be the slightly more accurate model based on the test set RMSE, MAPE and MASE.

```
# Generate forecasts and compare accuracy over the test set
bind_rows(
%>% accuracy(),
fit_arima %>% accuracy(),
fit_ets %>% forecast(h = "2 years 6 months") %>%
fit_arima accuracy(cement),
%>% forecast(h = "2 years 6 months") %>%
fit_ets accuracy(cement)
)#> # A tibble: 4 x 10
#> .model .type ME RMSE MAE MPE MAPE MASE RMSSE ACF1
#> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>
#> 1 ARIMA(Cement) Training -6.21 100. 79.9 -0.670 4.37 0.546 0.582 -0.0113
#> 2 ETS(Cement) Training 12.8 103. 80.0 0.427 4.41 0.547 0.596 -0.0528
#> 3 ARIMA(Cement) Test -161. 216. 186. -7.71 8.68 1.27 1.26 0.387
#> 4 ETS(Cement) Test -171. 222. 191. -8.07 8.85 1.30 1.29 0.579
```

Below we generate and plot forecasts from the ARIMA model for the next 3 years.

```
# Generate forecasts from an ARIMA model
%>% model(ARIMA(Cement)) %>% forecast(h="3 years") %>% autoplot(cement) cement
```

As already noted, comparing information criteria is only valid for ARIMA models of the same orders of differencing.↩︎