Lect Notes 1
Lect Notes 1
1.1
The term rational expectations is most closely associated with Nobel Laureate Robert Lucas of the University of Chicago, but the question of rationality
of expectations came into the place before Lucas investigated the issue (see
Muth [1960] or Muth [1961]). The most basic interpretation of rational expectations is usually summarized by the following statement:
Individuals do not make systematic errors in forming their expectations; expectations errors are corrected immediately, so that
on average expectations are correct.
But rational expectation is a bit more subtil concept that may be defined in
3 ways.
Definition 1 (Broad definition) Rational expectations are such that individuals formulate their expectations in an optimal way, which is actually com1
probability distributions of the shocks that hit the economy that is what is
needed to compute all the moments (average, standard deviations, covariances
. . . ) which are needed to compute expectations. In other words, and this is
precisely what makes rational expectations so attractive:
Expectations should be consistent with the model
= Solving the model is finding an expectation function.
Notation: Hereafter, we will essentially deal with markovian models, and will
work with the following notation:
Eti (xt ) = E(xt |ti )
where ti = {xk ; k = 0 . . . t i}.
The weak definition of rational expectations satisfies two vary important properties.
Proposition 1 Rational Expectations do not exhibit any bias: Let x
bt = xt xet
denote the expectation error:
Et1 (b
xt ) = 0
which essentially corresponds to the fact that individuals do not make systematic errors in forming their expectations.
Proposition 2 Expectation errors do not exhibit any serial correlation:
Covt1 (b
xt , x
bt1 ) = Et1 (b
xt x
bt1 ) Et1 (b
xt )Et1 (b
xt1 )
= Et1 (b
xt )b
xt1 Et1 (b
xt )b
xt1
= 0
Example 1 Lets consider the following AR(2) process
xt = 1 xt1 + 2 xt2 + t
such that the roots lies outside the unit circle and t is the innovation of the
process.
Beyond, the example reveals a very important property of rational expectations: a rational expectation model is not a model in which the individual knows everything. Everything depends on the information structure. Lets consider some simple examples.
Example 2 (signal extraction) In this example, we will deal with a situation where the agents know the model but do not perfectly observe the shocks
they face. Information is therefore incomplete because the agents do not know
perfectly the distribution of the true shocks.
Assume that a firm wants to predict the demand, d, it will be addressed, but
only observes a random variable x that is related to d as
x=d+
(1.1)
E(d 0 1 x|1) = 0
E(d 0 1 x|x) = 0
These are the two normal equation associated with an OLS estimate, hence we
have
1 =
2
Cov(x, d)
Cov(d + , d)
=
= 2 d 2
V(x)
V(d + )
d +
and
0 =
d2 + 2
i ti
i=0
Y +
X
i=0
!
i t+1i
Since Y is a deterministic constant, E Y = Y , such that
E(Yt+1 |) = Y +
i E(t+1i |)
i=0
k
X
i=0
i+1 ti
k
X
i=0
i+1 ti
pt
1.2
1.2.1
(1.2)
1
<1
1+r
(1.3)
e
where t+1
denotes expected inflation
e
t+1
Et (Pt+1 ) Pt
Pt
(1.4)
Taking logs lowercases will denote logged variables using the approximation log(1 + x) x and reorganizing, we end up with
pt = aEt (pt+1 ) + (1 a)mt where a =
Monopolistic competition
1+
demand
pt = yt Et yt+1
(1.5)
the term in yt accounts for the fact that the greater the greater the price
is, the lower the demand is. The term in Et yt+1 accounts for the fact that
greater expected sells tend to lower the price.1 The firm acts as a monopolist
maximizing its profit
max pt yt ct yt
yt
taking the demand (1.5) into account. ct is the marginal cost, which is assumed to follow an exogenous stochastic process. Note that we assume, for the
moment, that the firm adopts a purely static behavior. Profit maximization
taking (1.5) into account yields
2yt Et yt+1 ct = 0
which may be rewritten as
yt = aEt (pt+1 ) + bct + d where a =
1
,b=
and d =
2
2
2
If < 0, the model may be given an alternative interpretation. Greater expected sells
lead the firm to raise its price (you may think of goods such as tobacco, alcohol, . . . , each
good that may create addiction).
At this point we are left with the expectational difference equation (1.2),
which may either be solved forward or backward looking depending on
the value of a. When |a| < 1 the solution should be forward looking, as it
will become clear in a moment, conversely, when |a| > 1 the model should be
solved backward. The next section investigates this issue.
1.2.2
The problem that arises with the case |a| < 1 may be understood by looking
at figure 1.1, which reports the dynamics of equation
Et yt+1 =
b
1
yt xt
a
a
(1.6)
Solving this
10
45
yt
y y0
k
X
i=0
11
For the first term to converge, we need the expectation Et (xt+k ) not to increase
at a too fast pace. Then provided that |a| < 1, a sufficient condition for the
first term to converge is that the expectation explodes at a rate lower than
|1/a 1|.3 In the sequel we will assume that this condition holds.
Finally, since |a| < 1, imposing that lim |yt | < holds, we have
t
k+1
lim a
Et (yt+k+1 ) = 0
ai Et (xt+i )
(1.7)
i=0
In other words, yt is given by the discounted sum of all future expected values
of xt . In order to get further insight on the form of the solution, we may be
willing to specify a particular process for xt . We shall assume that it takes
the following AR(1) form:
xt = xt1 + (1 )x + t
where || < 1 for sake of stationarity and t is the innovation of the process.
Note that
Et xt+1 = xt + (1 )x
Et xt+2 = Et xt+1 + (1 )x = 2 xt + (1 )(1 + )x
Et xt+3 = Et xt+2 + (1 )x = 3 xt + (1 )(1 + + 2 )x
..
.
Et xt+i = i xt + (1 )(1 + + 2 + . . . + i )x = i xt + (1 i+1 )x
Therefore, the solution takes the form
X
ai (i xt + (1 i )x)
yt = b
= b
i=0
X
i=0
(a) (xt x) +
X
i=0
ax
xt x
x
+
= b
1 a 1 a
b
ab(1 )
=
x
xt +
1 a
(1 a)(1 a)
12
Stochastic Case
9
8
5.5
7
5
6
5
4.5
4
4
0
50
100
Time
150
200
3
0
50
100
Time
150
200
Note: This example was generated using a = 0.8, b = 1, = 0.95, = 0.1 and x = 1.
Matlab Code: Forward Solution
\simple
%
% Forward solution
%
lg = 100;
T
= [1:long];
a
= 0.8;
b
= 1;
rho = 0.95;
sx = 0.1;
xb = 1;
%
% Deterministic case
%
y=a*b*xb/(1-a);
%
% Stochastic case
%
%
% 1) Simulate the exogenous process
%
x
= zeros(lg,1);
randn(state,1234567890);
13
e
= randn(lg,1)*sx;
x(1) = xb;
for i=2:long;
x(i) = rho*x(i-1)+(1-rho)*xb+e(i);
end
%
% 2) Compute the solution
%
y
= b*x/(1-a*rho)+a*b*(1-rho)*xb/((1-a)*(1-a*rho));
Factorization
The method of factorization was introduced by Sargent [1979]. It amounts to
make use of the forward operator F , introduced in the first chapter.4 In a first
step, equation (1.2) is rewritten in terms of F
yt = aEt yt+1 +bxt Et (yt ) = aEt (yt+1 )+bEt (xt ) (1aF )Et yt = bEt xt
which rewrites as
E t yt = b
Et xt
1 aF
X
1
ai F i
=
1 aF
i=0
Therefore, we have
E t y t = yt = b
ai F i Et xt = b
ai Et xt+i
i=0
i=0
Note that although we get, obviously, the same solution, this method is not
as transparent as the previous one since the terminal condition (1.6) does not
appear explicitly.
Method of undetermined coefficients
This method proceeds by making an initial guess on the form of the solution.
An educated guess for the problem at hand would be
yt =
i Et xt+i
i=0
14
i Et xt+i = aEt
i=0
i Et+1 xt+1+i
i=0
+ bxt
ai Et xt+i
i=0
The problem with such an approach is the we need to make the right guess
from the very beginning. Assume for a while that we had specified the following guess
yt = xt
Then
xt = aEt xt+1 + bxt
Identifying term by terms we would have obtained = b or = 0, which is
obviously a mistake.
As a simple example, let us assume that the process for xt is given by the same
AR(1) process as before. We therefore have to solve the following dynamic
system
Since the system is linear and that xt exhibits a constant term, we guess a
solution of the form
yt = 0 + 1 xt
Plugging this guess in the expectational difference equation, we get
0 + 1 xt = aEt (0 + 1 xt+1 ) + bxt
15
b
1 a
ab(1 )
x
(1 a)(1 a)
1.2.3
Until now, we have only considered the case of a regular economy in which
|a| < 1, which provided we are ready to impose a nonexplosion condition
yields a unique solution that only involves fundamental shocks. In this
section we investigate what happens when we relax the condition |a| < 1
and consider the case |a| > 1. This fundamentally changes the nature of the
solution, as can be seen from figure 1.3. More precisely, any initial condition
y0 for y is admissible as any leads the economy back to its longrun solution
y. The equilibrium is then said to be indeterminate.
From a mathematical point of view, the sum involved in the forward solution
is unlikely to converge. Therefore, the solution should be computed in an
alternative way. Let us recall the expectational difference equation
yt = aEt yt+1 + bxt
5
Note that this is here that we make use of the assumptions on the process for the
exogenous shock.
16
45
y
y0
yt
b
1
yt + xt + t+1
a
a
Since |a| > 1 this equation is stable and the system is fundamentally backward
looking. Note that t+1 is serially uncorrelated, and not necessarily correlated
with the innovations of xt . In other words, this shock may not be a fundamental shock and is alike a sunspot. For example, I wake up in the morning,
look at the weather and decides to consume more. Why? I dont know! This
is purely extrinsic to the economy!
17
Figure 1.4 reports an example of such an economy. We have drawn the solution
to the model for different values of the volatility of the sunspot, using the
same draw. As can be seen, although each solution is perfectly admissible,
the properties of the economy are rather different depending on the volatility
of the sunspot variable. Besides, one may compute the volatility and the first
Figure 1.4: Backward Solution
=0.1
Without sunspot
2.5
2.5
1.5
1.5
0.5
0.5
0
0
50
100
Time
=0.5
150
200
0
0
50
50
100
Time
150
200
100
Time
150
200
0
0
100
Time
=1
150
200
2
0
50
Note: This example was generated using a = 1.8, b = 1, = 0.95, = 0.1 and x = 1.
order autocorrelation of yt :6
y2 =
y (1) =
a2
b2 ( + a)
2
+
2
x
(a2 1)(a )
a2 1
"
#
b2 (a2 1)x2
1
1+ 2
a
b (a + )x2 + a2 (a )2
18
1.2.4
Lets now go back to the forward looking solution. The ways we dealt with it
led us to eliminate any bubble that is we imposed condition (1.6) to bound
the sequence. By doing so, we restricted ourselves to a particular class of
19
solution, but there may exist a wider class of admissible solution that satisfy
(1.2) without being bounded.
Let us now assume that such an alternative solution of the form does exist
yet = yt + bt
where yt is the solution (1.7) and bt is a bubble. In order for yet to be a solution
to (1.2), we need to place some additional assumption on its behavior.
If yet = yt + bt it has to be the case that Et yet+1 = Et yt+1 + Et bt+1 , such that
solution to (1.2). Note that since |a| < 1 in the case of a forward solution,
d
r
20
Bubble
28
2.5
Bubble solution
Fundamental solution
27
2
26
1.5
25
24
10
Time
15
20
1
0
dividend/price
10
Time
15
20
0.039
0.35
0.0385
0.3
0.038
0.25
0.0375
0.2
0.037
0.0365
0
10
Time
15
20
0.15
0
10
Time
15
20
21
r
= 0.04;
%
% Fundamental solution p*
%
p_star = d_star/r;
%
% bubble
%
long
= 20;
T
= [0:long];
b
= (1+r).^T;
p
= p_star+b;
(a)1 bt + t+1
t+1
with probability
with probability 1
with Et t+1 = 0. So defined, the bubble keeps on inflating with probability and bursts with probability (1 ). Lets check that bt = aEt bt+1
bt =
=
=
=
22
Bubble
200
150
Bubble solution
Fundamental solution
150
100
100
50
50
0
0
50
100
Time
150
200
50
0
50
dividend/price
100
Time
150
200
0.06
50
0.05
0.04
0.03
0.02
50
0.01
0
0
50
100
Time
150
200
100
0
50
100
Time
150
200
23
Up to this point we have been dealing with very simple situations where the
problem is either backward looking or forward looking. Unfortunately, such
a case is rather scarce, and most of economic problems such as investment
decisions, pricing decisions . . . are both backward and forward looking. We
examine such situations in the next section.
1.3
(1.8)
24
We are now willing to solve this expectational equation. As before, there exist
many methods.
1.3.1
Let us recall that solving the equation using undetermined coefficients amounts
to formulate a guess for the solution and find some restrictions on the coefficients of the guess such that equation (1.8) is satisfied. An educated guess in
this case is given by
yt = yt1 +
i Et xt+i
i=0
Where does this guess come from? Experience! and this is precisely why
the method of undetermined coefficients, although it may appear particularly
practical in a number of (simple) problems, is not always appealing.
Plugging this guess in equation (1.8) yields
#
"
X
X
i Et+1 xt+1+i + byt1 + cxt
i Et xt+i = aEt yt +
yt1 +
i=0
i=0
= a yt1 +
i Et xt+i
i=0
+ aEt
"
+byt1 + cxt
= (a2 + b)yt1 + a
i Et xt+i + a
i=0
i Et+1 xt+1+i
i Et xt+1+i + cxt
i=0
i=0
(1.9)
0 = a0 + c
(1.10)
i = ai + ai1
i > 1
1
a
(1.11)
25
1. the two solutions lie outside the unit circle: the model is said to be a
source and only one particular point the steady state is a solution
to the equation.
2. One solution lie outside the unit circle and the other one inside: the
model exhibits the saddle path property.
3. The two solutions lie inside the unit circle: the model is said to be a sink
and there is indeterminacy.
Here, we will restrict ourselves to the situation where an extended version of
the condition |a| < 1 we were dealing with in the preceding section holds,
namely one root will be of modulus greater than one and the other less than
one. The model will therefore exhibit the socalled saddle point property, for
which we will provide a geometrical interpretation in a moment. To sum up,
we consider a situation where |1 | < 1 and |2 | > 1. Since we restrict ourselves
to the stationary solution, we necessarily have || < 1 so that = 1 .
Once has been obtained, we can solve for i , i = 0, . . .. 0 is obtained from
(1.10) and takes the value
0 =
c
1 a1
a
i1 =
1 a1
1
a
1
i1
1
X
c
i
2 Et xt+i
1 a1
i=0
Example 4 In the case of an AR(1) process for xt , the solution is straightforward, as all the process may be simplified. Indeed, let us consider the following
problem
26
with t ; N (0, ). An educated guess for the solution of this equation would
be
yt = yt1 + xt
Let us then compute the solution of the problem, that is let us find and
. Plugging the guess for the solution in the expectational difference equation
leads to
yt1 + xt = aEt (yt + xt+1 ) + byt1 + cxt
= a2 yt1 + axt + axt + byt1 + cxt
= (a2 + b)yt1 + (c + a( + ))xt
Therefore, we have to solve the system
= a2 + b
= c + a( + )
Like in the general case, we select the stable root of the first equation 1 , such
that |1 | < 1, and =
c
1a(1 +)
=
=
=
=
=
roots([a -1 b]);
min(mu);
mu(i);
max(mu);
mu(i);
alpha = b/(1-a*(mu1+rho));
%
% Simulation
%
27
6
4
0.5
2
0
2
0.5
0
50
100
Time
150
200
4
0
50
100
Time
150
200
150
200
3
2
0.5
1
0
1
0.5
0
50
100
Time
150
200
2
0
50
100
Time
28
lg
= 200;
randn(state,1234567890);
e
= randn(lg,1)*se;
x
= zeros(lg,1);
y
= zeros(lg,1);
x(1) = 0;
y(1) = alpha*x(1);
for i = 2:lg;
x(i) = rho*x(i-1)+e(i);
y(i) = mu1*y(i-1)+alpha*x(i);
end
Note that contrary to the simple case we considered in the previous section, the
solution does not only inherit the persistence of the shock, but also generates its
own persistence through 1 as can be seen from the first order autocorrelation
(1) =
1.3.2
1 +
1 + 1
Factorization
c
(F 1 )Et yt1 = (F 2 )1 Et xt
a
29
c
1
(1 1
2 F ) Et xt
a2
i
i
2 F
i=0
so that
(F 1 )Et yt1 =
c X i i
c X i
2 F Et xt =
2 Et xt+i
a2
a2
i=0
i=0
Now, applying the leading operator on the left hand side of the equation
and acknowledging that 2 = 1/a 1 , we have
X
c
i
yt = 1 yt1 +
2 Et xt+i
1 a1
i=0
1.3.3
A matricial approach
In this section, we would like to provide you with some geometrical intuition of
what is actually going on when the saddle path property applies in the model.
To do so, we will rely on a matricial approach. First of all, let us recall the
problem we have in hands:
yt = aEt yt+1 + byt1 + cxt
Introducing the technical variable zt defined as
zt+1 = yt
the model may be rewritten as7
1
Et yt+1
yt
c
ab
a
=
xt
zt+1
zt
1
1 0
Remember that Et yt+1 = yt+1 t+1 where t+1 is an iid process which represents the expectation error, therefore, the system rewrites
1
yt
c
1
yt+1
ab
a
xt
t+1
=
zt
1
0
zt+1
1 0
7
In the next section we will actually pool all the equations in a single system, but for
pedagogical purposes let us separate exogenous variables from the rest for a while.
30
In order to understand the saddle path property let us focus on the homogenous part of the equation
1
b
yt+1
yt
yt
a a
=
=W
zt+1
zt
zt
1 0
Provided b 6= 0 the matrix W can be diagonalized and may be rewritten as
W = P DP 1
where D contains the two eigenvalues of W and P the associated eigenvectors.
Figure 1.8 provides a way of thinking about eigenvectors and eigenvalues in
dynamical systems. The figure reports the two eigenvectors, P1 and P2 , associated with the two eigenvalues 1 and 2 of W . 1 is the stable root and
2 is the unstable root. As can be seen from the graph, displacements along
Figure 1.8: Geometrical interpretation of eigenvalues/eigenvectors
z 6
P2
P1
x2
6
x1 R
x2
x1
z
x3
x4
I
x4
x3 )
P1 are convergent, in the sense they shift either x1 or x4 toward the center of
the graph (x1 and x4 ), while displacements along P2 are divergent (shift of x2
and x3 to x2 and x3 ). In fact the eigenvector determines the direction along
31
which the system will evolve and the eigenvalue the speed at which the shift
will take place.
The characteristic equation that gives the eigenvalues, in the case we are studying, is given by
1
b
det(W I) = 0 2 + = 0
a
a
which exactly corresponds to the equations we were dealing with in the previous sections. We will not enter the formal resolution of the model right now,
as we will undertake an extensive treatment in the next section. However, we
will just try to understand what may be going on using a phase diagram like
approach to understand the dynamics. Figures 1.91.11 report the different
possible configuration we may encounter solving this type of model. The first
one is a source (figure 1.9), which is such that no matter the initial condition
we feed the system with except y0 = y , z0 = z the system will explode.
Both y and z will not be bounded. The second one is a sink (figure 1.10), all
trajectories converge back to the steady state of the economy, one is then free
to choose whatever trajectory it wants to go back to the steady state. The
equilibrium is therefore indeterminate.
Figure 1.9: A source
yt
P2
yt+1 = 0
zt+1 = 0
6
I
i
P1
y
R
zt
32
P1
y
P2
yt+1 = 0
zt+1 = 0
z z
-
y
i
i
zt
In the last situation (figure 1.11) this corresponds to the most commonly
encountered situation in economic theory the economy lies on a saddle: one
branch of the saddle converges to the steady state, the other one diverges. The
problem is then to select where to start from. It should be clear to you that in
t, zt is perfectly known as zt = yt1 which was selected in the earlier period.
zt is then said to be predetermined: the agents is endowed with its value when
she enters the period. This is part of the information set. Solving the system
therefore amounts to select a value for yt , given that for zt and the structure
of the model. How to proceed then? Let us assume for a while that at time
0, the economy is endowed with z0 , and assume that we impose the value y01
as a starting value for y. In such a case, the economy will explode: in other
words a solution including a bubble has been selected. If, alternatively, y02 is
selected, then the economy will converge to the steady state (z , y ) and all
the variables will be bounded. In other words, we have selected a trajectory
such that
lim |yt | <
P2
yt+1 = 0
P1
zt+1 = 0
y2
0
1
y0
y
?
z0
zt
1.4
1.4.1
(1.12)
(1.13)
34
tion that actually drives the dynamics of the economy under consideration:8 it
relates future values of states St+1 to current and expected values of variables
of interest, current state variables and shocks to fundamentals Et+1 . In other
words, (1.13) furnishes the transition from one state of the system to another
one. Our problem is then to solve this system.
As a first step, it would be great if we were able to eliminate all variables
defined by the measurement equation and restrict ourselves to a state equation,
as it would bring us back to our initial problem. To do so, we use (1.17) to
eliminate Yt .
1
Yt = Mcc
Mcs St
WE =
1 M
Mss0 Msc0 Mcc
cs
1
1
1 M
Mss1 Msc1 Mcc
cs
M se
We are then back to our expectational difference equation. But it needs additional work. Indeed, Farmer proposes a method that enables us to forget
about expectations when solving for the system. He proposes to replace the
expectation by the actual variable minus the expectation error
Et St+1 = St+1 Zt+1
where Et Zt+1 = 0. Then the system rewrites
St+1 = WS St + WE Et+1 + Zt+1
(1.14)
1.4.2
? have shown that the existence and uniqueness of a solution depends fundamentally on the position of the eigenvalues of WS relative to the unit circle.
Denoting by NB and NF the number of, respectively, predetermined and jump
variables, and by NI and NO the number of eigenvalues that lie inside and
outside the unit circle, we have the following proposition.
Proposition 4
(i) If NI = NB and NO = NF , then there exists a unique solution path for
the rational expectation model that converges to the steady state;
(ii) If NI > NB (and NO < NF ), then the system displays indeterminacy;
(iii) If NI > NB (and NO > NF ), then the system is a source.
Hereafter we will deal with the two first situations, the last one being never
studied in economics.
The diagonalization of WS leads to
WS = P D P 1
where D is the matrix that contains the eigenvalues of WS on its diagonal and
P is the matrix that contains the associated eigenvectors. For convenience,
we assume that both D and P are such that eigenvalues are sorted in the
ascending order. We shall then consider two cases
1. The model satisfies the saddle path property (NI = NB and NO = NF )
2. The model exhibit indeterminacy (NI > NB and NO < NF )
The saddle path
In this section, we consider the case were the model satisfies the saddle path
property (NI = NB and NO = NF ). For convenience, we consider the following
partitioning of the matrices
DB 0
PBB PBF
PBB PBF
1
D=
, P =
, P =
0 DF
PF B PF F
PF B PF F
36
This partition conforms the position of the eigenvalues relative to the unit
circle. For instance, a B stands for the set of eigenvalues that lie within the
unit circle, whereas B stands for the set of eigenvalues that lie out of it.
We then apply the following modification to the system in order to make it
diagonal:
Set = P 1 St
so that
SeB,t
SeF,t
SeB,t
SeF,t
!
!
RB.
RF.
Et+1 +
PB.
PF.
Zt+1
have
PF B SB,t + PF F SF,t = 0
This condition expresses the relationship that relates the jump variables to the
predetermined variables, and therefore defined the initial condition SF,t which
is compatible with (i) the initial conditions on the predetermined variables
and (ii) the stationarity of the solution:
SF,t = (PF F )1 PF B SB,t = SB,t
Plugging this result in the law of motion of backward variables we have
SB,t+1 = (WBB + WBF )SB,t + RB Et+1 + ZB,t+1
but by definition, no expectation error may be done when predicting a predetermined variable, such that ZBt+1 = 0. Hence, the solution of the problem is
given by
SB,t+1 = MSS SB,t + MSE Et+1
(1.15)
cc
(1.16)
Yt = SB,t
(1.17)
SF,t = SB,t
(1.18)
38
1.5
In this section we present a method to solve for multivariate rational expectations models, a because there are many of them (almost as many as authors
that deal with this problem).9 The one we present was introduced by Sims
[2000] and recently revisited by Lubik and Schorfheide [2003]. It has the advantage of being general and explicitly dealing with expectation errors. This
latter property makes it particularly suitable for solving sunspot equilibria.
1.5.1
ues from a system which is not invertible. One way to think of this approach is
to remember that when we compute the eigenvalues of a diagonalizable matrix
A, we want to find a number and an associated eigenvector V such that
(A I)V = 0
The generalized Schur decomposition of two matrices A and B attempts to
compute something similar, but rather than considering (AI), the problem
considers (A B). A more formal, and above all a more rigorous
statement of the Schur decomposition is given by the following definitions and
theorem.
Definition 4 Let P C Cnn be a matrixvalued function of a complex
variable (a matrix pencil). Then the set of its generalized eigenvalues (P ) is
defined as
(P ) = {z C : |P (z) = 0}
When P (z) writes as Az B, we denote this set as (A, B). Then there exists
a vector V such that BV = AV .
Definition 5 Let P (z) be a matrix pencil, P is said to be regular if there
exists z C such that |P (z)| =
6 0 i.e. if (P ) 6= C.
9
In the appendix we present an alternative method that enables you to solve for singular
systems.
39
for nonsquare matrices and is the most general form of diagonalization. Any
complex matrix A(n m) can be factored into the form
A = U DV
where U (n n), D(n m) and V (m m), with U and V unitary matrices
(U U = V V = I(nn) ). D is a diagonal matrix with positive values dii ,
i = 1 . . . r and 0 elsewhere. r is the rank of the matrix. dii are called the
singular values of A.
1.5.2
Representation
(1.19)
40
1
0
0
1
1
0
0
0 0 0
1 0 0 0
0 1 0 0
0 0 0
0 0 0 0
1 1
Y
=
t
0 0 0 0
0 0
0 0 1
0 0 0 0
0
0
1
0
0
0
0 t + 0
0
Y
+
t1
0
0
0
1
0
0
1
0
0
0
1.5.3
We now turn to the resolution of the system (1.19). Since, A0 is not necessarily
invertible, we will make full use of the generalized Schur decomposition of
(A0 , A1 ). There therefore exist matrices Q, Z, T and S such that
Q T Z = A0 , Q SZ = A1 , QQ = ZZ = Inn
10
y
t
41
and T and S are upper triangular. Let us then define Xt = Z Yt and pre
multiply (1.19) by Q to get
T11 T12
W1,t
S11 S12
W1,t1
Q1
=
+
(Bt + Ct )
0 T22
W2,t
0 S22
W2,t1
Q2
(1.20)
Let us assume, without loss of generality that the system is ordered and partitioned such that the m 1 vector W2,t is purely explosive. Accordingly, the
remaining n m 1vector W1,t is stable. Let us first focus on the explosive
part of the system
T22 W2,t = S22 W2,t1 + Q2 (Bt + Ct )
For this particular block, the diagonal elements of T22 can be null, while S22
is necessarily full rank, as its diagonal elements must be different from zero if
the model is not degenerate. Therefore, the model may be written
1
1
W2,t = M W2,t+1 S22
Q2 (Bt+1 + Ct+1 ) where M S22
T22
1
M s1 S22
Q2 (Bt+s + Ct+s )
s=1
1
M s1 S22
Q2 (Bt+s + Ct+s )
s=1
Note that by definition of the vector Yt which does not involve any variable
which do not belong to the information set available in t, we should have
Et W2,t = W2,t . But,
Et W2,t = Et
1
M s1 S22
Q2 (Bt+s + Ct+s ) = 0
s=1
(1.21)
42
Our problem is now to know whether we can pin down the vector of expectation errors uniquely from that set of restrictions. Indeed, the vector t may
not be uniquely determined. This is the case for instance when the number
of expectation errors k exceeds the number of explosive components m. In
this case, equation (1.21) does not provide enough restrictions to determine
uniquely the vector t . In other words, it is possible to introduce expectation
errors which are not related with fundamental uncertainty the socalled
sunspot variables.
Sims [2000] shows that a necessary and sufficient condition for a stable solution
to exist is that the column space of Q2 B be contained in the column space of
Q2 C:
span(Q2 B) span(Q2 C)
Otherwise stated, we can reexpress Q2 B as a linear function of Q2 C (Q2 B =
Q2 C), implying that k > m. This is actually a generalization of the socalled
Blanchard and Khan condition that states that the number of explosive eigenvalues should be equal to the number of jump variables in the system. Lubik
and Schorfheide [2003] complement this statement by the following lemma.
Lemma 1 Statements (i) and (ii) are equivalent
(i) For every t R , there exists an t Rk such that Q2 Bt + Q2 Ct = 0.
(ii) There exists a (real) k matrix such that Q2 B = Q2 C
Endowed with this lemma, we can compute the set of all solutions (fully determinate and indeterminate solutions), reported in the following proposition.
Proposition 5 (Lubik and Schorfheide [2003]) Let t be a p 1 vector
of sunspot shocks, satisfying Et1 t = 0. Suppose that condition (i) of lemma
1 is satisfied. The full set of solutions for the forecast errors in the linear
rational expectations model is
1
t = (V1 D11
U1 Q2 B + V2 M1 )t + V2 M2 t
U
|{z}
mm
0
0
D
|{z}
mk
V
|{z}
kk
V1
V2
= U1 D11 V1
(1.22)
(1.23)
e = V1
43
44
e , we get
Therefore, plugging this result in the determination of
e = D1 U Q2 B
11 1
e + V2 M1 , we finally get
Since = V1
1
= V1 D11
U1 Q2 B + V2 M1
This last result tells us how to solve the model and under which condition
the system is determined or not. Indeed, let us recall that k is the number
of expectation errors, while r is the number of linearly independent expectation errors. According to this proposition, if k = r, all expectation errors
are linearly independent, and the system is therefore totally determinate. M1
and M2 are identically zeros. Conversely, if k > r expectation errors are not
linearly independent, meaning that the system does not provide enough restrictions to uniquely pin down the expectation errors. We therefore have to
introduce extrinsic uncertainty in the system the socalled sunspot variables. We will deal first with the determinate case, before considering the case
of indeterminate system.
Determinacy
This case occurs when the number of expectation errors exactly matches the
number of explosive components (k = m), or otherwise stated in the case
45
while that of purely extrinsic expectation errors is nil. To get such an effect
.
in the first part of system (1.20), we shall premultiply by the matrix [I .. ]
1
where Q1 CV1 D11
U1 . Then, taking into account that W2t = 0, we have
W1,t
W2,t
S11 S12 S22
W1,t1
=
0
0
W2,t1
Q1 Q2
Bt
+
0
1
1
T11
T11
(T12 T22 )
0
I
we have
1
1
1
W1,t1
W1,t
T11 (Q1 Q2 )
T11 S11 T11
(S12 S22 )
Bt
+
=
W2,t1
W2,t
0
0
0
Now recall that Wt = Z Yt and that ZZ = I. Therefore, premultiplying the
last equation by Z, we end up with a solution of the form
Yt = My Yt1 + Me t
(1.24)
with
M =Z
1
1
T11
S11 T11
(S12 S22 )
0
0
Z and Me = Z
1
T11
(Q1 Q2 )
0
46
Indeterminacy
This case arises as soon as the number of expectation errors is greater than the
number of explosive components (k > m), which translates into the fact that
k > r. As shown in proposition 5, the expectation errors are then not only
linear combinations of fundamental disturbances for all t but also of purely
extrinsic disturbances called sunspot variables. Then, the expectation errors
are shown to be of the form
1
t = (V1 D11
U1 Q2 B + V2 M1 )t + V2 M2 t
where both M1 and M2 can be freely chosen. This actually raises several questions. The first one is how to select M1 and M2 ? They are totally arbitrary
the only restriction we have to impose is that M1 is a (k r) matrix and M2
is a (k r) p matrix. A second one is then how to interpret these sunspots?
In order to partially circumvent these difficulties, it is useful to introduce the
notion of beliefs. For instance, this amounts to introduce new shocks the
sunspots beside the standard expectation error. In such a case, a variable
yt will be determined by its expectation at time t 1, a shock on the beliefs
that leads to a revision of forecasts, and the expectation error
yt = Et1 yt + t + t
where t is the shock on the belief, that satisfies Et1 t = 0, and t is the
expectation error. t is a k 1 vector. Then the system 1.19 rewrites
A0 Yt = A1 Yt1 + Bt + C(t + t )
which can be restated in the form
A0 Yt = A1 Yt1 + B
t
t
+ C t
where B = [B C]. Implicit in this rewriting of the system is the fact that the
belief shock be treated like a fundamental shock, therefore condition (1.21)
rewrites
Q2 B
t
t
+ Q2 C t = 0
47
This shows that the expectation error is a function of both the fundamental
shocks and the beliefs.
If this latter formulation furnishes an economic interpretation to the sunspots,
it leaves unidentified the matrices M1 and M1 . From a practical point of view,
we can, arbitrarily, set these matrices to zeros and then proceed exactly as in
the determinate case, replacing B by B in the solution. This leads to
t
(1.25)
Yt = My Yt1 + Me
t
with
M =Z
1
1
(S12 S22 )
S11 T11
T11
0
0
Z and Me = Z
1
(Q1 Q2 )
T11
0
Note however, that even if we know the form of the solution, we know nothing
about the statistical properties of the t shocks. In particular, we do not know
their covariance matrix that can be set arbitrarily.
1.5.4
In this section, we will show you how the solution may be used to study the
dynamic properties of the model from a quantitative point of view. We will
basically address two issues
1. Impulse response functions
2. Computation of moments
Impulse response functions
As we have already seen in the preceding chapter, the impulse response function of a variable to a shock gives us the expected response of the variable to
a shock at different horizons in other words this corresponds to the best
linear predictor of the variable if the economic environment remains the same
in the future. For instance, and just to remind you what it is, let us consider
the case of an AR(1) process:
xt = xt1 + (1 )x + t
48
Assume for a while that no shocks occurred in the past, such that xt remained
steady at the level x from t = 0 to T . A unit positive shock of magnitude
occurs in T , xT is then given by
xT = x +
xt
Time
49
if i = k
otherwise
Since both t are innovations, they are orthogonal to Yt , such that the previous
equation reduces to
yy = My yy My + Me ee ME
Solving this equation for SS can be achieved remembering that vec(ABC) =
(A C )vec(B), hence
vec(yy ) = (I My My )1 vec(ee )
50
The computation of covariances at leads and lags proceeds the same way. For
). From
instance, assume we want to compute jSS = E(St Stj
Yt = My Yt1 + Me t
we know that
Yt =
Myj Ytj
+ Me
j
X
Myi ti
i=0
Therefore,
E(Yt Ytj
)
+ Me
j
X
i=0
Since are innovations, they are orthogonal to any past value of Y , such that
0
if i < j
E(ti Ytj ) =
ee Me if i = j
Then, the previous equation reduces to
E(Yt Ytj
) = Myj yy + Me Myj ee Me
1.6
Economic examples
This section intends to provide you with some economic applications of the set
of tools we have described up to now. We will consider three examples, two of
which may be thought of as micro examples. In the first one a firm decides on
its labor demand, the second one is a macro model and endogenous growth
model `
a la Romer [1986] which allows to show that even a nonlinear model
may be expressed in linear terms and therefore may be solved in a very simple
way. The last one deals with the socalled Lucas critique which has strong
implications on the econometric side.
1.6.1
51
Labor demand
We consider the case of a firm that has to decide on its level of employment.
The firm is infinitely lived and produces a good relying on a decreasing returns
to scale technology that essentially uses labor another way to think of it
would be to assume that physical capital is a fixedfactor. This technology is
represented by the production function
Yt = f0 nt
f1 2
n with f0 , f1 > 0.
2 t
f1 2
2
max Et
f0 nt+s nt+s wt+s nt+s (nt+s nt+s1 )
1+r
2
2
{n }
=0
s=0
none
none
s
1
f1 2
2
Et
f0 nt+s nt+s wt+s nt+s (nt+s nt+s1 )
1+r
2
2
s+1
1
(nt+s+1 nt+s )2
Et
1+r
2
none
52
mizing
s
1
1
f1 2
2
2
Et
(nt+s+1 nt+s )
f0 nt+s nt+s wt+s nt+s (nt+s nt+s1 )
1+r
2
2
1+r 2
which yields the following first order condition
s
1
1
Et
f0 f1 nt+s wt+s (nt+s nt+s1 ) +
(nt+s+1 nt+s ) = 0
1+r
1+r
since r is a constant this reduces to
1
(nt+s+1 nt+s ) = 0
Et f0 f1 nt+s wt+s (nt+s nt+s1 ) +
1+r
Now remark that this relationship holds whatever s, such that we may restrict
ourselves to the case s = 0 which then yields noting that nti , i > 0 belongs
to the information set
f0 f1 nt wt (nt nt1 ) +
(Et nt+1 nt ) = 0
1+r
rearranging terms
1+r
f1 (1 + r)
nt + (1 + r)nt1 +
(f0 wt ) = 0
Et nt+1 2 + r +
T +
P (F ) may be factorized as
P (F ) = (F 1 )(F 2 )
Let us compute the discriminant of this second order polynomial
f1 (1 + r) 2
f1
f1
2+r+
(1 + r) + 2(2 + r) > 0
4(1 + r) = (1 + r)
53
Hence, since > 0, we know that the two roots are real. Further
f1 (1 + r)
<0
f1
P (1) = (1 + r) + 2(2 + r) > 0
P (0) = 1 + r > 0
f1 (1 + r)
1
2+r+
>1
P (x) = 0 x =
2
P (1) =
P (0) being greater than 0 and since P(1) is negative, one root lies between
0 and 1, and the other one is therefore greater than 1 since lim P (x) = .
x
1 + r wt f 0
F 2
or
nt = 1 nt1 +
1 + r f0 wt
1 + r X i
2 Et (f0 wt+i )
=
n
+
1 t1
2 1 1
2
2 F
i=0
1 X i
nt = 1 nt1 +
2 Et (f0 wt+i )
i=0
f0 (1 + r)
1 X i
2 Et wt+i
nt =
+ 1 nt1
(2 1)
i=0
For practical purposes let us assume that wt follows an AR(1) process of the
form
wt = wt1 + (1 )w + t
we have
Et wt+i = i wt + (1 i )w
such that nt rewrites
nt =
f0 (1 + r)
1+r
(1 + r)(1 )
w + 1 nt1
wt
(2 1) (2 1)(2 )
( 2 )
54
i Et wt+i
i=0
X
X
i Et+1 wt+i+1
i Et wt+i +
Et 0 + 1 0 + 1 nt1 +
i=0
i=0
!
X
f1 (1 + r)
i Et wt+i
0 + 1 nt1 +
2+r+
i=0
1+r
+(1 + r)nt1 +
(f0 wt ) = 0
which rewrites
0 (1 + 1 ) +
12 nt1
+ 1
i Et wt+i +
i=0
f1 (1 + r)
0 + 1 nt1 +
2+r+
+(1 + r)nt1 +
1+r
(f0 wt ) = 0
i Et wt+i+1
i=0
i Et wt+i
i=0
f1 (1+r)
(1
+
2
+
r
+
0 + 1+r
0
1
f0 = 0
f
(1+r)
2 2 + r + 1
1 + (1 + r) = 0
1
f
(1+r)
1
0 1 2 + r +
1+r
=0
f
(1+r)
1
i 1 2 + r +
+ i1 = 0
The second equation of the system exactly corresponds to the second order
polynomial we solved in the factorization method. The system therefore exhibits the saddle path property so that 1 (0, 1) and 2 (1, ). Let us
recall that 1 + 2 = 2 + r + f1 (1 + r)/, such that the system for 0 and i
rewrites
0 (1 + 1 ) 2 + r +
0 2 1+r
=0
1
i = 2 i1
f1 (1+r)
0 +
1+r
f0
=0
55
Therefore, we have
0 =
1+r
1
=
2
and i = i
2 0 . Finally, we have
0 =
f0 (1 + r)
(2 1)
1 X i
f0 (1 + r)
2 Et wt+i
+ 1 nt1
nt =
(2 1)
i=0
n 2+r+
(f0 w) = 0 n =
n + (1 + r)n +
f1
Denoting n
bt = nt n and w
bt = wt w, and introducing the technical
variable zbt+1 = n
bt , the Labor demand reexpresses as
1+r
f1 (1 + r)
w
bt = 0
n
bt + (1 + r)b
zt
Et n
bt+1 2 + r +
Et1 n
bt + t , the system expresses as
1
0
0
1
1
1
0
2+r+
f1 (1+r)
0
0
1
0
0
0
1+r
zbt+1
n
bt
w
bt
Et n
bt+1
0
0
0
(1 + r)
0
0
1
0
0
0
0
0
0
0
t +
0
1
0
0
0
1
0
0
zbt
n
bt1
w
bt1
Et1 n
bt
We now provide you with an example of the type of dynamics this model
may generate. Figure 1.13 reports the impulse response function of labor to
56
f0
1
f1
0.2
0.001/1
w
0.6
0.95
a positive shock on the real wage (table 1.1 reports the parameterization).
As expected, labor demand shifts downward instantaneously, but depending
on the size of the adjustment cost, the magnitude of the impact effect differs. When adjustment costs are low, the firm drastically cuts employment,
which goes back steadily to its initial level as the effects of the shock vanish. Conversely, when adjustment costs are high, the firm does not respond as
Figure 1.13: Impulse Response to a Wage Shock
Small adjustment costs ( = 0.001)
Real Wage
Labor Demand
0.8
0.6
0.4
0.2
0
10
Time
15
5
0
20
10
Time
15
20
15
20
Labor Demand
1.5
2
0.8
2.5
0.6
3
0.4
0.2
0
3.5
5
10
Time
15
20
4
0
10
Time
much as before since it wants to avoid paying the cost. Nevertheless, it remains
optimal to cut employment, so in order to minimize the cost, the firm spreads
it intertemporally by smoothing the employment profile, therefore generating
a hump shaped response of employment.
57
58
1.6.2
We consider an economy that consists of a large number of dynastic households and a large number of firms. Firms are producing a homogeneous final
product that can be either consumed or invested by means of capital and labor
services. Firms own their capital stock and hire labor supplied by the households. Households own the firms. In each and every period three perfectly
competitive markets open the markets for consumption goods, labor services, and financial capital in the form of firms shares. Household preferences
are characterized by the lifetime utility function:
Et
X
s=0
h1+
log(ct+s ) t+s
1+
s
(1.26)
(1.27)
(1.28)
(1.29)
59
{ct+s ,kt+1+s }
s=0
Et
s log(ct+s )
s=0
s.t.
h1+
t+s
1+
kt+1 =yt = at kt h1
ct + (1 )kt
t
log(at ) = log(at1 ) + (1 ) log(a) + t
The set of conditions characterizing the equilibrium is given by
yt
h
t ct =(1 )
ht
yt =at kt h1
t
yt =ct + it
kt+1 =it + (1 )kt
yt+1
ct
+1
1 =Et
ct+1
kt+1
(1.30)
(1.31)
(1.32)
(1.33)
(1.34)
kt+1+s
=0
ct+s
The problem with this dynamic system is that it is fundamentally nonlinear
lim s
and therefore the methods we have developed so far are not designed to handle
it. The usual way to deal with this type of system is then to take a linear
or loglinear approximation of each equation about the deterministic steady
state. Therefore, the first step is to find the deterministic steady state.
Deterministic steady state
able, x, is the value x such that xt = x for all t. Therefore, the steady state
of the RBC model is characterized by the set of equations:
y
h c =(1 )
h
y =ak h 1
(1.35)
(1.36)
y t =c + i
(1.37)
k =i + (1 )k
y
1 =Et
+1
k
(1.38)
(1.39)
60
i
k
=
y
y
c
=
=
s
=
= 1 si
c
y
1 (1 )
y
si
h =
1
sc
1
1+
y =a
1 (1 )
h , c = sc y , i = y c .
Then, a restatement of the problem is in order, as we are to take an approximation with respect to log(x):
f (x) f (exp(log(x)))
which leads to the following first order Taylor expansion
f (x) f (x ) + f (exp(log(x )))exp(log(x ))b
x = f (x ) + f (x )x x
b
61
Applying this technic to the system (1.30)(1.34), we end up with the system
(1 + )b
ht + b
ct ybt
(1.40)
ybt (1 )b
ht b
ht b
at = 0
(1.41)
ybt sc b
ct sibit = 0
(1.42)
b
kt+1 bit (1 )b
kt = 0
(1.43)
Et b
ct+1 b
ct (1 (1 ))(Et ybt+1 Et b
kt+1 )
(1.44)
b
at b
at1 bt
(1.45)
Note that only the last three equations of the system involve dynamics, but
they depend on variables that are defined in the first three equations. Either
we solve the first three equations in terms of the state and costate variables,
or we adapt a little bit the method. We choose the second solution.
Let us define Yt = {b
kt+1 , b
at , Et b
ct+1 } and Xt = {b
yt , b
ct , bit , b
ht }. The system can
be rewritten as a set of two equations. The first one gathers static equations
x Xt = y Yt1 + t + t
1
0
0 1
1
0
0
0
x =
=
1 sc si
0 y 0
1 1
0
1
0
0
0
0
0
1
1
0
=
0 0
0
0
= 1
0
0
62
with
0
0 0 0
1
0 0
0
0 0 0
0
1 0 0x =
0y =
(1 (1 )) 0 0 0
1 (1 ) 0 1
0 0 0
1 0 0
0
1x = 0 0 0 0
1y = 0
0
0 0
0 1 0 0
0
0
1
0
=
=
0
0
Xt = y Yt1 + t + t
where j = 1
x j , j = {y, , }. Furthermore, remembering that Et t+1 =
Et t+1 = 0, we have Et Xt+1 = y Yt . Hence, plugging this result and the first
equation in the second equation we get
A0 Yt = A1 Yt+1 + Bt + Ct
where A0 = 0y +0x y , A1 = 1y +1x y , B = +0x and C = +0x .
We then just use the algorithm as described previously.
Then, we make use of the result in proposition 5, to get t . Since it turns
out that the model is determinate, the expectation error is a function of the
fundamental shock t
1
t = V1 D11
U1 Q2 Bt
Plugging this result in the equation governing static equations, we end up with
1
Xt = y Yt1 + (e V1 D11
U1 Q2 B)t
63
0.4
0.988
0.025
delta
= 0.025;
rho
= 0.95;
beta
= 0.988;
%
% Deterministic Steady state
%
ysk = (1-beta*(1-delta))/(alpha*beta);
ksy = 1/ysk;
si = delta/ysk;
sc = 1-si;
% Define:
%
% Y=[k(t+1) a(t+1) E_tc(t+1)]
%
% X=[y,c,i,h]
%
ny = 3; % # of variables in vector Y
nx = 4; % # of variables in vector X
ne = 1; % # of fundamental shocks
nn = 1; % # of expectation errors
%
% Initialize the Upsilon matrices
%
UX=zeros(nx,nx);
UY=zeros(nx,ny);
UE=zeros(nx,ne);
UN=zeros(nx,nn);
G0Y=zeros(ny,ny);
G1Y=zeros(ny,ny);
G0X=zeros(ny,nx);
G1X=zeros(ny,nx);
GE=zeros(ny,ne);
GN=zeros(ny,nn);
%
% Production function
%
UX(1,1)=1;
UX(1,4)=alpha-1;
UY(1,1)=alpha;
UY(1,2)=rho;
UE(1)=1;
%
% Consumption c(t)=E(c(t)|t-1)+eta(t)
%
0.95
64
UX(2,2)=1;
UY(2,3)=1;
UN(2)=1;
%
% Resource constraint
%
UX(3,1)=1;
UX(3,2)=-sc;
UX(3,3)=-si;
%
% Consumption-leisure arbitrage
%
UX(4,1)=-1;
UX(4,2)=1;
UX(4,4)=1;
%
% Accumulation of capital
%
G0Y(1,1)=1;
G1Y(1,1)=1-delta;
G1X(1,3)=delta;
%
% Productivity shock
%
G0Y(2,2)=1;
G1Y(2,2)=rho;
GE(2)=1;
%
% Euler equation
%
G0Y(3,1)=1-beta*(1-delta);
G0Y(3,3)=1;
G0X(3,1)=-(1-beta*(1-delta));
G1X(3,2)=1;
%
% Solution
%
% Step 1: solve the first set of equations
%
PIY = inv(UX)*UY;
PIE = inv(UX)*UE;
PIN = inv(UX)*UN;
%
% Step 2: build the standard System
%
A0 = G0Y+G0X*PIY;
A1 = G1Y+G1X*PIY;
B
= GE+G1X*PIE;
C
= GN+G1X*PIN;
%
% Step 3: Call Sims routine
%
[MY,ME,ETA,MU_]=sims_solve(A0,A1,B,C);
%
65
1.6.3
Let us consider the simplest new keynesian model, with the following IS curve
yt = Et yt+1 (it Et t+1 ) + gt
where yt denotes output, t is the inflation rate, it is the nominal interest rate
and gt is a stochastic shock that follows an AR(1) process of the form
gt = g gt1 + gt
the model also includes a Phillips curve that relates positively inflation to the
output gap
t = yt + Et t+1 + ut
where ut is a supply shock that obeys
ut = u ut1 + ut
For stationarity purposes, we have |g | < 1 and |u | < 1.
The model is closed by a simple Taylor rule of the form
it = t + y yt
66
Consumption
0.8
1.8
0.7
1.6
1.4
0.6
1.2
0.5
1
0.8
0
10
Time
15
20
0.4
0
Investment
10
Time
15
20
15
20
Hours worked
1.5
5
4
3
2
0.5
1
0
0
10
Time
15
20
0
0
10
Time
67
Plugging this rule in the first equation, and remembering the definition of
expectation errors, the system rewrites
yt =Et1 yt + ty
t =Et1 t + t
gt =g gt1 + gt
ut =u ut1 + ut
(1 + y )yt =Et yt+1 t + Et t+1 + gt
t =yt + Et t+1 + ut
Defining Yt = {yt , t , gt , ut , Et yt+1 , Et t+1 } and t = {ty , t }, the system
rewrites
1
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
1 + y + 1 0 1
1
0 1 0
0
0
Yt = 0
0
0 0 0 1
0 0 0 0
0 g 0 0
0 0 u 0
0 0 0 0
0 0 0 0
0 0
0 0
1 0
t +
0 1
0 0
0 0
0
1
0
0
0
0
1
0
0
0
0
0
Yt1
0
1
0
0
0
0
0.4
0.9
g
0.9
u
0.9
y
0.25
1.5/0.5
68
%
alpha
= 0.4;
gy
= 0.25;
gp
= 0.5;
rho_g
= 0.9;
rho_u
= 0.95;
lambda = 1;
beta
= 0.9;
% Define:
%
% Y=[y(t),pi(t),g(t),u(t),E_t y(t+1),E_t pi(t+1)]
%
ny = 6; % # of variables in vector Y
ne = 2; % # of fundamental shocks
nn = 2; % # of expectation errors
%
% Initialize the matrices
%
A0 = zeros(ny,ny);
A1 = zeros(ny,ny);
B
= zeros(ny,ne);
C
= zeros(ny,nn);
%
% Output
%
A0(1,1) = 1;
A1(1,5) = 1;
C(1,1) = 1;
%
% Inflation
%
A0(2,2) = 1;
A1(2,6) = 1;
C(2,2) = 1;
%
% IS shock
%
A0(3,3) = 1;
A1(3,3) = rho_g;
B(3,1) = 1;
%
% Supply shock
%
A0(4,4) = 1;
A1(4,4) = rho_u;
B(4,2) = 1;
%
% IS curve
%
A0(5,1) = 1+alpha*gy;
A0(5,2) = alpha*gp;
A0(5,3) = -1;
A0(5,5) = -1;
A0(5,6) = -alpha;
69
%
% Phillips Curve
%
A0(6,1) = -lambda;
A0(6,2) = 1;
A0(6,4) = -1;
A0(6,6) = -beta;
%
% Call Sims routine
%
[MY,ME,ETA,MU_]=sims_solve(A0,A1,B,C);
1.6.4
AK growth model
s log(Ct+s )
s=0
70
havior of the consumer. The first order condition associated to the consumption/savings decisions may be obtained forming the following Lagrangean,
where t is the multiplier associated to the resource constraint
Lt = Et
s=0
Terms involving Ct :
max Et (log(Ct ) t Ct ) = max (log(Ct ) t Ct )
{Ct }
{Ct }
{Kt+1 }
71
T
X
k=0
k + lim T Et (XT +1 )
T
The second term in the right hand side of the latter equation corresponds
precisely to the transversality condition. Hence, Xt reduces to
Xt =
Kt+1 =
Ct
1
1
72
consumption, output and investment are just a linear function of capital, the
nonstationarity of capital translates into the non stationarity of these variables. Nevertheless, as can be seen from the law of motion of consumption, for
example, log(Ct ) log(Kt ) is a stationary process. Kt and Ct are then said
to be cointegrated with a cointegrating vector (1, 1).
This has extremely important economic implications, that may be analyzed
in the light of the impulse response functions, reported in figure 1.15. In fact,
figure 1.15 reports two balanced growth paths for each variable: The first one
corresponds to the path without any shock, the second one corresponds to
the path that includes a non expected positive shock on technology in period
10. As can be seen, this shock yields a permanent increase in all variables.
Therefore, this model can account for the fact that countries may not converge.
Why is that so? The answer to this question is actually simple and may be
Figure 1.15: Impulse response functions
Output
Consumption
0.052
0.0135
0.05
0.013
0.048
0.0125
0.046
0.012
0.044
0.0115
0.042
0.011
0.04
0.0105
0.038
10
20
30
40
50
0.01
10
20
30
Time
Time
Investment
Capital
40
50
40
50
0.038
1.3
0.036
0.034
1.2
0.032
1.1
0.03
0.028
10
20
30
Time
40
50
10
20
30
Time
73
Consumption
0.09
0.024
0.08
0.022
0.02
0.07
0.018
0.06
0.016
0.05
0.014
0.04
0.03
0.012
0
50
100
Time
150
200
0.01
50
Investment
100
Time
150
200
150
200
Capital
0.07
2.5
0.06
2
0.05
0.04
1.5
0.03
0.02
50
100
Time
150
200
50
100
Time
the rate of growth of each variable, which estimates are reported in table (1.4)
and which distributions are represented in figures 1.171.20. It is interesting
to note that all variables exhibit when taken in loglevels a spurious
correlation with output that just reflects the existence of a common trend due
to the balanced growth path hypothesis.
74
Corr(.,Y )
Corr(.,Y )
Y
0.40
0.79
1.00
-0.01
Y
0.99
C
0.40
0.09
0.30
0.93
C
0.99
I
0.40
1.06
0.99
-0.02
I
0.99
K
0.40
0.09
-0.08
0.93
K
0.99
Consumption
200
200
150
150
100
100
50
50
4
Time
4
Time
x 10
Investment
200
150
150
100
100
50
50
4
Time
6
3
x 10
Capital
200
6
3
x 10
0
2.5
3.5
4
Time
4.5
5.5
3
x 10
75
Consumption
200
200
150
150
100
100
50
50
8
Time
10
x 10
0.5
1
Time
Investment
200
150
150
100
100
50
50
0.01
2
x 10
Capital
200
0
0.008 0.009
1.5
0.5
1
Time
1.5
2
x 10
Consumption
5000
250
4000
200
3000
150
2000
100
1000
50
0
60
40
20
0
Time
20
40
60
0
0.2
0.25
Investment
0.3
0.35
Time
0.4
0.45
Capital
250
200
200
150
150
100
100
50
50
0
0.998
0.9985
0.999 0.9995
Time
1.0005
0
0.4
0.2
0
Time
0.2
0.4
76
Consumption
200
250
200
150
150
100
100
50
0
0.4
50
0.2
0
Time
0.2
0.4
0
0.7
0.75
Investment
200
150
150
100
100
50
50
0.2
0
Time
0.85
Time
0.9
0.95
Capital
200
0
0.4
0.8
0.2
0.4
0
0.4
0.2
0
Time
0.2
0.4
77
78
for s
= 1:nsim;
disp(s)
randn(state,s);
e
= randn(long,1)*se;
a
= zeros(long,1);
K
= zeros(long,1);
a(1) = log(ab)+e(1);
K(1) = K0;
for
i
= 2:long;
a(i)= rho*a(i-1)+(1-rho)*log(ab)+e(i);
K(i)= beta*(exp(a(i-1))+1-delta)*K(i-1);
end;
C
= (1-beta)*(exp(a)+1-delta).*K;
Y
= exp(a).*K;
I
= Y-C;
X
= [Y C I K];
dx
= diff(log(X));
mx(s,:)
= mean(dx);
sx(s,:)
= std(dx);
tmp
= corrcoef(dx);cx(s,:)=tmp(1,:);
tmp
= corrcoef(dx(2:end,1),dx(1:end-1,1));ry=tmp(1,2);
tmp
= corrcoef(dx(2:end,2),dx(1:end-1,2));rc=tmp(1,2);
tmp
= corrcoef(dx(2:end,3),dx(1:end-1,3));ri=tmp(1,2);
tmp
= corrcoef(dx(2:end,4),dx(1:end-1,4));rk=tmp(1,2);
rx(s,:)
= [ry rc ri rk];
end;
disp(mean(mx))
disp(mean(sx))
disp(mean(cx))
disp(mean(rx))
1.6.5
Announcements
In the last two examples, we will help you to give an answer to this crucial
question:
Why do these two guys annoy us with rational expectations?
In this example we will show you how different may the impulse response to a
shock be different depending on the fact that the shock is announced or not.
To illustrate this issue, let us go back to the problem of asset pricing. Let pt
be the price of a stock, dt be the dividend which will be taken as exogenous
and r be the rate of return on a riskless asset, assumed to be held constant
over time. As we have seen earlier, standard theory of finance states that when
agents are risk neutral, the asset pricing equation is given by:
Et pt+1 pt dt
+
=r
pt
pt
79
or equivalently
1
1
Et pt+1 +
dt
1+r
1+r
Let us now consider that the dividend policy of the firm is such that from
pt =
period 0 on, the firm serves a dividend equal to d0 . The price of the asset is
therefore given by
i
1 X
1
d0
pt =
Et dt+i =
1+r
1+r
r
i=0
Unexpected shock
2.5
2.5
1.5
1.5
0.5
10
20
30
Time
40
50
60
0.5
10
20
t0=20, T=40
2.5
1.5
1.5
10
20
30
Time
40
50
60
40
50
60
t0=30, T=40
2.5
0.5
30
Time
40
50
60
0.5
10
20
30
Time
80
it
it
T 1
1 X
1
1 X
1
d0 +
d1
1+r
1+r
1+r
1+r
i=t
i=T
it
it
T
1
X
X
1
1
1
1
d0 +
(d1 d0 + d0 )
1+r
1+r
1+r
1+r
i=t
i=T
it
it
1
1
1 X
1 X
d0 +
(d1 d0 )
1+r
1+r
1+r
1+r
i=t
i=T
d1
r
Hence, the dynamics of the asset price is given by
d0
for t < t0
r
T t
d1 d0
d0
1
pt =
for t0 6 t 6 T
+ 1+r
r
dr1
for t > T
r
pt =
Hence, compared to the earlier situation, there is now a transition phase that
takes place as soon as the individuals has learnt the news and exploits this
additional piece of information when formulating her expectations. This dynamics is depicted in figure 1.21 for different dates of announcement.
1.6.6
As a last example, we now have a look at the socalled Lucas critique. One
typical answer to the question raised in the previous section may be found
81
in the socalled Lucas critique (see e.g. Lucas [1976]) , or the econometric
policy evaluation critique, which asserts that because the apparently (for old
fashioned econometricians) structural parameters of a model may change when
policy changes, standard econometrics may not be used to study alternative
regimes. In order to illustrate this point, let us go back to the simplest example
we were dealing with:
yt = aEt yt+1 + bxt
xt = xt1 + t
which solution is given by
b
xt
1 a
Now let us assume for a while that yt denotes output and xt is money, which is
yt =
82
10
15
20
Time
25
30
35
40
b
xt
1 a
83
think of the model, solve the model and therefore evaluate and test the model.
This will be studied in the next chapter.
84
Bibliography
Blanchard, O. and C. Kahn, The Solution of Linear Difference Models under
Rational Expectations, Econometrica, 1980, 48 (5), 13051311.
Blanchard, O.J. and S. Fisher, Lectures on Macroeconomics, Cambridge: MIT
Press, 1989.
Lubik, T.A. and F. Schorfheide, Computing Sunspot Equilibria in Linear Rational Expectations Models, Journal of Economic Dynamics and Control,
2003, 28, 273285.
Lucas, R., Econometric policy Evaluation : a Critique, in K. Brunner and
A.H. Meltzer, editors, The Phillips Curve and Labor Markets, Amsterdam: NorthHolland, 1976.
Muth, J.F., Optimal Properties of Exponentially Weighted Forecasts, Journal
of the American Statistical Association, 1960, 55.
, Rational Expections and the Theory of Price Movements, Econometrica, 1961, 29, 315335.
Romer, P., Increasing Returns and Long Run Growth, Journal of Political
Economy, 1986, 94, 10021037.
Sargent, T., Macroeconomic Theory, MIT Press, 1979.
Sargent, T.J., Dynamic Macroeconomic Theory, Londres: Harvard University
Press, 1987.
Sims, C., Solving Linear Rational Expectations Models, manuscript, Princeton
University 2000.
85
86
BIBLIOGRAPHY
Contents
1 Expectations and Economic Dynamics
1.1
1.2
1.2.1
1.2.2
1.2.3
15
1.2.4
18
23
1.3.1
. . . . . . . .
24
1.3.2
Factorization . . . . . . . . . . . . . . . . . . . . . . . .
28
1.3.3
A matricial approach . . . . . . . . . . . . . . . . . . . .
29
33
1.4.1
Representation . . . . . . . . . . . . . . . . . . . . . . .
33
1.4.2
35
38
1.5.1
38
1.5.2
Representation . . . . . . . . . . . . . . . . . . . . . . .
39
1.5.3
40
1.5.4
47
Economic examples . . . . . . . . . . . . . . . . . . . . . . . . .
50
1.6.1
Labor demand . . . . . . . . . . . . . . . . . . . . . . .
51
1.6.2
58
1.6.3
65
1.6.4
AK growth model . . . . . . . . . . . . . . . . . . . . .
69
1.6.5
Announcements . . . . . . . . . . . . . . . . . . . . . . .
78
1.3
1.4
1.5
1.6
87
88
CONTENTS
1.6.6
80
List of Figures
1.1
10
1.2
Forward Solution . . . . . . . . . . . . . . . . . . . . . . . . . .
12
1.3
16
1.4
Backward Solution . . . . . . . . . . . . . . . . . . . . . . . . .
17
1.5
Deterministic Bubble . . . . . . . . . . . . . . . . . . . . . . . .
20
1.6
Bursting Bubble . . . . . . . . . . . . . . . . . . . . . . . . . .
22
1.7
Backwardforward solution . . . . . . . . . . . . . . . . . . . .
27
1.8
30
1.9
A source . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
31
32
. . . . . . . . . . . . . . . . . . . . . . . . . .
33
48
56
66
. . . . . . . . . . . . . . . . . . . .
72
73
74
75
75
76
79
82
89
90
LIST OF FIGURES
List of Tables
1.1
56
1.2
63
1.3
67
1.4
MonteCarlo Simulations . . . . . . . . . . . . . . . . . . . . .
74
91