Multivariate Kalman filter became singular.

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Multivariate Kalman filter became singular.

Postby zapadedo » Sun Mar 05, 2017 4:00 pm

Solved. Thanks!
Last edited by zapadedo on Tue Apr 11, 2017 8:13 pm, edited 1 time in total.
zapadedo
 
Posts: 9
Joined: Sun Mar 05, 2017 3:42 pm

Re: Multivariate Kalman filter became singular.

Postby jpfeifer » Sun Mar 05, 2017 5:57 pm

That means that your model implies an exact linear combination between your observables. It may be related to
Code: Select all
            y_star - h*y_star(-1) = y_star(+1) - h*y_star - (1/sigma)*(1-h)*(r_star - pi_star(+1));

It seems every single variable here is observed.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Multivariate Kalman filter became singular.

Postby zapadedo » Mon Mar 06, 2017 1:40 am

Solved. Thanks!
Last edited by zapadedo on Tue Apr 11, 2017 8:14 pm, edited 1 time in total.
zapadedo
 
Posts: 9
Joined: Sun Mar 05, 2017 3:42 pm

Re: Multivariate Kalman filter became singular.

Postby jpfeifer » Tue Mar 07, 2017 12:12 pm

The problem is that your model implies an exact linear relationship between the observables. If this exact relationship is not satisfied in the data (which is usually the case, because the model is stylized and misspecified), your model will assign likelihood/density zero to the data. That is, the model is flat out rejected by the data, because the data you have cannot be generated by the model. The data simply violates a key relationship implied by the model.

There are two ways to deal with this:
1. Drop one of the observables
2. Add measurement error to at least one observable

Please note that this is discussed in more detail in my Guide to Observation Equations.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Multivariate Kalman filter became singular.

Postby zapadedo » Sat Mar 11, 2017 1:01 am

Solved. Thanks!
Last edited by zapadedo on Tue Apr 11, 2017 8:14 pm, edited 1 time in total.
zapadedo
 
Posts: 9
Joined: Sun Mar 05, 2017 3:42 pm

Re: Multivariate Kalman filter became singular.

Postby jpfeifer » Sun Mar 12, 2017 12:20 pm

Have a look at the mode_check-plots. It seems your mode is right at the corner of the existence/uniqueness regions (the red dots). You need to understand why this happens.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Multivariate Kalman filter became singular.

Postby zapadedo » Sun Mar 12, 2017 11:38 pm

Thanks - would that be more likely due to a misspecification of the model, or an improper treatment of the data?
zapadedo
 
Posts: 9
Joined: Sun Mar 05, 2017 3:42 pm

Re: Multivariate Kalman filter became singular.

Postby jpfeifer » Mon Mar 13, 2017 7:15 am

Hard to tell. For now I would focus on the data. Looking at the data plots, there are at least two issues:
1. obs_r_star is not mean 0 although the model equivalent is
2. obs_y_h has a very extreme seasonal pattern
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests