Specifying a process (Bernoulli Trial and normal)

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.

Specifying a process (Bernoulli Trial and normal)

Postby amuller » Tue Nov 17, 2015 10:34 pm

Hi,

I am finding trouble to specify a process that evolves like a Bernoulli trial where:

z = z(-1) with probability p and z = s with probability 1-p, given that s ~ N(0, var_s)

Does anyone know how to deal with it?

Thanks in advance

Andre
amuller
 
Posts: 8
Joined: Sat Oct 31, 2015 1:02 am

Re: Specifying a process (Bernoulli Trial and normal)

Postby jpfeifer » Sat Nov 21, 2015 3:21 pm

I am afraid this won't work in Dynare. At time t, there is seems to be a discontinuity here, depending on the realization of z. Hence, you most probably cannot rely on a continuous approximation to z.
------------
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: Specifying a process (Bernoulli Trial and normal)

Postby amuller » Mon Nov 30, 2015 9:59 pm

My aim is to simulate the IRF with shocks that follow the process mentioned above.

I think that maybe one possible implementation would be to generate a series of such process and then ask Dynare to simulate the model for each observation.

How can this be done since it seems that shock definition is restricted to std dev from a normal distribution?

thanks in advance
amuller
 
Posts: 8
Joined: Sat Oct 31, 2015 1:02 am

Re: Specifying a process (Bernoulli Trial and normal)

Postby jpfeifer » Wed Dec 02, 2015 10:04 am

I am not entirely understanding what your suggested approach is, but I will try to provide a few comments. You can simulate the model solution of the linearized standard model using the simult_ function, see e.g. http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=4530
What you have to ask yourself is whether your model solution from the linearized model is correct. First of all, the model needs to be differentiable. If that is the case, Dynare approximates any shock distribution by the first two moments, i.e. effectively a normal distribution. However, at first order, we have certainty equivalence. Thus, the variance of the shock process does not matter (as do higher order moments). Rather, only the mean matters. Thus, you can basically use any shock distribution, but you need to be aware that by construction, the higher order moments will not affect the solution.
------------
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: No registered users and 8 guests