Risk Matters: A Comment - Technical Appendix By Benjamin Born and Johannes Pfeifer∗

I.

Technical Appendix - For Online Publication

Appendix I documents the coding issues in the Matlab implementation of the model simulation in more detail by showing the associated computer code of the Jes´ us Fern´andezVillaverde, Pablo A. Guerr´on-Quintana, Juan F. Rubio-Ram´ırez and Mart´ın Uribe (2011) (FGRU) replication files posted at http://www.aeaweb.org/articles.php?doi=10.1257/ aer.101.6.2530. Fern´andez-Villaverde et al. (2011) (FGRU) calibrate their model at monthly frequency, perform a variable substitution to obtain a log-linearization, and use third-order perturbation techniques to simulate the model. We make use of the third order perturbation capacities of Dynare (St´ephane Adjemian, Houtan Bastani, Fr´ederic Karam´e, Michel Juillard, Junior Maih, Ferhat Mihoubi, George Perendia, Johannes Pfeifer, Marco Ratto and S´ebastien Villemot, 2011) to simulate the model.1 Appendix III presents the corrected version of Figure 6 in FGRU. Appendices IV and V document the simulation and pruning schemes used for impulse response function (IRF) generation and moment computation. Appendix VI compares the numerical convergence behavior of the standard deviation of the Isabel Correia, Joao C. Neves and Sergio Rebelo (1995)-approximation and of the net export to output ratio. Appendix VII compares the deterministic steady state, the ergodic mean in the absence of shocks (EMAS),2 and the ergodic mean. ∗

Born: University of Mannheim and CESifo, E-mail: [email protected], Pfeifer: University of Mannheim, E-mail: [email protected]. 1 The resulting policy functions are identical up to the 8th digit to the ones derived from Mathematica by FGRU. 2 We use the term EMAS for FGRU’s concept of “[s]tarting from the ergodic mean and in the absence of shocks” (p. 10 in their technical appendix). The EMAS is the fixed point of the third order approximated policy functions in the absence of shocks. It can be obtained by simulating the system with all shocks set to 0 for all time periods, starting at the deterministic steady state, and iterating it forward until convergence. Sometimes, it is referred to as the “stochastic steady state” (e.g. Michel Juillard and Ondra Kamenik, 2005), because it is the point of the state space where, in absence of shocks in that period, agents would choose to remain although they are taking future volatility into account. 1

2

I. A.

The Coding Issues in the Published Replication Files Variable Substitution and Calibration to Monthly Frequency

As can be seen in Listing 1,3 a variable substitution is performed to obtain log-linearized decision rules. Listing 1 - The Model in emerging.nb 1

f u n c 1 = ( Exp [ c ] ) ˆ−ups − Exp [ \ [ Lambda ] ] ; f u n c 2 = b e t a b e t a ∗Exp [ \ [ Lambda ] p ] − Exp [ \ [ Lambda ] ] / ( 1 + Exp [ r ] ) +

3

Exp [ \ [ Lambda ] ] ( dp − ds ) d t h e t a ; f u n c 3 = −Exp [ p i ] +

5

b e t a b e t a ( ( 1 − d e l t a ) ∗Exp [ p i p ] + a l p h a Exp [ yp ] / Exp [ kp ] Exp [ \ [ Lambda ] p ] ) ;

7

f u n c 4 = t h e t h e t a ( Exp [ h ] ) ˆ ( omega + 1 ) − ( 1 − a l p h a ) Exp [ y ] Exp [ \ [ Lambda ] ] ;

9

f u n c 5 = −Exp [ \ [ Lambda ] ] + Exp [ p i ] ( 1 − p h i /2 ( Exp [ i n v e s t ] / Exp [ i n v e s t l a g ] − 1 ) ˆ2 − p h i Exp [ i n v e s t ] /

11

Exp [ i n v e s t l a g ] ( Exp [ i n v e s t ] / Exp [ i n v e s t l a g ] − 1 ) ) + 13

betabeta ∗ Exp [ p i p ] p h i ( Exp [ i n v e s t p ] / Exp [ i n v e s t ] ) ˆ2 ( Exp [ i n v e s t p ] / Exp [ i n v e s t ] − 1 ) ;

15

f u n c 6 = Exp [ y ] − ( Exp [ k ] ) ˆ a l p h a ( Exp [ g ] Exp [ h ] ) ˆ ( 1 − a l p h a ) ; 17

f u n c 8 = dp / ( 1 + Exp [ r ] ) − d + Exp [ y ] − Exp [ c ] − Exp [ i n v e s t ] − ( dp − ds ) ˆ2 d t h e t a / 2 ;

19

f u n c 9 = Exp [ r ] − Exp [ r s ] − e r − e t b ; f u n c 7 = −Exp [ kp ] + ( 1 − d e l t a ) Exp [ k ] + ( 1 − p h i /2 ( Exp [ i n v e s t ] / Exp [ i n v e s t l a g ] − 1 ) ˆ 2 ) Exp [ i n v e s t ] ;

21

Listing 2 shows that the decision rules are for a model calibrated to monthly frequency (¯ r = 0.02). Listing 2 - The Model Calibration in emerging.nb 1

parmrule2 = {omega −> 1 0 0 0 , d t h e t a −> 0 . 0 0 1 , t h e t h e t a −> 1 , ups −> 5 , d e l t a −> 0 . 0 1 4 , a l p h a −> 0 . 3 2 , p h i −> 9 5 , r l i b −> 0 . 0 2 , ecap −> 0 ,

3

r h o s i g m a r −> 0 . 9 4 , r h o r −> 0 . 9 7 , sigmag −> Log [ 0 . 0 1 5 ] , e e t a −> 0 . 4 6 , meansigmar −> −5.71 , 3

Listing 1 and 2 are Mathematica code, all others Matlab.

RISK MATTERS: A COMMENT

5

3

r h o s i g m a t b −> 0 . 9 4 , r h o t b −> 0 . 9 5 , e e t b −> 0 . 1 3 , rhog −> 0 . 9 5 , meansigmatb −> −8.06};

