feds · December 31, 2011

Computing DSGE Models with Recursive Preferences and Stochastic Volatility

Abstract

This paper compares different solution methods for computing the equilibrium of dynamic stochastic general equilibrium (DSGE) models with recursive preferences such as those in Epstein and Zin (1989 and 1991) and stochastic volatility. Models with these two features have recently become popular, but we know little about the best ways to implement them numerically. To fill this gap, we solve the stochastic neoclassical growth model with recursive preferences and stochastic volatility using four different approaches: second- and third-order perturbation, Chebyshev polynomials, and value function iteration. We document the performance of the methods in terms of computing time, implementation complexity, and accuracy. Our main finding is that perturbations are competitive in terms of accuracy with Chebyshev polynomials and value function iteration while being several orders of magnitude faster to run. Therefore, we conclude that perturbation methods are an attractive approach for computing this class of problems.

Finance and Economics Discussion Series Divisions of Research & Statistics and Monetary Affairs Federal Reserve Board, Washington, D.C. Computing DSGE Models with Recursive Preferences and Stochastic Volatility Dario Caldara, Jesus Fernandez-Villaverde, Juan Rubio-Ramirez, and Wen Yao 2012-04 NOTE: Staff working papers in the Finance and Economics Discussion Series (FEDS) are preliminary materials circulated to stimulate discussion and critical comment. The analysis and conclusions set forth are those of the authors and do not indicate concurrence by other members of the research staff or the Board of Governors. References in publications to the Finance and Economics Discussion Series (other than acknowledgement) should be cleared with the author(s) to protect the tentative character of these papers.

