# Correlated shocks and impulse response functions

**URL:** https://forum.dynare.org/t/correlated-shocks-and-impulse-response-functions/1444
**Category:** Stochastic simulations
**Created:** [6 May 2010 22:53 UTC](https://forum.dynare.org/t/correlated-shocks-and-impulse-response-functions/1444 "2010-05-06T22:53:07Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![Niklas](https://forum.dynare.org/letter_avatar_proxy/v4/letter/n/34f0e0/32.png) [@Niklas](https://forum.dynare.org/u/Niklas)
#### Post date: [6 May 2010 22:53 UTC](https://forum.dynare.org/t/correlated-shocks-and-impulse-response-functions/1444/1 "2010-05-06T22:53:07Z")

</div>

Hello,

I have two questions concerning correlated shocks and impulse response functions (irf).

1. Suppose I have two stationary AR(1)-processes a=rho_a(-1)+u and b=theta_b(-1)+e and corr u, e = 0. When running irf, why do I get non-zero values for variables a\_e and b\_u. They are really small (in the range of 10^-15), yet they are non-zero and the irf (in the range of 10^-15) looks as if b was shocked by u and a by e, respectively .  
I always observe this in the case of 2nd order approximation and sometimes in the case of 1st order approximation as well.  
Can somebody explain this to me?

2. Now suppose corr u,e \> 0. What does this imply for my irf? I observe that b is not shocked by the standard deviation of e, but by a smaller value, a\_e is zero (or almost zero) and b is shocked by a value equal to (stdderr.e \* corr e,u), i.e b\_u is non-zero.  
Did I do something wrong?

Thanks for the help in advance,

best regards,

Niklas

---

_[View the full topic](https://forum.dynare.org/t/correlated-shocks-and-impulse-response-functions/1444)._
