Page 1 of 1

How to Shut Down the Expectation Operator?

PostPosted: Tue Oct 09, 2012 11:28 am
by hamedgh
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

Re: How to Shut Down the Expectation Operator?

PostPosted: Fri Oct 12, 2012 9:35 pm
by jpfeifer

Re: How to Shut Down the Expectation Operator?

PostPosted: Sat Oct 13, 2012 11:58 am
by hamedgh
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.