Академический Документы
Профессиональный Документы
Культура Документы
• Most of arguments in the previous set of lecture notes are easy to generalize.
• The set of equilibrium conditions of many DSGE models can be written using recursive notation as:
Et H(y , y 0 , x, x 0 ) = 0,
• n = nx + ny .
• H maps R ny × R ny × R nx × R nx into R n .
1
Partitioning the state vector
2
Exogenous stochastic process I
1. The deterministic component Ax2 , where A is a n × n matrix, with all eigenvalues with modulus less
than one.
2.2 is a n × 1 i.i.d. innovation with bounded support, zero mean, and variance/covariance matrix I .
3
Exogenous stochastic process II
• We can accommodate very general structures of x2 through changes in the definition of the state
space: i.e. stochastic volatility.
4
The perturbation parameter
• Important: there is only ONE perturbation parameter. The matrix η takes account of relative sizes
of different shocks.
5
Solution of the model
y = g (x; λ)
x = h(x; λ) + λη0
0
6
Perturbation
• We wish to find a perturbation approximation of the functions g and h around the non-stochastic
steady state, xt = x̄ and λ = 0.
• This is because, if λ = 0, Et H = H.
7
Plugging-in the proposed solution
• Since F (x; λ) = 0 for any values of x and λ, the derivatives of any order of F must also be equal to
zero.
• Formally:
Fx k λj (x; λ) = 0 ∀x, λ, j, k,
where Fx k λj (x, λ) denotes the derivative of F with respect to x taken k times and with respect to λ
taken j times. 8
First-order approximation
• We are looking for approximations to g and h around (x, λ) = (x̄, 0) of the form:
g (x; λ) = g (x̄; 0) + gx (x̄; 0)(x − x̄) + gλ (x̄; 0)λ
h(x; λ) = h(x̄; 0) + hx (x̄; 0)(x − x̄) + hλ (x̄; 0)λ
• The remaining four unknown coefficients of the first-order approximation to g and h are found by
using the fact that:
Fx (x̄; 0) = 0
and
Fλ (x̄; 0) = 0
• An nth -rank tensor in a m-dimensional space is an operator that has n indices and mn components
and obeys certain transformation rules.
• [Hy 0 y 0 ]iαγ :
1. Hy 0 y 0 is a three dimensional array with n rows, ny columns, and ny pages.
2. Then [Hy 0 y 0 ]iαγ denotes the element of Hy 0 y 0 located at the intersection of row i, column α and page γ.
10
Solving the system I
i = 1, . . . , n; j, β = 1, . . . , nx ; α = 1, . . . , ny
• Note that the derivatives of H evaluated at (y , y 0 , x, x 0 ) = (ȳ , ȳ , x̄, x̄) are known.
• Then, we have a system of n × nx quadratic equations in the n × nx unknowns given by the elements
of gx and hx .
11
Solving the system II
+[Hy ]iα [gλ ]α + [Hx 0 ]iβ [hλ ]β + [Hx 0 ]iβ [η]βφ [0 ]φ }
i = 1, . . . , n; α = 1, . . . , ny ; β = 1, . . . , nx ; φ = 1, . . . , n .
• Then: [Fλ (x̄; 0)]i
= [Hy 0 ]iα [gx ]α β i α i α i β
β [hλ ] + [Hy 0 ]α [gλ ] + [Hy ]α [gλ ] + [fx 0 ]β [hλ ] = 0;
i = 1, . . . , n; α = 1, . . . , ny ; β = 1, . . . , nx ; φ = 1, . . . , n .
• Certainty equivalence: linear and homogeneous equation in gλ and hλ . Thus, if a unique solution
exists, it satisfies:
hλ = 0
gλ = 0
12
Second-order approximation I
[g (x; λ)]i = [g (x̄; 0)]i + [gx (x̄; 0)]ia [(x − x̄)]a + [gλ (x̄; 0)]i [λ]
1
+ [gxx (x̄; 0)]iab [(x − x̄)]a [(x − x̄)]b
2
1
+ [gxλ (x̄; 0)]ia [(x − x̄)]a [λ]
2
1
+ [gλx (x̄; 0)]ia [(x − x̄)]a [λ]
2
1
+ [gλλ (x̄; 0)]i [λ][λ]
2
where i = 1, . . . , ny , a, b = 1, . . . , nx , and j = 1, . . . , nx .
13
Second-order approximation II
[h(x; λ)]j = [h(x̄; 0)]j + [hx (x̄; 0)]ja [(x − x̄)]a + [hλ (x̄; 0)]j [λ]
1
+ [hxx (x̄; 0)]jab [(x − x̄)]a [(x − x̄)]b
2
1
+ [hxλ (x̄; 0)]ja [(x − x̄)]a [λ]
2
1
+ [hλx (x̄; 0)]ja [(x − x̄)]a [λ]
2
1
+ [hλλ (x̄; 0)]j [λ][λ],
2
where i = 1, . . . , ny , a, b = 1, . . . , nx , and j = 1, . . . , nx .
14
Second-order approximation III
• The unknowns of these expansions are [gxx ]iab , [gxλ ]ia , [gλx ]ia , [gλλ ]i , [hxx ]jab , [hxλ ]ja , [hλx ]ja , [hλλ ]j .
• These coefficients can be identified by taking the derivative of F (x; λ) with respect to x and λ twice
and evaluating them at (x; λ) = (x̄; 0).
15
Solving the system I
We use Fxx (x̄; 0) to identify gxx (x̄; 0) and hxx (x̄; 0):
+ [Hyy 0 ]iαγ [gx ]γδ [hx ]δk + [Hyy ]iαγ [gx ]γk + [Hyx 0 ]iαδ [hx ]δk + [Hyx ]iαk [gx ]α
j
+ [Hx 0 y 0 ]iβγ [gx ]γδ [hx ]δk + [Hx 0 y ]iβγ [gx ]γk + [Hx 0 x 0 ]iβδ [hx ]δk + [Hx 0 x ]iβk [hx ]βj
16
Solving the system II
• We also know the first derivatives of g and h evaluated at (y , y 0 , x, x 0 ) = (ȳ , ȳ , x̄, x̄).
17
Solving the system III
a system of n linear equations in the n unknowns given by the elements of gλλ and hλλ .
18
Cross-derivatives
• The cross derivatives gxλ and hxλ are zero when evaluated at (x̄, 0).
• Why? Write the system Fλx (x̄; 0) = 0 taking into account that all terms containing either gλ or hλ
are zero at (x̄, 0).
• Then:
β γ
[Fλx (x̄; 0)]ij = [Hy 0 ]iα [gx ]α i α
β [hλx ]j + [Hy 0 ]α [gλx ]γ [hx ]j +
β
[Hy ]iα [gλx ]α i
j + [Hx 0 ]β [hλx ]j = 0;
i = 1, . . . n; α = 1, . . . , ny ; β, γ, j = 1, . . . , nx .
• This is a system of n × nx equations in the n × nx unknowns given by the elements of gλx and hλx .
• The system is homogeneous in the unknowns.
• Thus, if a unique solution exists, it is given by:
gλx = 0
hλx = 0
19
Structure of the solution
gλ (x̄; 0) = 0
hλ (x̄; 0) = 0
gxλ (x̄; 0) = 0
hxλ (x̄; 0) = 0
• Problems:
2. Numerical instabilities.
3. Computational costs.
21