Abstract¶
In a risky world, a pessimist assumes the worst will happen. Someone who ignores risk altogether is an optimist. Consumption decisions are mathematically simple for both the pessimist and the optimist because both behave as if they live in a riskless world. A consumer who is a realist (that is, who wants to respond optimally to risk) faces a much more difficult problem, but (under standard conditions) will choose a level of spending somewhere between that of the pessimist and the optimist. We use this fact to redefine the space in which the realist searches for optimal consumption rules. The resulting solution accurately represents the numerical consumption rule over the entire interval of feasible wealth values with remarkably few computations.
Introduction¶
Solving a consumption-saving problem using numerical methods requires the modeler to choose how to represent a policy function. In the stochastic case, where analytical solutions are generally not available, a common approach is to use low-order polynomial splines that exactly match the function at a finite set of gridpoints, and then to assume that interpolated or extrapolated versions of that spline represent the function well at the continuous infinity of unmatched points. Carroll (2006) developed the endogenous gridpoints method (EGM), which has become a standard tool for computing consumption at gridpoints determined endogenously using the Euler equation.
Unfortunately, this endogenous gridpoints solution is not very well-behaved outside the original range of gridpoints (though other common solution methods are no better outside their own predefined ranges). Figure 1 demonstrates the point. The figure shows the approximated precautionary component of savings, the amount by which the realist consumes less than an optimist with the same expected income path. Theory proves that precautionary saving is always positive, yet the linearly extrapolated numerical approximation eventually predicts negative precautionary saving. However, in the presence of uncertainty, the consumption-saving rule must be evaluated outside any prespecified grid. This is because large positive shock realizations push next period’s assets for a sufficiently wealthy individual beyond the grid boundaries.

