Skip to content

[endogenous_lake] "approximately 62" does not match the welfare-maximising $c$ the code finds (~68) #1157

Backlog

Description

@mmcky

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.

Assisted-by: Claude Code (Claude Opus 5.5)

Activity

  1. added
    bug
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions