You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[endogenous_lake] "approximately 62" does not match the welfare-maximising $c$ the code finds (~68) #1157
The text after the first fiscal-policy figure says "The level that maximizes steady state welfare is approximately 62" (line 587). The code on main puts the maximum near 68, not 62.
Check (current main, default parameters)
Welfare-maximising $c$
The figure's own grid (c_vec = jnp.linspace(5, 140, 40)), argmax of welfare_vec
67.3
A fine grid, 501 points on $[40, 90]$
68.0
The welfare curve is very flat at the top: welfare at $c = 62$ is 49.3243 against a maximum of 49.3265. So 62 is not far off in welfare terms, but as a statement of where the maximum is, it doesn't match the figure. The sentence dates from the lecture split in #665, so it was either computed with earlier code or has drifted since.
Suggested change
Change "approximately 62" to match the figure, or better, compute the maximiser in the cell and print it, so the prose can't drift again. The lecture's later section already uses a centroid over near-optimal $c$ because the curve is flat, and the same approach would work here.
It could also be worth one sentence saying the maximum is flat, which the later section already explains.
Timing
#1124 (the >= fix from #1111) moves the optimum up by roughly 0.5–1, so this is best done after #1124 merges.
Activity