B.

Time Aggregation: Moments and IRFs

Listing 3 - Variable Aggregation in irf moments.m 206

xaux = x c ’ ; x a u x t r i m e s t r a l=z e r o s ( s i z e ( xaux , 1 ) / 3 , 3 ) ; % Transform s i m u l a t i o n from monthly t o q u a r t e r l y

210

f o r i =1:3; f o r j =1: s i z e ( x a u x t r i m e s t r a l , 1 ) ; x a u x t r i m e s t r a l ( j , i )=sum ( xaux ( ( j −1) ∗3+1:3∗ j , i ) ) ;

212

end 214

216

end % c d o r d e r : consump i n v e s t output % Compute n e t e x p o r t s u s i n g t r a n s f o r m a t i o n i n C o r r e i a , Neves ,

218

% Rebelo : B u s i n e s s Cycle i n Small Open Economies ( European Economic Review , 1 9 9 5 ) net exp = xauxtrimestral ( : , 3 ) − xauxtrimestral ( : , 2 ) − xauxtrimestral (: ,1) ;

220

222

n e t e x p = ( n e t e x p / abs ( mean ( n e t e x p ) ) − 1 ) /100 ; % HP f i l t e r data % NOTE: HPF computes HP t r e n d

224

226

%

P l e a s e u s e your p r e f e r r e d HP f i l t e r i n t h e next l i n e s

for i = 1:3 c d ( : , i ) = x a u x t r i m e s t r a l ( : , i ) − HPF( x a u x t r i m e s t r a l ( : , i ) , 1 6 0 0 ) ;

228

end

230

c d ( : , 4 ) = n e t e x p − HPF( n e t e x p , 1 6 0 0 ) ;

Line 206 of Listing 3 assigns the matrix of simulated control variables at monthly frequency x c (with the first three entries being consumption, investment, and output) into xaux. The loop in lines 210-214 then aggregates monthly percentage deviations from steady state into quarterly data for output, consumption, and investment (contained in the columns of xaux).

4

Instead of averaging the percentage deviations of these flow variables, they are accumulated. As lines 226-230 show, these are the quarterly variables that are HP-filtered and used to compute the moments. Listing 4 - IRF aggregation in irf moments.m % Unit o f time i n model i s month 308

% IRFs a r e accumulated t o t r a n s f o r m t o q u a r t e r s

310

figure

312

f o r i = 1 : nc−3 i f i == 6 % Average q u a r t e r l y debt aux = 1 0 0 / ( b s s+x l a s t ( 6 ) ) ∗ ( x c ( i , 2 : Tplot )−x l a s t ( i ) ∗ o n e s ( 1 , Tplot −1) )

314

; f o r j = 1 : ( Tplot −2) /3 argenq ( i , j ) = sum ( aux ( ( j −1) ∗3+1:3∗ j ) ) ;

316

end s u b p l o t ( 3 , 2 , i ) ; p l o t ( 0 : ( Tplot −2)/3 −1 , argenq ( i , : ) / 3 , ’ LineWidth ’

318

, 1 . 5 ) ; a x i s t i g h t ; g r i d on t i t l e ( varnm ( i , : ) , ’ f o n t s i z e ’ , 1 3 ) ; e l s e i f i == 5 % Annualized i n t e r e s t r a t e

320

aux = 10000∗ x s ( 8 , 2 : Tplot ) ; f o r j = 1 : ( Tplot −2) /3

322

argenq ( i , j ) = sum ( aux ( ( j −1) ∗3+1:3∗ j ) ) ; end

324

s u b p l o t ( 3 , 2 , i ) ; p l o t ( 0 : ( Tplot −2) /3 −1 ,12∗ argenq ( i , : ) / 3 , ’ LineWidth ’ , 1 . 5 ) ; a x i s t i g h t ; g r i d on t i t l e ( varnm ( i , : ) , ’ f o n t s i z e ’ , 1 3 ) ;

326

else aux = 1 0 0 ∗ ( x c ( i , 2 : Tplot )−x l a s t ( i ) ∗ o n e s ( 1 , Tplot −1) ) ;

328

f o r j = 1 : ( Tplot −2) /3 argenq ( i , j ) = sum ( aux ( ( j −1) ∗3+1:3∗ j ) ) ;

330

end s u b p l o t ( 3 , 2 , i ) ; p l o t ( 0 : ( Tplot −2)/3 −1 , argenq ( i , : ) , ’ LineWidth ’ , 1 . 5 )

332

; a x i s t i g h t ; g r i d on t i t l e ( varnm ( i , : ) , ’ f o n t s i z e ’ , 1 3 ) ; end

334

end

RISK MATTERS: A COMMENT

5

Listing 4 shows the time aggregation from monthly model IRFs to the quarterly IRFs reported in FGRU. As can be seen in lines 313-319, the stock of debt is first expressed as a percentage deviation from the EMAS (line 314) and then aggregated by taking the mean response over three subsequent quarters: the subsequent three months are summed up (line 316) and then divided by 3 before plotting (line 318). Similarly, lines 321-325 take the interest rate spread εr,t , average it and multiply it by 12 × 100 × 100 = 120,000 to transform it into annualized basis points.

Line 328 computes the difference between the log of the monthly model variables (output, consumption, investment, and hours) and the EMAS times 100, which has the interpretation of a percentage deviation. Lines 329 to 331 sum up the monthly percentage deviations over the quarter, before line 332 plots them without dividing by three as was the case in line 318. As a result, the percentage deviations from steady state of the flow variables like output, consumption, investment, and hours are overstated by a factor of three when plotting the IRFs.

To see this, consider e.g. quarterly output Yq as the sum of the three monthly outputs Ym,i : (1)

Yq = Ym,1 + Ym,2 + Ym,3 .

Performing a log-linearization around the deterministic steady state yields: (2)

Y¯q Yˆq = Y¯m Yˆm1 + Y¯m Yˆm2 + Y¯m Yˆm3 ,

where bars denote steady state values and hats percentage deviations from steady state. Divide by Y¯q = 3Y¯m to obtain quarterly percentage deviations: (3)

Y¯m Yˆq = ¯ Yˆm1 + Yq

Y¯m ˆ Ym2 + Y¯q

 Y¯m ˆ 1 ˆ ˆ ˆ Y = Y + Y + Y . m3 m1 m2 m3 3 Y¯q

Thus, the mean of the percentage deviations from steady state is appropriate, not the sum.

6

C.

Computing Net Exports

Line 219 of Listing 3 computes net exports as N Xt − N X = Yˆt − Cˆt − Iˆt ,

(4) ˆt ≈ where X

¯ Xt −X ¯ X

denotes a variable in percentage deviations from steady state obtained from

summing up the percentage deviations (line 212 of Listing 3). The correct approximation is N Xt − N X = Y¯ Yˆt − C¯ Cˆt − I¯Iˆt .

(5)

Line 220 performs a Correia, Neves and Rebelo (1995)-approximation of the net exports: (6)

d N Xt =

N Xt −1, | mean(N Xt )|

but additionally divides by 100. For consistency reasons, the same is done when reporting the empirical standard deviation (see line 36 of Listing 5). This implies that both the empirical and theoretical moments for net exports are underreported by a factor of 100 in the paper. Thus, the relative volatility of net exports, σnx /σy is not 0.39 for Argentinean data and 0.48 for the model as reported in FGRU, but 39 and 48, respectively. In the main paper, we report the values in the form originally reported in FGRU. Listing 5 - Net Export display in empirical moments.m d i s p ( ’ Moments A r g e n t i n a : v o l c / v o l y 36

vol invt / vol y

vol net export / vol y ’ )

[ s t d ( cd ) s t d ( i d ) s t d ( nd ) / 1 0 0 ] / s t d ( yd )

D.

Computing the Net Exports Share

Line 247 of Listing 6 computes the net exports to output share from the national income accounting identity: (7)

N Xt = Yt − Ct − It = Dt −

 Dt+1 ΦD ¯ 2 + Dt+1 − D 1 + rt 2

RISK MATTERS: A COMMENT

7

at the EMAS as

(8)

h  i ¯ e ¯ D + D − D r¯−1 r¯

g N X = , ¯ e ¯ Ye elog(Y )+(log(Y )−log(Y ))

where the respective deviations of the EMAS from the deterministic steady state are stored e= ¯ Thus, the adjustment cost term in equation (7) is not in xlast. But in the EMAS D 6 D. zero. As a consequence, the permanent portfolio holdings costs paid at the EMAS are not accounted for when computing the net exports required to finance the debt stock. For the original calibration this coding issue is inconsequential due to the low debt adjustment costs. But when recalibrating the model, the debt holding costs need to be taken into account as one cannot know a priori if they are substantial. Listing 6 - Net-Export Share Calibration in irf moments.m 244

246

% 2 . 2 . 1 Compute moments i n Table 7 , Column M1 d i s p ( ’ R atio n e t e x p o r t s / output ’ ) ( ( b s s+x l a s t ( 6 ) ) ∗ ( I r a t e −1)/ I r a t e ) / ( exp ( a d y s s+x l a s t ( 3 ) ) )

8

II.

Net Exports Keeping the Structural Parameters at the Values Calibrated in FGRU

From Table 1 it can also be seen that for Ecuador, Venezuela, and Brazil, the difference between the corrected relative volatility of net exports and the relative volatility reported in FGRU is sometimes larger than for the benchmark case of Argentina and sometimes smaller. The reason turns out to be the poor numerical convergence behavior of FGRU’s measure of net export volatility.4 As we know the seed FGRU use for Argentina, but not for Ecuador, Venezuela, and Brazil, this numerical instability drives a further wedge between the relative volatility for Ecuador, Venezuela, and Brazil reported in FGRU and the corrected relative volatilities we report in Table 1.

Table 1—Net Exports Keeping the Structural Parameters at the Values Calibrated in FGRU

Argentina FGRU ρN X,Y σN X /σY

ρN X,Y σN X /σY

Data

FGRU

0.05 0.43 1.43 1.63 Venezuela

-0.76 0.39

-0.04 1.77

FGRU

TA

TA+NX

Data

FGRU

TA

TA+NX

Data

-0.10 1.60

-0.10 13.33

0.47 1.87

-0.11 0.18

0.18 0.60

0.17 1.95

0.78 3.87

-0.26 0.18

0.05 0.48

TA

TA+NX

Ecuador TA

TA+NX

-0.04 0.24 9.15 1.38 Brazil

Data -0.60 0.39

Note: first and fifth column: moments reported in FGRU. Second and sixth column: moments obtained using the FGRU simulation, but correcting the time aggregation (TA). Third and seventh column: moments obtained using the FGRU simulation, but correcting the time aggregation and net export computation (TA+NX). Fourth and eighth column: moments obtained from HP-filtered data. Simulations are conducted with 200 repetitions of 96 periods using the FGRU pruning scheme. For Argentina, the same set of pseudorandom numbers as in FGRU was used, while the simulation for the other countries had to rely on a different pseudo-random number generator seed.

4

This behavior can also be seen in FGRU’s official replication code. Changing the pseudo-random number seed from the 2 they used to 20, leaving aggregation, net export computation, simulation length, and the number of replications unchanged, leads to a tripling of σN X /σY from 0.48 to 1.46.

RISK MATTERS: A COMMENT

III.

9

Figure FGRU6: IRFs Debt/Output, Current Account, Net Exports

Figure 6 in FGRU, reproduced here as Figure 1 due to non-availability of replication codes, depicts the responses of the debt to output ratio, the current account, and net exports to a risk shock.

VOL. 101 NO. 6

2553

Fernández-Villaverde et al.: Risk Matters Debt/output

0.29 0.285 0.28 0.275 0.27 0.265 2

4

6

8

10

12

Current account

14

16

Net exports 2

1.5

1.5

1

1

0.5

0.5

0

0 2

4

6

8

10

12

14

16

2

4

6

8

10

12

14

16

Figure 6. IRFs Debt/Output, Current Account, Net Exports

Figure 1. IRFs Debt/Output, Current Account, Net Exports Note: Reproduced Figure 6 from Fern´ andez-Villaverde et al. (2011), p. 2553.

The last row in Figure 5 plots the IRFs in the M2 version of the model. In this row, we plot the IRFs after a one-standard-deviation level shock that is accompanied by a κ− standard deviation shock to volatility. The pattern of the IRFs is qualitatively the same as in the first row. The lesson from this third row is that our results are robust FGRU report the to output ratio IRF in that figure not in percentage deviations to thedebt correlation between innovations. We conclude by pointing out two features of our model. First, our results come in from the EMAS, abut aswithout the absolute value. Figureoften 2 displays that the debt to output ratio model working capital, a mechanism added to improve the performance of international macro models. As shown in the online Appendix, working capital0.293 makes our Second, we do not have any of the real- 11 periods. But dropped from about by findings abouteven 2.9stronger. percentage points to 0.263 after option effects of risk emphasized by the literature, for example, when we have irreversibilities (Bloom 2009). Introducing effects3, explicitly this is inconsistent with the FGRU-IRFs in those Figure whichis difficult show with thatourdebt dropped by perturbation approach because of the nondifferentiability of threshold decision rules created by real-option environments. However, real-option effects would increase 3.873 percent while output dropped by 0.1907 percent. Thus, the new debt-to-output-ratio the impact of shocks to volatility on investment. Therefore, our results are likely to be aorder lower bound the implications of time-varying risk. Bloom, Jaimovich, , i.e. it should should be up to first (1 −to0.03873)D/((1 − 0.001907)Y ) ≈ 0.963D/Y and Floetotto (2008) explore the real-option effects of volatility shocks in a model for (not the US percentage economy, but a more thorough investigation of the interaction drop by about 3.7calibrated percent points). The net export IRF is affected by from between our higher-order terms and real-option effects remains an open question.

the incorrect weighting used in their computation as shown in section ??. Regarding the

Ecuador.—Next, we turn to Ecuador, whose IRFs are plotted in Figure 7. The IRFs are similar to those in the Argentinian case. There is a decline in economic activity current account, FGRU state that it is in “percentage points of [its] ergodic mean”. But this with responses qualitatively similar to, although somewhat smaller than, those for After a shock to volatility, consumption drops 0.44 percent upon impact, is not possible forArgentina. it is defined as CA = Dt −percent. Dt−1 Investment and thus has ergodic mean zero. Thus, investment 0.66 percent, andt debt 0.08 falls for five quarters

it is unclear what the lower left panel of Figure 2 depicts. The left column of Figure 2 shows the corrected version of Figure 6 in FGRU that uses output to normalize net exports and the current account, giving them the interpretation of

10

D/Y

D/Y 40

29.6 29.4

38

29.2 36

29 28.8

34 5

10

15

20

25

30

5

10

CA/Y

15

20

25

30

20

25

30

20

25

30

CA/Y 1

0.15 0.1

0.5

0.05 0

0

−0.05 5

10

15

20

25

30

5

10

NX/Y

15 NX/Y

0.1

0.5

0

0 −0.5

−0.1 5

10

15

20

25

30

5

10

15

Figure 2. Debt/Output, Current Account, and Net Exports Dynamics. Note: Left column: IRFs from the corrected FGRU model; Right column: IRFs from the recalibrated corrected model. Row 1: Debt-to-quarterly-GDP ratio in percent of quarterly GDP. Row 2: Current account to GDP ratio in absolute deviation from the EMAS. Row 3: Net exports to GDP ratio in absolute deviation from the EMAS.

being in output units. As can be seen, in the corrected model with the original calibration the current account implications of risk shocks are rather muted. The right column of Figure 2 displays the IRFs from the recalibrated corrected model quantifying the central “debt reduction mechanism”. After a one standard deviation risk shock, the debt to quarterly output ratio falls by about 6.5 percentage points after three years, while current account and net exports increase by about 1 percent of output on impact in order to finance the deleveraging.

RISK MATTERS: A COMMENT

IV.

11

IRFs at the Ergodic Mean A.

IRF Generation

The use of higher-order perturbation techniques to solve the model implies that the model solution is not linear anymore. Thus, the IRFs will depend on both the sequence of future shocks, ut , and the point in the state space at which the IRFs are started, i.e. the past history of shocks, Ωt . To circumvent this problem, Gary Koop, M. Hashem Pesaran and Simon M. Potter (1996) suggested the concept of Generalized Impulse Response Functions (GIRFs) that e.g. allow considering “representative” IRFs at the ergodic mean. The GIRF at time t + n after a shock ut is given by GIRFn (ut , Ωt−1 ) = E [Yt+n |ut , Ωt−1 ] − E [Yt+n |Ωt−1 ] ,

(9)

that is, given a point in the state space, the future shock realizations are averaged out. In contrast, FGRU also condition on future shocks by setting them to 0 when generating their IRFs and start the IRFs at the EMAS. Denote the future realization of shocks with Ωf ut . FGRU effectively use the definition

(10)

h i ut IRFn (νt , Ωt ) = E Yt+n |ut , Ωt−1 = {. . . , 0} , Ωft+1 = {0, . . .} h i ut − E Yt+n |0, Ωt−1 = {. . . , 0} , Ωft+1 = {0, . . .} ,

where the expected values can be dropped as everything is deterministic. This choice of computing the IRFs at the EMAS has two important implications. First, computing the non-linear IRFs not as the expected difference in responses as in (9) but also conditioning on future shocks and setting them to 0, only allows capturing part of the economic effects of risk shocks. To see this, inspect the particular pruning algorithm5 used 5

As first noted in Jinill Kim, Sunghyun Kim, Ernst Schaumburg and Christopher A. Sims (2008), higher order perturbation solutions tend to explode due to the accumulation of terms of increasing order. For example, in a second order approximated solution, the quadratic term at time t will be raised to the power of two in the quadratic term at t + 1, thus resulting in a quartic term, which will become a term of order 8 at t + 2 and so on. As a solution, Kim et al. (2008) proposed “pruning” all terms of higher order, i.e. computing the quadratic term at t + 1 by only squaring the first-order term from time t. This procedure, however, is not easily generalized to third order as there are several potential ways of pruning.

12

in FGRU for IRF-generation.6 Consider a generic model solution of the form (11)

 xt = g xstates t−1 , ut , σ ,

where xt is an nx × 1 vector of endogenous variables, xstates is the vector of states contained t−1 in xt ,7 ut is an nu × 1 vector of mean zero disturbances, and σ is the perturbation parameter. Denote partial derivatives with subscripts. The pruned third order solution for the endogenous variables’ deviations from their steady state, xˆ3rd = x3rd − x¯, used by FGRU, is t t computed from the recursion xˆ3rd =gx xˆ3rd,states + gu ut t−1 t    1 + gxx xˆ1st,states ⊗ xˆ1st,states + 2gxu xˆ1st,states ⊗ ut + guu (ut ⊗ ut ) + gσσ σ 2 t−1 t−1 t−1 2   1st,states 1st,states 1st,states ⊗ xˆt−1 ⊗ xˆt−1 + guuu (ut ⊗ ut ⊗ ut )  gxxx xˆt−1     1 1st,states 1st,states 1st,states (12) +  +3gxxu xˆt−1 ⊗ xˆt−1 ⊗ ut + 3gxuu xˆt−1 ⊗ ut ⊗ ut   6  2 +3gxσσ σ 2 xˆ1st,states + 3g σ u uσσ t t−1 (13) xˆ1st =gx xˆ1st,states + gu ut . t−1 t That is, all higher order terms are based on the first-order terms.8 The recursion in equations (12)-(13) is completed by an initial condition9 of: (14)

xˆ3rd = x˜ − x¯ 0

(15)

xˆ1st 0 = 0 .

Because xˆ1st = 0 and all higher order terms in equation (12) are based on it, the effect 0 6

The IRF-pruning scheme differs from the scheme used for simulations, see Appendix V. We use the Dynare notation that stacks the state transition and observation equations (see Adjemian et al., 2011). 8 This choice results in an inferior performance compared to e.g. the pruning scheme by Martin M. Andreasen, Jes´ us Fern´ andez-Villaverde and Juan F. Rubio-Ram´ırez (2013) that augments the state space to keep track of first to third order terms and uses the Kronecker product of the first and second order terms to compute the third order term (see Hong Lan and Alexander Meyer-Gohde, 2013b, for more details). 9 As shown in Lan and Meyer-Gohde (2013b) there are infinitely many different past shock realizations that can lead to being at a particular point in the state-space at time 0, all of them associated with particular values for x ˆ3rd and x ˆ1st 0 0 . Equations (14) to (15) are consistent with the EMAS in that one particular shock combination giving rise to these values is the total absence of past shocks. 7

RISK MATTERS: A COMMENT

13

of the initial condition x˜ − x¯ will mostly be neglected. Equation (13) effectively is a firstorder policy function, which is known not to react to risk shocks, except for the state σt−1 . Considering (12), this and the conditioning on all shocks being 0 ∀ t + i, i > 0 implies that, in the terminology of Hong Lan and Alexander Meyer-Gohde (2013a), only the “risk adjustment channel” is present (via the constant term 1/2 × gσσ × σ 2 and the time-varying risk-adjustment 1/2 × guσσ × σ 2 × ut in period t where ut 6= 0). But the difference in “amplification effects” introduced by (risk) shocks and embedded in the other higher order terms is totally absent. Thus, the difference in the interaction between the location in the state space and future shocks, introduced by the risk shock, is not captured. Second, the IRFs are computed at a particular point in the pruned state space where agents factor in the uncertainty of the system, but where there has been an infinite absence of shocks. Due to the absence of shocks and thus of “amplification effects” embedded in the higher order terms, agents will dare to incur a relatively high amount of debt. As shown in Table 3, the difference between the EMAS and the unconditional mean amounts to 20 percent.10 B.

IRF Generation

Figure 3 compares the responses after a one-standard deviation interest rate risk shock reported in FGRU (red dashed lines) with the responses when the time aggregation error is corrected (blue solid lines). It can be seen that correcting the time aggregation error mechanically results in the size of the shock response dropping to one third of the value reported in FGRU. For example, instead of dropping by 0.19 percent, output falls by a 0.06 percent at its trough.

10

An alternative would be to compute GIRFs at the true ergodic mean using the methods proposed in Andreasen, Fern´ andez-Villaverde and Rubio-Ram´ırez (2013).

14

Output

Consumption

0 0

−0.05 −0.1

−0.2

−0.15

−0.4 5

10

15

20

25

30

5

10

−3

Investment

15

25

30

Hours

x 10

Correct Aggregation FGRU Aggregation

2

0

20

1 −1 0 −2 5

10

15

20

25

30

−1

5

10

15

20

25

30

Figure 3. Comparison of Quarterly IRFs for Different Aggregation Schemes. Note: IRFs to a one-standard deviation shock to interest rate risk premium uncertainty. Blue solid line: correct aggregation by averaging percentage deviations of monthly flow variables; red dashed line: aggregation by summing up monthly percentage deviations of flow variables.

RISK MATTERS: A COMMENT

V.

15

Starting Simulations at the Ergodic Mean in the Absence of Shocks

