# GK model with uncertainty shock

**URL:** <https://forum.dynare.org/t/gk-model-with-uncertainty-shock/19643>\
**Category:** Stochastic simulations\
**Created:** [14 January 2022 14:47 UTC](https://forum.dynare.org/t/gk-model-with-uncertainty-shock/19643 "2022-01-14T14:47:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mk1564](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/898d66/32.png) [@mk1564](https://forum.dynare.org/u/mk1564)\
**Post date:** [14 January 2022 14:47 UTC](https://forum.dynare.org/t/gk-model-with-uncertainty-shock/19643/1 "2022-01-14T14:47:36Z")

</div>

Hi,

I am trying to see the effect of uncertainty on capital quality shock in a standard Gertler and Karadi (2011) model. I took the sample code `FA.mod` and added the uncertainty shock (`sigma_ksi` in line 157) in `FA_uncert.mod` and run the simulation following @jpfeifer’s replication on Basu and Bundick (2017).

Maybe it is about theory, but isn’t that uncertainty shock should be contractionary? What I get is increases in output, consumption, and investment. It seems like the asset price goes down, and that decreases net worth of the bank, but I am not sure how to interpret the results. Is this because you want to invest _now_ before you see capital with _very_ bad quality?

Thanks in advance!

[FA.mod](https://forum.dynare.org/uploads/short-url/nZzuNd4T2ekku2r89cP5uaYS0Rz.mod) (7.5 KB)  
[FA\_uncert.mod](https://forum.dynare.org/uploads/short-url/v0yg2F5hKrMYv7MY4YOZSd4yV5c.mod) (10.5 KB)

---

<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:** [14 January 2022 20:25 UTC](https://forum.dynare.org/t/gk-model-with-uncertainty-shock/19643/2 "2022-01-14T20:25:25Z")

</div>

Maybe there is a Jensen’s Inequality effect due to you using exp(ksi). Have you tried centering ksi at 1?

```auto
ksi=(1-rho_ksi)+ rho_ksi*ksi(-1)-sigma_ksi*e_ksi;

```

---

<div class="post-metadata">

**Author:** ![mk1564](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/898d66/32.png) [@mk1564](https://forum.dynare.org/u/mk1564)\
**Post date:** [14 January 2022 22:26 UTC](https://forum.dynare.org/t/gk-model-with-uncertainty-shock/19643/3 "2022-01-14T22:26:31Z")

</div>

Thanks for your reply! I just tried with `ksi` as suggested in this new file. I guess I get the same results.

By Jensen’s inequality effect, you mean households would do precautionary saving on deposit? It seems like deposit is going down (which makes some sense for an increase in consumption?).

I was thinking I would have decrease in investment and borrowing (or more deposit) with some similarity with Ferandez-Villaverde et al. (2011AER)?

Here is the new file. Would you please take a look? [FA\_uncert.mod](https://forum.dynare.org/uploads/short-url/kntIeVuWh5ijWHk4seCLm7wgpo8.mod) (11.5 KB)

---

<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:** [15 January 2022 19:57 UTC](https://forum.dynare.org/t/gk-model-with-uncertainty-shock/19643/4 "2022-01-15T19:57:51Z")

</div>

1. No, I mean that the exp()-formulation results in a lognormal distribution where the mean increases in the variance.
2. I don’t really have a good intuition for your model. It may be a similar mechanism as in Fernandez-Villaverde et al… Uncertainty can be expansionary depending on where it hits and how strong frictions are. That is the point of Basu/Bundick.

---

<div class="post-metadata">

**Author:** ![mk1564](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/898d66/32.png) [@mk1564](https://forum.dynare.org/u/mk1564)\
**Post date:** [16 January 2022 15:51 UTC](https://forum.dynare.org/t/gk-model-with-uncertainty-shock/19643/5 "2022-01-16T15:51:55Z")

</div>

Thank you for your reply and comments! I guess I will have to think about it.