Figure 1:For Large Enough Resources , Predicted Precautionary Saving is Negative (Oops!)
This error cannot be fixed by extending the upper gridpoint. While extrapolation techniques can prevent this from being fatal, the problem is often dealt with using inelegant methods whose implications for accuracy are difficult to gauge.
This paper argues that, in the standard consumption problem, a better approach is to rely upon the fact that without uncertainty, the optimal consumption function has a simple analytical solution. The key insight is that, under standard assumptions, the consumer who faces an uninsurable labor income risk will consume less than a consumer with the same path for expected income but who does not perceive any uncertainty. Following Leland (1968), Sandmo (1970), and Kimball (1990), the ‘realistic’ consumer, who does perceive the risks, will engage in ‘precautionary saving,’ so the perfect foresight riskless solution provides an upper bound to the solution that will actually be optimal. A lower bound is provided by the behavior of a consumer who has the subjective belief that the future level of income will be the worst that it can possibly be. This consumer, too, behaves according to the convenient analytical perfect foresight solution, but his certainty is that of a pessimist perfectly confident in his pessimism.
We build on bounds for the consumption function and limiting MPCs established by Stachurski & Toda (2019), Ma et al. (2020), Carroll (2009), and Ma & Toda (2021) in buffer-stock theory. Using results from Carroll & Shanker (2024), we show how to use these bounds to constrain the shape and characteristics of the solution to the ‘realist’ problem characterized by Carroll (1997). Imposition of these constraints clarifies and speeds the solution of the realist’s problem. For comparison, we use the endogenous gridpoints method Carroll, 2006 as our benchmark, which computes consumption at gridpoints determined endogenously using the Euler equation.
After showing how to use the method in the baseline case, we show how to refine it to encompass an even tighter theoretical bound, and how to extend it to solve a problem in which the consumer faces both labor income risk and rate-of-return risk.
The Realist’s Problem¶
Consider a consumer who correctly perceives all risks. The consumer has CRRA utility with risk aversion parameter :
This utility function satisfies prudence (), which induces precautionary saving. The consumer maximizes expected lifetime utility:
subject to , where denotes market resources and denotes assets. We focus on resources of the form , where denotes the interest rate, and labor income. Initially we take to be deterministic, and relax this later.
While our method can be adapted to a range of stochastic labor income processes, to fix ideas we suppose income evolves via the Friedman-Muth process (Friedman (1957) distinguished permanent from transitory income; Muth (1960) provided the stochastic framework). That is, where denotes permanent labor income and a transitory component. Permanent income growth is given by , . Here is the deterministic permanent income growth factor, while are permanent shocks with mean unity and bounded support where . Transitory shocks take value 0 with probability (unemployment) or otherwise, with .
This problem can be rewritten (see Carroll (2020) for a proof) in a more convenient form in which choice and state variables are normalized by the level of permanent income, e.g., replacing with . When that is done, the Bellman equation for the transformed version of the consumer’s problem is
with Euler equation .
Carroll & Shanker (2024) gives conditions for a finite solution of the problem with a Friedman-Muth process. Consider the case of time-invariant , , and , and define the absolute patience factor . Then a finite solution requires: (i) finite-value-of-autarky condition (FVAC) , (ii) absolute-impatience condition (AIC) , (iii) return-impatience condition (RIC) , (iv) growth-impatience condition (GIC) , and (v) finite-human-wealth condition (FHWC) . These patience conditions ensure the consumption bounds and limiting MPCs used in our method.
For expositional simplicity, in the numerical results that follow, we assume and set , (no permanent income growth or shocks). The figures display the next-to-last period of a finite horizon problem, where the last-period analytical solution provides exact boundary conditions. The method extends naturally to the infinite-horizon case and to general parameter configurations.
The Method of Moderation¶
The Optimist, the Pessimist, and the Realist¶
As a preliminary to our solution, define [1] as end-of-period human wealth (the present discounted value of future labor income) for a perfect foresight version of the problem of a ‘risk optimist:’ a consumer who believes with perfect confidence that the shocks will always take their expected value of 1, . The solution to a perfect foresight problem of this kind takes the form
for a constant minimal marginal propensity to consume .[2] We similarly define [3] as ‘minimal human wealth,’ the present discounted value of labor income if the shocks were to take on their worst value in every future period . We refer to a consumer whose expects to encounter this sequence of shocks as a ‘pessimist’. Their consumption decision rule is given by
We will call a ‘realist’ the consumer who correctly perceives the true probabilities of the future risks and optimizes accordingly.
A first useful point is that, for the realist, a lower bound for the level of market resources is the natural borrowing constraint derived by Aiyagari (1994) and Huggett (1993), because if equalled this value then there would be a positive finite chance (however small) of receiving in every future period, which would require the consumer to set to zero in order to guarantee that the intertemporal budget constraint holds. Since consumption of zero yields infinite marginal utility, Zeldes (1989) and Deaton (1991) show that the solution to the realist consumer’s problem is not well defined for values of , and the limiting value of the realist’s is zero as (established in Carroll & Shanker (2024)).
It is convenient to define ‘excess’ market resources as the amount by which actual resources exceed the lower bound, and ‘excess’ human wealth as the amount by which mean expected human wealth exceeds guaranteed minimum human wealth:
We now rewrite the optimal consumption rules for the two perfect foresight problems in terms of excess resources and human wealth. The ‘pessimist’ perceives human wealth to be equal to its minimum feasible value with certainty, and so consumes a constant fraction of current excess resources
The ‘optimist,’ on the other hand, pretends that there is no uncertainty about future income, and therefore consumes the same fraction out of current excess resources and excess human wealth
The Moderation Ratio¶
The pessimist expects the worst possible income in every future period with certainty, and must finance all future consumption through saving; this generates the most aggressive saving behavior. A realist, by contrast, can reoptimize as uncertainty resolves each period, so need not prepare for the worst with certainty. At the same time, the adverse outcome remains possible, so even a wealthy realist maintains some precautionary saving: a sufficiently well-off individual is nearly (but never completely) self-insured, and thus mostly smooths consumption like the optimist. The realist therefore consumes strictly more than the pessimist but strictly less than the optimist at every wealth level, as shown in Figure 2.
The proof is more difficult than might be imagined, but the necessary work is done in Carroll & Shanker (2024) so we will take the proposition as a fact:
Subtracting in each of these inequalities and using equations (7) and (8) gives
where the fraction in the middle of the last inequality is the moderation ratio measuring how close the realist’s consumption is to the optimist’s behavior (the numerator is the gap between the realist and pessimist) relative to the maximum possible gap between optimist and pessimist. When , the realist behaves like the pessimist (maximum precautionary saving); when , the realist behaves like the optimist (no precautionary saving). Carroll & Kimball (1996) and Carroll & Shanker (2024) establish that under bounded shocks, strictly for all . Defining (which can range from to ), the object in the middle of the last inequality is
and we now define
which has the virtue that it is asymptotically linear in the limit as approaches .[4] Since , the ratio is the odds ratio, and is the log odds ratio, the same transformation that underpins logit regression in econometrics. The logit maps to with inverse sigmoid ; log maps to .
Given , the consumption function can be recovered from
Thus, the method of moderation (MoM) is to calculate at the points corresponding to the log of the points defined above, and then using these to construct an interpolating approximation from which we indirectly obtain our approximated consumption rule (an approximation to the true ) by substituting for in equation (13).
Because this method relies upon the fact that the problem is easy to solve if the decision maker has unreasonable views (either in the optimistic or the pessimistic direction), and because the correct solution is always between these immoderate extremes, we call our solution procedure the ‘method of moderation.’
Results are shown in Figure 3; a reader with very good eyesight might be able to detect the barest hint of a discrepancy between the Truth and the Approximation at the far righthand edge of the figure, a stark contrast with the calamitous divergence evident in Figure 1.

