How oo_.gamma{nar+3} is calculated?

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 oo_.gamma{nar+3} is calculated?

Postby ahnulxy » Tue Apr 08, 2014 3:58 am

As verified, oo_.mean = oo_.dr.ys + oo_.gamma{nar+3}? So how oo_.gamma{nar+3} is calculated? Is it has something to do with oo_.dr.ghs2?
Thanks! Anybody can hlep?
ahnulxy
 
Posts: 43
Joined: Thu May 10, 2012 7:24 am

Re: How oo_.gamma{nar+3} is calculated?

Postby jpfeifer » Wed Apr 09, 2014 8:33 am

The means at order=2 are based on the pruned state space as in Kim, Kim, Schaumburg, Sims (2008): Calculating and using second-order accurate solutions of discrete time dynamic equilibrium models.
The solution at second order can be written as:
\[
\hat x_t = g_x \hat x_{t - 1} + g_u u_t + \frac{1}{2}\left( g_{\sigma\sigma} \sigma^2 + g_{xx}\hat x_t^2 + g_{uu} u_t^2 \right)
\]
Taking expectations on both sides requires to compute E(x^2)=Var(x), which can be obtained up to second order from the first order solution
\[
\hat x_t = g_x \hat x_{t - 1} + g_u u_t
\]
by solving the corresponding Lyapunov equation.
Given Var(x), the above equation can be solved for E(x_t) as
\[
E(x_t) = (I - {g_x}\right)^{- 1} 0.5\left( g_{\sigma\sigma} \sigma^2 + g_{xx} Var(\hat x_t) + g_{uu} Var(u_t) \right)
\]
The 0.5 g_{\sigma\sigma} \sigma^2 is stored in oo_.dr.ghs2
------------
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: Google [Bot] and 3 guests