Computing DSGE Models with Recursive Preferences and Stochastic Volatility (cid:3) Dario Caldara Jesœs FernÆndez-Villaverde Juan F. Rubio-Ram(cid:237)rez y z x Wen Yao { January 10, 2012 1

Abstract This paper compares di⁄erent solution methods for computing the equilibrium of dynamic stochastic general equilibrium (DSGE) models with recursive preferences such as those in Epstein and Zin (1989 and 1991) and stochastic volatility. Models with these two features have recently become popular, but we know little about the best ways to implement them numerically. To (cid:133)ll this gap, we solve the stochastic neoclassical growth model with recursive preferences and stochastic volatility using four di⁄erent approaches: second- and third-order perturbation, Chebyshev polynomials, and value function iteration. We document the performance of the methods in terms of computing time, implementation complexity, and accuracy. Our main (cid:133)nding is that perturbations are competitive in terms of accuracy with Chebyshev polynomials and value function iteration while being several orders of magnitude faster to run. Therefore, we conclude that perturbation methods are an attractive approach for computing this class of problems. Keywords: DSGE Models, Recursive Preferences, Perturbation. JEL classi(cid:133)cation Numbers: C63, C68, E32. We thank Michel Juillard for his help with computational issues and Larry Christiano, Dirk Krueger, (cid:3) Pawel Zabczyk, and participants at several seminars for comments. Beyond the usual disclaimer, we must note that any views expressed herein are those of the authors and not necessarily those of the Board of Governors of the Federal Reserve System or the Federal Reserve Bank of Atlanta. Finally, we also thank the NSF for (cid:133)nancial support. Federal Reserve Board, Washington, DC 20551, and <dario.caldara@frb.gov>. y University of Pennsylvania, NBER, CEPR, and FEDEA. Address: 160 McNeil, 3718 Locust Walk, z Philadelphia, PA 19104, and <jesusfv@econ.upenn.edu>. Duke University, Federal Reserve Bank of Atlanta, and FEDEA. Address: 213 Social Sciences Building, x Box 90097, Durham, NC 27708-0097, and <juan.rubio-ramirez@duke.edu>. University of Pennsylvania. Address: 160 McNeil, 3718 Locust Walk, Philadelphia, PA 19104, and { <wenyao@econ.upenn.edu>. 2

1. Introduction Thispapercomparesdi⁄erentsolutionmethodsforcomputingtheequilibriumofdynamicstochasticgeneralequilibrium(DSGE)modelswithrecursivepreferencesandstochasticvolatility (SV).Bothfeatureshavebecomeverypopularin(cid:133)nanceandinmacroeconomicsasmodelling devices to account for business cycle (cid:135)uctuations and asset pricing. Recursive preferences, as those (cid:133)rst proposed by Kreps and Porteus (1978) and later generalized by Epstein and Zin (1989 and 1991) and Weil (1990), are attractive for two reasons. First, they allow us to separate risk aversion and intertemporal elasticity of substitution (EIS). Second, they o⁄er the intuitive appeal of having preferences for early or later resolution of uncertainty (see the reviews by Backus et al., 2004 and 2007, and Hansen et al., 2007, for further details and references). SV generates heteroskedastic aggregate (cid:135)uctuations, a basic property of many time series such as output (see the review by FernÆndez-Villaverde and Rubio-Ram(cid:237)rez, 2010), and adds extra (cid:135)exibility in accounting for asset pricing patterns. In fact, in an in(cid:135)uential paper, Bansal and Yaron (2004) have argued that the combination of recursive preferences and SV is the key for their proposed mechanism, long-run risk, to be successful at explaining asset pricing. But despite the popularity and importance of these issues, nearly nothing is known about the numerical properties of the di⁄erent solution methods that solve equilibrium models with recursive preferences and SV. For example, we do not know how well value function iteration (VFI)performsorhowgoodlocalapproximationsarecomparedwithglobalones. Similarly, if wewanttoestimatethemodel, weneedtoassesswhichsolutionmethodissu¢ cientlyreliable yet quick enough to make the exercise feasible. More important, the most common solution algorithm in the DSGE literature, (log-) linearization, cannot be applied, since it makes us miss the whole point of recursive preferences or SV: the resulting (log-) linear decision rules are certainty equivalent and do not depend on risk aversion or volatility. This paper attempts to (cid:133)ll this gap in the literature, and therefore, it complements previous work by Aruoba et al. (2006), in which a similar exercise is performed with the neoclassical growth model with CRRA utility function and constant volatility. We solve and simulate the model using four main approaches: perturbation (of second andthirdorder), Chebyshevpolynomials, andVFI. Bydoingso, wespanmost of therelevant methods in the literature. Our results provide a strong guess of how some other methods not covered here, such as (cid:133)nite elements, would work (rather similar to Chebyshev polynomials but more computationally intensive). We report results for a benchmark calibration of the model and for alternative calibrations that change the variance of the productivity shock, the risk aversion, and the intertemporal elasticity of substitution. In that way, we study 3

the performance of the methods both for cases close to the CRRA utility function with constant volatility and for highly non-linear cases far away from the CRRA benchmark. For each method, we compute decision rules, the value function, the ergodic distribution of the economy, businesscyclestatistics, thewelfarecostsofaggregate(cid:135)uctuations, andassetprices. Also, we evaluate the accuracy of the solution by reporting Euler equation errors. We highlight four main results from our exercise. First, all methods provide a high degree of accuracy. Thus, researcherswhostaywithinoursetof solutionalgorithms canbecon(cid:133)dent that their quantitative answers are sound. Second,perturbationsdeliverasurprisinglyhighlevelofaccuracywithconsiderablespeed. Both second- and third-order perturbations perform remarkably well in terms of accuracy for the benchmark calibration, being competitive with VFI or Chebyshev polynomials. For this calibration, a second-order perturbation that runs in a fraction of a second does nearly as well in terms of the average Euler equation error as a VFI that takes ten hours to run. Even in the extreme calibration with high risk aversion and high volatility of productivity shocks, perturbation works at a more than acceptable level. Since, in practice, perturbation methods are the only computationally feasible method to solve the medium-scale DSGE models used for policy analysis that have dozens of state variables (as in Smets and Wouters, 2007), this (cid:133)nding has an outmost applicability. Moreover, since implementing second- and third-order perturbations is feasible with o⁄-the-shelf software like Dynare, which requires minimum programming knowledge by the user, our (cid:133)ndings may induce many researchers to explore recursive preferences and/or SV in further detail. Two (cid:133)nal advantages of perturbation are that, often, the perturbed solution provides insights about the economics of the problem and that it might be an excellent initial guess for VFI or for Chebyshev polynomials. Third, Chebyshev polynomials provide a terri(cid:133)c level of accuracy with reasonable computational burden. When accuracy is most required and the dimensionality of the state space is not too high, as in our model, they are the obvious choice. Fourth, we were disappointed by the poor performance of VFI, which, compared with Chebyshev, could not achieve a high accuracy even with a large grid. This suggests that we should relegate VFI to solving those problems where non-di⁄erentiabilities complicate the application of the previous methods. The rest of the paper is organized as follows. In section 2, we present our test model. Section 3 describes the di⁄erent solution methods used to approximate the decision rules of the model. Section 4 discusses the calibration of the model. Section 5 reports numerical results and section 6 concludes. An appendix provides some additional details. 4

2. The Stochastic Neoclassical Growth Model with Recursive Preferences and SV We use the stochastic neoclassical growth model with recursive preferences and SV in the process for technology as our test case. We select this model for three reasons. First, it is the workhorse of modern macroeconomics. Even more complicated New Keynesian models with real and nominal rigidities, such as those in Woodford (2003) or Christiano et al. (2005), are built around the core of the neoclassical growth model. Thus, any lesson learned with it is likely to have a wide applicability. Second, the model is, except for the form of the utility function and the process for SV, the same test case as in Aruoba et al. (2006). This provides us with a set of results to compare to our (cid:133)ndings. Three, the introduction of recursive preferencesandSVmakethemodelbothmorenon-linear(andhence, achallengefordi⁄erent solution algorithms) and potentially more relevant for practical use. For example, and as mentioned in the introduction, Bansal and Yaron (2004) have emphasized the importance of the combination of recursive preferences and time-varying volatility to account for asset prices. Thedescriptionofthemodelisstraightforward,andwejustgothroughthedetailsrequired to (cid:133)x notation. There is a representative household that has preferences over streams of consumption, c , and leisure, 1 l , represented by a recursive function of the form: t t (cid:0) (cid:18) 1 (cid:13) 1 1 (cid:13) U t = m ct a ;lt x (cid:20) (1 (cid:0) (cid:12)) c(cid:29) t (1 (cid:0) l t )1 (cid:0) (cid:29) (cid:0)(cid:18) +(cid:12) Et U t 1 +(cid:0)1 (cid:13) (cid:18) (cid:21) (cid:0) (1) (cid:0) (cid:1) (cid:0) (cid:1) The parameters in these preferences include (cid:12); the discount factor, (cid:29), which controls labor supply, (cid:13), which controls risk aversion, and: 1 (cid:13) (cid:18) = (cid:0) 1 1 (cid:0) where istheEIS.Theparameter(cid:18)isanindexofthedeviationwithrespecttothebenchmark CRRA utility function (when (cid:18) = 1, we are back in that CRRA case where the inverse of the EIS and risk aversion coincide). The household(cid:146)s budget constraint is given by: b t+1 c +i + = w l +r k +b t t Rf t t t t t t where i is investment, Rf is the risk-free gross interest rate, b is the holding of an uncontint t t gent bond that pays 1 unit of consumption good at time t+1, w is the wage, l is labor, r t t t 5

is the rental rate of capital, and k is capital. Asset markets are complete and we could have t also included in the budget constraint the whole set of Arrow securities. Since we have a representative household, this is not necessary because the net supply of any security is zero. Households accumulate capital according to the law of motion k = (1 (cid:14))k +i where (cid:14) t+1 t t (cid:0) is the depreciation rate. The (cid:133)nal good in the economy is produced by a competitive (cid:133)rm with a Cobb-Douglas technology y t = eztk t (cid:16)l t 1 (cid:0) (cid:16) where z t is the productivity level that follows: z = (cid:21)z +e(cid:27)t" , " (0;1): t t 1 t t (cid:0) (cid:24) N Stationarity is the natural choice for our exercise. If we had a deterministic trend, we would only need to adjust (cid:12) in our calibration below (and the results would be nearly identical). If we had a stochastic trend, we would need to rescale the variables by the productivity level and solve the transformed problem. However, in this case, it is well known that the economy (cid:135)uctuates less than when (cid:21) < 1, and therefore, all solution methods would be closer, limiting our ability to appreciate di⁄erences in their performance. The innovation " is scaled by a SV level (cid:27) ; which evolves as: t t (cid:27) = (1 (cid:26))(cid:27) +(cid:26)(cid:27) +(cid:17)! , ! (0;1) t t 1 t t (cid:0) (cid:0) (cid:24) N where (cid:27) is the unconditional mean level of (cid:27) , (cid:26) is the persistence of the processes, and (cid:17) t is the standard deviation of the innovations to (cid:27) . Our speci(cid:133)cation is parsimonious and it t introduces only two new parameters, (cid:26) and (cid:17). At the same time, it captures some important features of the data (see a detailed discussion in FernÆndez-Villaverde and Rubio-Ram(cid:237)rez, 2010). The combination of an exponent in the productivity process (e(cid:27)t) and a level in the evolution of (cid:27) generates interesting nonlinear dynamics. Another important point is that, t with SV, we have two innovations, an innovation to technology, " ; and an innovation to t the standard deviation of technology, ! . Finally, the economy must satisfy the aggregate t resource constraint y = c +i . t t t The de(cid:133)nition of equilibrium is standard and we skip it in the interest of space. Also, both welfare theorems hold, a fact that we will exploit by jumping back and forth between the solution of the social planner(cid:146)s problem and the competitive equilibrium. However, this is only to simplifyourderivations. It is straightforwardto adapt the solutionmethods described below to solve problems that are not Pareto optimal. Thus, an alternative way to write this economy is to look at the value function representation of the social planner(cid:146)s problem in terms of its three state variables, capital k , t 6

productivity z , and volatility, (cid:27) : t t (cid:18) V (k t ;z t ;(cid:27) t ) = m ct a ;lt x (cid:20) (1 (cid:0) (cid:12)) c(cid:29) t (1 (cid:0) l t )1 (cid:0) (cid:29) 1 (cid:0)(cid:18) (cid:13) +(cid:12) Et V1 (cid:0) (cid:13)(k t+1 ;z t+1 ;(cid:27) t+1 ) (cid:18) 1 (cid:21) 1 (cid:0) (cid:13) s.t. c t (cid:0) +k t+1 = eztk (cid:1) t (cid:16)l t 1 (cid:0) (cid:16) +( (cid:0) 1 (cid:14))k t (cid:1) (cid:0) z = (cid:21)z +e(cid:27)t" , " (0;1) t t 1 t t (cid:0) (cid:24) N (cid:27) = (1 (cid:26))(cid:27) +(cid:26)(cid:27) +(cid:17)! , ! (0;1): t t 1 t t (cid:0) (cid:0) (cid:24) N Then, we can (cid:133)nd the pricing kernel of the economy @V =@c t t+1 m = : t+1 @V =@c t t Now, note that: @V t = (1 (cid:12))V 1 (cid:0) 1 (cid:0)(cid:18) (cid:13) (cid:29) (c(cid:29) t (1 (cid:0) l t )1 (cid:0) (cid:29)) 1 (cid:0)(cid:18) (cid:13) @c (cid:0) t c t t and: @ @ c V t = (cid:12)V t 1 (cid:0) 1 (cid:0)(cid:18) (cid:13) (Et V t 1 +(cid:0)1 (cid:13))(cid:18) 1 (cid:0) 1 Et V t(cid:0)+ (cid:13) 1 (1 (cid:0) (cid:12))V t 1 + (cid:0) 1 1 (cid:0)(cid:18) (cid:13) (cid:29) (1 (cid:0) (cid:12))(c(cid:29) t+1 ( c 1 (cid:0) l t+1 )1 (cid:0) (cid:29)) 1 (cid:0)(cid:18) (cid:13) t+1 t+1 ! whereinthelaststepweusetheresultregarding@V =@c forwardedbyoneperiod. Cancelling t t redundant terms, we get: m = @V t =@c t+1 = (cid:12) c t+1 (cid:29)(1 (cid:18)(cid:0) (cid:13)) (cid:0) 1 1 (cid:0) l t+1 (1 (cid:0) (cid:13)) (cid:18) (1 (cid:0) (cid:29)) V t 1 +(cid:0)1 (cid:13) 1 (cid:0)(cid:18) 1 : (2) t+1 @V t =@c t (cid:18) c t (cid:19) (cid:18) 1 (cid:0) l t (cid:19) Et V t 1 +(cid:0)1 (cid:13) ! Thisequationshowshowthepricingkernelisa⁄ectedbythepresenceofrecursivepreferences. If (cid:18) = 1, the last term, 1 1 V1 (cid:13) (cid:0)(cid:18) t+(cid:0)1 (3) Et V t 1 +(cid:0)1 (cid:13) ! is equal to 1 and we get back the pricing kernel of the standard CRRA case. If (cid:18) = 1, the 6 pricing kernel is twisted by (3). We identify the net return on equity with the marginal net return on investment: R t k +1 = (cid:16)ezt+1k t (cid:16) +(cid:0)1 1l t 1 +(cid:0)1 (cid:16) (cid:0) (cid:14) with expected return Et R t k +1 : (cid:2) (cid:3) 7

3. Solution Methods We are interested in comparing di⁄erent solution methods to approximate the dynamics of the previous model. Since the literature on computational methods is large, it would be cumbersome to review every proposed method. Instead, we select those methods that we (cid:133)nd most promising. Our (cid:133)rst method is perturbation (introduced by Judd and Guu, 1992 and 1997 and nicely explained in Schmitt-GrohØ and Uribe, 2004). Perturbation algorithms build a Taylor series expansionoftheagents(cid:146)decisionrules. Often,perturbationmethodsareveryfastand,despite their local nature, highly accurate in a large range of values of the state variables (Aruoba et al., 2006). This means that, in practice, perturbations are the only method that can handle models with dozens of state variables within any reasonable amount of time. Moreover, perturbation often provides insights into the structure of the solution and on the economics of the model. Finally, linearization and log-linearization, the most common solution methods for DSGE models, are particular cases of a perturbation of (cid:133)rst order. We implement a second- and a third-order perturbation of our model. A (cid:133)rst-order perturbation is useless for our investigation: the resulting decision rules are certainty equivalent and, therefore, they depend on but not on (cid:13) or (cid:27) . In other words, the (cid:133)rst-order decision t rules of the model with recursive preferences coincide with the decision rules of the model with CRRA preferences with the same and (cid:27) for any value of (cid:13) or (cid:27) . We need to go, at t least, to second-order decision rules to have terms that depend on (cid:13) or (cid:27) and, hence, allow t recursive preferences or SV to play a role. Since the accuracy of second-order decision rules may not be high enough and, in addition, we want to explore time-varying risk premia, we also compute a third-order perturbation. As we will document below, a third-order perturbation provides enough accuracy without unnecessary complications. Thus, we do not need to go to higher orders. The second method is a projection algorithm with Chebyshev polynomials (Judd, 1992). Projection algorithms build approximated decision rules that minimize a residual function thatmeasuresthedistancebetweentheleft-andright-handsideoftheequilibriumconditions of the model. Projection methods are attractive because they o⁄er a global solution over the whole range of the state space. Their main drawback is that they su⁄er from an acute curse of dimensionality that makes it challenging to extend it to models with many state variables. Among the many di⁄erent types of projection methods, Aruoba et al. (2006) show that Chebyshev polynomials are particularly e¢ cient. Other projection methods, such as (cid:133)nite elements or parameterized expectations, tend to perform somewhat worse than Chebyshev polynomials, and therefore, in the interest of space, we do not consider them. 8

Finally, we compute the model using VFI (Epstein and Zin, 1989, show that a version of the contraction mapping theorem holds in the value function of the problem with recursive preferences). VFI is slow and it su⁄ers as well from the curse of dimensionality, but it is safe, reliable, and well understood. Thus, it is a natural default algorithm for the solution of DSGE models. 3.1. Perturbation We describe now each of the di⁄erent methods in more detail. We start by explaining how to use a perturbation approach to solve DSGEmodels using the value function of the household. We are not the (cid:133)rst to explore the perturbation of value function problems. Judd (1998) alreadypresentstheideaofperturbingthevaluefunctioninsteadoftheequilibriumconditions of a model. Unfortunately, he does not elaborate much on the topic. Schmitt-GrohØ and Uribe (2005) employ a perturbation approach to (cid:133)nd a second-order approximation to the value function that allows them to rank di⁄erent (cid:133)scal and monetary policies in terms of welfare. However, we follow Binsbergen et al. (2009) in their emphasis on the generality of the approach.1 To illustrate the procedure, we limit our exposition to deriving the second-order approximation to the value function and the decision rules of the agents. Higher-order terms are derived analogously, but the algebra becomes too cumbersome to be developed explicitly (in our application, the symbolic algebra is undertaken by Mathematica, which automatically generates Fortran 95 code that we can evaluate numerically). Hopefully, our steps will be enough to allow the reader to understand the main thrust of the procedure and obtain higher-order approximations by herself. First, we rewrite the exogenous processes in terms of a perturbation parameter (cid:31), z = (cid:21)z +(cid:31)e(cid:27)t" t t 1 t (cid:0) (cid:27) = (1 (cid:26))(cid:27) +(cid:26)(cid:27) +(cid:31)(cid:17)! : t t 1 t (cid:0) (cid:0) When (cid:31) = 1, which is just a normalization, we are dealing with the stochastic version of 1The perturbation method is related to Benigno and Woodford (2006) and Hansen and Sargent (1995). BenignoandWoodfordpresentalinear-quadratic(LQ)approximationtosolveoptimalpolicyproblemswhen the constraints of the problem are non-linear (see also Levine et al., 2007). This allows them to (cid:133)nd the correct local welfare ranking of di⁄erent policies. Our perturbation can also deal with non-linear constraints and obtains the correct local approximation to welfare and policies, but with the advantage that it is easily generalizable to higher-order approximations. Hansen and Sargent (1995) modify the LQ problem to adjust for risk. In that way, they can handle some versions of recursive utilities. Hansen and Sargent(cid:146)s method, however, requires imposing a tight functional form for future utility and to surrender the assumption that risk-adjustedutilityisseparableacrossstatesoftheworld. Perturbationdoesnotsu⁄erfromthoselimitations. 9

the model. When (cid:31) = 0, we are dealing with the deterministic case with steady state k , ss z = 0, and (cid:27) = (cid:27). Also, it is convenient for the algebra below to de(cid:133)ne a vector of states ss ss in di⁄erences with respect to the steady state, s = (k k ;z ;" ;(cid:27) (cid:27) ;! ;(cid:31)), where t t ss t 1 t t 1 ss t (cid:0) (cid:0) (cid:0) (cid:0) s is the i th component of this vector at time t for i 1;:::;6 . Then, we can write it (cid:0) 2 f g the social planner(cid:146)s value function, V (s ), and the decision rules for consumption, c(s ), t t investment, i(s ), capital, k(s ), and labor, l(s ), as a function of s . t t t t Second, we note that, under di⁄erentiability assumptions, the second-order Taylor approximation of the value function around s = 0 (the vectorial zero) is: t 1 V (s ) V +V si + V sisj t ’ ss i;ss t 2 ij;ss t t where: 1. Each term V is a scalar equal to a derivative of the value function evaluated at 0: :::;ss V V (0); V V (0) for i 1;:::;6 ; and V V (0) for i;j 1;:::;6 ; ss i;ss i ij;ss ij (cid:17) (cid:17) 2 f g (cid:17) 2 f g 2. We use the tensors V si = 6 V s and V sisj = 6 6 V s s , which i;ss t i=1 i;ss i;t ij;ss t t i=1 i=1 ij;ss i;t j;t eliminate the symbol 6 when no confusion arises. i=1 P P P P We can extend this notation to higher-order derivatives of the value function. This expansion could also be performed around a di⁄erent point of the state space, such as the mode of the ergodic distribution of the state variables. In section 5, we discuss this point further. FernÆndez-Villaverde et al. (2010) show that many of these terms V are zero (for :::;ss instance, those implied by certainty equivalence in the (cid:133)rst-order component). More directly related to this paper, Binsbergen et al. (2009) demonstrate that (cid:13) does not a⁄ect the values of any of the coe¢ cients except V and also that V = 0. This result is intuitive, since 66;ss 66;ss 6 the value function of a risk-averse agent is in general a⁄ected by uncertainty and we want to have an approximation with terms that capture this e⁄ect and allow for the appropriate welfare ranking of decision rules. Indeed, V has a straightforward interpretation. At the 66;ss deterministic steady state with (cid:31) = 1 (that is, even if we are in the stochastic economy, we just happen to be exactly at the steady state values of all the other states), we have: 1 V (0;0;0;0;0;1) V + V ss 66;ss ’ 2 Hence 1V isameasureofthewelfarecostofthebusinesscycle, thatis, ofhowmuchutility 2 66;ss changes when the variance of the productivity shocks is at steady-state value (cid:27) instead of ss zero (note that this quantity is not necessarily negative). This term is an accurate evaluation 10

of the third order of the welfare cost of business cycle (cid:135)uctuations because all of the thirdorder terms in the approximation of the value function either have coe¢ cient values of zero or drop when evaluated at the deterministic steady state. This cost of the business cycle can easily be transformed into consumption equivalent units. We can compute the percentage decrease in consumption (cid:28) that will make the household indi⁄erent between consuming (1 (cid:28))c units per period with certainty or c units with ss t (cid:0) uncertainty. To do so, note that the steady-state value function is just V = c(cid:29) (1 l )1 (cid:29); ss ss (cid:0) ss (cid:0) which implies that: 1 c(cid:29) (1 l )1 (cid:29) + V = ((1 (cid:28))c )(cid:29)(1 l )1 (cid:29) ss (cid:0) ss (cid:0) 2 66;ss (cid:0) ss (cid:0) ss (cid:0) or: 1 V + V = (1 (cid:28))(cid:29)V ss 66;ss ss 2 (cid:0) Then: 1 1V (cid:29) 66;ss (cid:28) = 1 1+ : (cid:0) 2 V (cid:20) ss (cid:21) We are perturbing the value function in levels of the variables. However, there is nothing special about levels and we could have done the same in logs (a common practice when linearizing DSGE models) or in any other function of the states. These changes of variables may improve the performance of perturbation (FernÆndez-Villaverde and Rubio-Ram(cid:237)rez, 2006). By doing the perturbation in levels, we are picking the most conservative case for perturbation. Since one of the conclusions that we will reach from our numerical results is that perturbation works surprisingly well in terms of accuracy, that conclusion will only be reinforced by an appropriate change of variables.2 The decision rules can be expanded in the same way. For example, the second-order approximation of the decision rule for consumption is, under di⁄erentiability assumptions: 1 c(s ) c +c si + c sisj t ’ ss i;ss t 2 ij;ss t t where we have followed the same derivative and tensor notation as before. As with the approximation of the value function, Binsbergen et al. (2009) show that (cid:13) does not a⁄ect the values of any of the coe¢ cients except c . This term is a constant that 66;ss captures precautionary behavior caused by risk. This observation tells us two facts. First, a 2This comment begets the question, nevertheless, of why we did not perform a perturbation in logs, since many economists will (cid:133)nd it more natural than using levels. Our experience with the CRRA utility case (Aruoba et al., 2006) and some computations with recursive preferences not included in the paper suggest that a perturbation in logs does slightly worse than a perturbation in levels. 11

linear approximation to the decision rule does not depend on (cid:13) (it is certainty equivalent), and therefore, if we are interested in recursive preferences, we need to go at least to a secondorder approximation. Second, given some (cid:133)xed parameter values, the di⁄erence between the second-order approximation to the decision rules of a model with CRRA preferences and a model with recursive preferences is a constant. This constant generates a second, indirect e⁄ect, because it changes the ergodic distribution of the state variables and, hence, the points where we evaluate the decision rules along the equilibrium path. These arguments demonstrate how perturbation methods can provide analytic insights beyond computational advantages and help in understanding the numerical results in Tallarini (2000). In the thirdorder approximation, all of the terms on functions of (cid:31)2 depend on (cid:13). Following the same steps, we can derive the decision rules for labor, investment, and capital. In addition we have functions that give us the evolution of other variables of interest, such as the pricing kernel or the risk-free gross interest rate Rf. All of these functions have t the same structure and properties regarding (cid:13) as the decision rule for consumption. In the case of functions pricing assets, the second-order approximation generates a constant risk premium, while the third-order approximation creates a time-varying risk premium. Once we have reached this point, there are two paths we can follow to solve for the coef- (cid:133)cients of the perturbation. The (cid:133)rst procedure is to write down the equilibrium conditions of the model plus the de(cid:133)nition of the value function. Then, we take successive derivatives in this augmented set of equilibrium conditions and solve for the unknown coe¢ cients. This approach, which we call equilibrium conditions perturbation (ECP), gets us, after n iterations, the n-th-order approximation to the value function and to the decision rules. A second procedure is to take derivatives of the value function with respect to states and controls and use those derivatives to (cid:133)nd the unknown coe¢ cient. This approach, which we call value function perturbation (VFP), delivers after (n+1) steps, the (n+1)-th order approximationtothevaluefunctionandthen thorderapproximationtothedecisionrules.3 (cid:0) Loosely speaking, ECP undertakes the (cid:133)rst step of VFP by hand by forcing the researcher to derive the equilibrium conditions. The ECP approach is simpler but it relies on our ability to (cid:133)nd equilibrium conditions that do not depend on derivatives of the value function. Otherwise, we need to modify the equilibriumconditions to include the de(cid:133)nitions of the derivatives of the value function. Even if this is possible to do (and not particularly di¢ cult), it amounts to solving a problem that 3The classical strategy of (cid:133)nding a quadratic approximation of the utility function to derive a linear decision rule is a second-order example of VFP (Anderson et al., 1996). A standard linearization of the equilibrium conditions of a DSGE model when we add the value function to those equilibrium conditions is a simple case of ECP. This is done, for instance, in Schmitt-GrohØ and Uribe (2005). 12

is equivalent to VFP. This observation is important because it is easy to postulate models that have equilibrium conditions where we cannot get rid of all the derivatives of the value function (for example, in problems of optimal policy design). ECP is also faster from a computational perspective. However, VFP is only trivially more involved because (cid:133)nding the (n+1)-th-order approximation to the value functionon top of the n-th order approximation requires nearly no additional e⁄ort. The algorithm presented here is based on the system of equilibrium equations derived using the ECP. In the appendix, we derive a system of equations using the VFP. We take the (cid:133)rst-order conditions of the social planner. First, with respect to consumption today: @V t (cid:22) = 0 @c (cid:0) t t where (cid:22) is the Lagrangian multiplier associated with the resource constraint. Second, with t respect to capital: (cid:0) (cid:22) t +Et (cid:22) t+1 (cid:16)ezt+1k t (cid:16) +(cid:0)1 1l t 1 +(cid:0)1 (cid:16) +1 (cid:0) (cid:14) = 0: (cid:16) (cid:17) Third, with respect to labor: 1 (cid:29) c (cid:0) (cid:29) (1 t l ) = (1 (cid:0) (cid:16))eztk t (cid:16)l t(cid:0) (cid:16): t (cid:0) Then, we have Et m t+1 (cid:16)eztk t (cid:16) +(cid:0)1 1l t 1 +(cid:0)1 (cid:16) +1 (cid:0) (cid:14) = 1 where m t+1 was derived in equation (2). Note that, as explained(cid:16)above, the derivative(cid:17)s of the value function in (2) are eliminated. Once we substitute for the pricing kernel, the augmented equilibrium conditions are: (cid:18) V t (cid:0) (1 (cid:0) (cid:12)) c(cid:29) t (1 (cid:0) l t )1 (cid:0) (cid:29) 1 (cid:0)(cid:18) (cid:13) +(cid:12) Et V1 (cid:0) (cid:13)(k t+1 ;z t+1 ) (cid:18) 1 1 (cid:0) (cid:13) = 0 (cid:20) (cid:21) Et 2 (cid:12) (cid:18) c t c + t 1 (cid:19) 1 (cid:0) (cid:0) (cid:18) (cid:13) (cid:0) 1 E V t V t 1 + t (cid:0) 1 + 1 (cid:0) (cid:13) 1 (cid:13) (cid:1) ! 1 (cid:0)(cid:18) 1 (cid:16)e (cid:0) zt+1k t (cid:16) +(cid:0)1 1l t 1 +(cid:0)1 (cid:16) +1 (cid:0) (cid:14) (cid:1) 3(cid:0) 1 = 0 (cid:16) (cid:17) 4 1 (cid:29) c 5 (cid:0) (cid:29) (1 t l ) = (1 (cid:0) (cid:16))eztk t (cid:16)l t(cid:0) (cid:16) = 0 t (cid:0) Et (cid:12) (cid:18) c t c + t 1 (cid:19) 1 (cid:0)(cid:18) (cid:13) (cid:0) 1 E V t V t 1 + t (cid:0) 1 + 1 (cid:0) (cid:13) 1 (cid:13) ! 1 (cid:0)(cid:18) 1 R t f (cid:0) 1 = 0 c t +i t eztk t (cid:16)l t 1 (cid:0) (cid:16) = 0 (cid:0) k i (1 (cid:14))k = 0 t+1 t t (cid:0) (cid:0) (cid:0) plus the law of motion for productivity and volatility. Note that all the endogenous variables 13

are functions of the states and that we drop the max operator in front of the value function because we are already evaluating it at the optimum. Thus, a more compact notation for the previous equilibrium conditions as a function of the states is: F (0) = 0 where F : R 6 R 8. ! In steady state, m = (cid:12) and the set of equilibrium conditions simpli(cid:133)es to: ss V = c(cid:29) (1 l )1 (cid:29) ss ss (cid:0) ss (cid:0) (cid:16)k(cid:16) 1l1 (cid:16) +1 (cid:14) = 1=(cid:12) ss(cid:0) ss(cid:0) (cid:0) 1 (cid:29) c (cid:0)(cid:0) ss = (1 (cid:1) (cid:16))k(cid:16) l (cid:16) (cid:29) (1 l ) (cid:0) ss s(cid:0)s ss (cid:0) Rf = 1=(cid:12) ss c +i = k(cid:16) l1 (cid:16) ss ss ss ss(cid:0) i = (cid:14)k ss ss a system of 6 equations on 6 unknowns, V , c , k , i , l , and Rf that can be easily solved ss ss ss ss ss ss (see the appendix for the derivations). This steady state is identical to the steady state of the real business cycle model with a standard CRRA utility function and no SV. To (cid:133)nd the (cid:133)rst-order approximation to the value function and the decision rules, we take (cid:133)rst derivatives of the function F with respect to the states s and evaluate them at 0: t F (0) = 0 for i 1;:::;6 : i 2 f g This step gives us 48 di⁄erent (cid:133)rst derivatives (8 equilibrium conditions times the 6 variables of F). Since each dimension of F is equal to zero for all possible values of s , their derivatives t must also be equal to zero. Therefore, once we substitute the steady-state values and forget abouttheexogenousprocesses(whichwedonotneedtosolvefor),wehaveaquadraticsystem of 36 equations on 36 unknowns: V , c , i , k , l , and Rf for i 1;:::;6 : One i;ss i;ss i;ss i;ss i;ss i;ss 2 f g of the solutions is an unstable root of the system that violates the transversality condition of the problem and we eliminate it. Thus, we keep the solution that implies stability. To (cid:133)nd the second-order approximation, we take derivatives on the (cid:133)rst derivatives of the function F, again with respect to the states and the perturbation parameter: F (0) = 0 for i;j 1;:::;6 : ij 2 f g 14

This step gives us a new system of equations. Then, we plug in the terms that we already know from the steady state and from the (cid:133)rst-order approximation and we get that the only unknownsleftarethesecond-ordertermsofthevaluefunctionandotherfunctionsofinterest. Quite conveniently, this system of equations is linear and it can be solved quickly. Repeating thesesteps(takinghigher-orderderivatives, plugginginthetermsalreadyknown, andsolving for the remaining unknowns), we can get any arbitrary order approximation. For simplicity, and since we checked that we were already obtaining a high accuracy, we decided to stop at a third-order approximation (we are particularly interested in applying the perturbation for estimation purposes and we want to document how a third-order approximation is accurate enough for many problems without spending too much time deriving higher-order terms). 3.2. Projection Projectionmethodstakebasisfunctionstobuildanapproximatedvaluefunctionanddecision rules that minimize a residual function de(cid:133)ned by the augmented equilibrium conditions of the model. There are two popular methods for choosing basis functions: (cid:133)nite elements and the spectral method. We will present only the spectral method for several reasons: (cid:133)rst, in the neoclassical growth model the decision rules and value function are smooth and spectral methods provide an excellent approximation. Second, spectral methods allow us to use a large number of basis functions, with the consequent high accuracy. Third, spectral methods are easier to implement. Their main drawback is that since they approximate the solution with a spectral basis, if the decision rules display a rapidly changing local behavior or kinks, it may be di¢ cult for this scheme to capture those local properties. Our target is to solve the decision rule for labor and the value function l ;V from: t t f g u c;t (cid:0) (cid:12) Et V t 1 +(cid:0)1 (cid:13) (cid:18) 1 (cid:0) 1 Et V t+ (1 1 (cid:0) (cid:13)) (cid:18) ((cid:18) (cid:0) 1) u c;t+1 (cid:16)ezt+1k t (cid:16) +(cid:0)1 1l t 1 +(cid:0)1 (cid:16) +1 (cid:0) (cid:14) (l ;V ) = = 0 H t t 2 6 (cid:0) V t (cid:0) ( (cid:1) 1 (cid:0) (cid:12))( (cid:20) c(cid:29) t (1 (cid:0) l t (cid:29))) 1 (cid:0)(cid:18) (cid:13) +(cid:12) (cid:16) Et (V t 1 +(cid:0)1 (cid:13)) (cid:18) 1 1 (cid:0) (cid:18) (cid:13) (cid:17) (cid:21) 3 7 4 h i 5 where, to save on notation, we de(cid:133)ne V = V (k ;z ;(cid:27) ) and: t t t t 1 (cid:13) u = 1 (cid:0) (cid:13) (cid:29) c(cid:29) t (1 (cid:0) l t )1 (cid:0) (cid:29) (cid:0)(cid:18) c;t (cid:18) c (cid:0) t (cid:1) Then, from the static condition (cid:29) c t = 1 (cid:29) (1 (cid:0) (cid:16))eztk t (cid:16)l t(cid:0) (cid:16)(1 (cid:0) l t ) (cid:0) 15

and the resource constraint, we can (cid:133)nd c and k . t t+1 Spectralmethodssolvethisproblembyspecifyingthedecisionruleforlaborandthevalue function l ;V as linear combinations of weighted basis functions: t t f g l(k ;z ;(cid:27) ;(cid:26)) = (cid:6) (cid:26)l (k ) t j m i ijm i t V(k ;z ;(cid:27) ;(cid:26)) = (cid:6) (cid:26)V (k ) t j m i ijm i t where (k) are the n basis functions that we will use for our approximation along f i g i=1;:::;nk k the capital dimension and (cid:26) = (cid:26)l ;(cid:26)V are unknown coe¢ cients to f ijm ijmg i=1;:::;nk;j=1;:::;J;m=1;::;M bedetermined. Inthisexpression, wehavediscretizedthestochasticprocesses(cid:27) forvolatility t and z for productivity using Tauchen(cid:146)s (1986) method as follows. First, we have a grid of t M points G = e(cid:27)1;e(cid:27)2;:::;e(cid:27)M for (cid:27) and a transition matrix (cid:5)M with generic element (cid:27) t f g (cid:25)M = Prob(e(cid:27)t+1 = e(cid:27)j e(cid:27)t = e(cid:27)i). The grid covers 3 standard deviations of the process in i;j j each direction. Then, for each M point, we (cid:133)nd a grid with J points Gm = zm;zm;:::;zm z f 1 2 J g for z and transition matrixes (cid:5)J;m with generic element (cid:25)J;m = Prob zm = zm zm = zm . t i;j t+1 j j t i Again, andconditional one(cid:27)m, thegridcovers 3standarddeviations ineachdirection. Values (cid:0) (cid:1) for the decision rule outside the grids G and Gm can be approximated by interpolation. We (cid:27) z make the grids for z depend on the level of volatility m to adapt the accuracy of Tauchen(cid:146)s t procedure to each conditional variance (although this forces us to interpolate when we switch variances). Since we set J = 25 and M = 5; the approximation is quite accurate along the productivity axis (we explored other choices of J and M to be sure that our choice was sensible). A common choice for the basis functions are Chebyshev polynomials because of their (cid:135)exibility and convenience. Since their domain is [-1,1], we need to bound capital to the set [k;k], wherek (k)ischosensu¢ cientlylow(high)tobindonlywithextremelylowprobability, and de(cid:133)ne a linear mapfromthose bounds into [-1,1]. Then, we set (k ) = ((cid:30) (k )) where i t i k t ( ) are Chebyshev polynomials and (cid:30) (k ) is the linear mapping from [k;k] to [-1,1]. i k t (cid:1) e Bypluggingl(k ;z ;(cid:27) ;(cid:26)) andV(k ;z ;(cid:27) ;(cid:26)) into (l ;V ), we(cid:133)ndtheresidual function: t j m t j m t t e H (k ;z ;(cid:27) ;(cid:26)) = (l(k ;z ;(cid:27) ;(cid:26));V(k ;z ;(cid:27) ;(cid:26))) t j m t j m t j m R H Wedeterminethecoe¢ cients(cid:26) togettheresidualfunctionascloseto0 aspossible. However, to do so, we need to choose a weight of the residual function over the space (k ;z ;(cid:27) ). A t j m collocation point criterion delivers the best trade-o⁄between speed and accuracy (Fornberg, 1998) by making the residual function exactly equal to zero in k nk roots of the n -th f i gi=1 k orderChebyshevpolynomial andinthe Tauchenpoints (also, bythe Chebyshevinterpolation 16

theorem, if an approximating function is exact at the roots of the n th order Chebyshev k (cid:0) polynomial, then, asn , theapproximationerrorbecomesarbitrarilysmall). Therefore, k ! 1 we just need to solve the following system of n J M 2 equations: k (cid:2) (cid:2) (cid:2) (k ;z ;(cid:27) ;(cid:26)) = 0 for any i;j;m collocation points i j m R on n J M 2 unknowns (cid:26). We solve this system with a Newton method and an iteration k (cid:2) (cid:2) (cid:2) based on the increment of the number of basis functions. First, we solve a system with only three collocation points for capital and 125 (125 = 25 5) points for technology. Then, we (cid:2) use that solution as a guess for a system with more collocation points for capital (with the new coe¢ cients being guessed to be equal to zero) and iterate on the procedure. We stop the iteration when we have 11 polynomials in the capital dimension (therefore, in the last step we solve for 2;750 = 11 25 5 2 coe¢ cients). The iteration is needed because otherwise the (cid:2) (cid:2) (cid:2) residual function is too cumbersome to allow for direct solution of the 2;750 (cid:133)nal coe¢ cients. 3.3. Value Function Iteration Our(cid:133)nalsolutionmethodisVFI.Sincethedynamicalgorithmiswellknown,ourpresentation is most brief. Consider the following Bellman operator: (cid:18) TV (k t ;z t ;(cid:27) t ) = m ct a ;lt x (cid:20) (1 (cid:0) (cid:12)) c(cid:29) t (1 (cid:0) l t )1 (cid:0) (cid:29) 1 (cid:0)(cid:18) (cid:13) +(cid:12) Et V1 (cid:0) (cid:13)(k t+1 ;z t+1 ;(cid:27) t+1 ) (cid:18) 1 (cid:21) 1 (cid:0) (cid:13) s.t. c t (cid:0) +k t+1 = eztk t (cid:16)(cid:1) l t 1 (cid:0) (cid:16) +(1 (cid:0) (cid:14))k t (cid:1) (cid:0) z = (cid:21)z +e(cid:27)t" , " (0;1) t t 1 t t (cid:0) (cid:24) N (cid:27) = (1 (cid:26))(cid:27) +(cid:26)(cid:27) +(cid:17)! , ! (0;1): t t 1 t t (cid:0) (cid:0) (cid:24) N To solve for this Bellman operator, we de(cid:133)ne a grid on capital, G = k ;k ;:::;k , a k 1 2 M f g grid on volatility and on the productivity level. The grid on capital is just a uniform distribution of points over the capital dimension. As we did for projection, we set a grid G = e(cid:27)1;e(cid:27)2;:::;e(cid:27)M for (cid:27) and a transition matrix (cid:5)M for volatility and M grids Gm = (cid:27) f g t z zm;zm;:::;zm for z and transition matrixes (cid:5)J;m using Tauchen(cid:146)s (1986) procedure. The f 1 2 J g t algorithm to iterate on the value function for this grid is: 1. Set n = 0 and V0(k ;z ;(cid:27) ) = c(cid:29) (1 l )1 (cid:29) for all k G and all z G . t t t ss (cid:0) ss (cid:0) t 2 k t 2 z 17

2. For every k ;z ;(cid:27) ; use the Newton method to (cid:133)nd c , l , k that solve: f t t t g (cid:3)t t(cid:3) t(cid:3)+1 (cid:29) c t = 1 (cid:29) (1 (cid:0) (cid:16))eztk t (cid:16)l t(cid:0) (cid:16)(1 (cid:0) l t ) (cid:0) 1 (cid:13) (1 (cid:0) (cid:12))(cid:29) c(cid:29) t (1 (cid:0) c l t )1 (cid:0) (cid:29) (cid:0)(cid:18) = (cid:12) Et V t n +1 1 (cid:0) (cid:13) (cid:18) 1 (cid:0) 1 Et V t n +1 (cid:0) (cid:13) V 1 n ;t+1 (cid:0) t (cid:1) (cid:16) (cid:17) h i c t +k t+1 = eztk t (cid:16)l t 1(cid:0) (cid:0) (cid:16) + (cid:1) (1 (cid:14))k t (cid:0) (cid:1) (cid:0) 3. Construct Vn+1 from the Bellman equation: Vn+1 = ((1 (cid:0) (cid:12))(c (cid:3)t (cid:29)(1 (cid:0) l t(cid:3) )1 (cid:0) (cid:29)) 1 (cid:0)(cid:18) (cid:13) +(cid:12)(Et (V(k t(cid:3)+1 ;z t+1 ;(cid:27) t+1 )1 (cid:0) (cid:13)))(cid:18) 1 )1 (cid:0) (cid:18) (cid:13) 4. If Vn+1 Vn 1:0e 7, then n = n+1 and go to 2. Otherwise, stop. j Vn (cid:0) j (cid:21) (cid:0) j j To accelerate convergence and give VFI a fair chance, we implement a multigrid scheme as described by Chow and Tsitsiklis (1991). We start by iterating on a small grid. Then, after convergence, we add more points to the grid and recompute the Bellman operator using the previously found value function as an initial guess (with linear interpolation to (cid:133)ll the unknown values in the new grid points). Since the previous value function is an excellent grid, we quickly converge in the new grid. Repeating these steps several times, we move from an initial 23,000-point grid into a (cid:133)nal one with 375,000 points (3,000 points for capital, 25 for productivity, and 5 for volatility). 4. Calibration We now select a benchmark calibration for our numerical computations. We follow the literatureascloselyaspossibleandselectparametervaluestomatch,inthesteadystate,some basic observations of the U.S. economy (as we will see below, for the benchmark calibration, themeansoftheergodicdistributionandthesteady-statevaluesarenearlyidentical). Weset the discount factor (cid:12) = 0:991 to generate an annual interest rate of around 3.6 percent. We set the parameter that governs labor supply, (cid:18)= 0:357, to get the representative household to work one-third of its time. The elasticity of output to capital, (cid:16) = 0:3; matches the labor share of national income. A value of the depreciation rate (cid:14) = 0:0196 matches the ratio of investment-output. Finally, (cid:21) = 0:95 and log(cid:27) = 0:007 are standard values for the stochastic properties of the Solow residual. For the SV process, we pick (cid:26) = 0:9 and (cid:17) = 0:06; to match the persistence and standard deviation of the heteroskedastic component of the Solow residual during the last 5 decades. 18

[Table 1 here] Sincewewanttoexplorethedynamicsofthemodelforarangeofvaluesthatencompasses all the estimates from the literature, we select four values for the parameter that controls risk aversion, (cid:13), 2, 5, 10, and 40, and two values for EIS , 0.5, and 1.5, which bracket most of the values used in the literature (although many authors prefer smaller values for , we found that the simulation results for smaller (cid:146)s do not change much from the case when = 0:5). We then compute the model for all eight combinations of values of (cid:13) and , that is 2;0:5 , 5;0:5 , 10;0:5 , and so on. When = 0:5 and (cid:13) = 2, we are back in the standard f g f g f g CRRA case. However, in the interest of space, we will report only a limited subset of results that we (cid:133)nd are the most interesting ones. We pick as the benchmark case the calibration (cid:13); ;log(cid:27);(cid:17) = 5;0:5;0:007;0:06 . f g f g These values re(cid:135)ect an EIS centered around the median of the estimates in the literature, a reasonably high level of risk aversion, and the observed volatility of productivity shocks. To check robustness, we increase, in the extreme case, the risk aversion, the average standard deviation of the productivity shock, and the standard deviation of the innovations to volatility to (cid:13); ;log(cid:27);(cid:17) = 40;0:5;0:021;0:1 . This case combines levels of risk aversion that are in f g f g the upper bound of all estimates in the literature with huge productivity shocks. Therefore, it pushes all solution methods to their limits, in particular, making life hard for perturbation since the interaction of the large precautionary behavior induced by (cid:13) and large shocks will move the economy far away from the deterministic steady state. We leave the discussion of the e⁄ects of = 1:5 for the robustness analysis at the end of the next section. 5. Numerical Results In this section we report our numerical (cid:133)ndings. First, we present and discuss the computed decision rules. Second, we show the results of simulating the model. Third, we report the Eulerequationerrors. Fourth, wediscussthee⁄ectsofchangingtheEISandtheperturbation point. Finally, we discuss implementation and computing time. 5.1. Decision Rules Figure1plotsthedecisionrulesofthehouseholdforconsumptionandlaborinthebenchmark case. In the top two panels, we plot the decision rules along the capital axis when z = 0 t and (cid:27) = (cid:27). The capital interval is centered on the steady-state level of capital of 9.54 with t a width of 40%; [5.72,13.36]. This interval is big enough to encompass all the simulations. (cid:6) We also plot, with two vertical lines, the 10 and 90 percentile of the ergodic distribution of 19

capital.4 Since all methods provide nearly indistinguishable answers, we observe only one line in both panels. It is possible to appreciate miniscule di⁄erences in labor supply between second-order perturbation and the other methods only when capital is far from its steadystate level. Monotonicity of the decision rules is preserved by all methods.5 We must be cautious, however, mapping di⁄erences in choices into di⁄erences in utility. The Euler error functionbelowprovidesabetterviewofthewelfareconsequencesofdi⁄erentapproximations. In the bottom two panels, we plot the decision rules as a function of (cid:27) when k = k t t ss and z = 0: Both VFI and Chebyshev polynomials capture well precautionary behavior: the t household consumes less and work more when (cid:27) is higher. In comparison, it would seemthat t perturbations do a much poorer job at capturing this behavior. However, this is not the right interpretation. In a second-order perturbation, the e⁄ect of (cid:27) only appears in a term where t (cid:27) interacts with z . Since here we are plotting a cut of the decision rule while keeping z = 0, t t t that term drops out and the decision rule that comes from a second-order approximation is a (cid:135)at line. In the third-order perturbation, (cid:27) appears by itself, but raised to its cube. Hence, t the slope of the decision rule is negligible. As we will see below, the interaction e⁄ects of (cid:27) t with other variables, which are hard to visualize in two-dimensional graph, are all that we need to deliver a satisfactory overall performance. [Figure 1 here] We see bigger di⁄erences in the decision rules as we increase the risk aversion and the variance of innovations. Figure 2 plots the decision rules for the extreme calibration following the same convention than before. In this (cid:133)gure, we change the capital interval where we compute the top decision rules to [3,32] (roughly 1/3 and 3 times the steady-state capital) because,owingtothehighvarianceofthecalibration,theequilibriumpaths(cid:135)uctuatethrough much wider ranges of capital. [Figure 2 here] We highlight several results. First, all the methods deliver similar results in our original capital interval for the benchmark calibration. Second, as we go far away from the steady state, VFI and the Chebyshev polynomial still overlap with each other (and, as shown by 4There is the technical consideration of which ergodic distribution to use for this task, since this is an object that can only be found by simulation. All over the paper, we use the ergodic simulation generated by VFI. We checked that the results are robust to using the ergodic distributions coming from the other methods. 5Similar (cid:133)gures could be plotted for other values of z and (cid:27) . We omit them because of space t t considerations. 20

our Euler error computations below, we can roughly take them as the (cid:147)exact(cid:148)solution), but second- and third-order approximations start to deviate. Third, the decision rule for consumption approximated by the third-order perturbation changes from concavity into convexity for values of capital bigger than 15. This phenomenon (also documented in Aruoba et al. 2006) is due to the poor performance of local approximation when we move too far away from the expansion point and the polynomials begin to behave wildly. Numerically, this issue is irrelevant because the problematic region is visited with nearly zero probability. 5.2. Simulations Applied economists often characterize the behavior of the model through statistics from simulated paths of the economy. We simulate the model, starting from the deterministic steady state, for 10,000 periods, using the decision rules for each of the eight combinations of risk aversion and EIS discussed above. To make the comparison meaningful, the shocks are common across all paths. We discard the (cid:133)rst 1,000 periods as a burn-in to eliminate the transition from the deterministic steady state of the model to the middle regions of the ergodic distribution of capital. This is usually achieved in many fewer periods than the ones in our burn-in, but we want to be conservative in our results. The remaining observations constitute a sample from the ergodic distribution of the economy. For the benchmark calibration, the simulations from all of the solution methods generate almost identical equilibrium paths (and therefore we do not report them). We focus instead onthedensitiesoftheendogenousvariablesasshownin(cid:133)gure3(rememberthatvolatilityand productivity are identical across the di⁄erent solution methods). Given the low risk aversion and SVof the productivity shocks, all densities are roughly centered around the deterministic steady-state value of the variable. For example, the mean of the distribution of capital is only 0.2 percent higher than the deterministic value. Also, capital is nearly always between 8.5 and 10.5. This range will be important below to judge the accuracy of our approximations. [Figure 3 here] Table 2 reports business cycle statistics and, because DSGE models with recursive preferences and SV are often used for asset pricing, the average and variance of the (quarterly) risk-free rate and return on capital. Again, we see that nearly all values are the same, a simple consequence of the similarity of the decision rules. [Table 2 here] The welfare cost of the business cycle is reported in table 3 in consumption equivalent terms. The computed costs are actually negative. Besides the Jensen(cid:146)s e⁄ect on average 21

productivity, this is also due to the fact that when we have leisure in the utility function, the indirect utility function may be convex in input prices (agents change their behavior over time by a large amount to take advantage of changing productivity). Cho and Cooley (2000) present a similar example. Welfare costs are comparable across methods. Remember that the welfare cost of the business cycle for the second- and third-order perturbations is the same because the third-order terms all drop or are zero when evaluated at the steady state. [Table 3 here] When we move to the extreme calibration, we see more di⁄erences. Figure 4 plots the histograms of the simulated series for each solution method. Looking at quantities, the histograms of consumption, output, and labor are the same across all of the methods. The ergodic distribution of capital puts nearly all the mass between values of 6 and 15. This considerablemovetotherightincomparisonwith(cid:133)gure3isduetothee⁄ectofprecautionary behaviorinthepresenceofhighriskaversion, largeproductivityshocks, andhighSV.Capital also visits low values of capital more than in the benchmark calibration because of large, persistent productivity shocks. In any case, the translation is more pronounced to the right than to the left. [Figure 4 here] Table 4 reports business cycle statistics. Di⁄erences across methods are minor in terms of means (note that the mean of the risk-free rate is lower than in the benchmark calibration because of the extra accumulation of capital induced by precautionary behavior). In terms of variances, the second-orderperturbationproduces less volatilitythanall othermethods. This suggests that a second-order perturbation may not be good enough if we face high variance of the shocks and/or high risk aversion. A third-order perturbation, in comparison, eliminates most of the di⁄erences and delivers nearly the same implications as Chebyshev polynomials or VFI. [Table 4 here] Finally, table 5 presents the welfare cost of the business cycle. Now, in comparison with the benchmark calibration, the welfare cost of the business cycle is positive and signi(cid:133)cant, slightly above 1.1 percent. This is not a surprise, since we have both a large risk aversion and productivity shocks with an average standard deviation three times as big as the observed one. All methods deliver numbers that are close. [Table 5 here] 22

5.3. Euler Equation Errors While the plots of the decision rules and the computation of densities and business cycle statisticsthatwepresentedintheprevioussubsectionarehighlyinformative, itisalsoimportant to evaluate the accuracy of each of the procedures. Euler equation errors, introduced by Judd (1992), have become a common tool for determining the quality of the solution method. The idea is to observe that, in our model, the intertemporal condition: ((cid:13) 1)(1 (cid:18)) u c;t = (cid:12)(Et V t 1 +(cid:0)1 (cid:13))(cid:18) 1 (cid:0) 1 Et V t+1 (cid:0) (cid:18) (cid:0) u c;t+1 R(k t ;z t ;(cid:27) t ;z t+1 ;(cid:27) t+1 ) (4) (cid:18) (cid:19) where R(k t ;z t ;(cid:27) t ;z t+1 ;(cid:27) t+1 ) = 1+(cid:16)ezt+1k t (cid:16) +(cid:0)1 1l t 1 +(cid:0)1 (cid:16) (cid:0) (cid:14) is the gross return of capital given states k ; z ; (cid:27) ; andrealizationsz and(cid:27) shouldholdexactlyforanygivenk , andz . However, t t t t+1 t+1 t t since the solution methods we use are only approximations, there will be an error in (4) when we plug in the computed decision rules. This Euler equation error function EEi(k ;z ;(cid:27) ) is t t t de(cid:133)ned, in consumption terms: 1 (cid:12)(Et (V t i +1 )1 (cid:0) (cid:13) )(cid:18) 1 (cid:0) 1 Et (V t i +1 ) ((cid:13) (cid:0) 1) (cid:18) (1 (cid:0) (cid:18)) ui c;t+1 R(kt;zt;(cid:27)t;zt+1;(cid:27)t+1) (cid:29) 1 (cid:0)(cid:18) (cid:13) (cid:0) 1 ! 2 1 (cid:13) 3 1 (cid:0)(cid:18) (cid:13)(cid:29)(1 (cid:0) l t i)(1 (cid:0) (cid:29)) (cid:0)(cid:18) EEi(k ;z ;(cid:27) ) = 1 6 7 t t t (cid:0) 4 ci 5 t This function determines the (unit free) error in the Euler equation as a fraction of the consumptiongiventhecurrentstatesandsolutionmethodi. FollowingJuddandGuu(1997), we can interpret this error as the optimization error incurred by the use of the approximated decision rule and we report the absolute errors in base 10 logarithms to ease interpretation. Thus, a value of -3 means a $1 mistake for each $1000 spent, a value of -4 a $1 mistake for each $10,000 spent, and so on. [Figure 5 here] Figure 5 displays a transversal cut of the errors for the benchmark calibration when z = 0 and (cid:27) = (cid:27). Other transversal cuts at di⁄erent technology and volatility levels reveal t similar patterns. The (cid:133)rst lesson from (cid:133)gure 5 is that all methods deliver high accuracy. We know from (cid:133)gure 3 that capital is nearly always between 8.5 and 10.5. In that range, the (log10) Euler equation errors are at most -5, and most of the time they are even smaller. For instance, the second- and third-order perturbations have an Euler equation error of around -7 in the neighborhood of the deterministic steady state, VFI of around -6.5, and 23

Chebyshev an impressive -11/-13. The second lesson from (cid:133)gure 5 is that, as expected, global methods (Chebyshev and VFI) perform very well in the whole range of capital values, while perturbations deteriorate as we move away from the steady state. For second-order perturbation, the Euler error in the steady state is almost four orders of magnitude smaller than on the boundaries. Third-order perturbation is around half an order of magnitude more accurate than second-order perturbation over the whole range of values (except in a small region close to the deterministic steady state). There are two complementary ways to summarize the information from Euler equation error functions. First, we report the maximum error in our interval (capital between 60 percent and 140 percent of the steady state and the grids for productivity and volatility). ThemaximumEulererrorisusefulbecauseitboundsthemistakeowingtotheapproximation. The second procedure for summarizing Euler equation errors is to integrate the function with respect to the ergodic distribution of capital and productivity to (cid:133)nd the average error. We can think of this exercise as a generalization of the Den Haan(cid:150)Marcet test (Den Haan and Marcet, 1994). The top- left panel in Figure 6 reports the maximumEuler error (darker bars) and the integral of the Euler error for the benchmark calibration. Both perturbations have a maximum Euler error of around -2.7, VFI of -3.1, and Chebyshev, an impressive -9.8. We read this result as indicating that all methods perform adequately. Both perturbations have roughly the same integral of the Euler error (around -5.3), VFI a slightly better -6.4, while Chebyshev polynomials do fantastically well at -10.4 (the average loss of welfare is $1 for each $500 billion). But even an approximation with an average error of $1 for each $200,000, such as the one implied by third-order perturbation, must su¢ ce for most relevant applications. [Figure 6 here] We repeat our exercise for the extreme calibration. As we did when we computed the decisionrulesoftheagents, wehavechangedthecapitalintervalto[3,32]. Thetop-rightpanel in Figure 6 reports maximum Euler equation errors and their integrals. The maximum Euler equation error is large for perturbation methods while it is rather small using Chebyshev polynomials. However, given the very large range of capital used in the computation, this maximum Euler error provides a too negative view of accuracy. We (cid:133)nd the integral of the Euler equation error to be more instructive. With a second-order perturbation, we have -4.02 and with a third-order perturbation we have -4.12. To evaluate this number, remember that we have extremely high risk aversion and large productivity shocks. Even in this challenging environment, perturbations deliver a high degree of accuracy. VFI does not display a big loss of precision compared to the benchmark case. On the other hand, Chebyshev polynomials deteriorate somewhat, but the accuracy it delivers it is still of $1 out of each $1 million spent. 24

5.4. Robustness: Changing the EIS and Changing the Perturbation Point In the results we reported above, we kept the EIS equal to 0.5, a conventional value in the literature, while we modi(cid:133)ed the risk aversion and the volatility of productivity shocks. However, since some researchers prefer higher values of the EIS (see, for instance, Bansal and Yaron, 2004, a paper that we have used to motivate our investigation), we also computed our model with = 1:5. Basically our results were unchanged. To save on space, we concentrate only on the Euler equation errors (decision rules and simulation paths are available upon request). In the bottom-left panel in Figure 6, we report the maxima of the Euler equation errors and their integrals with respect to the ergodic distribution. The relative size and values of the entries in this table are quite similar to the values reported for the benchmark calibration (except, partially, VFI that performs a bit better). The bottom-right panel in Figure 6 repeats the same exercise for the extreme calibration. Again, the entries in the table are very close to the ones in the extreme calibration (and now, VFI does not perform better than when = 0:5). As a (cid:133)nal robustness test, we computed the perturbations not around the deterministic steady state (as we did in the main text), but around a point close to the mode of the ergodic distribution of capital. This strategy, if perhaps di¢ cult to implement because of the need to compute the mode of the ergodic distribution,6 could deliver better accuracy because we approximate the value function and decision rules in a region where the model spends more time. As we suspected, we found only trivial improvements in terms of accuracy. Moreover, expanding at a point di⁄erent from the deterministic steady state has the disadvantage that thetheoremsthatensuretheconvergenceoftheTaylorapproximationmightfail(seetheorem 6 in Jin and Judd, 2002). 5.5. Implementation and Computing Time We brie(cid:135)y discuss implementation and computing time. For the benchmark calibration, second-order perturbation and third- order perturbation algorithms take only 0.02 second and 0.05 second, respectively, in a 3.3GHz Intel PC with Windows 7 (the reference computer for all times below), and it is simple to implement: 664 lines of code in Fortran 95 for second order and 1133 lines of code for third order, plus in both cases, the analytical derivatives of the equilibrium conditions that Fortran 95 borrows from a code written in Mathematica 6For example, the algorithm of (cid:133)nding a perturbation around the steady state, simulate from it, (cid:133)nd a second perturbation around the model of the implied ergodic simulation, and so on until convergence, may not settle in any (cid:133)xed point. In our exercise, we avoid this problem because we have the ergodic distribution implied by VFI. This is an unfair advantage for perturbations at the mode of the ergodic distribution but it makes our point below about the lack of improvement in accuracy even stronger. 25

6.7 The code that generates the analytic derivatives has between 150 to 210 lines, although Mathematica is much less verbose. While the number of lines doubles in the third order, the complexity in terms of coding does not increase much: the extra lines are mainly from declaring external functions and reading and assigning values to the perturbation coe¢ cients. An interesting observation is that we only need to take the analytic derivatives once, since they are expressed in terms of parameters and not in terms of parameter values. This allows Fortran to evaluate the analytic derivatives extremely fast for newcombinations of parameter values. This advantage of perturbation is particularly relevant when we need to solve the model repeatedly for many di⁄erent parameter values, for example, when we are estimating themodel. Forcompleteness, thesecond-orderperturbationwasalsoruninDynare(although we had to use version 4.0, which computes analytic derivatives, instead of previous versions, which use numerical derivatives that are not accurate enough for perturbation). This run was a double-check of the code and a test of the feasibility of using o⁄-the-shelf software to solve DSGE models with recursive preferences. The projection algorithm takes around 300 seconds, but it requires a good initial guess for the solution of the system of equations. Finding the initial guess for some combination of parameter values proved to be challenging. The code is 652 lines of Fortran 95. Finally, the VFI code is 707 lines of Fortran 95, but it takes about ten hours to run. 6. Conclusions In this paper, we have compared di⁄erent solution methods for DSGE models with recursive preferences and SV. We evaluated the di⁄erent algorithms based on accuracy, speed, and programming burden. We learned that all of the most promising methods (perturbation, projection, and VFI) do a fair job in terms of accuracy. We were surprised by how well simple second-order and third-order perturbations perform even for fairly non-linear problems. We were impressed by how accurate Chebyshev polynomials can be. However, their computational cost was higher and we are concerned about the curse of dimensionality. In any case, it seems clear to us that, when accuracy is the key consideration, Chebyshev polynomials are the way to go. Finally, we were disappointed by VFI since even with 125,000 points in the grid, it only did marginally better than perturbation and it performed much worse than Chebyshev polynomials in our benchmark calibration. This suggests that unless there are compelling reasons such as non-di⁄erentiabilities or non-convexities in the model, we better avoid VFI. 7We use lines of code as a proxy for the complexity of implementation. We do not count comment lines. 26

A theme we have not developed in this paper is the possibility of interplay among different solution methods. For instance, we can compute extremely easily a second-order approximation to the value function and use it as an initial guess for VFI. This second-order approximation is such a good guess that VFI will converge in few iterations. We veri(cid:133)ed this idea in non-reported experiments, where VFI took one-tenth of the time to converge once we used the second-order approximation to the value function as the initial guess. This approach may even work when the true value function is not di⁄erentiable at some points or has jumps, since the only goal of perturbation is to provide a good starting point, not a theoretically soundapproximation. Thisalgorithmmaybeparticularlyusefulinproblemswithmanystate variables. More research on this type of hybrid method is a natural extension of our work. We close the paper by pointing out that recursive preferences are only one example of a large class of non-standard preferences that have received much attention by theorists and appliedresearchersoverthelastseveral years(seeBackus, Routledge, andZin, 2004). Having fastandreliablesolutionmethodsforthisclassofnewpreferenceswillhelpresearcherstosort out which of these preferences deserve further attention and to derive empirical implications. Thus, this paper is a (cid:133)rst step in the task of learning how to compute DSGE models with non-standard preferences. 27

Table 1: Calibrated Parameters Parameter (cid:12) (cid:29) (cid:16) (cid:14) (cid:21) log(cid:27) (cid:26) (cid:17) Value 0.991 0.357 0.3 0.0196 0.95 0.007 0.9 0.06 28

Table 2: Business Cycle Statistics - Benchmark Calibration c y i Rf(%) Rk(%) Mean Second-Order Perturbation 0.7253 0.9128 0.1873 0.9070 0.9078 Third-Order Perturbation 0.7257 0.9133 0.1875 0.9062 0.9069 Chebyshev Polynomial 0.7256 0.9130 0.1875 0.9063 0.9066 Value Function Iteration 0.7256 0.9130 0.1875 0.9063 0.9066 Variance (%) Second-Order Perturbation 0.0331 0.1084 0.0293 0.0001 0.0001 Third-Order Perturbation 0.0330 0.1079 0.0288 0.0001 0.0001 Chebyshev Polynomial 0.0347 0.1117 0.0313 0.0001 0.0001 Value Function Iteration 0.0347 0.1117 0.0313 0.0001 0.0001 29

Table 3: Welfare Costs of Business Cycle - Benchmark Calibration 2nd-Order Pert. 3rd-Order Pert. Chebyshev Value Function -2.0864e(-5) -2.0864e(-5) -3.2849e(-5) -3.2849e(-5) 30

Table 4: Business Cycle Statistics - Extreme Calibration c y i Rf(%) Rk(%) Mean Second-Order Perturbation 0.7338 0.9297 0.1950 0.8432 0.8562 Third-Order Perturbation 0.7344 0.9311 0.1955 0.8416 0.8529 Chebyshev Polynomial 0.7359 0.9329 0.1970 0.8331 0.8402 Value Function Iteration 0.7359 0.9329 0.1970 0.8352 0.8403 Variance (%) Second-Order Perturbation 0.2956 1.0575 0.2718 0.0004 0.0004 Third-Order Perturbation 0.3634 1.2178 0.3113 0.0004 0.0005 Chebyshev Polynomial 0.3413 1.1523 0.3425 0.0005 0.0006 Value Function Iteration 0.3414 1.1528 0.3427 0.0005 0.0006 31

Table 5: Welfare Costs of Business Cycle - Extreme Calibration 2nd-Order Pert. 3rd-Order Pert. Chebyshev Value Function 1.1278e-2 1.1278e-2 1.2855e-2 1.2838e-2 32

Decision Rule for Consumption,ψ=0.5, γ=5, z=0, σ =0.007 0.9 0.85 0.8 0.75 0.7 0.65 0.6 0.55 0.5 6 7 8 9 10 11 12 13 K )σ,z,K(C Decision Rule for Labor,ψ=0.5, γ=5, z=0, σ =0.007 0.36 2nd Order Pert. 0.355 3rd Order Pert. Chebyshev 0.35 Value Function 0.345 0.34 0.335 0.33 0.325 0.32 0.315 0.31 6 7 8 9 10 11 12 13 K )σ,z,K(C Decision Rule for Consumption,ψ=0.5, γ=5, z=0, σ =0.007 0.7246 0.7246 0.7246 0.7246 0.7246 0.7246 4 5 6 7 8 9 10 11 σ x 10-3 )σ,z,K(C Decision Rule for Labor,ψ=0.5, γ=5, z=0, σ =0.007 0.3334 0.3334 0.3334 0.3334 0.3334 0.3334 0.3334 0.3334 4 5 6 7 8 9 10 11 σ x 10-3 )σ,z,K(L Figure 1: Decision Rules - Benchmark Calibration. 33

Decision Rule for Consumption,ψ=0.5, γ=40, z=0, σ =0.021 2 1.8 1.6 1.4 1.2 1 0.8 0.6 0.4 0.2 0 5 10 15 20 25 30 K )σ,z,K(C Decision Rule for Labor,ψ=0.5, γ=40, z=0, σ =0.021 0.4 2nd Order Pert. 3rd Order Pert. Chebyshev 0.35 Value Function 0.3 0.25 0.2 5 10 15 20 25 30 K )σ,z,K(C Decision Rule for Consumption,ψ=0.5, γ=40, z=0, σ =0.021 0.96 0.955 0.95 0.945 0.94 0.935 0.93 0.925 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 σ )σ,z,K(C Decision Rule for Labor,ψ=0.5, γ=40, z=0, σ =0.021 0.305 0.304 0.303 0.302 0.301 0.3 0.299 0.298 0.297 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 σ )σ,z,K(L Figure 2: Decision Rules - Extreme Calibration. 34

Density of Consumption,ψ=0.5, γ=5, σ =0.007, η =0.06 Density of Labor,ψ=0.5, γ=5 σ =0.007, η =0.06 20 120 2nd Order Pert. 3rd Order Pert. 100 15 Chebyshev 80 Value Function 10 60 40 5 20 0 0 0.64 0.66 0.68 0.7 0.72 0.74 0.76 0.78 0.8 0.31 0.315 0.32 0.325 0.33 0.335 0.34 0.345 0.35 Density of Capital,ψ=0.5, γ=5, σ =0.007, η =0.06 Density of Output,ψ=0.5, γ=5, σ =0.007, η =0.06 1.4 12 1.2 10 1 8 0.8 6 0.6 4 0.4 0.2 2 0 0 8 8.5 9 9.5 10 10.5 11 0.75 0.8 0.85 0.9 0.95 1 1.05 1.1 1.15 Density of Return on Risk-Free Bond,ψ=0.5, γ=5 σ =0.007, η =0.06 Density of Return on Equity,ψ=0.5, γ=5 σ =0.007, η =0.06 600 600 500 500 400 400 300 300 200 200 100 100 0 0 5 6 7 8 9 10 11 12 5 6 7 8 9 10 11 12 13 x 10-3 x 10-3 Figure 3: Densities - Benchmark Calibration. 35

Density of Consumption,ψ=0.5, γ=40, σ =0.021 Density of Labor,ψ=0.5, γ=40 σ =0.021 7 50 6 2nd Order Pert. 3rd Order Pert. 40 5 Chebyshev 4 Value Function 30 3 20 2 10 1 0 0 0.5 0.6 0.7 0.8 0.9 1 0.24 0.26 0.28 0.3 0.32 0.34 0.36 0.38 0.4 Density of Capital,ψ=0.5, γ=40, σ =0.021 Density of Output,ψ=0.5, γ=40, σ =0.021 0.35 5 0.3 4 0.25 0.2 3 0.15 2 0.1 1 0.05 0 0 6 8 10 12 14 16 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 Density of Return on Risk-Free Bond,ψ=0.5, γ=40 σ =0.021 Density of Return on Equity,ψ=0.5, γ=40 σ =0.021 200 200 150 150 100 100 50 50 0 0 -5 0 5 10 15 20 -5 0 5 10 15 20 x 10-3 x 10-3 Figure 4: Densities - Extreme Calibration. 36

Euler Equation Error, ψ=0.5, γ=5, z=0, σ =0.007 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 6 7 8 9 10 11 12 13 Capital | rorrE noitauqE reluE |01goL Value Function 2nd Order Pert 3rd Order Pert Chebyshev Figure 5: Euler Equation Error - Benchmark Calibration. 37

0 -2 -4 -6 -8 -10 -12 2nd Pert. 3rd Pert. Chebyshev VFI goL 01 Euler Errors - Benchmark Calibration 0 -2 -4 -6 -8 -10 -12 2nd Pert. 3rd Pert. Chebyshev VFI goL 01 Euler Errors - Extreme Calibration 0 -2 -4 -6 -8 -10 -12 2nd Pert. 3rd Pert. Chebyshev VFI goL 01 Euler Errors - Benchmark Calibration with ψ = 1.5 0 -2 -4 -6 -8 -10 -12 2nd Pert. 3rd Pert. Chebyshev VFI goL 01 Euler Errors - Extreme Calibration with ψ = 1.5 Figure 6: Maximum Euler Equation Errors. 38

7. Appendix In this appendix, we present the steady state of the model and the alternative perturbation approach, the value function perturbation (VFP). 7.1. Steady State of the Model To solve the system: V = c(cid:29) (1 l )1 (cid:29) ss ss (cid:0) ss (cid:0) (cid:16)k(cid:16) 1l1 (cid:16) +1 (cid:14) = 1=(cid:12) ss(cid:0) ss(cid:0) (cid:0) 1 (cid:23) c (cid:0)(cid:0) ss = (1 (cid:1) (cid:16))k(cid:16) l (cid:16) (cid:23) (1 l ) (cid:0) ss s(cid:0)s ss (cid:0) m Rf = 1=(cid:12) ss ss c +i = k(cid:16) l1 (cid:16) ss ss ss ss(cid:0) i = (cid:14)k ss ss note (cid:133)rst that: 1 k 1 1 (cid:16) 1 ss = 1+(cid:14) (cid:0) = (cid:10) l (cid:16) (cid:12) (cid:0) ss (cid:18) (cid:18) (cid:19)(cid:19) Now, from the leisure-consumption condition: c (cid:29) ss = (1 (cid:16))(cid:10)(cid:16) = (cid:8) c = (cid:8)(1 l ) ss ss 1 l 1 (cid:29) (cid:0) ) (cid:0) ss (cid:0) (cid:0) Then: c +(cid:14)k = k(cid:16) l1 (cid:16) = (cid:10)(cid:16)l c = (cid:10)(cid:16) (cid:14)(cid:10) l ss ss ss ss(cid:0) ss ) ss (cid:0) ss and: (cid:0) (cid:1) (cid:8)(1 l ) = (cid:10)(cid:16) (cid:14)(cid:10) l ss ss (cid:0) (cid:0) ) (cid:8) l = (cid:0) (cid:1) ss (cid:10)(cid:16) (cid:14)(cid:10)+(cid:8) (cid:0) (cid:8)(cid:10) k = ss (cid:10)(cid:16) (cid:14)(cid:10)+(cid:8) (cid:0) from which we can (cid:133)nd V and i . ss ss 39

7.2. Value Function Perturbation (VFP) We mentioned in the main text that instead of perturbing the equilibrium conditions of the model, we could directly perturb the value function in what we called value function perturbation (VFP). To undertake the VFP, we write the value function as: (cid:18) V (k t ;z t ;(cid:27) t ;(cid:31)) = m ct a ;lt x (cid:20) (1 (cid:0) (cid:12)) c(cid:29) t (1 (cid:0) l t )1 (cid:0) (cid:29) 1 (cid:0)(cid:18) (cid:13) +(cid:12)Et V1 (cid:0) (cid:13)(k t+1 ;z t+1 ;(cid:27) t+1 ;(cid:31))(cid:18) 1 (cid:21) 1 (cid:0) (cid:13) (cid:0) (cid:1) To(cid:133)ndasecond-orderapproximationtothevaluefunction,wetakederivativesofthevalue function with respect to controls (c ;l ), states (k ;z ;(cid:27) ), and the perturbation parameter (cid:31). t t t t t We collect these 6 equations, together with the resource constraint, the value function itself, and the exogenous processes in a system: F (k ;z ;(cid:31)) = 0 t t e where the hat over F emphasizes that now we are dealing with a slightly di⁄erent set of equations than the F in the main text. After solving for the steady state of this system, we take derivatives of the function F with respect to k , z , (cid:27) , and (cid:31): t t t e F (k ;0;(cid:27) ;0) = 0 for i = 1;2;3;4 i ss ss f g e and we solve for the unknown coe¢ cients. This solution will give us a second-order approximation of the value function but only a (cid:133)rst-order approximation of the decision rules. By repeating these steps n times, we can obtain the n+1-order approximation of the value function and the n-order approximation of the decision rules. It is straightforward to check that the coe¢ cients obtained by ECP and VFP are the same. Thus, the choice of one approach or the other should be dictated by expediency. 40

References [1] Anderson, E.W., L.P. Hansen, E.R. McGrattan, and T.J. Sargent (1996). (cid:147)On the Mechanics of Forming and Estimating Dynamic Linear Economies,(cid:148)in H.M. Amman et al. (eds.) Handbook of Computational Economics, Elsevier. [2] Aruoba, S.B., J. FernÆndez-Villaverde, and J. Rubio-Ram(cid:237)rez (2006). (cid:147)Comparing Solution Methods for Dynamic Equilibrium Economies.(cid:148)Journal of Economic Dynamics and Control 30, 2477-2508. [3] Backus, D.K., B.R.Routledge, andS.E.Zin(2004).(cid:147)ExoticPreferencesforMacroeconomists.(cid:148)NBER Macroeconomics Annual 2004, 319-390. [4] Backus, D.K., B.R. Routledge, and S.E. Zin (2007). (cid:147)Asset Pricing in Business Cycle Analysis.(cid:148)Mimeo, New York University. [5] Bansal, R. and A. Yaron (2004). (cid:147)Risks for the Long Run: A Potential Resolution of Asset Pricing Puzzles.(cid:148)Journal of Finance 59, 1481-1509. [6] Benigno, P. and M. Woodford (2006). (cid:147)Linear-Quadratic Approximation of Optimal Policy Problems.(cid:148)Mimeo, Columbia University. [7] Binsbergen, J.H. van, J. FernÆndez-Villaverde, R.S.J. Koijen, and J. Rubio-Ram(cid:237)rez (2009). (cid:147)Likelihood Estimation of DSGE Models with Epstein-Zin Preferences.(cid:148)Mimeo, University of Pennsylvania. [8] Cho, J-O.andT.C.Cooley(2000).(cid:147)BusinessCycleUncertaintyandEconomicWelfare.(cid:148) Mimeo, New York University. [9] Chow, C.S., and J.N. Tsitsiklis (1991). (cid:147)An Optimal One-Way Multigrid Algorithm for Discrete-Time Stochastic Control.(cid:148)IEEE Transaction on Automatic Control 36, 898- 914. [10] Christiano, L., M. Eichenbaum, and C.L. Evans (2005). (cid:147)Nominal Rigidities and the Dynamic E⁄ects of a Shock to Monetary Policy.(cid:148)Journal of Political Economy 113, 1-45. [11] DenHaan, W.J., andA.Marcet(1994).(cid:147)AccuracyinSimulations.(cid:148)Review of Economic Studies 61, 3-17. [12] Epstein, L., and S.E. Zin (1989). (cid:147)Substitution, Risk Aversion, and the Temporal Behavior of Consumption and Asset Returns: A Theoretical Framework.(cid:148)Econometrica 57, 937-969. [13] Epstein, L., and S.E. Zin (1991). (cid:147)Substitution, Risk Aversion, and the Temporal Behavior of Consumption and Asset Returns: An Empirical Analysis.(cid:148)Journal of Political Economy 99, 263-286. 41

[14] FernÆndez-Villaverde, J. and J. Rubio-Ramirez (2006). (cid:147)Solving DSGE Models with Perturbation Methods and a Change of Variables.(cid:148)Journal of Economic Dynamics and Control 30, 2509-2531. [15] FernÆndez-Villaverde, J. and J. Rubio-Ramirez (2010). (cid:147)Macroeconomics and Volatility: Data, Models, and Estimation(cid:148)NBER Working Paper 16618. [16] FernÆndez-Villaverde, J., P. Guerr(cid:243)n-Quintana, and J. Rubio-Ram(cid:237)rez (2010). (cid:147)Fortune or Virtue: Time-Variant Volatilities Versus Parameter Drifting in U.S. Data.(cid:148)NBER Working Paper 15928. [17] Fornberg, B., 1998. A Practical Guide to Pseudospectral Methods. Cambridge University Press, Cambridge. [18] Hansen, L.P., and T.J. Sargent (1995). (cid:147)Discounted Linear Exponential Quadratic Gaussian Control.(cid:148)IEEE Transactions on Automatic Control 40, 968-971. [19] Hansen, L.P., J. Heaton, J. Lee, and N. Roussanov (2007). (cid:147)Intertemporal Substitution and Risk Aversion.(cid:148)In James J. Heckman and Edward E. Leamer (eds.), Handbook of Econometrics 6, 3967-4056. [20] Jin, H. and K.L. Judd (2002). (cid:147)Perturbation Methods for General Dynamic Stochastic Models.(cid:148)Mimeo, Hoover Institution. [21] Judd, K.L.(1992).(cid:147)ProjectionMethodsforSolvingAggregateGrowthModels.(cid:148)Journal of Economic Theory 58, 410-452. [22] Judd, K.L. (1998). Numerical Methods in Economics. MIT Press. [23] Judd, K.L. and S.M. Guu (1992). (cid:147)Perturbation Solution Methods for Economic Growth Models.(cid:148) In H. Varian (ed.), Economic and Financial Modelling with Mathematica. Springer Verlag. [24] Judd, K.L. andS.M.Guu(1997).(cid:147)AsymptoticMethodsforAggregateGrowthModels.(cid:148) Journal of Economic Dynamics and Control 21, 1025-1042. [25] Kreps,D.M.andE.L.Porteus(1978).(cid:147)TemporalResolutionofUncertaintyandDynamic Choice Theory.(cid:148)Econometrica 46, 185-200. [26] Krueger, D. and F. Kubler (2005). (cid:147)Pareto Improving Social Security When Financial Markets Are Incomplete.(cid:148)American Economic Review 96, 737-755. [27] Levine, P., J. Pearlman, and R. Pierse (2007). (cid:147)Linear-Quadratic Approximation, External Habit, and Targeting Rules.(cid:148)Mimeo, University of Surrey. 42

[28] Schmitt-GrohØ, S. and M. Uribe (2004). (cid:147)Solving Dynamic General Equilibrium Models Using a Second-Order Approximation to the Policy Function.(cid:148)Journal of Economic Dynamics and Control 28, 755-775. [29] Schmitt-GrohØ, S. and M. Uribe (2005). (cid:147)Optimal Fiscal and Monetary Policy in a Medium Scale Macroeconomic Model.(cid:148)NBER Macroeconomic Annual 2005, 382-425. [30] Smets, F. and R. Wouters (2007). (cid:147)Shocks and Frictions in US Business Cycles: A Bayesian DSGE Approach.(cid:148)American Economic Review 97, 586-606. [31] Tallarini., T.D. (2000). (cid:147)Risk-SensitiveReal BusinessCycles.(cid:148)Journal of Monetary Economics 45, 507-532. [32] Tauchen, G. (1986). (cid:147)Finite State Markov-Chain Approximations to Univariate and Vector Autoregressions.(cid:148)Economics Letters 20, 177-181. [33] Weil, P. (1990). (cid:147)Nonexpected Utility in Macroeconomics.(cid:148)Quarterly Journal of Economics 105, 29-42. [34] Woodford, M.D. (2003). Interest and Prices. Princeton University Press. 43

