scieee AI-readable full text Open interactive document viewer

The endogenous grid method for discrete-continuous dynamic choice models with (or without) taste shocks

Iskhakov, Fedor,Jørgensen, Thomas Høgholm,Rust, John,Schjerning, Bertel

Abstract

EconStor is a publication server for scholarly economic literature, provided as a non-commercial public service by the ZBW.

Full text

Iskhakov, Fedor; Jørgensen, Thomas Høgholm; Rust, John; Schjerning, Bertel Article The endogenous grid method for discrete-continuous dynamic choice models with (or without) taste shocks Quantitative Economics Provided in Cooperation with: The Econometric Society Suggested Citation: Iskhakov, Fedor; Jørgensen, Thomas Høgholm; Rust, John; Schjerning, Bertel (2017) : The endogenous grid method for discrete-continuous dynamic choice models with (or without) taste shocks, Quantitative Economics, ISSN 1759-7331, The Econometric Society, New Haven, CT, Vol. 8, Iss. 2, pp. 317-365, https://doi.org/10.3982/QE643 This Version is available at: https://hdl.handle.net/10419/195542 Standard-Nutzungsbedingungen: Die Dokumente auf EconStor dürfen zu eigenen wissenschaftlichen Zwecken und zum Privatgebrauch gespeichert und kopiert werden. Sie dürfen die Dokumente nicht für öffentliche oder kommerzielle Zwecke vervielfältigen, öffentlich ausstellen, öffentlich zugänglich machen, vertreiben oder anderweitig nutzen. Sofern die Verfasser die Dokumente unter Open-Content-Lizenzen (insbesondere CC-Lizenzen) zur Verfügung gestellt haben sollten, gelten abweichend von diesen Nutzungsbedingungen die in der dort genannten Lizenz gewährten Nutzungsrechte. Terms of use: Documents in EconStor may be saved and copied for your personal and scholarly purposes. You are not to copy documents for public or commercial purposes, to exhibit the documents publicly, to make them publicly available on the internet, or to distribute or otherwise use the documents in public. If the documents have been made available under an Open Content Licence (especially Creative Commons Licences), you may exercise further usage rights as specified in the indicated licence. https://creativecommons.org/licenses/by-nc/4.0/ Quantitative Economics 8 (2017), 317–365 1759-7331/20170317 The endogenous grid method for discrete-continuous dynamic choice models with (or without) taste shocks Fedor Iskhakov Research School of Economics, Australian National University and ARC Centre of Excellence in Population Ageing Research, University of New South Wales Thomas H. Jørgensen Department of Economics, University of Copenhagen John Rust Department of Economics, Georgetown University Bertel Schjerning Department of Economics, University of Copenhagen We present a fast and accurate computational method for solving and estimating a class of dynamic programming models with discrete and continuous choice variables. The solution method we develop for structural estimation extends the endogenous grid-point method (EGM) to discrete-continuous (DC) problems. Discrete choices can lead to kinks in the value functions and discontinuities in the optimal policy rules, greatly complicating the solution of the model. We show how these problems are ameliorated in the presence of additive choice-specific independent and identically distributed extreme value taste shocks that are typically interpreted as “unobserved state variables” in structural econometric applications, or serve as “random noise” to smooth out kinks in the value functions in numerical applications. We present Monte Carlo experiments that demonstrate the reliability and efficiency of the DC-EGM algorithm and the associated maximum likelihood estimator for structural estimation of a life-cycle model of consumption with discrete retirement decisions. Fedor Iskhakov: [email protected] Thomas H. Jørgensen: [email protected] John Rust: [email protected] Bertel Schjerning: [email protected] We acknowledge helpful comments from Chris Carroll, Giulio Fella and many other people, participants at seminars at University of New South Wales, University of Copenhagen, the 2012 conferences of the Society of Economic Dynamics, the Society for Computational Economics, and the Initiative for Computational Economics at Zurich (ZICE 2014, 2015, 2017). This paper is part of the Intelligent road user charging (IRUC) research project financed by the Danish Council for Strategic Research (DSF). Iskhakov, Rust, and Schjerning gratefully acknowledge this support. Iskhakov gratefully acknowledges the financial support from the Australian Research Council Centre of Excellence in Population Ageing Research (project CE110001029) and Michael P. Keane’s Australian Research Council Laureate Fellowship (project FL110100247). Jørgensen gratefully acknowledges financial support from the Danish Council for Independent Research in Social Sciences (FSE, Grant 4091-00040). Copyright ©2017 The Authors. Quantitative Economics. The Econometric Society. Licensed under the Creative Commons Attribution-NonCommercial License 4.0. Available at http://www.qeconomics.org. DOI: 10.3982/QE643 318 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) Keywords. Life-cycle model, discrete and continuous choice, Bellman equation, Euler equation, retirement choice, endogenous grid-point method, nested fixed point algorithm, extreme value taste shocks, smoothed max function, structural estimation. JEL classification. C13, C63, D91. 1. Introduction This paper develops a fast new solution algorithm for structural estimation of dynamic programming models with discrete and continuous choices. The algorithm we propose extends the endogenous grid method (EGM) by Carroll (2006) to discrete-continuous (DC) models. We refer to it as the DC-EGM algorithm. We embed the DC-EGM algorithm in the inner loop of the nested fixed point (NFXP) algorithm (Rust (1987)), and show that the resulting maximum likelihood estimator produces accurate estimates of the structural parameters at low computational cost. There is an extensive literature on static models of discrete/continuous choice: a classic example is Dubin and McFadden (1984). However, the focus of our paper is on dynamic DC models. A classic example is the life-cycle model with discrete retirement and continuous consumption decisions. While there is a well developed literature on solution and estimation of dynamic discrete choice models, and a separate literature on estimation of life-cycle models without discrete choices, there has been far less work on solution and estimation of DC models.1 There is good reason why DC models are much less commonly seen in the literature: they are substantially harder to solve. The value functions of models with only continuous choices are typically concave and the optimal policy function can be found from the Euler equation. EGM avoids the need to numerically solve the nonlinear Euler equation for the optimal continuous choice at each grid point in the state space. Instead, EGM specifies an exogenous grid over an endogenous quantity (e.g., savings) to analytically calculate the optimal policy rule (e.g., consumption) and endogenously determine the predecision state (e.g., beginning-of-period resources).2DC-EGM retains the main desirable properties of EGM, namely it avoids the bulk of costly root-finding operations and handles borrowing constraints in an efficient manner. Dynamic programs that have only discrete choices are substantially easier to solve, since the optimal decision rule is simply the alternative with the highest choice-specific 1There are relatively few examples of structural estimation or numerical solution of DC models. Some prominent examples include the model of optimal nondurable consumption and housing purchases (Carroll and Dunn (1997)), optimal saving and retirement (French and Jones (2011)), and optimal saving, labor supply, and fertility (Adda, Dustmann, and Stevens (2017)). 2The EGM is in fact a specific application of what is referred to as “controlling the postdecision state” in operations research and engineering (Bertsekas, Lee, van Roy, and Tsitsiklis (1997)). Carroll (2006)introduced the idea in economics by developing the EGM algorithm with the application to the buffer-stock precautionary savings model. Since then the idea became widespread in economics. Further generalizations of EGM include Barillas and Fernández-Villaverde (2007), Hintermaier and Koeniger (2010), Ludwig and Schön (2013), Fella (2014), Iskhakov (2015). Jørgensen (2013) compares the performance of EGM to mathematical programming with equilibrium constraints (MPEC). Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 319 value. However, solving dynamic programming problems that combine continuous and discrete choices is substantially more complicated, since discrete choices introduce kinks and nonconcave regions in the value function that lead to discontinuities in the policy function of the continuous choice (consumption). This can lead to situations where the Euler equation has multiple solutions for consumption, and hence it is only a necessary rather than a sufficient condition for the optimal consumption rule (Clausen and Strub (2013)). This inherent feature of DC problems complicates any method one might consider for solving DC models. We illustrate how DC-EGM can deal with these inherent complications using a lifecycle model with a continuous consumption and binary retirement choice with and without taste shocks. Our example is a simple extension of the classic life-cycle model of Phelps (1962) where, in the absence of a retirement decision, the optimal consumption rule could hardly be any simpler—a linear function of resources. However, once the discrete retirement decision is added to the consumption–savings problem—in our case allowing a worker with logarithmic utility to also make a binary irreversible retirement decision—the consumption function becomes unexpectedly complex, with multiple discontinuities in the optimal consumption rule. We derive an analytic solution for this model and use it to demonstrate the accuracy of the solution obtained numerically by DC-EGM. We then show how DC-EGM can be used to solve DC models with taste shocks and investigate its performance as a nested solution method for structural estimation of a DP model of retirement. Fella (2014) showed how the EGM could be adapted to solve nonconcave problems, including models with discrete and continuous choices. In this paper we focus on discrete choices and show that introducing independent and identically distributed (i.i.d.) extreme value type I choice-specific taste shocks not only facilitates maximum likelihood estimation, but also smooths out some of the kinks in the value functions, thereby simplifying the numerical solution of the model. This approach results in multinomial logit formulas for the conditional choice probabilities for the discrete choices and a closed-form expression for the expectation of the value function with respect to these taste shocks.3 In econometric applications continuously distributed taste shocks are essential for generating predictions from dynamic programming models that are statistically nondegenerate. Such predictions assign a positive (however small) choice probability to every alternative, and therefore preclude zero likelihood observations. These shocks are interpreted as unobserved state variables, that is, idiosyncratic shocks observed by agents but not by the econometrician. However, in numerical or theoretical applications, taste shocks can serve as a smoothing device (homotopy perturbation) that facilitates the numerical solution of more advanced DC models that may have excessively many kinks and discontinuities, for example, caused by a large number of discrete choices. 3In principle, the extreme value assumption could be relaxed to allow for other distributions at the cost of numerical approximation of choice probabilities and the conditional expectation of the value function. For example, Bound, Stinebrickner, and Waidmann (2010) assume that the discrete choice-specific taste shocks are Normal rather than extreme value. Yet, we follow the long tradition of discrete choice modeling dating back to McFadden (1973) and Rust (1987). 320 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) The inclusion of extreme value type I taste shocks has a long history in discrete choice modeling dating back to the seminal work by McFadden (1973). This assumption is typically invoked in microeconometric analyses of dynamic discrete choice models where numerical performance boosted by closed-form choice probabilities is particularly important; see, for example, Rust (1994) and the recent survey by Aguirregabiria and Mira (2010). Some recent studies of DC models with extreme value taste shocks include Casanova (2010), Ejrnæs and Jørgensen (2016), Iskhakov and Keane (2016), Oswald (2016), and Adda, Dustmann, and Stevens (2017). At first glance, the addition of stochastic shocks would appear to make the problem harder to solve, since both the optimal discrete and continuous decision rules will necessarily be functions of these stochastic shocks. However, we show that a variety of stochastic variables in DC models smooth out many of the kinks in the value functions and the discontinuities in the optimal consumption rules. In the absence of smoothing, we show that every kink induced by the comparison of the discrete choice-specific value functions in any period tpropagates backward in time to all previous periods as a manifestation of the decision maker’s anticipation of the future discrete action. The resulting accumulation of kinks during backward induction presents the most significant challenge for the numerical solution of DC models. In the presence of taste shocks the decision maker can only anticipate a particular future discrete action to be more or less probable, and thus the primary reason for the accumulation of kinks disappears. Thus, the combination of taste shocks and the stochastic variables in the model is perhaps the most powerful device to prevent the propagation and accumulation of kinks.4 Inthecasewhereextremevaluetasteshocksareusedasalogitsmoothing device of an underlying deterministic model of interest, we show that the latter problem can be approximated by the smoothed model to any desirable degree of precision. The scale parameter σ≥0of the corresponding extreme value distribution then serves as a homotopy or smoothing parameter. When σis sufficiently large, the nonconcave regions near the kinks in the nonsmoothed value function disappear and the value functions become globally concave. But even small values of σsmooth out many of the kinks in the value functions and suppress their accumulation in the process of backward induction as noted above. An additional benefit of the taste shocks is that standard integration methods, such as quadrature rules, apply when the expected value function is a smooth function. We run a series of Monte Carlo simulations to investigate the performance of DCEGM for structural estimation of the life-cycle model with the discrete retirement decision. We find that a maximum likelihood estimator that nests the DC-EGM algorithm performs well. It quickly produces accurate estimates of the structural parameters of the model even when fairly coarse grids over wealth are used. We find the cost of “oversmoothing” to be negligible in the sense that the parameter estimates of a perturbed model with stochastic taste shocks are estimated very accurately even if the true model does not have taste shocks. Thus, even in the case where the addition of taste shocks 4Contrary to the macro literature that uses stochastic elements such as employment lotteries (Rogerson (1988),Prescott (2005),Ljungqvist and Sargent (2005)) to smooth out nonconvexities, the taste shock we introduce in DC models in general do not fully convexify the problem. Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 321 results in a misspecification of the model, the presence of these shocks improves the accuracy of the solution and reduces computation time without increasing the approximation bias significantly. Even when very few grid points are used to solve the model, we find that smoothing the problem improves the root mean square error (RMSE). Particularly, with an appropriate degree of smoothing (σ), we can reduce the number of grid points by an order of magnitude without much increase in the RMSE of the parameter estimates. DC-EGM is applicable to many fields of economics and has been implemented in several recent empirical applications. Ameriks, Briggs, Caplin, Shapiro, and Tonetti (2015) study how the need for long term care and bequest motive interact with government-provided support to shape the wealth profile of the elderly. They use an endogenous grid method similar to DC-EGM to solve and estimate the corresponding nonconcave model. Iskhakov and Keane (2016) employ DC-EGM to estimate a lifecycle model of discrete labor supply, human capital accumulation, and savings for the Australian population. They use the model to evaluate Australia’s defined contribution pension scheme with means-tested minimal pension, and quantify the effects of anticipated and unanticipated policy changes. Yao, Fagereng, and Natvik (2015) use DC-EGM to analyze how housing and mortgage debt affects consumers’ marginal propensity to consume. They estimate a model in which households hold debt, financial assets, and illiquid housing, and find that a substantial fraction of households are likely to behave in a “hand-to-mouth” fashion despite having significant wealth holdings. Druedahl and Jørgensen (2015) employ a modified version of DC-EGM to analyze the credit card debt puzzle. They solve a model of optimal consumption and debt holdings, and show how, for some parameterizations of the model, a large group of consumers find it optimal to simultaneously hold positive gross debt and positive gross assets even though the interest rate on the debt is much higher than the rate on the assets. Ejrnæs and Jørgensen (2016) use DC-EGM to estimate a model of optimal consumption and saving with a fertility choice to analyze the saving behavior around intended and unintended child births. They model the fertility process as a discrete choice over effort to conceive a child subject to a biological fecundity constraint and allow for the possibility of unintended child births through imperfect contraceptive control. In the next section we present a simple extension of the life-cycle model of consumption and savings with logarithmic utility studied by Phelps (1962)andDeaton (1991) where we allow for a discrete retirement decision. We derive a closed-form solution to this problem and discuss its properties. Using this simple model we demonstrate the accuracy of the deterministic version of DC-EGM. We then introduce extreme value taste shocks and show how the implied smoothing affects the value functions and the optimal policy rules. In particular, we show that the error introduced by “extreme value smoothing” is uniformly bounded, and prove that the solution of the smoothed DP problem with taste shocks converges to the solution to the DP problem without taste shocks as the scale of the shocks approaches zero. Section 3presents the full DC-EGM algorithm. In Section 4we show how it is incorporated in the nested fixed point algorithm for maximum likelihood estimation of the structural parameters in the retirement model. We 322 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) present the results of a series of Monte Carlo experiments in which we explore the performance of the estimator in a variety of settings. We conclude with a short discussion of the range of models that DC-EGM is applicable to and discuss some open issues with this method. 2. Anillustrativeproblem:Consumption and retirement This section extends the classic life-cycle consumption–savings model of Phelps (1962) and Deaton (1991) to allow for a discrete retirement decision. We derive an analytic solution to this problem with logarithmic utility to both illustrate the complexity caused by the addition of a discrete retirement choice and show how DC-EGM computes this solution. While we focus on this simple example for expositional clarity, DC-EGM can be applied to a much more general class of problems that include taste and income shocks. We will discuss these extensions in Section 3and show how the addition of shocks can actually simplify the solution of the model using DC-EGM. 2.1 Deterministic model of consumption–savings and retirement Consider the discrete-continuous (DC) dynamic optimization problem max {ctdt}T t=1 T  t=1 βtlog(ct)−δdt(1) involving choices of consumption ctand whether to retire dt, to maximize lifetime discounted utility. Let dt=0denote retirement, let dt=1denote continued work, and let δ>0be the disutility of work. To simplify the exposition, we assume retirement is absorbing, that is, a retiree cannot return to work.5 We solve (1) subject to a sequence of period-specific borrowing constraints, ct≤Mt, where Mt=R(Mt−1−ct−1)+ydt−1is the consumer’s consumable resources (wealth) at the beginning of period t. There is a fixed, nonstochastic gross interest rate Rand labor income yfor workers. The continuous consumption decision and discrete retirement decision are made at the start of each period, whereas interest earnings and labor income are paid at the end of the period.6 Let Vt(M) and Wt(M) be the expected discounted lifetime utility of a worker and a retiree, respectively, in period tof their life. The choice problem of the worker can be expressed recursively through the Bellman equation as Vt(M) =maxvt(M 0)vt(M 1)(2) 5This allows us to focus primarily on the worker’s problem. In the absence of absorbing retirement, the retiree’s problem involves a discrete choice (returning to work or staying retired), and can be solved by DCEGM similarly to the worker’s problem. 6This timing convention is standard in the literature and it removes the need to include income as a seperate state variable when we extend this model to a much wider class of problems with stochastic R and/or y. Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 323 where the choice-specific value functions vt(Md),d∈{01},aregivenby vt(M0)=max 0≤c≤Mlog(c) +βWt+1R(M −c)(3) vt(M1)=max 0≤c≤Mlog(c) −δ+βVt+1R(M −c) +y(4) The Bellman equation for the retiree’s problem, which does not involve a discrete choice, is much simpler and can be written as Wt(M) =max 0≤c≤Mlog(c) +βWt+1R(M −c)(5) The value function for a retiree Wt(M) has a closed-form solution given by Phelps (1962, p. 742), so we focus on solving the worker’s problem, that is, solving for the value function Vt(M) and the optimal consumption rule ct(M). The fact that the future looks the same from the point of view of the retiree and from the point of view of the worker who decides to retire, can be verified from the fact that the right hand side of (3)isidentical to that of (5). Therefore, we have Wt(M) =vt(M0), and the consumption function of the retiree is identical to the choice-specific consumption function of the worker who decided to retire, ct(M 0), where the second argument denotes the retirement choice. Note that even if vt(M 0)and vt(M 1)are concave functions of M, the value function Vt(M) is the maximum of these two concave functions by (2) and will generally not be globally concave (Clausen and Strub (2013)). Further, Vt(M) will generally have a kink point at the value M=Mtwhere the two choice-specific value functions cross, that is, vt(Mt1)=vt(Mt0). We refer to these as primary kinks because they constitute optimal retirement thresholds for the worker in each period t. The optimal retirement rule is given by dt(M) =1if M<Mtand dt(M) =0if M≥Mt. The worker is indifferent between retiring and working at the primary kink Mt,and Vt(M) is nondifferentiable at this point. However, the left and right hand side derivatives, V− t(M) and V+ t(M), exist and satisfy V− t(Mt)<V+ t(Mt). The discontinuity in the derivative of Vt(M) at Mtleads to a discontinuity in the optimal consumption function in the previous period t−1because the Bellman equation for Vt−1(M) depends on Vt(M).In turn, this causes a kink in Vt−1(M) that we label a secondary kink since it is a reflection of the primary kink in Vt(M). Thus, the primary kinks propagate back in time and manifest themselves in an accumulation of secondary kinks in the value functions in earlier periods, resulting in an increasing number of discontinuities in the consumption functions in earlier periods of the life cycle. The discontinuities in consumption rules in period t are caused by the worker’s anticipation of landing exactly at the kink points in periods t+1t+2T under the optimal consumption policy. Theorem 1 (Analytical Solution to the Retirement Problem). Assume that income and disutility of work are time-invariant,the discount factor βand the disutility of work δare not too large,that is, βR ≤1and δ<(1+β)log(1+β) (6) 324 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) and instantaneous utility is given by u(c) =log(c).Then for τ∈{1T}the optimal consumption rule in the worker’s problem (2)–(4)is given by cT−τ(M) = ⎧ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎨ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎩ Mif M≤y/Rβ [M+y/R]/(1+β) if y/Rβ≤M≤Ml1 T−τ M+y1/R +1/R2/1+β+β2if Ml1 T−τ≤M≤Ml2 T−τ ··· ··· M+yτ−1  i=1 R−iτ−1  i=0 βi−1 if Mlτ−2 T−τ≤M≤Mlτ−1 T−τ M+yτ  i=1 R−i τ  i=0 βi−1 if Mlτ−1 T−τ≤M<Mrτ−1 T−τ M+yτ−1  i=1 R−i τ  i=0 βi−1 if Mrτ−1 T−τ≤M<Mrτ−2 T−τ ··· ··· M+y1/R +1/R2τ  i=0 βi−1 if Mr2 T−τ≤M<Mr1 T−τ [M+y/R]τ  i=0 βi−1 if Mr1 T−τ≤M<MT−τ Mτ  i=0 βi−1 if M≥MT−τ (7) The segment boundaries are totally ordered with y/Rβ <Ml1 T−τ<···< Mlτ−1 T−τ< Mrτ−1 T−τ<···< Mr1 T−τ< MT−τ(8) and the rightmost threshold MT−τ,given by MT−τ=(y/R)e−K 1−e−Kwhere K=δτ  i=0 βi−1 (9) defines the smallest level of wealth sufficient to induce the consumer to retire at age t= T−τ. The proof of Theorem 1—in particular, the expressions for the kink points Mli T−τand Mri T−τ—is available in a supplementary file on the journal website, http://qeconomics. org/supp/643/supplement.pdf. However, we show how this solution is derived when we introduce the DC-EGM algorithm in the next section.7 7Note that the assumptions on the parameters β,δ, and Rare needed to ensure the ordering of the bounderies (8). Modified versions of Theorem 1hold under weaker conditions, including a version where income and the disutility of work are age-dependent. However, depending on the paths of income and Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 331 Figure 2. Optimal consumption functions. The plots show optimal consumption rules of the worker in the consumption–savings model with R=1,β=098,y=20,andT=20.Panel(a) illustrates the analytical solution (which is indistinguishable from the the numerical solution produced by DC-EGM), panel (b) illustrates the numerical error from the solution found by DC-EGM, panel (c) shows the numerical solution found by VFI, and panel (d) shows the associated numerical errors. Both the VFI and DC-EGM solutions were generated using 2000 points in the M-grid. For VFI, grid points are equally spaced, the maximum level in the wealth is 600, and 10,000 equally spaced points of consumption between zero and M(t) are used to solve the maximization problem in the Bellman equation. ing numerical optimization to search for optimal consumption at each Mgrid point.11 With a sufficient number of grid points, DC-EGM is able to accurately locate all the discontinuities of the analytical consumption rules (Mrj t) and the boundary of the credit- 11Simple linear interpolation of the value function at the exogenous grid points over Mwas used to implement numerical optimization for values of cwhere implied next period resources R(M −c) +ydoes not lie on the predefined exogenous grid  M. To enable a fair comparison with DC-EGM, we did use the analytical expressions for the value functions and consumption functions in the retiree problem. 332 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) constrained region y/Rβ. Yet, because the kinks points associated with the credit constraint in future periods, Mlj t, are not located precisely by DC-EGM, the right panel of Figure 2shows small relative errors on the order of 10−4in the intervals (y/RβMτ−1 T−τ)in each period T−τ. Overall, the numerical solution by DC-EGM replicates the analytical solution remarkably well.12 Panels (c) and (d) of Figure 2show the solution produced by the VFI method where the optimal consumption levels are found by a fine grid search method. This implementation of VFI could admittedly be thought of as too simplistic, with possible improvements in how the grid points are located and spaced, which computational methods are employed to search for optimal consumption in each grid point, and so forth. Yet, the point we wish to make is that a standard “off the shelf” version of the VFI method may have serious difficulties when solving DC problems due to its failure to adequately capture the secondary kinks in the value function that get “papered over” via naive application of the standard method of linear interpolation of the value functions. The bottom panels of Figure 2shows that the VFI solution results in significant approximation errors and is unable to fully capture the numerous discontinuities in the consumption function. Figure 3plots the optimal consumption functions and simulated consumption paths under the same assumptions as in Figure 2except in this case we set R=1/β = 102. The theoretical prediction for the consumption–savings model without retirement is that, with Rβ =1, simulated consumption paths should be completely flat. Yet, the consumption functions shown in the left panel display numerous discontinuities that accumulate backward from the final period T=20. Beyond the important economic message that discontinuous consumption functions are not incompatible with consumption smoothing, this also illustrates the remarkable precision of the DC-EGM algorithm. In fact, when we simulate consumption trajectories implied by this incredibly complex solution found numerically, the simulated consumption profiles are still perfectly flat. Before we describe in detail how DC-EGM works, we now illustrate how the incorporation of various types of uncertainty, including extreme value taste shocks, renders the accumulation of kinks in the value function and discontinuities in the consumption function considerably less severe. 3. DC-EGM for problems with taste shocks In this section we introduce income and taste shocks into the consumption and retirement model and show how DC-EGM is modified to accommodate these shocks. We 12With 2000 points on the endogenous grid over wealth it took our Matlab/C implementation around 017 seconds on a Lenovo ThinkPad laptop with an Intel® Core™i7-4600M central processing unit (CPU) at 210 GHz and 8GB random access memory (RAM) to generate the numerical solution by DC-EGM. This is about 20 times faster than VFI, which we implemented in Matlab with 500 fixed grid points over wealth. The discretization of consumption is a brute force approach to ensure that global optimum is found. We used 400 equally spaced guesses for each level of wealth. The fact that EGM offers the speedup of 1–2orders of magnitude relative to VFI is a well established finding in the literature; see, for example, Barillas and Fernández-Villaverde (2007), Jørgensen (2013), Fella (2014), Ameriks et al. (2015). Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 333 Figure 3. Discontinuous consumption function and smooth consumption paths. The plots show optimal consumption functions of the worker in the consumption–savings model with with T=20,dt=1,y=20,β=098,andR=1/β =102. The left panel illustrates the solution for t=11018, while the right panel presents consumption paths simulated over the whole life cycle for several initial levels of wealth. The model was solved by the DC-EGM algorithm. show how primary and secondary kinks are smoothed in the presence of the random factors in the model, and explain how the numerical solution is simplified even though the problem remains nonconvex in general. Three effects are at play. First, because the discrete choice policy is expressed in probabilistic terms, the calculation of primary kink points is no longer needed. Second, as a result, the process of accumulation of secondary kinks is perturbed: the perturbations caused by the primary kinks that remain throughout the backward induction process in the deterministic setting “fade out” in the presence of shocks. Third, the calculation of expectations over random income in the problem with taste shocks can be performed with standard numerical algorithms, as opposed to the setting with random income but without taste shocks. We discuss each of these points in detail below. 3.1 Taste and income shocks in the retirement problem Consider an extension of the model presented in Section 2where the consumer faces income uncertainty and where choices are affected by discrete choice-specific taste shocks. More specifically, assume that income when working is yt=yηt,whereηtis log-normally distributed multiplicative idiosyncratic income shock, log ηt∼N(−σ2 η/2 σ2 η).13 Following a vast literature on discrete choice modeling originating with McFadden (1973), we assume that random choice-specific taste shifters σεεt(d),d∈{01},areadditively separable, i.i.d. and have an extreme value distribution with scale parameter σε. 13As mentioned above, we follow the literature in the assumption that idiosyncratic income shocks are realized after the labor supply choice is made, which is equivalent to allowing income to be dependent on a lagged choice of labor supply. 334 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) These shocks can be interpreted in the structural sense as the information relevant for the discrete choices that is observed by the agents but not by the econometrician. In this case, the scale parameter σεcan be estimated from the data. Alternatively, if the true model is deterministic, σεcan be interpreted as a (logit) smoothing parameter that can be chosen to approximate the true model with arbitrary precision; see Theorem 3 below. Because discrete choice-specific taste shocks as well as income shocks only enter the worker problem, the solution of the retiree problem (5) remains the same. As for the worker problem, the inclusion of taste shocks requires us to rewrite the Bellman equation (2)as Vt(M ε) =maxvt(M0)+σεε(0) vt(M1)+σεε(1)(12) where the value function conditional on the choice to retire, vt(M0),isstillgivenby(3). However, the value function conditional on the choice to remain working, vt(M1),is modified to account for the taste and income shocks in the following period, namely vt(M1)=max 0≤c≤Mlog(c) −δ+βEV σε t+1R(M −c) +yη1f(dη)(13) Because the taste shocks are independent extreme value distributed random variables, the expected value function, EV σε t+1, is given by the well known log-sum formula (McFadden (1973)) EV σε t+1(M1)=Emaxvt+1(M0)+σεε(0)vt+1(M1)+σεε(1) =σεlogexpvt+1(M 0)/σε+expvt+1(M 1)/σε (14) The immediate effect of introducing extreme value taste shocks is the complete elimination of the primary kinks, because the location of the indifference point in (12) is now probabilistic from the point of view of the econometrician. Instead of calculating the location of the primary kink Mtin the value function of the worker V(M), the discrete choice policy function is now given by the logit choice probabilities Pt(d|M) that arise due to the distributional assumption for the taste shocks: Pt(d|M)=expvt(M d)/σε expvt(M 1)/σε+expvt(M 0)/σεd∈{01}(15) Because εis unobserved it becomes impractical to carry out the calculations in terms of overall value function V(M)and overall consumption function c(M).Instead, in the presence of taste shocks, DC-EGM operates on the discrete choice-specific value functions v(Md) and consumption functions c(Md), and computes choice probabilities (15) at each time period t. It is worth noting that the problem is still not globally concave in general, so the upper envelope calculation and the elimination of the suboptimal endogenous grid points is still performed as described in Section 2.2. However, when σεis sufficiently large, the value function Vt(M) in (12) eventually becomes globally concave. To see this, note that as the variance of the taste shocks increases, the Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 335 choice-specific value functions are dominated by the noise and the differences between the alternatives become relatively less important. In turn, the components in (12)become similar, and limσε↑∞EV σε t(M)/σε=log(2). It follows from (12) then that the value function vt(M1)inherits its globally concave shape from the utility function. The income shocks14 in the model also smooth out the secondary kinks during backward induction. When the agent cannot perfectly anticipate having next period wealth exactly at the kink point, the secondary kinks are not replicated perfectly in the prior periods. Together these two sources of uncertainty make numerical solution significantly easier by reducing the number of times the secondary envelope routine is called by DCEGM to refine the nonmonotonic endogenous grid, as described in Section 2.2 and Algorithm 2below. Figure 4shows the consumption function ct(M 1)for a worker conditional on the choice to continue working for different values of the taste shock scale parameter σε∈{0001005010015}. The left panel plots the optimal consumption in the absence of income uncertainty (ση=0) while income uncertainty (ση=√0005) is added in the right panel. The plots are drawn for the period T−5, corresponding to four discontinuities of the choice-specific policy function (which is in line with Theorem 1,not counting the one at the primary kink point MT−5). It is evident that taste shocks of larger scale (σε≥005) manage to smooth the function completely, eliminating all four discontinuities in the consumption function. Yet, for σε=001 only the last (rightmost) discontinuity is obviously smoothed out. When the model has other stochastic elements such as wage shocks or random market returns, the accumulation of secondary kinks may be less pronounced due to the additional smoothing. Yet, in the absence of taste shocks, Figure 4. Optimal consumption rules for the worker who remains working, ct(M 1).Theplots show optimal consumption rules of the worker who decides to continue working in the consumption–savings model with retirement in period t=T−5for a set of taste shock scales σεin the absence of income uncertainty, ση=0(left panel), and in presence of income uncertainty, ση=√0005 (right panel). The rest of the model parameters are R=1,δ=1,β=098,andy=20. 14Equivalently, random returns or other stochastic factors in the intertemporal budget constraint. 336 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) the primary kinks cannot be avoided even if all secondary kinks are eliminated by a sufficiently high degree of uncertainty in the model. It is in this setup, which also appears to be mostly used in practical applications, where the introduction of the extreme value distributed taste shocks is especially beneficial. The taste shocks and other structural shocks together contribute to the reduction of the number of secondary kinks and to the alleviation of the issue of their multiplication and accumulation. It is clear from the right panel of Figure 4that discontinuities in the consumption function can be eliminated with a smaller taste shock (σε=001) when additional smoothing through other types of uncertainty is present in the model. Because the expected value function in (14) is a smooth function of Maround the point where vt(M1)=vt(M0), the maximand in (13) is also smooth in this region. This leads to an additional benefit of the inclusion of taste shocks, namely that standard numerical integration algorithms for the smooth function can be used when calculating the integral in (13). When σε=0, using procedures like Gaussian quadrature typically results in spurious discontinuities as shown in the left panel of Figure 5.Thisisdueto the integrand not being a smooth function; see Appendix Bfor a detailed discussion. The right panel of Figure 5illustrates how moderate smoothing (σε=005) significantly reduces this approximation error and removes the artificial kinks. When the taste shocks εthave an interpretation as stochastic noise that is introduced to help solve a difficult DC dynamic program by making it more smooth, σεis the amount of smoothing and has to be chosen and fixed prior to estimation. Theorem 3shows that the level of σεcan always be chosen in such a way that the perturbed model approximates the underlying deterministic model with an arbitrary degree of precision. Figure 5. Artificial discontinuities in consumption functions, σ2 η=001,t=T−3.Thefigure illustrates how the number of discrete points used to approximate expectations regarding future income affects the consumption functions from value function iteration (VFI) and DC-EGM. Panel (a) illustrates how using few (10) discrete equiprobable points to approximate expectations produce severe approximation error when there is no taste shocks. Panel (b) illustrates how moderate smoothing (σε=005) significantly reduces this approximation error. Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 337 Theorem 3 (Extreme Value Homotopy Principle). In every time period the (expected) value function of the consumption and retirement problem with extreme value taste shocks EV σε t(Mt)defined in (14)converges uniformly to the value function of the same problem without taste shocks Vt(M1)defined in (2)as the scale of these shocks approaches zero.The uniform bound ∀t:sup M≥0EV σε t(M1)−Vt(M1)≤σεT−t  j=0 βjlog(2)(16) holds.Consequently,as σε↓0,both continuous and discrete decision rules of the smoothed model with taste shocks converge pointwise to those of the deterministic model. In Appendix Dwe prove a more general version of Theorem 3that holds under weak conditions for arbitrary DC models. Theorem 3formalizes the results presented graphically in Figure 4, and justifies our claim that the extreme value smoothing can be regarded as a homotopy method for solving the nonsmooth limiting problem without taste shocks by solving a smooth “nearby” problem with extreme value taste shocks. The extreme value scale parameter σεplays the role of the “homotopy parameter.” 3.2 Extending DC-EGM for taste shocks and income uncertainty In the presence of taste shocks and income uncertainty, the DC-EGM algorithm remains largely the same, and potentially even simpler because the calculation of the primary kinks Mtis replaced by the calculation of choice probabilities using formula (15). The biggest difference is that with taste shocks, the DC-EGM operates on the choice-specific values, as was mentioned in Section 3.1. We present the pseudo-code of the full algorithm in this section. If we continue to assume that retirement is an absorbing state, the problem of the retiree remains the same, and we focus again on the worker’s problem. With taste and income shocks it is given by (12), (3), and (13), with the modified “smoothed” Euler equation taking the form15 0=u(c) −βR uct+1R(M −c) +yη1Pt+11|R(M −c) +yη +uct+1R(M −c) +yη0Pt+10|R(M −c) +yηf(dη) =1 c−βRPt+11|R(M −c) +yη ct+1R(M −c) +yη1+Pt+10|R(M −c) +yη ct+1R(M −c) +yη0f(dη) (17) where Pt(1|M) and Pt(0|M) are the choice probabilities (15), and the last line is written for the case u(c) =log(c). Given the next period choice-specific consumption functions of the worker ct+1(M 0)and ct+1(M1),wesolve(17) via the same backward induction process as 15See Lemma 1in Appendix A. 338 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) described in Section 2.2 for the retirement problem without stochastic shocks. As before, the induction starts at the terminal period Twith the easily derived consumption functions cT(M0)=cT(M1)=M, choice-specific value functions vT(M0)=u(M) = vT(M1)+δ, and the probability of remaining working PT(1|M)=1/(1+exp(δ/σε)). Then working backward, we choose an exogenous grid over saving  A=(A1AJ) (which remains fixed throughout the backward induction process here for notational simplicity) and compute optimal consumption {ct(A1d)ct(AJd)}for each point Ajand for each discrete choice dby calculating the inverse marginal utility of the right hand side of the Euler equation (17)and(11)ford=1and d=0, respectively. Using these consumption functions, we construct the endogenous grid over Mas  Md t= (Md t1Md tJ),whereMd jis given by Md jt =ct(Ajd)+Aj,j∈{1J}. For every d, if the resulting grid points are a monotonically increasing sequence, then no violation of monotonicity of the saving function as per Theorem 2is indicated, and the DC-EGM method automatically reverts to the standard EGM method of Carroll (2006). However, if  Md tis not a monotonically increasing sequence, we apply the same upper envelope procedure as described in Section 2.2 to eliminate the suboptimal elements of  Md tand add a point where the disjoint segments of the value function intersect. The last step amounts to calculating the choice-specific value functions v(Md) alongside the consumption functions, which is achieved by plugging the computed ct(A1d) into the maximand of the Bellman equation (13) for each point Ajof the exogenous grid on savings. After the choice-specific consumption and value functions c(Md) and v(Md) are computed on the monotonic endogenous grids  M∗dt,theperiodtiteration of the DCEGM algorithm is complete. Unlike in Section 2.2, in the presence of taste shocks the calculation of the upper envelope over the choice-specific value functions is not performed. Instead, the discrete choice probabilities may be calculated using (15)forany level of wealth Musing interpolation of the choice-specific values v(M0)and v(M1). We continue this procedure from period T−1backward to period t=1,atwhich point we have fully approximated the solution to the life-cycle retirement problem by DC-EGM. Note that as before, in the formulation with taste shocks none of the steps of the DC-EGM algorithm require iterative root-finding operations. Algorithms 1,2,and3provide the pseudo-code for the complete DC-EGM algorithm for the problems with discrete shocks. The full DC-EGM algorithm (Algorithm 1) invokes the EGM step (Algorithm 2) repeatedly to compute the value function correspondences for all discrete choices, and then finds and removes all suboptimal points on the returned endogenous grids by calling the upper envelope module (Algorithm 3). By Theorem 3, it can also approximate the solution for the problems without taste shocks if the scale parameter σεis fixed at a sufficiently small value. While the DC-EGM is similar to the approach proposed in Fella (2014), we explicitly allow for extreme value type I taste shocks to preferences and show how they help with the computational issues specific to the model of discrete-continuous choices. The approach in Fella (2014) does not readily apply to the class of models with taste shocks but should be adjusted along the lines described here. In particular, DC-EGM operates with discrete choice-specific value functions and optimal consumption rules, Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 339 Algorithm 1 The DC-EGM algorithm Input: Structural parameters, utility function u(c),numberoftimepeiodsT,number of grid points J, upper bound on wealth ¯ M. 1: Fix the grid over savings  A={A1AJ}such that A1=0and Aj<A j+1 2: for t=T1do Backward induction over time periods 3: for st ∈Sdo For every state (worker, retired) 4: for d={01}if st =worker, or d=0if st =retired do For all admissible discrete choices 5: if t=Tthen Terminal period 6: Set consumption function cT(Md) =M 7: Set policy function vT(Md) =u(M) +dδ 8: else All periods t<T 9: Call EGM Step (Algorithm 2) Input: next period consumption and value functions ct+1(Md),vt+1(Md), d∈{01} Output: consumption and value functions ct( Md td),vt( Md td) over endogenous grid  Md t 10: Call Upper Envelope (Algorithm 3) Input: endogenous grid  Md t, consumption and value functions ct( Md td), vt( Md td) Output: refined grid  M∗d t, consumption and value functions ct( M∗d td), vt( M∗d td) 11: end if 12: end for 13: end for 14: end for Output: The collection of the choice-specific consumption and value functions ct(M d) and vt(Md) defined on the endogenous grids  Md tfor both worker and retiree, d={01}and t={1T}constitutes the solution of the consumption– savings and retirement model and computes integrals of smooth objects. Furthermore, contrary to Fella (2014), who uses instances of increasing marginal utility to detect nonconcave regions, DC-EGM uses the value function correspondence. Finally, Fella (2014) uses standard VFI in detected non-concave regions while we use the solution already found in the EGM-step. However, both approaches rely on monotonicity of the optimal end-of-period savings function. An important question of how the method handles the situations when the nonconvex regions go undetected due to relatively coarse grid  Ais addressed by the Monte Carlo simulations in the next section. We show that even with a small number of endogenous grid points the nested fixed point (NFXP) maximum likelihood estimator based on the DC-EGM algorithm performs well and is able to identify the structural parameters of the model. 340 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) Algorithm 2 The EGM step, adaptation of the standard EGM algorithm (Carroll (2006)) Input: Structural parameters, utility function u(c),currentperiodt<T, state (st), discrete choice d, next period consumption and value functions ct+1(Md), vt+1(Md),d∈{01}, exogenous grid over savings  A={A1AJ} 1: for j=1J do Loop over points in  A 2: Calculate next period wealth M=AjR+dyη 3: Calculate next period choice probabilities Pt+1(d|M) 4: Calculate optimal choice-specific consumption ct+1(Md)and u(ct+1(Md)) 5: Calculate choice-specific value function vt+1(Md)in period t+1 6: Repeat Steps 2–5to compute the right hand side (RHS) of the Euler equation (17) and the expectation of the next period value function EV (the last component of the maximand in (13)). Gaussian quadrature or other numerical integration algorithms can be used to calculate the integral over income shocks η. Also, in general case, it may be necessary to integrate over the transition probabilities P(st|std) of the state process st, which is trivial in the retirement model. 7: Compute current period optimal consumption c(Ajd)=(u)−1(RHS) 8: Compute current period choice-specific value function v(Ajd)=u(c(Ajd))+ dδ +EV 9: Compute the endogenous point Md jt =c(Ajd)+Aj 10: end for 11: Add an extra point Md 0t =0to  Md tand set c(0d)=0 Output: Endogenous grid  Md t, consumption and value functions ct( Md td),vt( Md td) over it 3.3 Credit constraints Before turning to the Monte Carlo results, we briefly discuss how DC-EGM handles the credit constraints, c≤M. During the EGM step, the credit constraints are dealt with in exactly same manner as in Carroll (2006), as described in Section 2.2. Let the smallest possible end-of-period resources A1=0be the first point in the exogenous grid over saving  A. Assuming that the corresponding point of the endogenous grid Mt(A1d) is nonnegative,16 it holds that A(Md) =0for all M≤Mt(A1d)due to the monotonicity of the saving function A(Md) =M−ct(Md) (see Theorem 2). Therefore, the optimal consumption in this region is then given by ct(Md) =M, and the choice-specific value function is vt(Md) =log(M) −dδt+βEV t+1(dyη)f(dη) M ≤Mt(A1d) (18) Note that the third component of (18) is the expected value of having zero savings. It is calculated within the EGM step for the point A1=0, and should be saved separately as a constant that depends on dbut not on M. Once this constant is computed, vt(Md) 16It is not hard to show that this holds as long as the per-period utility function satisfies the Inada conditions. Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 347 minimized by a σε>0. While large degree of smoothing induces significant approximation bias, the bias is initially falling in σεuntil some point at which the RMSE increases again. The minimum of the RMSE is attained for lower levels of smoothing if additional stochasticity (i.e., income shocks) is present in the model. This is expected because the income uncertainty smooths the problem and less logit smoothing is needed to obtain the optimal smooth approximation. It is worth noting, however, that the optimal amount of logit smoothing may not be sufficient to completely eliminate the nonconvexities in the model. It is therefore essential for the solution method to be able to robustly solve optimization problems with multiple local solutions, the task that DC-EGM performs particularly well. These results show the potential for great speed gains by smoothing. Using only 50 grid points and imposing σε=001 produces a RMSE of around the same level as using 500 grid points and imposing σε≈0close to the true model. We can reduce the number of grid points by an order of magnitude without increasing the root mean square error significantly simply by choosing the degree of smoothing appropriately. Note, however, that there is naturally a trade-off between lowering the computational cost by increasing smoothing and decreasing the number of grid points and the accuracy of the resulting solution compared to the true solution of the nonsmooth model. 5. Discussion and conclusions In this paper we have shown how complications from numerous discontinuities in the consumption function to a life-cycle model with discrete and continuous choices can be avoided by smoothing the problem and using the DC-EGM algorithm. The proposed algorithm retains all the nice features of the original EGM method, namely that it typically does not require any iterative root-finding operations, and is equally efficient in dealing with borrowing constraints. Moreover, we show that the smoothed model can be successfully estimated by the NFXP estimator based on the DC-EGM algorithm even with a small number of grid points and even when the true DGP is nonsmooth. For expositional clarity, we focused on a simple illustrative example when explaining the details of the DC-EGM algorithm. This also allows us to derive an analytical solution that we can compare to the numerical one. The analytical solution provides economic intuition for why first and second order kinks appear, and permits direct evaluation of the precision of the DC-EGM algorithm. Admittedly, the illustrative model of consumption and retirement is very stylized, and the reader may wonder if DC-EGM can be used to solve and estimate larger, more complex, and realistic models with more state variables, multiple discrete alternatives, heterogeneous agents, institutional constraints, and so forth. The answer is positive. As shown in Appendix A, the DC-EGM method can be applied to a much more general class of problems as long as the postdecision state variable is a sufficient statistic for the continuous choice in the current period, and the marginal utility function and intratemporal budget constraint are invertible. When the marginal utility function is analytically invertible, DC-EGM also avoids the bulk of costly root-finding operations.22 22The DC-EGM algorithm can also be generalized for other specifications including the models with large state space and multidimensional discrete choice. White (2015), Iskhakov (2015), Druedahl and Jør- 348 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) The DC-EGM method has been implemented in several recent empirical applications, where it has proven to be a powerful tool for solving and estimating more complex DC models in various fields: labor supply, human capital accumulation and saving (Iskhakov and Keane (2016)); joint retirement decisions of couples (Jørgensen (2014)); consumption, housing purchases, and housing debt (Yao, Fagereng, and Natvik (2015)); saving decisions and fertility (Ejrnæs and Jørgensen (2016)); precautionary borrowing and credit card debt (Druedahl and Jørgensen (2015)). We have demonstrated in the Monte Carlo experiments that the NFXP maximum likelihood estimator based on the DC-EGM solution algorithm performs very well when decisions are made under uncertainty, for example, in the presence of extreme valued taste shocks and the existence of income uncertainty. Even when the true model is deterministic, taste shocks can be used as a powerful smoothing device to simplify the solution without much approximation bias due to oversmoothing. The addition of extreme value taste shocks is not only a convenient smoothing device that simplifies the solution of DC models, it is also an empirically relevant extension required to avoid statistical degeneracy of the model. In empirical applications the variance of these shocks is typically much larger compared to what we have considered here. This makes models smooth enough to almost eliminate approximation bias in parameter estimates even with relatively few grid points. We therefore conclude that DC-EGM is practical and appears to be a fast and accurate method for use in actual empirical applications. Appendix A: Theoretical foundations of DC-EGM For the purpose of this Appendix we consider the following more general formulation of the consumption–savings and retirement problem. Let Mtdenote consumable wealth that is a continuous state variable with particular motion rule described below, and let stdenote a vector of additional discrete or discretized state variables. Let ctbe the scalar continuous decision (consumption) and let dtbe a scalar discrete decision variable with finite set of values that could encode multiple discrete decisions if needed. Consider the dynamic discrete-continuous choice problem given by the Bellman equation, Vt(Mtst)=max 0≤ct≤Mtdt∈Dtu(ctdtst)+σεεt(dt)+βtEtVt+1(Mt+1st+1)|Atdt(24) where t=1T −1, and the last component of the maximand is absent for t=T.The choices in the model are restricted by the credit constraint ct≤Mtand feasibility sets Dt. The per-period utility includes scaled taste shocks σεεt(dt),whereεtis a vector of i.i.d. extreme value (type I) distributed random variables. The dimension of εtis equal to the number of alternatives that the discrete choice variable may take, εt(dt)denotes the component that corresponds to a particular discrete decision. In the general case the discount factor βtis time-specific to allow for the probability of survival. The expectation is taken over the taste shocks εt+1and the transition probabilities of the state gensen (2017) present theoretical foundations for extending endogenous grid methods to multidimensional models. Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 349 process stas well as any serially uncorrelated (or idiosyncratic) shocks that may affect Mt+1and st+1. The expectation is taken conditional on the choices in period tusing the sufficient statistic At=Mt−ctin place of the continuous (consumption) choice. Using the well known representation of the expectation of the maximum of extreme value distributed random variables, the Bellman equation (24)canbewritteninterms of the deterministic choice-specific value functions as vt(Mtst|dt)=max 0≤ct≤Mtu(ctdtst)+βtEtVt+1(Mt+1st+1)|Atdt (25) =max 0≤ct≤Mtu(ctdtst) +βtEtφvt+1(Mt+1st+1|dt+1) Dt+1σε|Atdt (26) where φ(xjJσ)=σlog[j∈Jexp xj σ]is the log-sum function. The expectation in (26)is now only taken with respect to (w.r.t.) state transitions and idiosyncratic shocks, unlike in (24)and(25). The crucial assumption for the DC-EGM is that postdecision state Atconstitutes the sufficient statistic for the continuous choice in period t, that is, that transition probabilities/densities of the state process (Mtst)depend on Atrather than Mtor ctdirectly. It is also required that Atas a function of Mtis (analytically) invertible. For our case, assume for concreteness that At=Mt−ct,andthatMt+1=RAt+y(dt),whereRis a gross return, and y(dt)is discrete choice-specific income. We also assume that the utility function u(ctdtst)satisfies the following condition. Assumption A (Concave Utility). The instantaneous utility u(ctdtst)is concave23 in ct and has a monotonic derivative w.r.t.ctthat is (analytically)invertible. Lemma 1 (Smoothed Euler Equation). The Euler equation for the problem (24)takes the form u(ctdtst) =βtREt dt+1∈Dt+1 uct+1(Mt+1st+1|dt+1) dt+1st+1Pt+1(dt+1|Mt+1st+1)(27) where u(ctdtst)is the partial derivative of the utility function w.r.t.ct,ct+1(Mt+1 st+1|dt+1)is the choice-specific consumption function in period t+1,and Pt+1(dt+1|Mt+1 st+1)is the conditional discrete choice probability in period t+1,given by Pt(dt|Mtst)=expvt(Mtst|dt)/σε d∈Dt expvt(Mtst|d)/σε(28) 23More precisely, a weaker condition is sufficient, namely for every xand arbitrary 1>0and 2>0it must hold that u(ct+1dtst)−u(ctdtst)≥u(ct+1+2dtst)−u(ct+2dtst); see Theorem 2. 350 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) Proof. Discrete choice-specific consumption functions ct(Mtst|dt)satisfy the the first order conditions for the maximization problems in (25)givenby u(ctdtst)+βtE∂Vt+1(Mt+1st+1) ∂Mt+1 ∂Mt+1 ∂ct=0(29) for every value of dt∈Dt. The envelope conditions for (25), ∂vt(Mtst|dt) ∂Mt=βtE∂Vt+1(Mt+1st+1) ∂Mt+1 ∂Mt+1 ∂Mt(30) and because ∂Mt+1(dt)/∂Mt=R=−∂Mt+1(dt)/∂ct, it holds for all dtand t=1T−1: u(ctdtst)=∂vt(Mtst|dt) ∂Mt (31) The first order condition for (26)is u(ctdtst)=βtREt dt+1∈Dt+1 ∂vt+1(Mt+1st+1|dt+1) ∂Mt+1 Pt+1(dt+1|Mt+1st+1)(32) where choice probabilities Pt+1(dt+1|Mt+1st+1)are given by (28). Plugging (31) into (32) completes the proof.  The DC-EGM algorithm outlined in Algorithm 1is readily applicable to the general formulation of the discrete-continuous problem (24), except for the extra loop that has to be taken over all additional states stin Step 3 (Algorithm 1). The expectation over the transition probabilities of the state process is calculated together with the expectation over the other stochastic elements of the model in Algorithm 2. The criteria for selecting the solutions of the Euler equation that correspond to the optimal behavior in the model are based on the monotonicity of the savings function, which is established with the following theorem.24 Theorem 4 (Monotonicity of Savings Function). Denote by At(Mtst|dt)=Mt−ct(Mt st|dt)a discrete choice-specific savings function in period t.Under Assumption A,function At(Mst|dt)is monotone nondecreasing in Mfor all t,st,and dt∈Dt. Proof.Theorem4is an application of Theorem 4 in Milgrom and Shannon (1994)to the current problem. Conditional savings function At(Mtst|dt)is a maximizer in the expression similar to (25) for the discrete choice-specific value function vt(Mtst|dt).As afunctionofMand A, the maximand in this expression is given by f(AM)=u(M −Adtst)+βtEtVt+1Mt+1(A)st+1(33) where Mt+1(A) is next period wealth as an increasing function of A. It is necessary and sufficient to show that f(AM) is quasi-supermodular in Aand satisfies the sin- 24A similar monotonicity result is also used in Fella (2014). Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 351 gle crossing property in (AM). The former is trivial because Ais a scalar. For the latter, consider A>A ,M>M and assume f(AM)>f(A M).Then fAM−fAM =uM−Adtst−uM−Adtst +βtEV t+1Mt+1Ast+1−EV t+1Mt+1Ast+1 ≥uM −Adtst−uM −Adtst +βtEV t+1Mt+1Ast+1−EV t+1Mt+1Ast+1 =fAM−fAM>0 (34) For the first inequality we use uM−Adtst−uM−Adtst≥uM −Adtst−uM −Adtst uM−Adtst−uM −Adtst≥uM−Adtst−uM −Adtst u(zdtst)−u(z −Mdtst)≥u(z +Adtst)−u(z +A−Mdtst) (35) where z=M−A,A=A−A >0,andM=M−M >0, and which is due to Assumption A, that is, concavity of the utility function. It follows then that f(AM)> f(AM). Similarly, assumption f(AM)≥f(AM)leads to f(AM)≥f(AM) and, thus, f(AM)satisfies the single crossing property, and the monotonicity theorem in Milgrom and Shannon (1994) applies.  Appendix B: Spurious discontinuities from numerical integration To illustrate how naive numerical quadrature integration can produce spurious discontinuities in the policy function, we here focus on the illustrative model without smoothing. Particularly, for working households, the smoothed Euler equation in (17) collapses to uct(Mt|dt)=β∞ 0 Ruct+1(Mt+1|dt+1=1)·1{Mt+1≤Mt+1}f(dη) +β∞ 0 Ruct+1(Mt+1|dt+1=0)·1{Mt+1> Mt+1}f(dη) (36) wherewerecallthatMt+1=R(Mt−ct(Mt|dt)) +yη. With the change of variables, q= f(η), we can write the Euler equation (36)as uct(Mt|dt)=βqt 0 f−1(q)uct+1RMt−ct(Mt|dt)+yf −1(q)dt+1=1dq +β1 qt f−1(q)uct+1RMt−ct(Mt|dt)+yf −1(q)dt+1=0dq (37) 352 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) where the threshold qtis given by qt=fMt+1 Mt+1(38) As long as the income shock distribution is not degenerate, the resulting Euler equation (37) is continuous and smooth in ct(MtW)through Mt+1in spite of the discontinuity in the consumption function ct+1(Mt+1W)at Mt+1=Mt+1. In turn, this suggests that numerical integration should be done twice—once for each case—to ensure that the integral is well behaved. In contrast, the naive Euler equation in (36) is discontinuous in ct(MtW).Whenusing numerical quadrature to evaluate the integral, for a given level of resources, some of the nodes will result in Mt+1≤Mt+1while others will result in the opposite case. For concreteness, say that 10 nodes are used and the five lowest nodes result in Mt+1≤Mt+1. Say also that for a slightly larger value of current resources perhaps only four nodes satisfy Mt+1≤Mt+1while now six invoke the alternative. When comparing the solution found in the two (close) values of current period resources, there will be a discontinuous change in the optimal consumption. In the current model, this would result in spurious downward kinks in the consumption function around a secondary kink. Appendix C: DC-EGM run times Figure 9illustrates the average estimation time spent to estimate ˆ δ.Resultsareshown for varying degrees of income uncertainty, ση∈{0001005}, and different values of the disutility of work parameter, δ∈{0105}. Appendix D: Proof of extreme value homotopy principle This appendix proves Theorem 3, which states that the value function and optimal decision rules in the presence of type I extreme value distributed taste shocks converge (in an appropriate sense to be defined below) to the value functions and decision rules of a Figure 9. Timing: income uncertainty. The plots illustrate the time spent to estimate the model. Results are shown for varying degree of smoothing, σε∈{001005}, and different values of the income variance, σ2 η∈{0001005}. The rest of parameters are at their baseline levels; see Table 1. Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 353 limiting problem without taste shocks. We prove Theorem 3for a more general class of problems than just the retirement consumption model, and therefore restate it below. Let εbe a random variable having a standardized type I extreme value distribution with the cumulative distribution function (CDF) given by F(ε)=exp−exp{−ε}(39) We have E{ε}=γ,whereγ=0577 is Euler’s constant and var(ε) =π2/6.Thenifσ is a positive scaling constant, σε will also be a type I extreme value distribution with expected value σγ and variance σ2π2/6. In the notation of the illustrative model in the paper, σcorresponds to the scaling parameter of the “perturbed” model σε. The homotopy convergence result we prove below holds for a considerably more general class of dynamic programming (DP) problems than the simple retirement exampleweanalyzedinSection2.1 or even the class defined in Appendix A,whereweassumed the continuous choice is a unidimensional variable and we imposed additional assumptions to ensure monotonicity of the savings function. In this appendix we consider a more general class of problems, though we do not strive for maximum possible generality so as to make our proof as straightforward as possible. Consider a finite horizon DP problem without type I extreme value taste shocks that we also refer to as the “unperturbed” DP problem. In the last period, T,theagent chooses a vector of kcontinuous choice variables c∈CT(ds),whereCT(ds) is a compact subset of a Rk,dis one of the discrete choices, and sis a potentially multidimensional vector of state variables in some Borel subset Sof a finite dimensional Euclidean space. We assume that the discrete choice dis an element of a finite choice set DT(s). Let uT(dcs)be a utility function that is continuous in cfor each sand each d∈DT(s) and a Borel measurable function of sfor each cand d. Then the value function in period Tis given by VT(s) =max d∈DT(s) max c∈CT(ds) uT(dcs) (40) Now consider time T−1and let pT(s|scd) be a Markov transition probability providing the conditional probability distribution over the state sat time Tgiven that the state vector at time T−1is s, the discrete choice is d, and the continuous choice is c.Define the conditional expectation of VT,EV T−1(dcs),by EV T−1(dcs)=VTspT∂s|dcs(41) whereweuse∂sto indicate the stochastic next period state variables over which this expectation is taken. In Assumption Cbelow, we assume that this conditional expectation exists and is continuous in cfor each s∈Sand d∈DT−1(s).Thenbybackward induction we can define the value function VT−1(s) and, continuing for each t∈{T−1T −20}, we can define the sequence of functions {Vt}recursively using Bellman’s equation, Vt(s) =max d∈Dt(s) max c∈Ct(ds)ut(dcs)+βVt+1spt+1∂s|dcs(42) where β≥0is the agent’s discount factor. 354 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) We make the following assumptions on this limiting DP problem without taste shocks that is sufficient to guarantee the existence of a well defined solution. Assumption B. The choice sets Dt(s) are all finite with a uniformly bounded number of elements Dgiven by D=max t∈{01T}sup s∈SDt(s)<∞(43) where |Dt(s)|denotes the number of elements in the finite set Dt(s). Assumption C. For each t∈{01T},each s∈S,and each d∈Dt(s),the function ut(dcs)is continuous in c,and for each t∈{12T −1},s∈S,and d∈Dt−1(s),the function EV t(dcs)given by EV t(dcs)=Vtspt∂s|dcs(44) is finite and continuous in c. Define the discrete choice-specific continuous choice function ct(ds) by ct(d s) =argmax c∈Ct(ds)ut(dcs)+βEV t+1(dcs)(45) and the optimal discrete decision rule δt(s) by δt(s) =argmax d∈Dt(s) utdct(d s) s+βEV t+1dct(d s) s(46) The overall optimal continuous decision rule ct(s) is then given by ct(s) =ctδt(s)s(47) The solution to the DP problem is given by the collection Γof the T+1value functions {V0V1VT},theT+1optimal continuous decision rules {c0c1cT},andtheT+1 optimal discrete decision rules {δ0δ1δT}. Nowwedefineafamilyofperturbed DP problems indexed by σ, the scale parameter of the type I extreme value distribution. Let εdenote a vector of i.i.d. extreme value random variables with the same dimension as |Dt(s)|, the number of elements in the finite choice set Dt(s). Assume the elements of DT(s) are ordered in some fashion and let ε(d) be the component of the vector εcorresponding to the choice of alternative d∈Dt(s). We will refer to ε(d) as the dth taste shock. Now consider the last period T. The value function VσT (s ε) is given by VσT (sε) =max d∈DT(s) max c∈CT(ds)uT(dcs)+σε(d)(48) Notice that VσT is now a function of the vector sand the vector ε∈R|DT(s)|.Ifthenumber of elements of DT(s) varies with s∈S, we can embed the vector εin RD,whereDis Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 355 the upper bound on the number of discrete choices by Assumption B.Wecanusethe convention that if |DT(s)|<Dfor some s∈S, the function VσT (s ε) depends only on the components of εcorresponding to the feasible choices d∈DT(s) and not on any components dthat are not elements of DT(s). The CDF F(ε)of the vector random variable εis given by the product of the univariate type I extreme value CDFs, that is, F(ε(1)     ε(D)) = D  d=1 exp−exp−ε(d)(49) To compute the expected value of VT(sε), we apply multivariate integration to get EV σT (dcs)=sεVtsεF∂εpT∂s|dcs =sσlog d∈DT(s) expuTdcT(s d)d/σpT∂s|dcs (50) where cT(s d) =argmaxc∈CT(ds) uT(dcs) is the choice-specific continuous choice function. The closed-form expression for the expectation over ε—the type I extreme value random variables—is a consequence of a property of extreme value random variables known as max stability, that is, the maximum of a finite collection of type I extreme value random variables has a (shifted) type I extreme value distribution. We refer to the log-sum formula inside the integral of the lower equation in (50)asthesmoothed max function. We now prove a key lemma that establishes a bound between the usual max function and the smoothed max function. Lemma 2 (Log-Sum Error Bounds). Let {v1vD}be any finite set of Dreal numbers and let σ>0be a constant.Then we have 0≤σlogD  d=1 exp{vd/σ}−max{v1vD}≤σlog(D) (51) Proof. Consider the shifted values vd−max(v1vD)≤0. It follows that logD  d=1 expvd−max{v1vD}/σ≤logD  d=1 exp{0}=log(D) (52) Define d∗=argmaxd(vd)and let J≥1denote the number of elements of Dfor which vd=vd∗. The lower bound is obtained from observing that logJ+ D  d=1d=d∗ expvd−max{v1vD}/σ≥0(53) 356 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) Combining (52)and(53) with the identity σlogD  d=1 expvd−max{v1vD}/σ =σlogD  d=1 exp{vd/σ}−max{v1vD} (54) concludes the proof.  Lemma 2is the key to all of our subsequent results and the key to Theorem 5since it shows that the difference between the max function and the smoothed max function is bounded by σlog(D) and this tends to 0as σ↓0. This will imply that the difference between the value functions and decision rules of the unperturbed limiting DP problem and the family of perturbed DP problems with extreme value distributed taste shocks will converge to zero as the scale of the extreme value taste shocks, σ,converges to 0. We can now define the value functions at all time periods for the perturbed problem as the sequence {Vσ0VσT },whereVσT is given by equation (48) and the other value functions are given by the Bellman recursion Vσt (sε) =max d∈Dt(s) max c∈Ct(ds)ut(dcs)+σε(d)+βEV σt+1(dcs)(55) where EV σt+1(dcs)is the conditional expectation of Vσt+1(sε) and is given by EV σt+1(dcs) =σslog d∈Dt+1(s) expvσt+1dcσt+1dss/σpt+1∂s|dcs(56) where vσt+1(dcs)=ut+1(dcs)+βEV σt+2(dcs) (57) and cσt+1(d s) is the choice-specific continuous choice rule given by cσt+1(d s) =argmax c∈Ct+1(ds)vσt+1(dcs)(58) Note that we used the max-stability property again to obtain the expression for EV σt+1(dcs)in equation (56), and we also note that due to the assumption that taste shocks are not only contemporaneously independent across different discrete choices dbut also intertemporally independent processes, it follows that the value of the εstate vector at time tdoes not affect the conditional expectation of Vσt+1and, hence, does not enter the conditional expectation EV σt+1(dcs).Thisconditional independence restriction on the εshocks is critical to all results that follow below. Having defined the set of value functions for the family of perturbed problems, we can define the full solution of the perturbed problem as the collection Γσconsisting of Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 363 that is, cis one of the limit points of the {cσt (s ε)}. Now suppose that the pair (d c) is not optimal, that is, d=δt(s) and c/∈ct(s). Then following the same argument as in Lemma 4 we can obtain a contradiction, because following the same argument we can show that equation (86) holds, but if (d c) are not optimal, this would contradict the fact that Vt(s) attains the maximum over all feasible (d c) values in equations (45)and(46).  This concludes the proof of Theorem 5. References Adda, J., C. Dustmann, and K. Stevens (2017), “The career costs of children.” Journal of Political Economy, 125 (2), 293–337. [318,320] Aguirregabiria, V. and P. Mira (2010), “Dynamic discrete choice structural models: A survey.” Journal of Econometrics, 156 (1) 38–67. [320] Ameriks, J., J. S. Briggs, A. Caplin, M. D. Shapiro, and C. Tonetti (2015), “Long-term care utility and late in life saving.” Working Paper 20973, National Bureau of Economic Research. [321,332] Barillas, F. and J. Fernández-Villaverde (2007), “A generalization of the endogenous grid method.” Journal of Economic Dynamics and Control, 31 (8), 2698–2712. [318,332] Bertsekas, D. P., Y. Lee, B. van Roy, and J. N. Tsitsiklis (1997), “A neuro-dynamic programming approach to retailer inventory management.” In Proceedings of the IEEE Conference on Decision and Control, Vol. 4, 4052–4057. [318] Bound, J., T. Stinebrickner, and T. Waidmann (2010), “Health, economic resources and the work decisions of older men.” Journal of Econometrics, 156 (1), 106–129. [319] Carroll, C. D. (2006), “The method of endogenous gridpoints for solving dynamic stochastic optimization problems.” Economics Letters, 91 (3), 312–320. [318,326,338, 340] Carroll, C. D. and W. Dunn (1997), “Data sources and solution methods for unemployment expectations, jumping (S, s) triggers, and household balance sheets.” In NBER Macroeconomics Annual, Vol. 12, 165–230, National Bureau of Economic Research, Cambridge. [318] Casanova, M. (2010), “Happy together: A structural model of couples’ joint retirement choices.” Working paper, Department of Economics, UCLA. [320] Clausen, A. and C. Strub (2013), “A general and intuitive envelope theorem.” Working Paper 248, Edinburgh School of Economics. [319,323] Deaton, A. (1991), “Saving and liquidity constraints.” Econometrica, 59 (5), 1221–1248. [321,322] Druedahl, J. and C. N. Jørgensen (2015), “Precautionary borrowing and the credit card debt puzzle.” Unpublished working paper, Department of Economics, University of Copenhagen. [321,348] 364 Iskhakov, Jørgensen, Rust, and Schjerning Quantitative Economics 8 (2017) Druedahl, J. and T. H. Jørgensen (2017), “A general endogenous grid method for multidimensional models with non-convexities and constraints.” Journal of Economic Dynamics and Control, 74, 87–107. [347,348] Dubin, J. A. and D. L. McFadden (1984), “An econometric analysis of residential electric appliance holdings and consumption.” Econometrica, 52 (2), 345–362. [318] Ejrnæs, M. and T. H. Jørgensen (2016), “Saving behavior around intended and unintended childbirths.” Working paper, University of Copenhagen. [320,321,348] Fella, G. (2014), “A generalized endogenous grid method for non-smooth and nonconcave problems.” Review of Economic Dynamics, 17 (2), 329–344. [318,319,332,338, 339,350] French, E. and J. B. Jones (2011), “The effects of health insurance and self-insurance on retirement behavior.” Econometrica, 79 (3), 69–732. [318] Gourinchas, P.-O. and J. A. Parker (2002), “Consumption over the life cycle.” Econometrica, 70 (1), 47–89. [345] Hintermaier, T. and W. Koeniger (2010), “The method of endogenous gridpoints with occasionally binding constraints among endogenous variables.” Journal of Economic Dynamics and Control, 34 (10), 2074–2088. [318] Imai, S. and M. P. Keane (2004), “Intertemporal labor supply and human capital accumulation.” International Economic Review, 45 (2), 601–641. [345] Iskhakov, F. (2015), “Multidimensional endogenous gridpoint method: Solving triangular dynamic stochastic optimization problems without root-finding operations.” Economics Letters, 135, 72–76. [318,347] Iskhakov, F. and M. Keane (2016), “An analysis of the Australian social security system using a life-cycle model of labor supply with asset accumulation and human capital.” Working paper, CEPAR. [320,321,348] Jørgensen, T. H. (2013), “Structural estimation of continuous choice models: Evaluating the EGM and MPEC.” Economics Letters, 119 (3), 287–290. [318,332] Jørgensen, T. H. (2014), “Leisure complementarities in retirement.” Working paper, University of Copenhagen. [348] Ljungqvist, L. and T. Sargent (2005), “Lotteries for consumers versus lotteries for firms.” In Frontiers in Applied General Equilibrium Modeling: In Honor of Herbert Scarf (T. Kehoe, T. Srinivasan, and J. Whalley, eds.), 95–118, Cambridge University Press, Cambridge. [320] Ludwig, A. and M. Schön (2013), “Endogenous grids in higher dimensions: Delaunay interpolation and hybrid methods.” Working Paper 65, University of Cologne. [318] McFadden, D. (1973), “Conditional logit analysis of qualitative choice behavior.” In Frontiers in Econometrics (P. Zarembka, ed.), Academic Press, New York. [319,320,333,334] Quantitative Economics 8 (2017) DC-EGM method for dynamic choice models 365 Meghir, C. and L. Pistaferri (2004), “Income variance dynamics and heterogeneity.” Econometrica, 72 (1), 1–32. [345] Milgrom, P. and C. Shannon (1994), “Monotone comparative statics.” Econometrica,62 (1), 157–180. [350,351] Oswald, F. (2016), “Regional shocks, migration and homeownership.” Working paper, Science Po. [320] Phelps, E. (1962), “The accumulation of risky capital: A sequential utility analysis.” Econometrica, 30 (4), 729–743. [319,321,322,323] Prescott, E. (2005), “Nonconvexities in quantitative general equilibrium studies of business cycles.” In Frontiers in Applied General Equilibrium Modeling: In Honor of Herbert Scarf (T. Kehoe, T. Srinivasan, and J. Whalley, eds.), 95–118, Cambridge University Press, Cambridge. [320] Rogerson, R. (1988), “Indivisible labor, lotteries, and equilibrium.” Journal of Monetary Economics, 21, 3–16. [320] Rust, J. (1987), “Optimal replacement of GMC bus engines: An empirical model of Harold Zurcher.” Econometrica, 55 (5), 999–1033. [318,319,343] Rust, J. (1988), “Maximum likelihood estimation of discrete control processes.” SIAM Journal on Control and Optimization, 26 (5), 1006–1023. [343] Rust, J. (1994), “Structural estimation of Markov decision processes.” In Handbook of Econometrics, Vol. 4 (D. M. R. Engle, ed.), 3081–3143, Chapter 51, Elsevier Science B.V., Amsterdam. [320] White, M. N. (2015), “The method of endogenous gridpoints in theory and practice.” Journal of Economic Dynamics and Control, 60, 26–41. [347] Yao, J., A. Fagereng, and G. Natvik (2015), “Housing, debt and the marginal propensity to consume.” Working paper, Johns Hopkins University. [321,348] Co-editor Karl Schmedders handled this manuscript. Manuscript received 30 November, 2015; final version accepted 14 November, 2016; available online 27 December, 2016.