TimeSeriesAnalysis[LogLikelihood]  log likelihood of a time series coming from an exponential smoothing model

Calling Sequence


LogLikelihood(model, ts, extraparameters)


Description


•

The LogLikelihood command determines the logarithm of the likelihood of obtaining a particular time series from a given exponential smoothing model.

•

For models with additive errors, the value returned is the actual log likelihood: the logarithm of the product of the normal PDF, evaluated at each error value. More precisely, the value is

•

For models with multiplicative error, given a time series consisting of numbers substantially larger than 1, the absolute magnitude of the errors will be much smaller than for a model with additive errors. Conversely, given a time series consisting of numbers substantially smaller than 1, the errors will be much larger than for a model with additive errors. This happens because multiplicative errors are scaled by multiplying them by the forecast in the representation of the model. Nonetheless, we would like to compare models with additive and multiplicative errors on an equal footing. This is accomplished by including an extra term that compensates for this effect: it scales the errors back to their original sizes, by multiplying them by the geometric mean of all forecasts. In particular, the final formula for the likelihood is in this case

•

If any of the parameters used by the model are unset, the log likelihood cannot be computed. If this is the case, a table of parameter values (such as the one generated by Initialize) can be supplied as a third argument. If a parameter occurs both in the model and in the table, the table takes precedence.



Compatibility


•

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



Examples


>


Consider the following time series.
>


 (1) 
We fit a model to it.
>


 (2) 
The log likelihood of the time series arising from the model is computed below.
>


 (3) 
This model has only two parameters.
>


 (4) 
>


 (5) 
Let us consider an alternative parameter settings.
>


 (6) 
This setting is substantially less likely. Now let's consider the version that optimization is initialized with.
>


 (7) 
>


 (8) 
This setting is more likely than the previous one, but less likely than the optimized one.


References



Hyndman, R.J. and Athanasopoulos, G. (2013) Forecasting: principles and practice. http://otexts.org/fpp/. Accessed on 20131009.


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. SpringerVerlag Berlin Heidelberg.


