Specialize - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


TimeSeriesAnalysis

  

Specialize

  

specialize an exponential smoothing model

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

Specialize(model, ts, opts)

Parameters

model

-

Exponential smoothing model

ts

-

Time series consisting of a single data set

opts

-

(optional) equation of the form avoidnumericalproblems = true or false

Description

• 

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.

Examples

withTimeSeriesAnalysis&colon;

Consider an all-positive time series with period greater than one:

tsTimeSeries1.8&comma;3.4&comma;2.1&comma;2.9&comma;2.4&comma;2.9&comma;2.5&comma;3.1&comma;period=2

tsTime seriesdata set8 rows of data:2016 - 2023

(1)

This will generate all models that do not have numerical problems:

SpecializeExponentialSmoothingModel&comma;ts

< an ETS(A,A,A) model >&comma;< an ETS(A,A,N) model >&comma;< an ETS(A,Ad,A) model >&comma;< an ETS(A,Ad,N) model >&comma;< an ETS(A,N,A) model >&comma;< an ETS(A,N,N) model >&comma;< an ETS(M,A,A) model >&comma;< an ETS(M,A,M) model >&comma;< an ETS(M,A,N) model >&comma;< an ETS(M,Ad,A) model >&comma;< an ETS(M,Ad,M) model >&comma;< an ETS(M,Ad,N) model >&comma;< an ETS(M,M,M) model >&comma;< an ETS(M,M,N) model >&comma;< an ETS(M,Md,M) model >&comma;< an ETS(M,Md,N) model >&comma;< an ETS(M,N,A) model >&comma;< an ETS(M,N,M) model >&comma;< an ETS(M,N,N) model >

(2)

If we want all 30 possible models, we can do this:

SpecializeExponentialSmoothingModel&comma;ts&comma;avoidnumericalproblems=false

< an ETS(A,A,A) model >&comma;< an ETS(A,A,M) model >&comma;< an ETS(A,A,N) model >&comma;< an ETS(A,Ad,A) model >&comma;< an ETS(A,Ad,M) model >&comma;< an ETS(A,Ad,N) model >&comma;< an ETS(A,M,A) model >&comma;< an ETS(A,M,M) model >&comma;< an ETS(A,M,N) model >&comma;< an ETS(A,Md,A) model >&comma;< an ETS(A,Md,M) model >&comma;< an ETS(A,Md,N) model >&comma;< an ETS(A,N,A) model >&comma;< an ETS(A,N,M) model >&comma;< an ETS(A,N,N) model >&comma;< an ETS(M,A,A) model >&comma;< an ETS(M,A,M) model >&comma;< an ETS(M,A,N) model >&comma;< an ETS(M,Ad,A) model >&comma;< an ETS(M,Ad,M) model >&comma;< an ETS(M,Ad,N) model >&comma;< an ETS(M,M,A) model >&comma;< an ETS(M,M,M) model >&comma;< an ETS(M,M,N) model >&comma;< an ETS(M,Md,A) model >&comma;< an ETS(M,Md,M) model >&comma;< an ETS(M,Md,N) model >&comma;< an ETS(M,N,A) model >&comma;< an ETS(M,N,M) model >&comma;< an ETS(M,N,N) model >

(3)

A model with negative data and period 1 has only three applicable models.

ts2TimeSeries2.7&comma;1.8&comma;0.3&comma;2.3&comma;2.6&comma;0.9

ts2Time seriesdata set6 rows of data:2018 - 2023

(4)

SpecializeExponentialSmoothingModel&comma;ts2

< an ETS(A,A,N) model >&comma;< an ETS(A,Ad,N) model >&comma;< an ETS(A,N,N) model >

(5)

References

  

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.

Compatibility

• 

The TimeSeriesAnalysis[Specialize] command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

Exponential smoothing model

Initialize

LogLikelihood

Optimize

TimeSeriesAnalysis