Figure 3:Extrapolated Constructed Using the Method of Moderation
Extensions¶
A Tighter Upper Bound¶
The method described above does not guarantee that the approximated consumption function respects the constraint , where is the MPC at the natural borrowing constraint. Near the constraint, the optimist’s bound becomes loose because it is calibrated to the low MPC that prevails at high wealth. A tighter upper bound for low-wealth consumers eliminates this slack.
Carroll & Shanker (2024) derives an explicit formula for this maximal MPC: where is the unemployment probability derived by Carroll & Toche (2009), extending the explicit limiting MPC formulas established in buffer-stock theory by Ma & Toda (2021). Strict concavity of the consumption function implies for low wealth, while the optimist’s bound is tighter for high wealth.
As shown in Figure 4, the two upper bounds intersect at the cusp point:
This intersection occurs in the feasible region since under the stated conditions (the MPC is highest when wealth is lowest).
For , define the low-resource moderation ratio using the tighter bound:
This ratio measures how far consumption per unit of wealth exceeds the optimist’s MPC, relative to the maximum possible excess. Applying the logit transformation and interpolating as before yields consumption satisfying both upper bounds throughout.
For computational robustness, construct a three-piece approximation: below the cusp using the tight bound, near the cusp using Hermite interpolation Fritsch & Carlson, 1980 (see Section 4.3) matching levels and slopes at adjacent gridpoints, above the cusp using the original optimist bound. This ensures continuous, differentiable consumption functions respecting all theoretical constraints.
The MoM also contributes to literature which aims to improve the precision of dynamic stochastic optimization solutions, such as Chipeniuk (2020). Table 1 demonstrates the accuracy gains obtained with the method between each pair of grid points , as well as for the extrapolation of the consumption function to . Displayed is the average absolute difference between the true consumption function and each approximation. In each region the MoM produces an approximation which is more than an order of magnitude more accurate than the basic EGM.
Table 1:Maximum absolute approximation errors by interval. Orders of magnitude in parentheses.
| Method | |||||
|---|---|---|---|---|---|
| EGM | 8.6(-3) | 1.8(-4) | 2.5(-5) | 7.3(-6) | 1.1(-1) |
| MoM | 2.9(-3) | 4.3(-6) | 6.6(-7) | 1.3(-7) | 2.4(-3) |
Value Function¶
Often it is useful to know the value function as well as the consumption rule. Fortunately, many of the tricks used when solving for the consumption rule have a direct analogue in approximation of the value function. Define the inverse value function transformation
which under perfect foresight equals (linear in market resources). Analogously to the consumption moderation ratio, we define a value moderation ratio that measures the proximity of the realist’s inverse value to the optimist’s (see equation (6) in the Appendix for the precise definition). The logit transformation is applied as before. Interpolate at gridpoints and invert to obtain
Hermite Interpolation¶
The numerical accuracy of the method of moderation depends critically on the quality of function approximation between gridpoints Santos, 2000. Our bracketing approach complements work that bounds numerical errors in dynamic economic models Judd et al., 2017. Although linear interpolation that matches the level of at the gridpoints is simple, Hermite interpolation Fritsch & Carlson, 1980 offers a considerable advantage.
The moderation ratio derivative measures how quickly the realist approaches the optimist as resources increase. Differentiating (11) with respect to we obtain
Rearranging this yields a moderation form for the marginal propensity to consume:
where
Theory guarantees at gridpoints where the Euler equation holds. At very high wealth, and the MPC approaches ; near the borrowing constraint, and the MPC approaches .
For Hermite interpolation, compute at gridpoints, then derive for slope data. By matching both the level and the derivative of the function at the gridpoints, Benveniste & Scheinkman (1979) and Milgrom & Segal (2002) show that the consumption rule derived from such interpolation numerically satisfies the Euler equation at each gridpoint for which the problem has been solved. These techniques extend naturally to the value function approximation.
For monotone cubic Hermite schemes Fritsch & Carlson, 1980Fritsch & Butland, 1984Boor, 2001, theoretical slopes may be adjusted to enforce monotonicity Hyman, 1983. The Fritsch-Carlson algorithm modifies slopes at local extrema, while Fritsch-Butland uses harmonic mean weighting. Both preserve the shape-preserving property essential for consumption functions that must be strictly increasing.
Stochastic Rate of Return¶
For i.i.d. returns with ,[5] Samuelson (1969)Merton (1969)Merton (1971) showed that for a consumer without labor income (or with perfectly forecastable labor income) the consumption function is linear, with an MPC . See Carroll (2020)Benhabib & Bisin (2018)Chipeniuk et al. (2021) for extensions. Simply substitute this stochastic MPC for throughout our formulas.

