Online Appendix
Abstract¶
This online appendix supplements the main text with algorithmic details and additional benchmarks. It presents pseudocode for value function iteration (VFI) and time iteration (TI), documents the speed-accuracy tradeoff these methods face, reports results with Howard policy improvement acceleration, provides equal-accuracy comparisons that hold solution quality constant while measuring computational cost, compares Euler error evaluation methods on the exogenous grid versus the ergodic distribution, and discusses the case (EIS ) where the transformed problem becomes a minimization.
Appendix: Alternative algorithms¶
Both value function iteration (VFI) and time iteration (TI) require numerical search at each grid point, unlike EGM which inverts the Euler equation analytically. Both methods face an inherent tradeoff: the certainty equivalent must be evaluated at candidate consumption values during search. Two approaches exist: compute exactly at each candidate (accurate mode), or precompute on the asset grid and interpolate during search (fast mode).
Value function iteration. VFI finds optimal consumption by maximizing the Bellman equation directly:
where is the certainty equivalent. Golden-section search evaluates at many candidate consumption values.
Time iteration. Time iteration (TI), introduced by Coleman (1991), works directly with the Euler equation rather than the Bellman equation. Like EGM, TI exploits the first-order condition; unlike EGM, it cannot invert the Euler equation analytically and must use numerical root-finding. Rendahl (2015) proves that under standard conditions, TI converges to the same solution as VFI. Coeurdacier et al. (2020) extend TI to Epstein-Zin preferences, treating consumption, value, and expected value as simultaneous controls; our accurate mode follows this approach by interpolating decision rules at each candidate consumption during root-finding.
Given current guesses , TI finds consumption at each by solving the Euler equation via bisection, then updates the value function. The certainty equivalent uses directly: , exactly as in VFI.
Appendix: Speed-accuracy tradeoff¶
Table 1:Accurate-mode comparison: EZ-EGM vs numerical search ()
| Method | Time (ms) | Euler Mean | Euler Max |
| EZ-EGM | 25 | -4.8 | -3.4 |
| TI (accurate) | 2371 | -4.8 | -3.4 |
| VFI (accurate) | 8385 | -3.5 | -2.3 |
Note: Grid size 100, (no Howard acceleration). Accurate modes compute exactly during search (no precomputation). Errors evaluated on uniform grid (); see the main text for ergodic errors ().
Table 1 reveals two main findings. First, TI-accurate achieves the same accuracy as EZ-EGM (mean Euler error -4.8), confirming that when is computed exactly during search, time iteration matches EGM’s precision. Second, this accuracy comes at substantial cost: TI-accurate is nearly 100 times slower than EZ-EGM, because bisection requires many evaluations per grid point, each involving interpolation and expectation. VFI-accurate is slower still (over 300 times) yet less accurate than both EGM and TI, reflecting the underlying disadvantage of optimizing over the Bellman equation rather than working with the Euler equation.
EGM’s advantage is that it achieves accurate-mode precision at fast-mode speed by avoiding numerical search entirely. The main text compares EGM to the fast modes of VFI and TI, which represent practical implementations; this appendix shows that even the accurate modes cannot match EGM’s speed.
Appendix: Howard acceleration parameter¶
The main text reports baseline results without Howard acceleration (). This appendix examines how the choice of affects performance in both fast and accurate modes.
Note on iteration counts: For EGM, each “policy iteration” consists of one Euler equation inversion (the EGM step) plus up to value function updates. For TI, each policy iteration consists of one bisection solve at every grid point plus up to value updates. For VFI, each “policy iteration” consists of one numerical optimization over the consumption grid plus up to value function updates. All three methods use early termination: if the value function converges before updates, the remaining updates are skipped. The EGM policy step is analytic and thus much cheaper than VFI’s optimization or TI’s bisection.
EGM. EGM has no fast/accurate distinction because it evaluates exactly on the endogenous grid.
Table 2:EZ-EGM: Effect of Howard acceleration parameter
| Time (ms) | Policy Iters | Euler Mean | Euler Max | |
| 1 | 25 | 141 | -4.8 | -3.4 |
| 2 | 49 | 99 | -4.9 | -3.4 |
| 3 | 62 | 86 | -4.9 | -3.4 |
| 4 | 70 | 78 | -4.9 | -3.4 |
| 5 | 78 | 70 | -4.9 | -3.4 |
For EZ-EGM, is fastest. Additional value iterations reduce policy iterations (from 141 to 70) but increase total time because the EGM policy step is already cheap and accurate. The slight accuracy improvement (-4.8 to -4.9) does not justify the 3x time increase.
VFI. VFI benefits substantially from Howard acceleration in both modes. The optimal -40 reduces time by 7x in fast mode and 13x in accurate mode.
Table 3:VFI fast mode: Effect of Howard acceleration parameter
| Time (ms) | Policy Iters | Euler Mean | Euler Max | |
| 1 | 1190 | 239 | -3.3 | -2.4 |
| 10 | 247 | 31 | -3.3 | -2.4 |
| 20 | 183 | 16 | -3.3 | -2.4 |
| 30 | 181 | 11 | -3.3 | -2.4 |
| 40 | 177 | 9 | -3.3 | -2.4 |
| 50 | 193 | 8 | -3.3 | -2.4 |
Table 4:VFI accurate mode: Effect of Howard acceleration parameter
| Time (ms) | Policy Iters | Euler Mean | Euler Max | |
| 1 | 8385 | 239 | -3.5 | -2.3 |
| 10 | 1312 | 31 | -3.5 | -2.3 |
| 20 | 802 | 16 | -3.5 | -2.3 |
| 30 | 641 | 11 | -3.5 | -2.3 |
| 40 | 626 | 10 | -3.5 | -2.3 |
| 50 | 650 | 10 | -3.5 | -2.3 |
VFI-accurate benefits more from Howard than VFI-fast because each policy optimization is more expensive in accurate mode (computing exactly versus interpolating). At , VFI-accurate (626ms) is faster than VFI-fast at (1190ms), though still less accurate (-3.5 versus -3.3). This reflects the cost structure: golden-section search is the bottleneck, and reducing policy iterations helps more when each policy step is expensive.
TI. TI shows a distinctive pattern: moderate helps, but larger values hurt performance. The optimal differs between modes.
Table 5:TI fast mode: Effect of Howard acceleration parameter
| Time (ms) | Policy Iters | Euler Mean | Euler Max | |
| 1 | 252 | 140 | -3.2 | -2.7 |
| 2 | 229 | 100 | -3.2 | -2.7 |
| 3 | 213 | 88 | -3.2 | -2.7 |
| 4 | 213 | 81 | -3.2 | -2.7 |
| 5 | 481 | 174 | -3.2 | -2.7 |
Table 6:TI accurate mode: Effect of Howard acceleration parameter
| Time (ms) | Policy Iters | Euler Mean | Euler Max | |
| 1 | 2371 | 141 | -4.8 | -3.4 |
| 2 | 1716 | 98 | -4.9 | -3.4 |
| 3 | 1540 | 86 | -4.9 | -3.4 |
| 4 | 1427 | 78 | -4.9 | -3.4 |
| 5 | 1290 | 70 | -4.9 | -3.4 |
TI-fast is optimal at -4, with time falling from 252ms to 213ms. Beyond , performance degrades sharply: nearly doubles time to 481ms. This instability occurs because TI’s value function updates can overshoot when the policy is held fixed, destabilizing convergence.
TI-accurate is optimal at , with time falling from 2371ms to 1290ms, a 1.8x speedup. The higher optimal reflects the greater cost of each bisection step in accurate mode.
The contrast with VFI is instructive: VFI benefits from large (up to 30-50) because golden-section search produces noisier policy updates, requiring more value iterations to stabilize. TI’s bisection produces more accurate policies, reducing the benefit of additional value iterations and causing instability at high .
Appendix: Equal-accuracy comparison¶
The main text compares EZ-EGM and VFI at fixed grid size (100 points), where EGM is both faster and more accurate. A more informative comparison holds accuracy constant: what grid size does VFI require to match EGM’s Euler errors, and how do solve times compare?
We find grid sizes where mean Euler errors are approximately equal:
Table 7:Speed comparison at equal accuracy
| VFI | EGM | Mean Error | VFI (ms) | EGM (ms) | Speedup |
| 50 | 20 | -3.2 | 672 | 5 | 145 |
| 100 | 20 | -3.3 | 1214 | 5 | 261 |
| 150 | 20 | -3.4 | 1793 | 5 | 386 |
| 200 | 20 | -3.5 | 2281 | 5 | 490 |
| 300 | 25 | -3.6 | 3433 | 5 | 627 |
At equivalent accuracy levels, EZ-EGM is 150–630 times faster than VFI. The speedup grows with target accuracy: to achieve mean Euler error near -3.6, VFI requires 300 grid points while EGM needs only 25. Euler errors weighted by the ergodic distribution (5th–95th percentiles of simulated wealth) are similar to uniformly-weighted errors; the ergodic distribution concentrates wealth in the lower range (median around 3 versus grid maximum of 20), but both weighting schemes yield mean errors near -4.9.
These results use , so agents converge to finite target wealth. For more impatient agents (), target wealth falls but accuracy remains similar. For very patient agents (), target wealth diverges and the grid must be extended accordingly; the accuracy comparison in that regime warrants separate investigation.
Appendix: Euler error evaluation methods¶
Two approaches exist for evaluating Euler equation errors: uniform grid evaluation and ergodic distribution weighting; we report both for completeness.
Standard approach (Santos 2000). Santos (2000) establishes the theoretical foundation for using Euler equation residuals to bound policy function errors. The standard implementation evaluates errors on a uniform grid spanning the state space, typically excluding boundary regions where the constraint binds. For our baseline (100 grid points), we evaluate at the 10th–90th percentiles of the grid:
where is the set of interior grid points.
Ergodic distribution approach. An alternative evaluates errors at wealth levels agents actually visit in the long run. We simulate the ergodic distribution (10,000 agents, 500 periods, 200 burn-in) and compute errors at the 5th–95th percentiles of realized wealth:
where is a sample from the stationary distribution . This approach weights accuracy by economic relevance: errors at rarely-visited wealth levels matter less than errors where agents spend time.
Table 8:Euler errors by evaluation method ()
| (grid) | (ergodic) | |||
| Method | Mean | Max | Mean | Max |
| EZ-EGM | -4.8 | -3.4 | -4.8 | -3.2 |
| TI | -3.2 | -2.7 | -3.6 | -2.7 |
| VFI | -3.3 | -2.4 | -3.3 | -2.3 |
Note: evaluates at 10th-90th percentiles of grid (). evaluates at 5th-95th percentiles of simulated wealth (); median wealth . Errors exclude constrained points where the Euler equation holds as inequality. All methods use fast mode (precomputed ).
For this calibration (), the stationary distribution concentrates in the lower wealth range: the median is approximately versus the grid maximum of 20. Despite this difference in evaluation regions, EGM yields similar error statistics under both and . TI shows improved accuracy under (-3.6 versus -3.2), suggesting its errors concentrate at high wealth levels that agents rarely visit.
EGM achieves the best accuracy because it satisfies the Euler equation by construction at the endogenous grid points; interpolation introduces error, but linear interpolation on a fine grid (100 points) keeps this small. TI and VFI both require numerical search, which compounds interpolation error. VFI shows the worst max error under (-2.3), reflecting that its optimization-based approach is less precise at low wealth levels where the policy function has higher curvature and agents spend the most time.
Appendix: Robustness to ¶
The baseline uses (EIS ), but the algorithm applies equally to (EIS ). We verify this by solving the same model with , holding fixed. Across all values, EZ-EGM achieves mean Euler errors near -5 and max errors near -3.5 (in units). The case is empirically relevant: the meta-analysis of Havránek (2015) finds that micro estimates of the EIS often fall below unity.
When , the transformation is decreasing, so maximizing is equivalent to minimizing . No algorithmic modification is required: the first-order condition is sufficient and characterizes the optimum regardless of whether it is a maximum or minimum, and EGM inverts the Euler equation analytically. VFI is unaffected because it works with directly; the CES aggregator remains increasing in for all . Time iteration, like EGM, works with the Euler equation.
- Coleman, W. J. (1991). Equilibrium in a Production Economy with an Income Tax. Econometrica, 59(4), 1091–1104. 10.2307/2938175
- Rendahl, P. (2015). Inequality Constraints and Euler Equation-based Solution Methods. The Economic Journal, 125(585), 1110–1135. 10.1111/ecoj.12115
- Coeurdacier, N., Rey, H., & Winant, P. (2020). Financial Integration and Growth in a Risky World. Journal of Monetary Economics, 112, 1–21. 10.1016/j.jmoneco.2019.01.022
- Santos, M. S. (2000). Accuracy of Numerical Solutions Using the Euler Equation Residuals. Econometrica, 68(6), 1377–1402. 10.1111/1468-0262.00165
- Havránek, T. (2015). Measuring Intertemporal Substitution: The Importance of Method Choices and Selective Reporting. Journal of the European Economic Association, 13(6), 1180–1204. 10.1111/jeea.12133