Skip to content

Commit fdef06a

Browse files
committed
fix the latex error
1 parent ba68287 commit fdef06a

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

lectures/ak_aiyagari.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ To construct transition dynamics, we can compute sequences of time-varying price
288288
- Aggregate effective labor supply
289289
* Take into account population weights $1/J$
290290

291-
4. Transition Dynamics
291+
4. Transition dynamics
292292
* Backward induction:
293293
- Start from final steady state
294294
- Solve sequence of value functions
@@ -780,13 +780,9 @@ In an inner loop, we compute the optimal consumption and saving choices by each
780780

781781
We then update our guesses of prices and taxes given the aggregate labor supply and capital stock in the economy.
782782

783-
* We use `solve_backwards` to solve for optimal saving choices given price and tax sequences
784-
* We use `simulate_forward` to compute the evolution of the joint distributions.
783+
We use `solve_backwards` to solve for optimal saving choices given price and tax sequences and `simulate_forward` to compute the evolution of the joint distributions.
785784

786-
We require two steady states as inputs:
787-
788-
1. the initial steady state to provide the initial condition for `simulate_forward`,
789-
2. the final steady state to provide continuation values for `solve_backwards`.
785+
We require two steady states as inputs: the initial steady state to provide the initial condition for `simulate_forward`, and the final steady state to provide continuation values for `solve_backwards`.
790786

791787
```{code-cell} ipython3
792788
@jax.jit
@@ -922,10 +918,10 @@ The following algorithm describes the path iteration procedure:
922918
1. Initialize from steady states:
923919
- $(V_1, \sigma_1, \mu_1) \leftarrow ss_1$ *(Initial steady state)*
924920
- $(V_2, \sigma_2, \mu_2) \leftarrow ss_2$ *(Final steady state)*
925-
- $(r, w, \tau) \leftarrow $\texttt{initialize_prices}$(T)$ *(Linear interpolation)*
926-
- $\text{error} \leftarrow \infty$, $i \leftarrow 0$
921+
- $(r, w, \tau) \leftarrow initialize\_prices(T)$ *(Linear interpolation)*
922+
- $error \leftarrow \infty$, $i \leftarrow 0$
927923
928-
2. **While** $\text{error} > \varepsilon$ or $i \leq \text{max_iter}$:
924+
2. **While** $error > \varepsilon$ or $i \leq max\_iter$:
929925
930926
1. $i \leftarrow i + 1$
931927
2. $(r_{\text{old}}, w_{\text{old}}, \tau_{\text{old}}) \leftarrow (r, w, \tau)$
@@ -941,10 +937,10 @@ The following algorithm describes the path iteration procedure:
941937
- $L[t] \leftarrow \int l(j)\gamma \, d\mu[t]$ *(Aggregate labor)*
942938
- $r[t] \leftarrow \alpha Z(K[t]/L[t])^{\alpha-1}$ *(Interest rate)*
943939
- $w[t] \leftarrow (1-\alpha)Z(K[t]/L[t])^{\alpha}$ *(Wage rate)*
944-
- $\tau[t] \leftarrow $\texttt{solve_budget}$(r[t],w[t],K[t],L[t],D[t],G[t])$
940+
- $\tau[t] \leftarrow solve\_budget(r[t],w[t],K[t],L[t],D[t],G[t])$
945941
946942
5. Compute convergence metric:
947-
- $\text{error} \leftarrow \|r - r_{\text{old}}\| + \|w - w_{\text{old}}\| + \|\tau - \tau_{\text{old}}\|$
943+
- $error \leftarrow \|r - r_{\text{old}}\| + \|w - w_{\text{old}}\| + \|\tau - \tau_{\text{old}}\|$
948944
949945
6. Update prices with dampening:
950946
- $r \leftarrow \lambda r + (1-\lambda)r_{\text{old}}$

0 commit comments

Comments
 (0)