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 <noreply@anthropic.com>
Contributor
Author
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 <noreply@anthropic.com>
Contributor
Author
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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