Estimation of linearized DSGE model

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.

Estimation of linearized DSGE model

Postby phuong.macro » Wed Jun 28, 2017 9:45 am

Hi everyone

I have a questions related to Dynare and estimation of liniearized DSGE model. As far as I understand about the estimation of liniearized DSGE model that

Step 1, the posterior mode and Hessian matrix evaluated at the mode is computed by standard numerical optimization routines.

Step 2, The Hessian matrix is used in the MH algorithm to generate a sample from the posterior distribution

So I found that the step 2 will be excuted mainly based on the result of the step 1.

Now turning to Dynare

To do this step in Dynare, I declare a command as following

For step 1

I set the method of optimization with 7 (mode_compute = 7),

then set up the maximum number of interation equals to 100,000 a long with the maximum number of function evaluation of 100,000

In dynare as: optim = ('MaxIter',100000,'MaxFunEvals',100000)

After the initial computation, then I use the previous estimated result as the starting point for next computation by declaring the command in Dynare:

mode_file=ALEstim_phuong_mode.

Then I do it again and again until when I can know that I should stop this procedure to move to step 2? or based on which criterial point I can stop doing step 1 in Dynare then to let Dynare doing step 2 (MH algorithm)?

(I see during this procedure of step 1, the likelihood reduces so much, but some rounds it does not)

Second question is what happen if dynare report that the Hessian matrix is positive? What should I do for this? (My understanding is that to compute MH algorithm, then the Hessian matrix will be use and the Hessian matrix should be negative, is this correct understanding?)

Thank you a lot
phuong.macro
 
Posts: 28
Joined: Mon Jun 27, 2016 7:35 pm

Re: Estimation of linearized DSGE model

Postby jpfeifer » Wed Jun 28, 2017 8:37 pm

The goal in step 1 is to find the global mode, i.e. the highest point. You typically stop mode-finding if there is no more improvement in the objective function. If you found the true mode, you should not see parameter drift in the subsequent MCMC, i.e. the convergence diagnostics should indicate convergence.

Regarding the Hessian, it should be negative definite at the maximum/mode. But Dynare works with minus the posterior density as numerical optimizers are minimizers. Thus, we are looking for a minimum, i.e. need a positive definite Hessian. Dynare will provide an error if this Second partial derivative test fails https://en.wikipedia.org/wiki/Second_partial_derivative_test
------------
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: Estimation of linearized DSGE model

Postby phuong.macro » Thu Jun 29, 2017 7:08 am

Dear Prof. Pfeifer

Thank you so much indeed for that

Do you offer any advanced course related to DSGE model at your university in coming summer and winter semester?

Then I would like to attend to
phuong.macro
 
Posts: 28
Joined: Mon Jun 27, 2016 7:35 pm


Return to Dynare help

Who is online

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