An implementation of Bayesian ETS models named LGT (for non-seasonal time series data) and SGT (for seasonal time series data). These models have been tested on the M3 competition dataset in which they outperform all of the models originally participating in the competition.
package
Getting started
The best way to get started with the package is to have a look at the vignettes and the various demos that ship with the package. There is a vignette with examples of how to use the various methods included in the package, and a vignette that discusses some of the theoretical background.
As to the demos, you can find their source code in the "demo" subfolder in the package sources (available on CRAN). There are some basic demos and other more advanced ones that run on subsets of the M3 dataset and run potentially for hours.
The package contains models for seasonal and non-seasonal data, allows for external regressors, and different error distributions. In the following, we briefly also present some of the theoretical background of the methods.
LGT (Local and Global Trend)
The LGT model is constructed based on Holt’s linear trend method. The model is designed to allow for a more general term of error by allowing for heteroscedasticity and an addition of constant "global" trend in the model.
Model Equations
In terms of mathematical notation, the model can be fully represented as follows:
yt: value of the dependent variable of interest at time t
yft+1: forecasted value of y at time t+1 given information up to time t
\sigmaft+1: forecasted deviation at time t+1 given information up to time t
lt: level at time t
bt: local trend at time t
Parameters
ν: degrees of freedom of the t-distribution
γ: coefficient of the global trend
ρ: power coefficient of the global trend
λ: damping coefficient of the local trend
α: smoothing parameter for the level term
β: smoothing parameter for the local trend term
σ: coefficient of the size of error function
τ: power coefficient of the size of error function
ξ: base or minimum value of the size of error function
SGT (Seasonal, Global Trend)
The SGT model was designed as a seasonal counterpart to the LGT model. Similar to LGT, this model is devised to allow for a global trend term and heteroscedastic error.
wt: second seasonality factor prevailing at time t
d: number of (second) seasons in a complete period (e.g. 12 for monthly, 4 for quarterly)
Additional Parameters
δ: smoothing parameters for the second seasonality factors
NA
The best way to get started with the package is to have a look at the vignettes and the various demos that ship with the package. There is a vignette with examples of how to use the various methods included in the package, and a vignette that discusses some of the theoretical background.
As to the demos, you can find their source code in the "demo" subfolder in the package sources (available on CRAN). There are some basic demos and other more advanced ones that run on subsets of the M3 dataset and run potentially for hours.
The package contains models for seasonal and non-seasonal data, allows for external regressors, and different error distributions. In the following, we briefly also present some of the theoretical background of the methods.