# Changing shocks' distribution using simult.m

**URL:** <https://forum.dynare.org/t/changing-shocks-distribution-using-simult-m/21390>\
**Category:** Stochastic simulations\
**Created:** [10 November 2022 18:10 UTC](https://forum.dynare.org/t/changing-shocks-distribution-using-simult-m/21390 "2022-11-10T18:10:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dam](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/f04885/32.png) [@Dam](https://forum.dynare.org/u/Dam)\
**Post date:** [10 November 2022 18:10 UTC](https://forum.dynare.org/t/changing-shocks-distribution-using-simult-m/21390/1 "2022-11-10T18:10:24Z")

</div>

Hi.  
I want to simulate a model using a t-student (or Laplace) distribution for the shocks. I understand that by default Dynare uses gaussian shocks, as defined in the ‘simult.m’ file in the matlab folder.

What if I change the ‘simult.m’ file to incorporate a non-gaussian distribution (say Laplace) and then simulate the model under this specification? Is it fine or is there something wrong in it?

Thanks!

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [11 November 2022 08:10 UTC](https://forum.dynare.org/t/changing-shocks-distribution-using-simult-m/21390/2 "2022-11-11T08:10:21Z")

</div>

See

> [@Stochastic Simulation based on Non-Normal Shocks](https://forum.dynare.org/t/stochastic-simulation-based-on-non-normal-shocks/3258/2):
>
> The problem is not really that Dynare does only support normally distributed shocks but that perturbation is used to solve the models and up to first order, only the mean and the variance of the shock distribution play a role. Thus, even a beta distribution is effectively approximated with a normal distribution for computing the model solution, because the distribution is fully characterized by its first two moments. A limitation of Dynare currently is that it does not allow for skewed distribut…

---

<div class="post-metadata">

**Author:** ![Dam](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/f04885/32.png) [@Dam](https://forum.dynare.org/u/Dam)\
**Post date:** [11 November 2022 09:28 UTC](https://forum.dynare.org/t/changing-shocks-distribution-using-simult-m/21390/3 "2022-11-11T09:28:30Z")

</div>

Many thanks!  
I get the point. I actually simulate the S&W (2007) with a second-order approximation.  
Is it fair to use fat-tailed shocks with higher order moments or it’s just wrong?

Thanks.

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [11 November 2022 11:11 UTC](https://forum.dynare.org/t/changing-shocks-distribution-using-simult-m/21390/4 "2022-11-11T11:11:14Z")

</div>

You mean shocks with a zero third moment, but a higher fourth moment than the Gaussian distribution? That should be fine at second order.

---

<div class="post-metadata">

**Author:** ![Dam](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/f04885/32.png) [@Dam](https://forum.dynare.org/u/Dam)\
**Post date:** [11 November 2022 12:55 UTC](https://forum.dynare.org/t/changing-shocks-distribution-using-simult-m/21390/5 "2022-11-11T12:55:33Z")

</div>

Yes exactly. I do not allow for skewness but just for fat-tails.  
I would like to try with a t-student distribution but I do not find a way to modify the line:

‘DynareResults.exo\_simul(:,i\_exo\_var) = randn(nxs, DynareOptions.periods)’\*chol\_S;’

in the simult.m file. If you have any idea on how to do it, I would be really glad!  
Thanks.

---

<div class="post-metadata">

**Author:** ![wmutschl](https://forum.dynare.org/user_avatar/forum.dynare.org/wmutschl/32/18464_2.png) [@wmutschl](https://forum.dynare.org/u/wmutschl)\
**Post date:** [12 November 2022 14:11 UTC](https://forum.dynare.org/t/changing-shocks-distribution-using-simult-m/21390/6 "2022-11-12T14:11:35Z")

</div>

Have a look at

> **[DSGE\_mod/Andreasen\_2012 at master · JohannesPfeifer/DSGE\_mod](https://github.com/JohannesPfeifer/DSGE_mod/tree/master/Andreasen_2012)**
>
> master/Andreasen\_2012
