Ordinary filter

Using the usual notations we define the ordinary filter as follows:

Univariate model

Update step t
Forecast step t

Multivariate model

In the multi-variate case, we use a slightly different (but strictly equivalent) implementation:

Update step t
Forecast step t

This implementation is robust (the covariance matrices are symmetric by construction) and makes the computation of the likelihood easy. Missing observations are excluded from the computation by adapting the size of the different matrices and arrays accordingly. In that way, we don’t have any problem of underdetermined systems.

Implementation

The ordinary filter is implemented in the classes demetra.ssf.univariate.OrdinaryFilter and demetra.ssf.multivariate.MultivariateOrdinaryFilter.

ssf algorithms filter kalman