Add new lecture: Aiyagari model with Endogenous Grid Method#675
Closed
Add new lecture: Aiyagari model with Endogenous Grid Method#675
Conversation
- Combines Aiyagari model with EGM solution method - Replaces Howard policy iteration with EGM-based Coleman-Reffett operator - Computes aggregate capital via simulation instead of stationary distribution - Includes wealth distribution analysis and Lorenz curves - Provides comparison with standard approach and extension exercises
- Corrected endogenous grid method logic for Aiyagari model - Fixed computation of endogenous asset grid: a = (c + a' - wz)/(1+r) - Added proper handling of borrowing constraint in interpolation - EGM now converges in ~90 iterations (previously diverged) - Verified with test suite: all tests pass
- Increased asset grid maximum from 20 to 50 to handle high savings - Added asset clipping to prevent extrapolation issues in simulation - Added comments explaining interpolation/extrapolation behavior - Verified equilibrium computation: K* ≈ 8 (reasonable for these parameters) - All tests now pass with stable, reasonable results
|
📖 Netlify Preview Ready! Preview URL: https://pr-675--sunny-cactus-210e3e.netlify.app (b483555) 📚 Changed Lecture Pages: aiyagari, aiyagari_egm |
- Added aiyagari_egm.md to _toc.yml - Placed directly after aiyagari.md in Multiple Agent Models section
|
📖 Netlify Preview Ready! Preview URL: https://pr-675--sunny-cactus-210e3e.netlify.app (f8ff48d) 📚 Changed Lecture Pages: aiyagari, aiyagari_egm |
Contributor
Author
|
This is an experimental project --- do not merge. |
Contributor
Author
|
Closing this PR in favor of #676 which uses a local branch instead of a Claude-generated branch. |
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.
This PR adds a new lecture aiyagari_egm.md that combines the Aiyagari model with the Endogenous Grid Method (EGM).
Overview
The lecture combines two important computational methods:
Key Features
Theory and Implementation
Code Components
Implementation Details
Fixes Applied
Testing