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 realist (someone 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 pessimist’s and the optimist’s. 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, investment, portfolio choice, or similar intertemporal optimization problem using numerical methods generally requires the modeler to choose how to represent a policy or value 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 (and maybe some derivatives) 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.
This paper argues that a better approach in the standard consumption problem 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 as being attached to that future income. The ‘realistic’ consumer, who does perceive the risks, will engage in ‘precautionary saving’ Leland, 1968Sandmo, 1970Kimball, 1990, 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 in buffer-stock theory and related work Stachurski & Toda, 2019Ma et al., 2020. Using results from Carroll & Shanker (2024), we show how to use these upper and lower bounds to tightly constrain the shape and characteristics of the solution to problem of the ‘realist’ Carroll, 1997. Imposition of these constraints can clarify and speed the solution of the realist’s problem.
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¶
We assume that truly optimal behavior in the problem facing the consumer who understands all his risks is captured by[1]
subject to
where
and the exogenous variables evolve according to the Friedman-Muth Income Process[2]
where the permanent shocks are independently and identically distributed with mean and support on , with , and the transitory shocks are independently distributed with mean and bounded support , with .
It turns out (see Carroll (2020) for a proof) that this problem can be rewritten in a more convenient form in which choice and state variables are normalized by the level of permanent income, e.g., using nonbold font for normalized variables, . When that is done, the Bellman equation for the transformed version of the consumer’s problem is
and because we have not imposed a liquidity constraint, the solution satisfies the Euler equation
For the remainder of the paper we will assume that permanent income grows by the permanent growth shock , where is the deterministic permanent growth factor and is the idiosyncratic permanent shock. For convenience, we define the absolute patience factor as . A finite solution requires Carroll & Shanker, 2024: (i) the finite-value-of-autarky condition (FVAC) ; (ii) the absolute-impatience condition (AIC) ; (iii) the return-impatience condition (RIC) ; (iv) the growth-impatience condition (GIC) ; and (v) the finite-human-wealth condition (FHWC) . These conditions ensure existence of upper and lower bounds on consumption Carroll, 2001Stachurski & Toda, 2019 and pin down limiting MPCs Ma & Toda, 2021. Under perfect foresight with , FVAC becomes , the GIC coincides with the AIC, and the FHWC reduces to .
Benchmark: The Method of Endogenous Gridpoints¶
For comparison to our new solution method, we use the endogenous gridpoints solution to the microeconomic problem presented in Carroll (2006). That method computes the level of consumption at a set of gridpoints for market resources that are determined endogenously using the Euler equation. The consumption function is then constructed by linear interpolation among the gridpoints thus found. Extensions of this method include multi-dimensional problems Barillas & Fernández-Villaverde, 2007, occasionally binding constraints Hintermaier & Koeniger, 2010, non-smooth and non-concave problems Fella, 2014, discrete-continuous choice models Iskhakov et al., 2017, and comprehensive treatments of theory and practice White, 2015. For shock discretization in numerical solutions, standard methods include Tauchen & Hussey, 1991Tauchen, 1986.
Carroll (2020) describes a specific calibration of the model and constructs a solution using five gridpoints chosen to capture the structure of the consumption function reasonably well at values of near the infinite-horizon target value (See those notes for details).[3]
Unfortunately, this endogenous gridpoints solution is not very well-behaved outside the original range of gridpoints targeted by the solution method. (Though other common solution methods are no better outside their own predefined ranges). Figure 1 demonstrates the point by plotting the amount of precautionary saving implied by a linear extrapolation of our approximated consumption rule (the consumption of the perfect foresight consumer minus our approximation to optimal consumption under uncertainty, ). Although theory proves that precautionary saving is always positive, the linearly extrapolated numerical approximation eventually predicts negative precautionary saving (at the point in the figure where the extrapolated locus crosses the horizontal axis).

Figure 1:For Large Enough , Predicted Precautionary Saving is Negative (Oops!)
This error cannot be fixed by extending the upper gridpoint; in the presence of serious uncertainty, the consumption rule will need to be evaluated outside of any prespecified grid (because starting from the top gridpoint, a large enough realization of the uncertain variable will push next period’s realization of assets above that top; a similar argument applies below the bottom gridpoint). While a judicious extrapolation technique can prevent this problem from being fatal (for example by carefully excluding negative precautionary saving), the problem is often dealt with using inelegant methods whose implications for the accuracy of the solution are difficult to gauge.
The Method of Moderation¶
The Optimist, the Pessimist, and the Realist¶
As a preliminary to our solution, define [4] 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 period- 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[5]
for a constant minimal marginal propensity to consume given below.[6] We similarly define [7] 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 or (which we define as corresponding to the beliefs of a ‘pessimist’).
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 Aiyagari, 1994Huggett, 1993, because if equalled this value then there would be a positive finite chance (however small) of receiving or 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 negative infinite utility, the solution to the realist consumer’s problem is not well defined for values of Zeldes, 1989Deaton, 1991, and the limiting value of the realist’s is zero as .
Given this result, it will be 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 can now transparently define the optimal consumption rules for the two perfect foresight problems, those of the ‘optimist’ and the ‘pessimist.’ The ‘pessimist’ perceives human wealth to be equal to its minimum feasible value with certainty, so consumption is given by the perfect foresight solution
The ‘optimist,’ on the other hand, pretends that there is no uncertainty about future income, and therefore consumes
The Consumption Function¶
It seems obvious that the spending of the realist will be strictly greater than that of the pessimist and strictly less than that of the optimist. Figure 2 illustrates the proposition for the consumption rule in period .

Figure 2:Moderation Illustrated:
The proof is more difficult than might be imagined, but the necessary work is done in Carroll & Shanker (2024)[8] so we will take the proposition as a fact and proceed by manipulating the inequality:
where the fraction in the middle of the last inequality is the ratio of actual precautionary saving (the numerator is the difference between perfect-foresight consumption and optimal consumption in the presence of uncertainty) to the maximum conceivable amount of precautionary saving (the amount that would be undertaken by the pessimist who consumes nothing out of any future income beyond the perfectly certain component).[9] 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 .[10]
Given , the consumption function can be recovered from
Thus, the procedure 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 by substituting for in equation (14).
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
The 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.
Consider the perfect foresight (or “optimist’s”) problem in period . Using the fact that in a perfect foresight model the growth factor for consumption is constant, we can use to calculate the value function in period :
where is the present discounted value of consumption, normalized by current consumption. Using the fact demonstrated in Carroll & Shanker (2024) that [11], a similar function can be constructed recursively for earlier periods, yielding the general expression
This can be transformed as
We apply the same transformation to the value function for the problem with uncertainty (the “realist’s” problem):
and an excellent approximation to the value function can be obtained by calculating the values of at the same gridpoints used by the consumption function approximation, and interpolating among those points.
However, as with the consumption approximation, we can do even better if we realize that the function for the optimist’s problem is an upper bound for the function in the presence of uncertainty, and the value function for the pessimist is a lower bound. Analogously to (12), define an upper-case
and an upper-case version of the equation in (13):
and if we approximate these objects then invert them (as above with the and functions) we obtain a very high-quality approximation to our inverted value function at the same points for which we have our approximated value function:
from which we obtain our approximation to the value function as .
Extensions¶
A Tighter Upper Bound¶
Carroll & Shanker (2024) derives an upper limit [12] for the MPC as approaches its lower bound, extending the explicit limiting MPC formulas established in buffer-stock theory Ma & Toda, 2021. Using this fact plus the strict concavity of the consumption function yields the proposition that
The solution method described above does not guarantee that approximated consumption will respect this constraint between gridpoints, and a failure to respect the constraint can occasionally cause computational problems in solving or simulating the model. Here, we describe a method for constructing an approximation that always satisfies the constraint.
Defining as the cusp point where the two upper bounds intersect (where ):
we want to construct a consumption function for that respects the tighter upper bound:
Again defining , the object in the middle of the inequality is
As approaches , converges to 0, while as approaches , approaches 1.
As before, we can derive an approximated consumption function; call it . This function will clearly do a better job approximating the consumption function for low values of while the previous approximation will perform better for high values of .
For middling values of it is not clear which of these functions will perform better. However, an alternative is available which performs well. Define the highest gridpoint below as and the lowest gridpoint above as . Then there will be a unique interpolating polynomial that matches the level and slope of the consumption function at these two points. Call this function .
Using indicator functions that are zero everywhere except for specified intervals,
we can define a well-behaved approximating consumption function
This just says that, for each interval, we use the approximation that is most appropriate. The function is continuous and once-differentiable everywhere, and is therefore well behaved for computational purposes.
We now construct an upper-bound value function implied for a consumer whose spending behavior is consistent with the refined upper-bound consumption rule.
For , this consumption rule is the same as before, so the constructed upper-bound value function is also the same. However, for values matters are slightly more complicated.
Start with the fact that at the cusp point,
But for all ,
and we assume that for the consumer below the cusp point consumption is given by so for
which is easy to compute because where is as defined above because a consumer who ends the current period with assets exceeding the lower bound will not expect to be constrained next period. (Recall again that we are merely constructing an object that is guaranteed to be an upper bound for the value that the ‘realist’ consumer will experience.) At the gridpoints defined by the solution of the consumption problem can then construct
which yields the appropriate vector for constructing and . The rest of the procedure is analogous to that performed for the consumption rule and is thus omitted for brevity.

Figure 4:A Tighter Upper Bound
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, 1980Fritsch & Butland, 1984Hyman, 1983 offers a considerable advantage. By matching both the level and the derivative of the function at the gridpoints, the consumption rule derived from such interpolation numerically satisfies the Euler equation at each gridpoint for which the problem has been solved Benveniste & Scheinkman, 1979Milgrom & Segal, 2002.
The theoretical foundation for this approach rests on the moderation ratio . This ratio captures how far the realist’s consumption lies between the perfect-foresight upper bound and the pessimistic lower bound. Since its log-gap argument moves with cash-on-hand relative to human wealth, the derivative measures how quickly the realist closes this gap as available resources shift:
For numerical stability and interpretation on an unbounded scale, we apply the transformation defined in (13) to the moderation ratio. The derivative of this transformation is:
This expression provides the slope data required for cubic Hermite interpolation.[13] To recover the realist consumption function from the interpolated transformation, we use the relationship established in (14). To recover the realist marginal propensity to consume, we differentiate with respect to the transformation:
Since we have from the Hermite interpolation, we can compute the realist MPC directly from the interpolated transformation derivatives. This expression reveals that the realist MPC is moderated away from by the transformation derivative, weighted by the ratio of human wealth to excess market resources. When uncertainty is low, the transformation derivative approaches zero and the realist MPC approaches the optimistic benchmark. Results showing identical MPCs under certain conditions Chipeniuk et al., 2021 help explain why simple linear bounds work so well in many cases.
We can apply analogous techniques to the value function. Under perfect foresight, consumption grows at a constant rate, making constant. This implies that the inverse value function for the optimist has a constant slope with respect to cash-on-hand:
The result in (35) has important implications for the structure of the value function.[14]
Consider the value analogue of the moderation ratio, which compares the realist’s value to the optimist’s. The derivative of this ratio with respect to the log-gap argument is:
where from (35) and is the derivative of the realist’s inverse value function.
Applying the same transformation to the value-based moderation ratio converts the bounded ratio into an unconstrained slope:
Since and are functional inverses, their derivatives are linked by chain-rule relationships. The first derivative is:
The first- and second-derivative connections are:
Moreover, if we use the double-derivative calculated in (39) to produce a higher-order Hermite polynomial, our approximation will also match the marginal propensity to consume at the gridpoints.[15]
These results provide the theoretical foundation for constructing high-quality cubic Hermite interpolants that preserve both the economic structure and numerical accuracy of the model between gridpoints.
Stochastic Rate of Return¶
Thus far we have assumed that the interest factor is constant at . Extending the previous derivations to allow for a perfectly forecastable time-varying interest factor would be trivial. Allowing for a stochastic interest factor is less trivial.
The easiest case is where the interest factor is i.i.d.,
because in this case 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.[16]
and in this case the previous analysis applies once we substitute this MPC for the one that characterizes the perfect foresight problem without rate-of-return risk. The more realistic case where the interest factor has some serial correlation is more complex, and thus left for future work.
In principle, this refinement should be combined with the previous one; further exposition of this combination is omitted here because no new insights spring from the combination of the two techniques.
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.
Friedman (1957) introduced the distinction between permanent and transitory components of income, where permanent income reflects long-term earning capacity and transitory income captures temporary fluctuations. Muth (1960) developed the stochastic foundations for modeling these income components as random processes with specific distributional properties. Our Friedman-Muth specification combines Friedman’s economic insight about income persistence with Muth’s rigorous stochastic framework, allowing for realistic modeling of both unemployment risk and permanent income growth.
The five gridpoints are used for illustration; production codes typically use 30-80 gridpoints for accurate solutions.
In normalized variables, with constant interest factor and deterministic permanent growth factor , and setting (the optimist’s assumption), human wealth can be calculated in three equivalent ways: (i) finite-horizon backward recursion: , for ; (ii) finite-horizon forward sum: ; (iii) infinite-horizon limit: provided . When (as used in the main text), these expressions simplify to and .
For a derivation, see Carroll & Shanker (2024); is defined therein as the MPC of the perfect foresight consumer with horizon .
This represents the MPC of the perfect foresight consumer with horizon , corresponding to the optimist’s consumption behavior when market resources are very large. Equivalent expressions: (i) backward recursion with terminal condition ; (ii) finite-horizon forward sum ; (iii) closed-form infinite-horizon limit .
In normalized variables, with constant interest factor and deterministic permanent growth factor , and setting (the pessimist’s assumption), minimal human wealth can be calculated in three equivalent ways. In the Friedman-Muth process, since represents the probability of unemployment (zero transitory income). The three calculation methods are: (i) finite-horizon backward recursion: , for ; (ii) finite-horizon forward sum: ; (iii) infinite-horizon limit: provided . When (unemployment possible), these expressions reduce to .
Under prudence () and bounded shocks with strictly positive support (nondegenerate lower and upper bounds), the consumption function is strictly increasing and concave, and the moderation ratio lies in ; see Carroll & Shanker (2024).
This ratio is strictly between 0 and 1 for all under strict monotonicity of the consumption function, which is ensured by prudence () and bounded shocks Carroll & Kimball, 1996, as demonstrated in Carroll & Shanker (2024). The denominator is constant in within a given period, so the ratio is well-defined. Equivalently, precautionary saving satisfies with , which ensures it is strictly positive.
Under prudence () and GIC, is asymptotically linear: its slope converges to a constant as . At the infinite limit may equal 0; on any finite grid, the boundary slope used in computation is strictly positive. For practical numerical work on finite grids, we extrapolate linearly using that boundary slope. This approach preserves and hence , ensuring that precautionary saving remains strictly positive over the extrapolation domain.
Under perfect foresight with time-invariant and , consumption grows at the constant gross rate , so . Discounting each term by yields the present discounted value ratio: . Hence . When working with normalized variables, replace with ; the identity remains unchanged.
This represents the MPC when market resources approach the natural borrowing constraint, where the consumer faces maximum uncertainty about future income. In the Friedman-Muth process Carroll & Toche, 2009, is the probability that the transitory shock equals zero: , representing the unemployment probability. Equivalent expressions: (i) backward recursion with terminal condition ; (ii) finite-horizon forward sum ; (iii) closed-form infinite-horizon limit .
For cubic Hermite interpolation of the transformed moderation ratio, use node values from the transformation and node slopes . For improved shape preservation, a monotone cubic Hermite scheme Boor, 2001 can be used, where theoretical slopes serve as targets that may be adjusted to enforce monotonicity.
This confirms that is linear in and highlights the role of in scaling marginal utility in the perfect-foresight benchmark. The linearity property simplifies both theoretical analysis and numerical implementation.
This would guarantee that the consumption function generated from the value function would match both the level of consumption and the marginal propensity to consume at the gridpoints, making the numerical differences between the newly constructed consumption function and the highly accurate one constructed earlier negligible within the grid.
The Merton-Samuelson rule (for iid returns and no labor income, or perfectly forecastable income) implies a linear consumption function , where is given by Eq. (41). This result extends naturally to our framework by substituting the stochastic-return MPC for the perfect foresight MPC. At high wealth, the consumption function becomes asymptotically linear as the precautionary motive vanishes Benhabib et al., 2018. See Carroll (2020) for a detailed derivation.
- 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.3386/w2848
- Stachurski, J., & Toda, A. A. (2019). An Impossibility Theorem for Wealth in Heterogeneous-Agent Models. Journal of Economic Theory.
- 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., & 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
- Carroll, C. D. (2020). Solving microeconomic dynamic stochastic optimization problems [Techreport]. Johns Hopkins University. https://www.econ2.jhu.edu/people/ccarroll/SolvingMicroDSOPs.pdf
- Carroll, C. D. (2001). Precautionary Saving and the Marginal Propensity to Consume (Working Paper No. 8233). NBER.
- 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. (2006). The method of endogenous gridpoints for solving dynamic stochastic optimization problems. Economics Letters, 91(3), 312–320.
- Barillas, F., & Fernández-Villaverde, J. (2007). A Generalization of the Endogenous Grid Method. Journal of Economic Dynamics and Control, 31(8), 2698–2712.
- Hintermaier, T., & Koeniger, W. (2010). The Method of Endogenous Gridpoints with Occasionally Binding Constraints among Endogenous Variables. Journal of Economic Dynamics and Control, 34(10), 2074–2088. 10.1016/j.jedc.2010.05.002
- Fella, G. (2014). A Generalized Endogenous Grid Method for Non-smooth and Non-concave Problems. Review of Economic Dynamics, 17(2), 329–344. 10.1016/j.red.2013.07.001
- Iskhakov, F., Jørgensen, T. H., Rust, J., & Schjerning, B. (2017). The Endogenous Grid Method for Discrete–Continuous Dynamic Choice Models with (or without) Taste Shocks. Quantitative Economics, 8(2), 317–365. 10.3982/qe643