Questions on irfs and confidence bands

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.

Questions on irfs and confidence bands

Postby fuyangzhao » Wed Feb 08, 2017 2:24 pm

Hi Professor!

After running the Bayesian estimation, I got the figure in the attachment, in which the confidence bands look strange and are not smooth at all. Is that normal?

Another question is that the irfs (solid lines) do not always lie in the middle of the bands. This is even more strange, since after estimation with Metropolis iterations, the parameters and the variance matrix are set to the posterior mean. Irfs are computed at M_.params and M_.Sigma_e, meaning that they must lie exactly in the middle of the confidence bands, aren't they?

Thanks in advance!
Fuyang
Attachments
figure.pdf
(34.64 KiB) Downloaded 104 times
fuyangzhao
 
Posts: 48
Joined: Thu Dec 10, 2015 1:20 pm

Re: Questions on irfs and confidence bands

Postby jpfeifer » Wed Feb 08, 2017 7:34 pm

That looks really weird. How did you generate those figures?
------------
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: Questions on irfs and confidence bands

Postby fuyangzhao » Sun Feb 12, 2017 11:15 am

jpfeifer wrote:That looks really weird. How did you generate those figures?


The irfs are extracted from oo_.irfs, and the confidence bands are extracted from oo_.PosteriorIRF.dsge.HPDinf/sup.

Lately I found that irfs stored in oo_.PosteriorIRF.dsge.mean lie in the middle of the confidence bands. But they are slightly different from those stored in oo_.irfs. Is that normal?

And...what can I do about the confidence bands? Can I make them smoother?

Thanks!
fuyangzhao
 
Posts: 48
Joined: Thu Dec 10, 2015 1:20 pm

Re: Questions on irfs and confidence bands

Postby jpfeifer » Mon Feb 13, 2017 9:55 am

Yes, that is normal. You are looking at different concepts. The
Code: Select all
PosteriorIRF.dsge.mean

are the mean IRFs, averaged over the posterior parameter draws. The stoch_simul IRFs in
Code: Select all
oo_.irfs

are IRFs at the mean parameter draw. This conceptual distinction explains why the latter does not lie in the middle of the HPDIs.

To get smoother results, it often helps to use more draws (both mh_replic and sub_draws).
------------
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: Questions on irfs and confidence bands

Postby fuyangzhao » Mon Feb 13, 2017 1:06 pm

Thank you Professor! I will try more!
fuyangzhao
 
Posts: 48
Joined: Thu Dec 10, 2015 1:20 pm


Return to Dynare help

Who is online

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