Shocks in Dynare

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.

Shocks in Dynare

Postby sp1589 » Tue May 31, 2016 10:29 pm

Hello,

I have a question regarding the assumptions behind the shock processes in dynare. I have a log linearized two country model. Suppose, I want to shock both countries with a 1 SD monetary shock and the shocks have a correlation of 0.5. When I use the periods option to simulate the model does that imply that a new shock drawn from a N(0,1) as specified hits each country every period? So, if I run the simulation for 2100 periods, the end result would be an average response of the variables over all periods i. e a Monte Carlo simulation? I am not quite sure if that is correct. If that is not what is happening, I would appreciate it if someone can help me do what I just described.

Thanks in advance.
sp1589
 
Posts: 14
Joined: Fri Jul 31, 2015 3:22 am

Re: Shocks in Dynare

Postby jpfeifer » Wed Jun 01, 2016 8:48 am

Are you talking about simulations or IRFs? For IRFs, at order=1 there is no reason to do simulations due to certainty equivalence. At higher order, Generalized IRFs will be created which do what you describe. Regarding simulations when you specify the
Code: Select all
periods

In every period there will be shocks drawn from a multivariate normal distribution with the specified covariance matrix. So if you correctly specify the correlation in Dynare, the simulation will do what you describe.
------------
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: Shocks in Dynare

Postby sp1589 » Wed Jun 01, 2016 1:43 pm

Hi Jpfeiffer,

Thanks for your response. I believe you confirmed what I had in mind. However, what do you mean by if you specify the correlation between the shocks properly? Suppose, I have the following:

shocks;
var u = u_SD^2;
var u_for = u_for_SD^2;
corr u, u_for=0.5;
end;

(with u_SD and u_SD specified earlier)
And I have the periods option specified in stoch_simul. Is that going to do what I just described?

Thank you,
sp1589
 
Posts: 14
Joined: Fri Jul 31, 2015 3:22 am

Re: Shocks in Dynare

Postby jpfeifer » Fri Jun 03, 2016 7:53 am

Yes, the will result shock being drawn from a multivariate normal with correlation 0.5.
------------
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: Shocks in Dynare

Postby ZBCPA » Sun Aug 28, 2016 9:00 am

jpfeifer wrote:Yes, the will result shock being drawn from a multivariate normal with correlation 0.5.


Dear Johannes,

If without specifying correlation between shocks, then shocks are drawn from a multivariate normal with 0 correlation , equals that
each shock is drawn form an univariate normal?

Thanks in advance,
Huan
ZBCPA
 
Posts: 101
Joined: Sat May 16, 2015 4:15 am

Re: Shocks in Dynare

Postby jpfeifer » Sun Aug 28, 2016 10:01 am

Yes, exactly. It will be a multivariate normal with diagonal covariance matrix with the individual variances on the diagonal. This is equivalent to a series of univariate normals.
------------
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: Google [Bot] and 6 guests