Conversation
This commit standardizes the value function notation in the Job Search II lecture to match the notation used in Job Search III (mccall_model_with_sep_markov.md). Key changes: - Renamed v(w) → v_e(w) for employed worker's value function - Renamed h(w) → v_u(w) for unemployed worker's value function - Updated continuation value h → v_u^* in explanations - Updated all Bellman equations and mathematical expressions - Updated code variables (v → v_e, h → v_u_star) - Updated plot labels to reflect new notation - Updated function documentation and comments This standardization improves consistency across the job search lecture series and makes the notation more intuitive (e for employed, u for unemployed). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Detailed Notation MappingFor reference, here's the complete mapping of notation changes:
This brings Job Search II in line with Job Search III, where the convention is:
The subscript naming (e for employed, u for unemployed) is more intuitive than using v and h, especially for students learning these models for the first time. |
Simplified the solution method by solving for v_e(w) in closed form as a function of d, then substituting into the equation for d. This reduces the problem from iterating on both a vector (v_e) and scalar (d) to iterating on just the scalar d. Key improvements: - Added derivation showing v_e(w) = (u(w) + βαd) / (1 - β(1-α)) - Reduced to single scalar fixed-point equation for d - Simplified code: now only iterate on scalar d instead of vector + scalar - Compute v_e from d using closed-form expression after convergence - More efficient: fewer variables to track during iteration - Clearer mathematical structure The implementation now directly reflects the simplified mathematical approach, making it easier to understand and computationally more efficient. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Additional Simplification: Single Scalar EquationI've added a further simplification to the solution method. By solving for we can substitute this into the equation for BenefitsMathematical clarity:
Computational efficiency:
Pedagogical improvement:
The code has been tested and produces the same results as the previous approach. |
- Changed "jitted class" to "model class" (Model is a NamedTuple, not jitted) - Fixed indentation from 2 spaces to standard 4 spaces 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
📖 Netlify Preview Ready! Preview URL: https://pr-686--sunny-cactus-210e3e.netlify.app (1fad734) 📚 Changed Lecture Pages: mccall_model_with_separation |
Only kept @jax.jit on top-level user-facing functions (solve_model and compute_reservation_wage). Removed it from intermediate functions (u, compute_v_e, update_d) since they are automatically compiled when called from jitted functions. Benefits: - Cleaner code with less decorator clutter - Avoids redundant compilation overhead - Follows JAX best practices of jitting at the top level 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
📖 Netlify Preview Ready! Preview URL: https://pr-686--sunny-cactus-210e3e.netlify.app (ff39fee) 📚 Changed Lecture Pages: mccall_model_with_separation |
|
📖 Netlify Preview Ready! Preview URL: https://pr-686--sunny-cactus-210e3e.netlify.app (269eb49) 📚 Changed Lecture Pages: mccall_model_with_separation |
|
📖 Netlify Preview Ready! Preview URL: https://pr-686--sunny-cactus-210e3e.netlify.app (40fa336) 📚 Changed Lecture Pages: mccall_model_with_separation |
Summary
This PR standardizes the value function notation in the Job Search II lecture (
mccall_model_with_separation.md) to match the notation used in Job Search III (mccall_model_with_sep_markov.md).Changes Made
Mathematical Notation
v(w)tov_e(w)h(w)tov_u(w)htov_u^*(wherev_u^* = u(c) + β d)Updated Throughout
update()andsolve_model()functionsBenefits
v_eclearly indicates "value for employed" andv_uindicates "value for unemployed"Testing
🤖 Generated with Claude Code