Professional Documents
Culture Documents
Technology shocks
Numerical approach: Dynare
Ben J. Heijdra
13 December 2016
Outline
2 Technology shocks
Model
Simulations
Puzzles
+ Sτ (pτ + Dτ ) − Tτ (S3)
e pt+1 − pt + Dt+1
rt+1 ≡ (S4d)
pt
Technology:
CF τ ≡ F (Zτ , Kτ , Lτ ) − wτ Lτ − Iτ (S9)
I ∗ = δK ∗ (ST1.1)
∗
r =ρ (ST1.2)
Y ∗
w∗ = (1 − α) (ST1.3)
L∗
Y ∗
r∗ + δ = α (ST1.4)
K∗
Y = C ∗ + I ∗ + G0
∗
(ST1.5)
1 − ε C∗
L∗ = 1 − (ST1.6)
ε w∗
Y = Ω0 (K ) (L∗ )1−α
∗ ∗ α
(ST1.7)
∗
T = G0 (ST1.8)
Intermediate steps
The deterministic steady state features a number of “Great
Ratios” and constants
real interest rate
capital-output ratio
capital-labour ratio
investment-capital ratio
output per worker and the wage rate
consumption-leisure ratio
The non-linear stochastic ERCK model can be approximately
analyzed (both analytically and numerically) by
defining the perturbation variable:
x
t
x̃t ≡ ln ∗
x
and log-linearizing the stochastic model around the
deterministic steady-state
◮ This gives a linear system of expectational difference equations
Foundations of Modern Macroeconomics - Third Edition Chapter 18 17 / 65
Extended RCK model Households
Technology shocks Firms
Numerical approach: Dynare Equilibrium
∗ ≡ 1−L∗ ∗ ≡ C∗ I∗ G0
with ωLL L∗ , ωC Y∗, ωI∗ ≡ Y∗,
∗ ≡
and ωG Y∗
Foundations of Modern Macroeconomics - Third Edition Chapter 18 18 / 65
Extended RCK model Households
Technology shocks Firms
Numerical approach: Dynare Equilibrium
Quantification (1)
The log-linearized ERCK model can be used to obtain
quantitative results (for impact, transitional, and long-run
effects)
Advantages of using the loglinearized model:
It is expressed in terms of parameters which can be measured
by empirically, e.g. income shares of various macro variables
(ωC∗
, ωI∗ , ωG
∗
, α) etcetera
In a deterministic setting we can solve the model for all kinds
of policy shocks (anticipated/unanticipated,
permanent/temporary)
In a stochastic setting we can solve the stochastic equilibrium
paths for the different endogenous variables by postulating
stochastic processes for the exogenous variables
We can simulate ‘realistically calibrated’ models on the
computer and see how well they fit the real world data (the
Lucas research program)
Foundations of Modern Macroeconomics - Third Edition Chapter 18 19 / 65
Extended RCK model Households
Technology shocks Firms
Numerical approach: Dynare Equilibrium
Quantification (2)
Y∗ =1 C ∗ = 0.599 I ∗ = 0.201
r∗ = 0.0159 L∗ = 0.2 K ∗ = 8.337 (S15)
∗
T = G0 = 0.2 w = 3.333
Remaining tasks
Model solution
0.9
0.8 0.2
0.7
0.6 0.15
K̃t × 100%
Z̃t × 100%
0.5
0.4 0.1
0.3
0.2 0.05
0.1
0 0
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
t t
0.14
8
0.12
6
0.1
C̃t × 100%
0.06
2
0.04
0
0.02
0 −2
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
t t
1.8 1.4
1.6
1.2
1.4
1
1.2
L̃t × 100%
Ỹt × 100%
0.8
1
0.6
0.8
0.4
0.6
0.2
0.4
0.2 0
0 −0.2
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
t t
0.6
4
0.5
3
w̃t × 100%
0.4
r̃t × 100 2
0.3
1
0.2
0
0.1
0 −1
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
t t
~
wt
A LS
~
w !
0
0 ! E0
LD
~ ~
0 L0 Lt
0.9
1.2
0.8
1
0.7
0.6
K̃t × 100%
Z̃t × 100%
0.8
0.5
0.6
0.4
0.3
0.4
0.2
0.2
0.1
0 0
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
t t
1.5 2.8
2.6
1.4
2.4
1.3
C̃t × 100%
I˜t × 100%
2.2
1.2
2
1.1
1.8
1
1.6
0.9 1.4
0.8
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
t t
0.15
1.18
0.1
1.17
0.05
L̃t × 100%
Ỹt × 100%
1.16
−0.05
1.15
−0.1
−0.15
1.14
−0.2
1.13
−0.25
−0.3
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
t t
1.4 2.5
1.3 2
w̃t × 100%
1.1 1
1 0.5
0.9 0
0 5 10 15 20 25 30 35 40 0 5 10 15 20 25 30 35 40
t t
ln SR t ≡ ln Yt − (1 − α) ln Lt − α ln Kt = ln Zt
ln SR t = αZ + ξZ ln SR t−1 + ηt
ξˆZ = 0.979
1.2
K̃t × 100%
0.8
0.8
Z̃t × 100%
0.6
0.6
0.4
0.4
0.2
0
0.2
0
20
100
0
40 80
1 1
0.9 60 0.9
60
0.8 40 0.8
0.7 80
t 0.7
t 20
0.6
0.6
0.5 100 0 0.5 ξZ
ξZ
1.6 10
1.4 8
I˜t × 100%
1.2 6
C̃t × 100%
1
4
0.8
2
0.6
0
0.4
-2
0.2
0
0
20
100
80 40
1 0.5
60 0.9 0.6
60
40 0.8 0.7
0.7 t 80 0.8
t 20
0.6 0.9
0 0.5 ξZ 100 1
ξZ
1.5
L̃t × 100%
1
2
0.5
1.5
Ỹt × 100%
0
1
-0.5
0.5 0 0
20 20
0
40 40
1 0.5
0.9 60 60 0.6
0.8 0.7
0.7 80
t t 80 0.8
0.6 0.9
0.5 100 100 1
ξZ ξZ
1.5
5
w̃t × 100%
1
4
r̃t × 100 3
2
0.5
1
0
0
0 -1
20
100
-2
80 40
1 1
60 0.9 0.9 60
40 0.8 0.8
0.7 0.7 80
t
t 20
0.6 0.6
0 0.5 ξZ 0.5 100
ξZ
~
Wt Supply
!
Demand
~
~
Yt Good
Lt
Prod fn
!
Bad
~
Lt
CWL LS
~ h
w t LSn
!
LSl
!
LDh
LDl LDn
~
~
Yt CYL Lt
Yh
Yn
!
Yl
~
Lt
! LSh
! LSn
! LSl
~
~
Yt CYL0 CYL1 Lt
!
!
~
Lt
~
Wt Supply
!
!
!
!
Demand
~
~
Yt Good
Lt
Prod fn
!
!
Bad
!
!
~
Lt
Dynare documentation
Running Dynare
%----------------------------------------------------------------
% 1. Defining variables
%----------------------------------------------------------------
var Y C K I L W R Ztilde;
varexo G eta;
%----------------------------------------------------------------
% 2. Calibration
%----------------------------------------------------------------
alpha = 0.333333333333333;
delta = 0.024113689084445;
Omega_0 = 1.442032886235652;
epsilon = 0.183413993147403;
rho = 0.015868284782784;
sigma_eta = 0.0015;
xi_Z = 0.95;
%----------------------------------------------------------------
% 3. Model
%----------------------------------------------------------------
model;
K = I + (1 - delta)*K(-1);
(1/C) = ((1 + R(+1))/(1+rho)) * (1/C(+1)) ;
W = (1 - alpha) * Y / L;
R = alpha * Y / K(-1) - delta;
Y = C + I + G_0 ;
W * (1 - L) = ((1 - epsilon)/epsilon) * C;
Y = Omega_0 * exp(Ztilde) * K(-1)^(alpha) * L^(1-alpha);
Ztilde = xi_Z * Ztilde(-1) + eta;
end;
shocks;
var eta = sigma_eta^2;
end;
stoch_simul(order = 1);
%----------------------------------------------------------------
% 5. Some Results
%----------------------------------------------------------------
statistic1 = 100*sqrt(diag(oo_.var(1:7,1:7)))./oo_.mean(1:7);
dyntable(’Relative st devs in %’,strvcat(’VARIABLE’,’REL. S.D.’),
M_.endo_names(1:7,:),statistic1,10,8,4);
Punchlines (1)
Punchlines (2)
The standard RBC model has a hard time matching data for
real economies
It is difficult to believe that the productivity shocks explain all
fluctuations in the economy: “If they are so important then
why don’t we read about them in the Wall Street Journal”
Link between micro-data and calibration values not strong
Most important contribution of the approach is a
methodological one:
Approach is flexible
Micro-foundations for macro are important and can be
improved (alternative market structures, heterogeneous
households, etcetera)
Other shocks can be introduced (government spending shocks,
tax shocks, changes in the real exchange rate, etcetera)