log likelihood of a time series coming from an exponential smoothing model
LogLikelihood(model, ts, extraparameters)
Exponential smoothing model
Time series consisting of a single data set
(optional) table of parameter values
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
where εt is the additive error at time t, for t=1..N. Typically (if σ is not specified when defining the model)σ is optimized to maximize this value; that is, it is set to ∑t=1N⁡εt2N. With this value substituted, the likelihood becomes
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
where ft is the forecast at time t, for t=1..N.
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.
Consider the following time series.
ts≔Time seriesdata set8 rows of data:2013 - 2020
We fit a model to it.
model≔< an ETS(A,N,N) model >
The log likelihood of the time series ts arising from the model model is computed below.
This model has only two parameters.
Let us consider an alternative parameter settings.
This setting is substantially less likely. Now let's consider the version that optimization is initialized with.
This setting is more likely than the previous one, but less likely than the optimized one.
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[LogLikelihood] command was introduced in Maple 18.
For more information on Maple 18 changes, see Updates in Maple 18.
Download Help Document
What kind of issue would you like to report? (Optional)