stochastic vs. deterministic 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.

stochastic vs. deterministic model

Postby Fontana » Tue Dec 08, 2009 11:11 pm

Hi,

basic question, I am having the old problem to decide whether my model is stochastic or deterministic.

My model is new keynesian and has several shock processes which are AR(1), including an error term which is i.i.d and has E(x)=0.

Now, I want to shock the model for instance with permanent shocks or shocks that start at a specific point and last a pre determined period length. Does this make my model deterministic or am I in a stochastic model with deterministic shocks? Do I need to transform the model, to make it deterministic?

Thanks,
Fontana
Fontana
 
Posts: 23
Joined: Tue Dec 08, 2009 1:26 pm

Re: stochastic vs. deterministic model

Postby AssiaEzzeroug » Wed Dec 09, 2009 10:24 am

Hi,

you need to declare all your shocks as exogenous in the deterministic case.

Best
AssiaEzzeroug
 
Posts: 83
Joined: Tue Nov 24, 2009 3:48 pm

Re: stochastic vs. deterministic model

Postby Fontana » Wed Dec 09, 2009 6:41 pm

But should I use stoch_simul or simul in the end to compute the model? Or should I seperately compute the solutions for a det and a stoch case, respectively?
Fontana
 
Posts: 23
Joined: Tue Dec 08, 2009 1:26 pm

Re: stochastic vs. deterministic model

Postby AssiaEzzeroug » Thu Dec 10, 2009 9:56 am

Hi,

if your model is deterministic (see my previous answer), you need to use the command "simul". If you didnt change anything about the NK model you were talking about at the beginning of this post then you can use the instruction stoch_simul since your model is stochastic.

Best
AssiaEzzeroug
 
Posts: 83
Joined: Tue Nov 24, 2009 3:48 pm

Re: stochastic vs. deterministic model

Postby Fontana » Thu Dec 10, 2009 10:02 am

That is exactly my problem, the model is still the same as described above, but I want to shock it with deterministic shocks (ie shocks lasting for a predet. period or permanent shocks). For this purpose, do I need to change my stoch model to a deterministic one?
Fontana
 
Posts: 23
Joined: Tue Dec 08, 2009 1:26 pm

Re: stochastic vs. deterministic model

Postby pakocica » Thu Dec 10, 2009 11:54 am

Dear Fontana,

I think you don't need to change the model into deterministic one. If I understand it well, your model is stochastic, but you want to observe Impulse Response Functions to specific shocks. That is exactly what the function stoch_simul will do for you.

Are you sure you have read the UsersGuide by Tommaso Mancini carefully enough? You can also read some book to learn more how does Dynare work.

Best!

Pavel
pakocica
 
Posts: 46
Joined: Fri Nov 27, 2009 6:42 pm
Location: Taiwan (come from Prague)

Re: stochastic vs. deterministic model

Postby Fontana » Thu Dec 10, 2009 2:24 pm

Ok, I see, that is what I was thinking/guessing.

In fact I am sure I did not read the guide by Thomaso Mancini carefully enough, because there is still plenty of new things I discover everytime I read it. I wasn't able to figure this problem out though, I have also read Collard's 'Dynare in Practice', which was/is quite helpful. I am definitely looking for practical literature on dynare (the material is absolutely new to me), do you have any recommendations?
Fontana
 
Posts: 23
Joined: Tue Dec 08, 2009 1:26 pm

Re: stochastic vs. deterministic model

Postby otb » Thu Dec 10, 2009 5:52 pm

Fontana,

You can keep your model as a stochastic model, but add deterministic shocks by varexo_det designation in the variables section (see pg 7 in the Dynare manual for further details.)
otb
 
Posts: 26
Joined: Mon Apr 07, 2008 4:47 pm

Re: stochastic vs. deterministic model

Postby Fontana » Thu Dec 10, 2009 6:16 pm

Thank you otb. I have actually tried varexo_det, it did not return the irfs though.

I included varexo_det after varexo in the mod-file (as described in the manual), so:

....
varexo a m e;
varexo_det i;
....

and declared the shock as in the deterministic case and just used 'stoch_sim' at the end. The Corr Auto corr blocks were all filled with NaNs.
Fontana
 
Posts: 23
Joined: Tue Dec 08, 2009 1:26 pm

Re: stochastic vs. deterministic model

Postby otb » Thu Dec 10, 2009 8:38 pm

I actually haven't used varexo_det myself, so maybe I should let an administrator handle this.

But my understanding is that these deterministic changes specified in varexo_det need to be temporary, so you can't do permanent deterministic changes. This would affect the steady-state which is not allowed since the stochastic model is approximated around a constant steady-state. This could be the source of the problem.

If you're analyzing a one-time unexpected but permanent change, then you should build the model as a deterministic model, and make the model calculate the transition path from an initial to a new steady-state.

otb
otb
 
Posts: 26
Joined: Mon Apr 07, 2008 4:47 pm

Re: stochastic vs. deterministic model

Postby Fontana » Thu Dec 10, 2009 8:46 pm

Yes, this was my understanding of it too.

I am going to make the model deterministic now, since my shocks are permanent.

Thank you for your help.

Fontana
Fontana
 
Posts: 23
Joined: Tue Dec 08, 2009 1:26 pm

Re: stochastic vs. deterministic model

Postby pakocica » Sat Dec 12, 2009 7:57 am

Otb, I think whether you can use permanent shock in the stochastic model or not depends on the size of the shock. If the shock does not change the local dynamics of the model, e.i. does not change the approximation at the point in a relevant way, then the permanent shock should not be a problem. (Moreover, if the first order approximation was infected by the shock too much, you could use second order approximation or a higher order approximation in Dynare++) It can be simply designed so that we put

rw_e = rw_e(-1) + e,

where e is an exogenous variable with single period shock and the desired permanent shock rw_e, in this case defined as an endogenous variable.

Fontana, actually I did not read the guide by Thomaso Mancini carefully enough myself too. I am new to the field too and I started reading the book "Structural Macroeconomics" by D. N. Dejong and Ch. Dave. The book is written a very nice way, it describes all the basic concepts and methods used by Dynare and the book seems to be practical - besides the theory, gives you clear instructions how to design your model.

If someone has good experience with other books, please, give me a reference.

Nice weekend to everyone!

Pavel
pakocica
 
Posts: 46
Joined: Fri Nov 27, 2009 6:42 pm
Location: Taiwan (come from Prague)

Re: stochastic vs. deterministic model

Postby Fontana » Mon Dec 14, 2009 1:49 pm

Dear Pavel,

thanks for your reply. I did not know that the size of the shock mattered in any way, but now that you are saying it makes sense.

That book has been recommended to me from others as well, and I think I will give it a try.

Thanks and best regards,
Fontana
Fontana
 
Posts: 23
Joined: Tue Dec 08, 2009 1:26 pm

Re: stochastic vs. deterministic model

Postby yangv007 » Tue Feb 28, 2012 8:57 am

thanks for everybody , i changed my model to determinstic. this problem puzzled for a long time ... great thanks.
yangv007
 
Posts: 6
Joined: Thu Oct 13, 2011 10:52 am


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests