Matrix must be positive definite

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.

Matrix must be positive definite

Postby 82323100 » Sat Mar 26, 2011 3:14 pm

Dear everyone:
please help me! My mod codes cannot works.


improvement < crit termination
smallest step still improving too slow, reversed gradient
Objective function at mode: 1127.793723
Objective function at mode: 1127.793723

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!
??? Error using ==> chol
Matrix must be positive definite.

Error in ==> metropolis_hastings_initialization at 52
d = chol(vv);

Error in ==> random_walk_metropolis_hastings at 58
[ ix2, ilogpo2, ModelName, MhDirectoryName, fblck, fline, npar, nblck,
nruns, NewFile, MAX_nruns, d ] = ...

Error in ==> dynare_estimation_1 at 1106
feval(options_.posterior_sampling_method,'DsgeLikelihood',options_.proposal_distribution,xparam1,invhess,bounds,gend,data,...

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> moni at 259
dynare_estimation(var_list_);

Error in ==> dynare at 132
evalin('base',fname) ;
Attachments
data_Est.xls
data
(26.5 KiB) Downloaded 138 times
moni.mod
moni
(2.72 KiB) Downloaded 148 times
82323100
 
Posts: 9
Joined: Thu Sep 09, 2010 1:28 am

Re: Matrix must be positive definite

Postby aeneous » Sun Mar 27, 2011 7:11 am

There's been several threads on this topic. I think the suggestion is to use an MCMC algorithm for finding the posterior modes, i.e. use mode_compute=6.
aeneous
 
Posts: 13
Joined: Fri Mar 04, 2011 8:12 pm

Re: Matrix must be positive definite

Postby rzulfadin » Tue Mar 29, 2011 12:34 am

Right. Using mode_compute=6, which almost always able to find posterior mode, can solve the problem. However, it will take much longer time to compute.

Regarding the problem, is anyone has any idea of why the problem (the "not positive definite" or "non-invertible hessian" problem) occurs? Is it data problem (for example badly scaled variables)? Is it model specification problem? or is it computation problem?

Thank you.
RZ
rzulfadin
 
Posts: 5
Joined: Tue Feb 01, 2011 11:34 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 6 guests