how to get E(x(+1)y(+1))/E(x(+1))?

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.

how to get E(x(+1)y(+1))/E(x(+1))?

Postby superztt » Tue Aug 05, 2014 6:09 pm

I did two ways. But appears both are wrong.

1. set z1=x(+1)y(+1), z2=x(+1), and use z1/z2

2. x(+1)y(+1)/z2

I compared the IRF of 1, 2 with the result if I use x(+1)y(+1)/x(+1). They ended the same. However, I think x(+1)y(+1)/x(+1) is treated as E[ x(+1)y(+1)/x(+1)] in Dynare. I am pretty sure there is some correlation between x and y, so that E(x(+1)y(+1))should not equal E[x(+1)]E[y(+1)]. I was expecting different results between 1 or 2 and x(+1)y(+1)/x(+1).

What is the correct way to express E(x(+1)y(+1))/E(x(+1)) in Dynare? Cheers!
superztt
 
Posts: 58
Joined: Sat Apr 26, 2014 8:24 pm

Re: how to get E(x(+1)y(+1))/E(x(+1))?

Postby jpfeifer » Fri Aug 08, 2014 12:04 pm

At first order, there will be no differences at all. You need to go at least to second order to see any differences.

Both ways, 1 and 2 with the auxiliary variables should be the same, although I would prefer the first one.
------------
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: how to get E(x(+1)y(+1))/E(x(+1))?

Postby superztt » Tue Aug 12, 2014 4:08 am

Thank you. Can you explain why the difference shows up with the orders above 2?

Actually, it turned out when I put in stoch_simul(order = 3). How is it decided? Maybe the same question.
superztt
 
Posts: 58
Joined: Sat Apr 26, 2014 8:24 pm

Re: how to get E(x(+1)y(+1))/E(x(+1))?

Postby jpfeifer » Tue Aug 12, 2014 7:46 am

The reason is that first order approximations result in certainty equivalence. Due to linearization only first order terms appear. But covariances are second order terms and thus only show up at second order or higher.
------------
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 4 guests