TimeSeriesAnalysis - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Statistics and Data Analysis : Time Series Analysis Package : TimeSeriesAnalysis/Initialize

TimeSeriesAnalysis

  

Initialize

  

initialize an exponential smoothing model

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

Initialize(model, ts)

Parameters

model

-

Exponential smoothing model

ts

-

Time series consisting of a single data set

Description

• 

The Initialize command initializes the optimization process run by Optimize for finding suitable parameters and initial conditions for a specialized Exponential smoothing model.

• 

It returns a table, indexed by the names of parameters or initial conditions. The value corresponding to an index is the number that that parameter or initial condition will be initialized to during the optimization process.

• 

Parameters that are fixed beforehand are not given in the resulting table.

Examples

withTimeSeriesAnalysis:

Consider the following time series.

tsTimeSeries1.8,3.4,2.1,2.9,2.4,2.9,2.5,3.1,period=2

ts:=Time seriesdata set8 rows of data:2008 - 2015

(1)

Specialize this into all applicable models.

modelsSpecializeExponentialSmoothingModel,ts

models:=< 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)

Next, initialize each of these models.

initialization_tablesmapInitialize&comma;models&comma;ts

initialization_tables:=tables&equals;0.3750000000000000.512500000000000&comma;b0&equals;0.0351190476190477&comma;l0&equals;2.41071428571428&comma;&alpha;&equals;12&comma;&gamma;&equals;1100&comma;&beta;&equals;110&comma;tableb0&equals;0.0773809523809526&comma;l0&equals;2.28928571428571&comma;&alpha;&equals;12&comma;&beta;&equals;110&comma;table&phi;&equals;0.978&comma;s&equals;0.3750000000000000.512500000000000&comma;b0&equals;0.0351190476190477&comma;l0&equals;2.41071428571428&comma;&alpha;&equals;12&comma;&gamma;&equals;1100&comma;&beta;&equals;110&comma;table&phi;&equals;0.978&comma;b0&equals;0.0773809523809526&comma;l0&equals;2.28928571428571&comma;&alpha;&equals;12&comma;&beta;&equals;110&comma;tables&equals;0.3812500000000000.518750000000000&comma;l0&equals;2.56875000000000&comma;&alpha;&equals;12&comma;&gamma;&equals;1100&comma;tablel0&equals;2.63750000000000&comma;&alpha;&equals;12&comma;tables&equals;0.3750000000000000.512500000000000&comma;b0&equals;0.0351190476190477&comma;l0&equals;2.41071428571428&comma;&alpha;&equals;12&comma;&gamma;&equals;1100&comma;&beta;&equals;110&comma;tables&equals;0.8678777973255601.22504867885882&comma;b0&equals;0.0471683829401126&comma;l0&equals;2.31025399169193&comma;&alpha;&equals;12&comma;&gamma;&equals;1100&comma;&beta;&equals;110&comma;tableb0&equals;0.0773809523809526&comma;l0&equals;2.28928571428571&comma;&alpha;&equals;12&comma;&beta;&equals;110&comma;table&phi;&equals;0.978&comma;s&equals;0.3750000000000000.512500000000000&comma;b0&equals;0.0351190476190477&comma;l0&equals;2.41071428571428&comma;&alpha;&equals;12&comma;&gamma;&equals;1100&comma;&beta;&equals;110&comma;table&phi;&equals;0.978&comma;s&equals;0.8663373208274781.22045629439217&comma;b0&equals;0.0474547670432530&comma;l0&equals;2.31594155793230&comma;&alpha;&equals;12&comma;&gamma;&equals;1100&comma;&beta;&equals;110&comma;table&phi;&equals;0.978&comma;b0&equals;0.0773809523809526&comma;l0&equals;2.28928571428571&comma;&alpha;&equals;12&comma;&beta;&equals;110&comma;tables&equals;0.8664119113811891.22047262484913&comma;b0&equals;1.02015799136523&comma;l0&equals;2.30027768778461&comma;&alpha;&equals;12&comma;&gamma;&equals;1100&comma;&beta;&equals;110&comma;tableb0&equals;1.03693927243796&comma;l0&equals;2.19796110842741&comma;&alpha;&equals;12&comma;&beta;&equals;110&comma;table&phi;&equals;0.978&comma;s&equals;0.8664119113811891.22047262484913&comma;b0&equals;1.02015799136523&comma;l0&equals;2.30027768778461&comma;&alpha;&equals;12&comma;&gamma;&equals;1100&comma;&beta;&equals;110&comma;table&phi;&equals;0.978&comma;b0&equals;1.03693927243796&comma;l0&equals;2.19796110842741&comma;&alpha;&equals;12&comma;&beta;&equals;110&comma;tables&equals;0.3809891091774520.519010890822548&comma;l0&equals;2.55701180603960&comma;&alpha;&equals;12&comma;&gamma;&equals;1100&comma;tables&equals;0.8694900847111761.21615190130110&comma;l0&equals;2.51642347897302&comma;&alpha;&equals;12&comma;&gamma;&equals;1100&comma;tablel0&equals;2.58767635294028&comma;&alpha;&equals;12