Figure 5:Effect of Return Uncertainty on Consumption Bounds
Conclusion¶
The method proposed here is not universally applicable. For example, the method cannot be used for problems for which upper and lower bounds to the ‘true’ solution are not known. But many problems do have obvious upper and lower bounds, and in those cases (as in the consumption example used in the paper), the method may result in substantial improvements in accuracy and stability of solutions. The method of moderation is efficient because the transformed moderation ratio is better-behaved than consumption, requiring fewer gridpoints. As the accuracy results in Table 1 confirm, these gains compound: the MoM approximation produces errors more than an order of magnitude smaller than the basic EGM across all grid intervals, including the extrapolation region where standard methods fail most severely.
Setting (the optimist’s assumption), human wealth in infinite-horizon is if . When , .
The MPC of the perfect foresight consumer: infinite-horizon .
Setting , minimal human wealth is if . When , .
Under the GIC, is asymptotically linear with slope as . We extrapolate linearly using the boundary slope, preserving and hence throughout the extrapolation domain.
Here is the log risk-free rate and is the equity premium (the expected excess log return). This parametrization ensures that , so that increasing constitutes a mean-preserving spread of the level of the return. The pessimist and optimist still perceive their income streams with certainty, but both face the same stochastic return; thus the Merton-Samuelson result applies to them and their consumption functions remain linear. The realist, however, faces both labor income uncertainty and rate-of-return risk, so the moderation ratio captures the combined precautionary response to both sources of uncertainty. All moderation ratio calculations proceed identically. Extensions to serially correlated returns require tracking the return state as an additional state variable, complicating the analysis but not fundamentally altering the approach. As Figure 5 shows, consumption remains bounded between the pessimist and the optimist, each of which consume slightly less in the face of return uncertainty.
- Carroll, C. D. (2006). The method of endogenous gridpoints for solving dynamic stochastic optimization problems. Economics Letters, 91(3), 312–320. 10.1016/j.econlet.2005.09.013
- Leland, H. E. (1968). Saving and Uncertainty: The Precautionary Demand for Saving. Quarterly Journal of Economics, 82(3), 465–473. 10.2307/1879518
- Sandmo, A. (1970). The Effect of Uncertainty on Saving Decisions. Review of Economic Studies, 37(3), 353–360. 10.2307/2296725
- Kimball, M. S. (1990). Precautionary Saving in the Small and in the Large. Econometrica, 58(1), 53–73. 10.2307/2938334
- Stachurski, J., & Toda, A. A. (2019). An Impossibility Theorem for Wealth in Heterogeneous-Agent Models with Limited Heterogeneity. Journal of Economic Theory, 182, 1–24. 10.1016/j.jet.2019.04.001
- Ma, Q., Stachurski, J., & Toda, A. A. (2020). The Income Fluctuation Problem and the Evolution of Wealth. Journal of Economic Theory, 187, 105003. 10.1016/j.jet.2020.105003
- Carroll, C. D. (2009). Precautionary Saving and the Marginal Propensity to Consume Out of Permanent Income. Journal of Monetary Economics, 56(6), 780–790. 10.1016/j.jmoneco.2009.06.016
- Ma, Q., & Toda, A. A. (2021). A Theory of the Saving Rate of the Rich. Journal of Economic Theory, 192, 105193. 10.1016/j.jet.2021.105193
- Carroll, C. D., & Shanker, A. (2024). Theoretical Foundations of Buffer Stock Saving (Revise and Resubmit, Quantitative Economics). Johns Hopkins University. https://llorracc.github.io/BufferStockTheory/BufferStockTheory.pdf
- Carroll, C. D. (1997). Buffer-Stock Saving and the Life Cycle/Permanent Income Hypothesis. Quarterly Journal of Economics, 112(1), 1–55. 10.1162/003355397555109
- Friedman, M. (1957). A Theory of the Consumption Function. Princeton University Press. 10.1515/9780691188485
- Muth, J. F. (1960). Optimal Properties of Exponentially Weighted Forecasts. Journal of the American Statistical Association, 55(290), 299–306. 10.1080/01621459.1960.10482064
- Carroll, C. D. (2020). Solving microeconomic dynamic stochastic optimization problems [Techreport]. Johns Hopkins University. https://www.econ2.jhu.edu/people/ccarroll/SolvingMicroDSOPs.pdf
- Aiyagari, S. R. (1994). Uninsured Idiosyncratic Risk and Aggregate Saving. Quarterly Journal of Economics, 109(3), 659–684. 10.2307/2118417
- Huggett, M. (1993). The Risk-Free Rate in Heterogeneous-Agent Incomplete-Insurance Economies. Journal of Economic Dynamics and Control, 17(5–6), 953–969. 10.1016/0165-1889(93)90024-m

