How to Shut Down the Expectation Operator?

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 Shut Down the Expectation Operator?

Postby hamedgh » Tue Oct 09, 2012 11:28 am

Hi, I know that Dynare automatically puts E_{t} in front of all expressions. I am working with lengthy expressions and it is very helpful to use aux variables for some of terms but I need to keep them as original random variables and not the expected values (since I am doing non-liner transformations before taking the expectation). The simple example would be:

u= X(+1);

Z = E(u^{2});

Under the default setup Dynare will calculate Z= E_{t} ( [E_{t}(X_{t+1})]^{2} ) while I want Z= E_{t} [ (X_{t+1})^{2} ] .

In general, is there any trick to use a short notation (like an aux var) for messy terms containing "t+1" variables? (In the case of time "t" variables it is trivial.).

Thank you
hamedgh
 
Posts: 5
Joined: Tue Sep 25, 2012 3:31 pm

Re: How to Shut Down the Expectation Operator?

Postby jpfeifer » Fri Oct 12, 2012 9:35 pm

------------
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 Shut Down the Expectation Operator?

Postby hamedgh » Sat Oct 13, 2012 11:58 am

Thank you. I guess I was making it too complicated. After reviewing the previous posts you suggested, I realized that it is possible to play with the order of aux variables and make the E_{t} inside or outside of the expression, in a way we need.
hamedgh
 
Posts: 5
Joined: Tue Sep 25, 2012 3:31 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests