|
Calling Sequence
|
|
Optimize(model, ts, init)
|
|
Parameters
|
|
|
|
Description
|
|
•
|
The Optimize command will fit unassigned parameter values of model to maximize the likelihood of obtaining the time series ts.
|
•
|
If a parameter was fixed when creating model, its value will not be subject to optimization. For example, if the calling sequence of ExponentialSmoothingModel includes the option alpha = 0.3, then calling Optimize on the resulting model keeps alpha fixed. (This is also true if Optimize is called automatically when ExponentialSmoothingModel gets a Time series as its first argument.)
|
•
|
Optimize is only guaranteed to find a local optimum; it calls Optimization[NLPSolve]. It uses the nonlinear simplex method (also known as Nelder-Mead).
|
•
|
The optimization process needs to be started with an initial point; this point is given by init. It uses the format returned by Initialize: it is a table with parameter names as indices and parameter values as values. If init is not given, Optimize calls Initialize and uses its output by default.
|
|
|
Examples
|
|
>
|
|
Consider the following time series. It represents international tourist visitor nights in Australia.
>
|
|
| (1) |
>
|
|
| (2) |
Transform to a collection of specialized models.
>
|
|
| (3) |
Find initial points for optimization for all of these.
>
|
|
Optimize all of them.
>
|
|
Alternatively, we can let Optimize call Initialize for us.
>
|
|
| (4) |
>
|
|
| (5) |
Evaluate the Bayesian information criterion for each model.
>
|
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| (6) |
Compare all models' fits.
>
|
|
| (7) |
>
|
|
|
|
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[Optimize] command was introduced in Maple 18.
|
|
|
|