You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lectures/aiyagari_egm.md
+27-17Lines changed: 27 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ kernelspec:
26
26
:depth: 2
27
27
```
28
28
29
-
In addition to what's included in base Anaconda, we need to install JAX
29
+
In addition to what's included in base Anaconda, we need to install QuantEcon's Python library and JAX.
30
30
31
31
```{code-cell} ipython3
32
32
:tags: [hide-output]
@@ -41,23 +41,27 @@ This lecture combines two important computational methods in macroeconomics:
41
41
1. The **Aiyagari model** {cite}`Aiyagari1994` - a heterogeneous agent model with incomplete markets
42
42
2. The **endogenous grid method** (EGM) {cite}`Carroll2006` - an efficient algorithm for solving dynamic programming problems
43
43
44
-
In the {doc}`standard Aiyagari lecture <aiyagari>`, we solved the household problem using Howard policy iteration (a value function iteration variant) and computed aggregate capital using the stationary distribution of the finite Markov chain.
44
+
In the {doc}`standard Aiyagari lecture <aiyagari>`, we solved the household problem using discretization and value function iteration.
45
+
46
+
We then computed aggregate capital at a given set of prices using the stationary distribution of the finite Markov chain.
45
47
46
48
In this lecture, we take a different approach:
47
49
48
-
* We use the **endogenous grid method** to solve the household problem via the Euler equation, avoiding costly root-finding operations
49
-
* We compute aggregate capital by **simulation** rather than calculating the stationary distribution analytically
50
+
1. We use the **endogenous grid method** to solve the household problem via the Euler equation and linear interpolation.
51
+
2. We compute aggregate capital by **simulation** rather than an algebraic technique (which only works for the finite case).
50
52
51
53
These modifications make the solution method faster and more flexible, especially when dealing with more complex models.
52
54
53
55
### References
54
56
55
57
The primary references for this lecture are:
56
58
59
+
* our {doc}`previous Aiyagari lecture <aiyagari>` for the key ideas
57
60
* {cite}`Aiyagari1994` for the economic model
58
61
* {cite}`Carroll2006` for the endogenous grid method
59
62
* Chapter 18 of {cite}`Ljungqvist2012` for textbook treatment
0 commit comments