Skip to content

Commit 1d2f54e

Browse files
jstacclaude
andcommitted
Fix remaining k references to use s for savings
Changed remaining instances where k was used instead of s: - Mathematical notation: x = k + σ(k) → x = s + σ(s) - Added missing inline comment in K_crra: x_i = s_i + c_i This completes the transition to using 's' for savings throughout, maintaining consistency with the exogenous savings grid terminology. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent d90822f commit 1d2f54e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lectures/cake_eating_egm_jax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def K_crra(
311311
c_out = compute_c_vectorized(s_grid)
312312
313313
# Determine corresponding endogenous grid
314-
x_out = s_grid + c_out
314+
x_out = s_grid + c_out # x_i = s_i + c_i
315315
316316
return c_out, x_out
317317
```
@@ -390,7 +390,7 @@ plt.show()
390390

391391
Note that the plots for $\gamma > 1$ do not cover the entire x-axis range shown.
392392

393-
This is because the endogenous grid $x = k + \sigma(k)$ depends on the consumption policy, which varies with $\gamma$.
393+
This is because the endogenous grid $x = s + \sigma(s)$ depends on the consumption policy, which varies with $\gamma$.
394394

395395
Let's check the maximum deviation between the log utility case ($\gamma = 1.0$) and values approaching from above.
396396

0 commit comments

Comments
 (0)