The simulations conducted in FGRU use a different pruning scheme than the IRF-generation. Denote the time periods of the simulations with t = 1, . . . , 96, the simulation repetition with i = 1, . . . , 200, and a generic variable with yt,i . 1) At time t = 1 • set the third order term of the states x3rd,states to the EMAS and the non-state 1,i elements of x3rd 1,i to the deterministic steady state If i = 1 1st • set the first-order term x1,1 to the deterministic steady state

• set the shock term used in the first-order term to u1st 2,1 = 0 • draw a random shock vector u2,1 else if i 6= 1 • set the first-order state term x1st,states to x1st,states 1,i 96,i−1 1st • set the shock term used in the first-order term to u1st 2,i = u97,i−1

• set u2,i = u2,1 2) for t = 2 to 96: • Use the unpruned state space representation to compute the time t values of the exogenous state variables • To compute the time t values of the endogenous states, use the recursion xˆ3rd ˆ3rd,states + gu ut,i t,i =gx x t−1,i     1 1st 1st 2 + gxx xˆ1st,states ⊗ xˆ1st,states + 2gxu xˆ1st,states ⊗ u1st t−1 t,i + guu ut,i ⊗ ut,i + gσσ σ t−1,i t−1,i 2 (16) 

xˆ1st,states t−1,i

xˆ1st,states t−1,i

xˆ1st,states t−1,i



guuu u1st t,i

u1st t,i

u1st t,i





⊗ ⊗ + ⊗ ⊗  gxxx      1 1st,states 1st,states 1st,states 1st 1st  +  +3gxxu xˆt−1,i ⊗ xˆt−1,i ⊗ u1st + 3g x ˆ ⊗ u ⊗ u xuu t,i t,i t,i  t−1,i 6  2 1st,states 2 1st +3gxσσ σ xˆt−1,i + 3guσσ σ ut,i (17) xˆ1st ˆ1st,states + gu u1st t,i =gx x t,i t−1,i

16

• Draw a random shock vector ut+1,i • Set u1st t+1,i = ut+1,i • Use xˆ3rd t,i as the simulated variable Four things are noteworthy. First, the simulations for the exogenous laws of motion for TFP, the T-bill rate, the country risk premium, and the two volatility processes do not use pruning. They are instead based on iterating the full third-order approximated policy function forward. This seems to pose no practical problems in the simulations we conducted as we encountered no explosive behavior. But using the full higher-order polynomial approximation to the true stationary exogenous law of motion implies that the stability properties of the underlying policy function are not necessarily inherited (see e.g. Wouter J. Den Haan and Joris De Wind, 2012). Thus, the exogenous laws of motion may suffer from exactly the problem for which using a pruning algorithm was advocated. Second, the actual simulations only start at time t = 2, because for t = 1 the endogenous variables are assumed to be at the deterministic steady state. Nevertheless, this first time point with zero deviations from steady state is included in the 96 time periods used to compute simulated moments. As the simulated system will on average transition to the ergodic mean, this introduces an initial jump from t = 1 to t = 2, which even the subsequent HP-filtering will not completely smooth out. Third, for the first actual simulation period, i.e. t = 2, the simulated first and third order terms are based on different structural shocks, u1st 2,i and u2,i , respectively. Hence, agents in the model are assumed to react to two different shock realizations at the same time. Fourth, the first shock u2,i at t = 2 is always equal to the one of the first simulation, i.e. u2,1 . One important implication of this particular simulation scheme is that due to starting at the EMAS for the third order term and then hitting the equilibrium system with shocks, the simulations will slowly transition to the ergodic distribution. As the simulations are always restarted at this point after 96 periods and there is no burnin, most draws will not yet come from the ergodic distribution. Put differently, the moments from 10,000 simulations of 96 periods and the ones from one simulation of 960,000 periods considerably differ, as shown in Table 2.

RISK MATTERS: A COMMENT

17

Table 2—Second Moments of Long vs. Short Simulations

Argentina σY σC /σY σI /σY σN X /σY ρN X,Y g N X/Ye

σY σC /σY σI /σY σN X /σY ρN X,Y g N X/Ye

Ecuador

Data

Short Sim.

Long Sim.

Data

Short Sim.

Long Sim.

4.77 1.31 3.81 0.39 -0.76 1.78

1.78 1.52 4.06 4.72 0.41 1.75 Venezuela

2.06 1.72 5.56 5.80 0.38 1.75

2.46 2.48 9.32 0.65 -0.60 3.86

0.73 2.22 9.89 2.41 0.24 3.95 Brazil

0.94 2.19 11.86 0.98 0.23 3.95

Data

Short Sim.

Long Sim.

Data

Short Sim.

Long Sim.

4.72 0.87 3.42 0.18 -0.11 4.07

1.51 0.51 3.94 0.34 0.45 4.14

1.70 0.51 4.57 0.31 0.37 4.14

4.64 1.10 1.65 0.23 -0.26 0.10

1.50 0.45 1.73 6.23 0.77 0.52

1.67 0.46 2.16 2.00 0.71 0.52

Note: first and fourth column: moments obtained from HP-filtered data. Second and fifth column: moments of the FGRU model with corrected aggregation and net export computation, based on 10,000 replications of 96 periods. Third and sixth column: moments of the FGRU model with corrected aggregation and net export computation, based on 1 replication of 960,000 periods

18

VI.

Convergence Behavior of the Net Exports to Output Ratio

Average over Rep.

σNX/σY

1.5

1

0.5

0

1.08

1000

Data: 0.39

2000

3000

4000

5000

6000

7000

8000

9000

10000

9000

10000

Average over Rep.

σNX/Y 8 6 4

6.55

Data: 3.47

2 0

1000

2000

3000

4000

5000

6000

7000

8000

Repetitions

Figure 4. Convergence Behavior of Different Net Export Volatility Statistics in the Recalibrated Model Note: top panel: relative volatility of net exports to output σN X /σY . Net exports transformed to percentage deviations using the Correia, Neves and Rebelo (1995)-approximation. Bottom panel: standard deviation of the net exports to output ratio σN X/Y . The blue solid line shows the mean standard deviation (y-axis) over the up to 10,000 samples (x-axis) of simulating 96 months of data. The black dashed dotted line shows the actual data moments. The data are based on the corrected aggregation and net export computation. The black arrow indicates the value after 200 replications.

Using one long simulation for the Correia, Neves and Rebelo (1995) (CNR)-approximation instead of averaging over many short ones is no alternative. It does not allow for capturing small sample biases potentially present in the data and, due to the particular pruning scheme and simulation scheme used in FGRU, leads to results that are not comparable to the short simulations. See Appendix V for details.

RISK MATTERS: A COMMENT

VII.

19

Steady State, EMAS, and Ergodic Mean

Table 3—Steady State, EMAS, and Ergodic Mean: FGRU Calibration

Argentina

D K C H Y I N X/Y CA

D K C H Y I N X/Y CA

Ecuador

Steady State

EMAS

Erg. Mean

Steady State

EMAS

Erg. Mean

4.000 3.293 0.878 -0.004 1.051 -0.975 0.027 0.000

2.551 3.287 0.888 -0.004 1.049 -0.982 0.018 0.000 Venezuela

2.090 3.309 0.905 -0.004 1.056 -0.969 0.005 0.000

13.000 3.745 0.945 -0.004 1.196 -0.523 0.043 0.000

12.040 3.757 0.951 -0.004 1.200 -0.512 0.039 0.000 Brazil

12.072 3.757 0.951 -0.004 1.200 -0.518 0.038 0.000

Steady State

EMAS

Erg. Mean

Steady State

EMAS

Erg. Mean

22.000 4.002 0.982 -0.004 1.278 -0.267 0.043 0.000

21.422 4.009 0.985 -0.004 1.280 -0.260 0.041 0.000

21.445 4.010 0.985 -0.004 1.280 -0.265 0.041 -0.000

3.000 4.001 1.030 -0.004 1.278 -0.267 0.006 0.000

2.709 4.003 1.031 -0.004 1.278 -0.266 0.005 0.000

2.651 4.005 1.032 -0.004 1.279 -0.265 0.005 -0.000

Note: first column: deterministic steady state, second column: ergodic mean in the absence of shocks (EMAS); third column: theoretical mean based on the third-order pruned state space of Andreasen, Fern´ andez-Villaverde and Rubio-Ram´ırez (2013). D, N X/Y , and CA are reported in levels, while all other variables are in logs. The model is at monthly frequency.

Table 3 implies that D/Yannual = 2.09/(12 × exp(1.056)) ≈ 0.0606. In the recalibrated model, D/Yannual = 4.251/(12 × exp(1.106)) ≈ 0.1172.

20

Table 4—Steady State, EMAS, and Ergodic Mean: Recalibration

Argentina D K C H Y I N X/Y CA

Steady State

EMAS

Ergodic Mean

18.802 3.294 0.750 -0.003 1.052 -0.975 0.129 0.000

3.595 3.461 0.933 -0.004 1.105 -0.807 0.018 0.000

4.251 3.463 0.919 -0.004 1.106 -0.860 0.022 0.000

Note: first column: deterministic steady state, second column: ergodic mean in the absence of shocks (EMAS); third column: theoretical mean based on the third-order pruned state space of Andreasen, Fern´ andez-Villaverde and Rubio-Ram´ırez (2013). D, N X/Y , and CA are reported in levels, while all other variables are in logs. The model is at monthly frequency.

RISK MATTERS: A COMMENT

21

REFERENCES Adjemian, St´ ephane, Houtan Bastani, Fr´ ederic Karam´ e, Michel Juillard, Junior Maih, Ferhat Mihoubi, George Perendia, Johannes Pfeifer, Marco Ratto, and S´ ebastien Villemot. 2011. “Dynare: reference manual version 4.” CEPREMAP Dynare Working Papers 1. Andreasen, Martin M., Jes´ us Fern´ andez-Villaverde, and Juan F. Rubio-Ram´ırez. 2013. “The pruned state-space system for non-linear DSGE models: theory and empirical applications.” NBER Working Papers 18983. Correia, Isabel, Joao C. Neves, and Sergio Rebelo. 1995. “Business cycles in a small open economy.” European Economic Review, 39(6): 1089–1113. Den Haan, Wouter J., and Joris De Wind. 2012. “Nonlinear and stable perturbationbased approximations.” Journal of Economic Dynamics and Control, 36(10): 1477–1497. Fern´ andez-Villaverde, Jes´ us, Pablo A. Guerr´ on-Quintana, Juan F. RubioRam´ırez, and Mart´ın Uribe. 2011. “Risk matters: the real effects of volatility shocks.” American Economic Review, 101(6): 2530–61. Juillard, Michel, and Ondra Kamenik. 2005. “Solving SDGE models: approximation about the stochastic steady state.” Computing in Economics and Finance 106. Kim, Jinill, Sunghyun Kim, Ernst Schaumburg, and Christopher A. Sims. 2008. “Calculating and using second order accurate solutions of discrete time dynamic equilibrium models.” Journal of Economic Dynamics and Control, 32(11): 3397 – 3414. Koop, Gary, M. Hashem Pesaran, and Simon M. Potter. 1996. “Impulse response analysis in nonlinear multivariate models.” Journal of Econometrics, 74(1): 119–147. Lan, Hong, and Alexander Meyer-Gohde. 2013a. “Decomposing risk in dynamic stochastic general equilibrium.” SFB 649 Discussion Papers 22. Lan, Hong, and Alexander Meyer-Gohde. 2013b. “Pruning in perturbation DSGE models - guidance from nonlinear moving average approximations.” SFB 649 Discussion Papers 24.

Risk Matters: A Comment - Technical Appendix

Appendix I documents the coding issues in the Matlab implementation of the ... replication files posted at http://www.aeaweb.org/articles.php?doi=10.1257/.

826KB Sizes 4 Downloads 202 Views

