hessian not positive definite and a laplace app. NaN

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.

hessian not positive definite and a laplace app. NaN

Postby tamara b » Sat Jul 11, 2015 5:40 pm

Dear all,

I estimated a dsge model with a unit root using diffuse filter. The model works without the stimation part but reports several warning and error massages once the estimation part of the code is added.
First it gives a few warnings, that Jacobian is sigular and there is colinearity (but I guess this is fine given the UR), then this one
You did not declare endogenous variables after the estimation/calib_smoother command.

that I don't know how to understand,
then
POSTERIOR KERNEL OPTIMIZATION PROBLEM!
(minus) the hessian matrix at the "mode" is not positive definite!
=> posterior variance of the estimated parameters are not positive.
You should try to change the initial values of the parameters using
the estimated_params_init block, or use another optimization routine.
Warning: The results below are most likely wrong!
> In dynare_estimation_1 at 433
In dynare_estimation at 70
In teza_ss2_e at 519
In dynare at 120
Warning: Matrix is singular to working precision.
> In dynare_estimation_1 at 448
In dynare_estimation at 70
In teza_ss2_e at 519
In dynare at 120



and finally
Log data density [Laplace approximation] is NaN.

Error using chol
Matrix must be positive definite.


can you please help me understand to what error dynare might be pointing?
tamara b
 
Posts: 7
Joined: Fri Sep 27, 2013 10:18 am

Re: hessian not positive definite and a laplace app. NaN

Postby jpfeifer » Sun Jul 12, 2015 8:04 am

1. Collinearity is to be expected when you have a unit root.
2.
You did not declare endogenous variables after the estimation/calib_smoother command.
just warns that after the estimation command, you did not specify a list of variables for which to compute endogenous moments. You can ignore this.

3. This is a common problem (dozens of posts in the forum). First of all, take a look at the mode check plots if there is anything strange (in particular if there are any horizontal lines indicating non-identifiability).
------------
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: hessian not positive definite and a laplace app. NaN

Postby tamara b » Tue Jul 14, 2015 8:15 am

thank you!
i digged a little through various topics and found a solution in setting the mode_compute to 6... and that solved all the issues..
now I have to look into how and why..
tamara b
 
Posts: 7
Joined: Fri Sep 27, 2013 10:18 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests

cron