Cite this document
APA
Dario Caldara, Jesus Fernandez-Villaverde, Juan Rubio-Ramirez, & and Wen Yao (2011). Computing DSGE Models with Recursive Preferences and Stochastic Volatility (FEDS 2012-04). Board of Governors of the Federal Reserve System, Finance and Economics Discussion Series. https://whenthefedspeaks.com/doc/feds_2012-04
BibTeX
@techreport{wtfs_feds_2012_04,
  author = {Dario Caldara and Jesus Fernandez-Villaverde and Juan Rubio-Ramirez and and Wen Yao},
  title = {Computing DSGE Models with Recursive Preferences and Stochastic Volatility},
  type = {Finance and Economics Discussion Series},
  number = {2012-04},
  institution = {Board of Governors of the Federal Reserve System},
  year = {2011},
  url = {https://whenthefedspeaks.com/doc/feds_2012-04},
  abstract = {This paper compares different solution methods for computing the equilibrium of dynamic stochastic general equilibrium (DSGE) models with recursive preferences such as those in Epstein and Zin (1989 and 1991) and stochastic volatility. Models with these two features have recently become popular, but we know little about the best ways to implement them numerically. To fill this gap, we solve the stochastic neoclassical growth model with recursive preferences and stochastic volatility using four different approaches: second- and third-order perturbation, Chebyshev polynomials, and value function iteration. We document the performance of the methods in terms of computing time, implementation complexity, and accuracy. Our main finding is that perturbations are competitive in terms of accuracy with Chebyshev polynomials and value function iteration while being several orders of magnitude faster to run. Therefore, we conclude that perturbation methods are an attractive approach for computing this class of problems.},
}