Recommend Documents

Technical Appendix
(6) Additional estimation results: Plots of the prior and posterior ... model, thus resembling the relative bargaining power of residents vs. ..... plus remittances and migration flows at various horizons (Q1, Q4, Q16, Q40), based on the posterior.

Technical Appendix
This includes the degree of volatility of the growth of the US dollar combined with ... This technical appendix complements the paper 'Risks for the. Long Run and ...

Technical Appendix
Table 6: DSGE Model Equations. Description. Equation. Marginal Utility of Consumption dt (ct − h ct−1 zt. )-1. − hβEtdt+1 (ct+1zt+1 − hct)-1 = λt. Euler Equation λt = βEt ( λt+1Rt zt+1πt+1 ). Rental Rate of Capital rt = α/(ut+1). Retur

A Appendix - Semantic Scholar
buyer during the learning and exploit phase of the LEAP algorithm, respectively. We have. S2. T. X t=T↵+1 γt1 = γT↵. T T↵. 1. X t=0 γt = γT↵. 1 γ. (1. γT T↵ ) . (7). Indeed, this an upper bound on the total surplus any buyer can hope

A Appendix - Semantic Scholar
The kernelized LEAP algorithm is given below. Algorithm 2 Kernelized LEAP algorithm. • Let K(·, ·) be a PDS function s.t. 8x : |K(x, x)| 1, 0 ↵ 1, T↵ = d↵Te,.

Appendix A
Sep 15, 2006 - things. Teacher says where she wants to go, what she wants to do. Teacher models; has students get in pairs for communication activity. Last 15 minutes: quiz. HW: Workbook pages 4 -5 complete (don't tear out,. I'll stamp), Journal: fix

Technical appendix: Business cycle accounting for the ...
Nov 26, 2007 - business cycle accounting to the Japanese economy in a deterministic way ... must be in data constructions, data sources and log-linearization.

Crash Risk in Currency Returns: Online Appendix Not ...
Dec 16, 2015 - in macro-founded equilibrium.1 Our paper is silent about the prices of risk ... tion of the limited option calibration exercise), but it has implications for how to best model ...... k=1 from the uniform distributions with domains [hv.

Technical Appendix ìInvoluntary Unemployment and the Business Cycleî
ìInvoluntary Unemployment and the Business Cycleî by. Lawrence J. Christiano, Mathias ... Equation numbers refer to equation numbers in the text of the paper.

Technical Appendix to INTERNATIONAL TRENDS IN ...
We used Python to parse the XML files and extracted the necessary ... example, if yJP,11,1980 ј h, this means that considering the patents granted in 1980 for.

Technical Appendix to “The Macroeconomic Effects of Goods and ...
Sep 21, 2015 - URL: http://www.hec.ca/en/profs/matteo.cacciatore.html. ...... non-manufacturing industries: gas, electricity, post (basic letter, parcel, express mail), telecom- ... 4The series available from the OECD website starts from 1985.

Technical Appendix for Natural Gas Pipelines in Lycoming County ...
Media, Pennsylvania 19063-1044. www.schmidco.com .... Page 3 of 110. Technical Appendix for Natural Gas Pipelines in Lycoming County, Pennsylvania.pdf.

Technical Appendix Vehicle Currency Use in ...
Nov 17, 2006 - producer currency e, the destination currency d, another vehicle currency v, or a combination of the available currencies. In addition of having to set prices in an environment of uncertainty, the exporter faces transaction costs which

APPENDIX for LABORATORY 3 SHEET APPENDIX A
An Interrupt Service Routine (ISR) or Interrupt Handler is a piece of code that should be executed when an interrupt is triggered. Usually each enabled interrupt has its own ISR. In. AVR assembly language each ISR MUST end with the RETI instruction w

Technical Appendix for “Sequentially Optimal ...
Step 1c. We now demonstrate that a bounded and continuous function over a sequentially compact set has a maximum. First note that R(p) is bounded by 1. Let.

TECHNICAL APPENDIX No mangos in the tundra ...
No mangos in the tundra: spatial heterogeneity in agricultural productivity analysis by. Markus Eberhardt1 and Francis Teal. Contents. 1 Climate Zones .... C. 79%. Trinidad & Tobago. TTO. 42. C. 0%. Indonesia. IDN. 42. C. 28%. Tunisia. TUN. 42. C. 33

The price of variance risk - Online Appendix
Sep 21, 2016 - In this paper, we introduce two new data sets on variance swaps. Given that the ... is constructed in the same way and by the same company as the CDS data set from the same firm ..... of VS prices on top of the realized variance RVt. B

Online Appendix to Optimal Stopping with General Risk ...
The online appendix is organized as follows. In part 1 we present behavioral founda- tions of the model considered in the main body of the paper. The main result of part 1 characterizes Expected Utility as the only risk preference model which is cons

A COMMENT ON DOREIAN'S REGULAR EQUIYALENCE IN ...
correspond closely with intuitive notions of role (Nadel 1957; Sailer. 1978; Faust 1985), for symmetric data this correspondence seems to break down. Doreian's solution, which I call the “Doreian Split”, is creative and practical, and yields intu

Risk Matters: The Real Effects of Volatility Shocks! - University of ...
Apr 6, 2009 - 57. 2+" when no confusion arises. Similarly, we have a law of motion. 7We want to ...... Proposition 1, which is just a simple application of Bayesltheorem, builds the draws. 7σ2 .... nMimeo, University of California$San. Diego.

Risk Matters: The Real Effects of Volatility Shocks!
Apr 6, 2009 - otherwise standard small open economy business cycle model. ..... Perri (2005) explain in detail the advantages of EMBI data in ..... ronment according to the technology Y8 φ K8 (e-t H8)"- where X8 corresponds to a labor$.

Pairwise kidney exchange: Comment
and others. The key requirement is that the choice mechanism be consistent, i.e., if an allocation is chosen from some set of feasible allocations, it is also chosen ...