TimeSeriesAnalysis
Specialize
specialize an exponential smoothing model
Calling Sequence
Parameters
Description
Examples
References
Compatibility
Specialize(model, ts, opts)
model
-
Exponential smoothing model
ts
Time series consisting of a single data set
opts
(optional) equation of the form avoidnumericalproblems = true or false
The Specialize command takes a general Exponential Smoothing model, model (one where multiple options for errors, trend, and/or seasonal influence are possible), and returns the list of all specialized models that are compatible with the settings in model. Specialized models here means that these properties have a single, well-defined value.
In the sense of the previous paragraph, a general model is displayed as, for example, < an ETS(*,*,*) model > with at least one asterisk, whereas a specialized model is displayed as, for example, < an ETS(A,Ad,N) model >, with no asterisks.
Only models appropriate for the given time series are returned. That is, if the time series has period 1 and the period for model has not been explicitly specified in its construction, or for periods greater than 24, no models with seasonal properties are used; and if the time series contains zeroes or negative numbers, then models with multiplicative errors are also disabled.
Some combinations of settings lead to numerical problems. In particular, the variance of forecasts is infinite. Models with such settings are, by default, not returned. If you want to include such models, you can use the option avoidnumericalproblems = false.
with⁡TimeSeriesAnalysis:
Consider an all-positive time series with period greater than one:
ts≔TimeSeries⁡1.8,3.4,2.1,2.9,2.4,2.9,2.5,3.1,period=2
ts≔Time seriesdata set8 rows of data:2016 - 2023
This will generate all models that do not have numerical problems:
Specialize⁡ExponentialSmoothingModel⁡,ts
< an ETS(A,A,A) model >,< an ETS(A,A,N) model >,< an ETS(A,Ad,A) model >,< an ETS(A,Ad,N) model >,< an ETS(A,N,A) model >,< an ETS(A,N,N) model >,< an ETS(M,A,A) model >,< an ETS(M,A,M) model >,< an ETS(M,A,N) model >,< an ETS(M,Ad,A) model >,< an ETS(M,Ad,M) model >,< an ETS(M,Ad,N) model >,< an ETS(M,M,M) model >,< an ETS(M,M,N) model >,< an ETS(M,Md,M) model >,< an ETS(M,Md,N) model >,< an ETS(M,N,A) model >,< an ETS(M,N,M) model >,< an ETS(M,N,N) model >
If we want all 30 possible models, we can do this:
Specialize⁡ExponentialSmoothingModel⁡,ts,avoidnumericalproblems=false
< an ETS(A,A,A) model >,< an ETS(A,A,M) model >,< an ETS(A,A,N) model >,< an ETS(A,Ad,A) model >,< an ETS(A,Ad,M) model >,< an ETS(A,Ad,N) model >,< an ETS(A,M,A) model >,< an ETS(A,M,M) model >,< an ETS(A,M,N) model >,< an ETS(A,Md,A) model >,< an ETS(A,Md,M) model >,< an ETS(A,Md,N) model >,< an ETS(A,N,A) model >,< an ETS(A,N,M) model >,< an ETS(A,N,N) model >,< an ETS(M,A,A) model >,< an ETS(M,A,M) model >,< an ETS(M,A,N) model >,< an ETS(M,Ad,A) model >,< an ETS(M,Ad,M) model >,< an ETS(M,Ad,N) model >,< an ETS(M,M,A) model >,< an ETS(M,M,M) model >,< an ETS(M,M,N) model >,< an ETS(M,Md,A) model >,< an ETS(M,Md,M) model >,< an ETS(M,Md,N) model >,< an ETS(M,N,A) model >,< an ETS(M,N,M) model >,< an ETS(M,N,N) model >
A model with negative data and period 1 has only three applicable models.
ts2≔TimeSeries⁡2.7,1.8,0.3,−2.3,−2.6,−0.9
ts2≔Time seriesdata set6 rows of data:2018 - 2023
Specialize⁡ExponentialSmoothingModel⁡,ts2
< an ETS(A,A,N) model >,< an ETS(A,Ad,N) model >,< an ETS(A,N,N) model >
Hyndman, R.J. and Athanasopoulos, G. (2013) Forecasting: principles and practice. http://otexts.org/fpp/. Accessed on 2013-10-09.
Hyndman, R.J., Koehler, A.B., Ord, J.K., and Snyder, R.D. (2008) Forecasting with Exponential Smoothing: The State Space Approach. Springer Series in Statistics. Springer-Verlag Berlin Heidelberg.
The TimeSeriesAnalysis[Specialize] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
See Also
Initialize
LogLikelihood
Optimize
Download Help Document