(3)

Because the models have different sets of parameters, the tables have different sets of indices.

mapprint&comma;mapindices&comma;initialization_tables&comma;&apos;nolist&apos;&colon;

s&comma;b0&comma;l0&comma;&alpha;&comma;&gamma;&comma;&beta;

b0&comma;l0&comma;&alpha;&comma;&beta;

&phi;&comma;s&comma;b0&comma;l0&comma;&alpha;&comma;&gamma;&comma;&beta;

&phi;&comma;b0&comma;l0&comma;&alpha;&comma;&beta;

s&comma;l0&comma;&alpha;&comma;&gamma;

l0&comma;&alpha;

s&comma;b0&comma;l0&comma;&alpha;&comma;&gamma;&comma;&beta;

s&comma;b0&comma;l0&comma;&alpha;&comma;&gamma;&comma;&beta;

b0&comma;l0&comma;&alpha;&comma;&beta;

&phi;&comma;s&comma;b0&comma;l0&comma;&alpha;&comma;&gamma;&comma;&beta;

&phi;&comma;s&comma;b0&comma;l0&comma;&alpha;&comma;&gamma;&comma;&beta;

&phi;&comma;b0&comma;l0&comma;&alpha;&comma;&beta;

s&comma;b0&comma;l0&comma;&alpha;&comma;&gamma;&comma;&beta;

b0&comma;l0&comma;&alpha;&comma;&beta;

&phi;&comma;s&comma;b0&comma;l0&comma;&alpha;&comma;&gamma;&comma;&beta;

&phi;&comma;b0&comma;l0&comma;&alpha;&comma;&beta;

s&comma;l0&comma;&alpha;&comma;&gamma;

s&comma;l0&comma;&alpha;&comma;&gamma;

l0&comma;&alpha;

(4)

Every model contains l0, the initial value for the variable t. The values are different for different models:

mapx&rarr;xl0&comma;initialization_tables

2.41071428571428&comma;2.28928571428571&comma;2.41071428571428&comma;2.28928571428571&comma;2.56875000000000&comma;2.63750000000000&comma;2.41071428571428&comma;2.31025399169193&comma;2.28928571428571&comma;2.41071428571428&comma;2.31594155793230&comma;2.28928571428571&comma;2.30027768778461&comma;2.19796110842741&comma;2.30027768778461&comma;2.19796110842741&comma;2.55701180603960&comma;2.51642347897302&comma;2.58767635294028

(5)

On the other hand, α (also present in all models) is always initialized to 12.

mapx&rarr;x&alpha;&comma;initialization_tables

12&comma;12&comma;12&comma;12&comma;12&comma;12&comma;12&comma;12&comma;12&comma;12&comma;12&comma;12&comma;12&comma;12&comma;12&comma;12&comma;12&comma;12&comma;12

(6)

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[Initialize] command was introduced in Maple 18.

• 

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

See Also

Exponential smoothing model

LogLikelihood

Optimize

Specialize

TimeSeriesAnalysis

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam