Skip to content

Commit bcb0ec4

Browse files
committed
minor update
1 parent 435efaf commit bcb0ec4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lectures/aiyagari.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,8 @@ num_points = 50
577577
firm = create_firm()
578578
household = create_household()
579579
k_min, k_max = 4, 12
580-
k_vals = [k_min + i * (k_max - k_min) / (num_points - 1) for i in range(num_points)]
580+
k_vals = [k_min + i * (k_max - k_min) / (num_points - 1)
581+
for i in range(num_points)]
581582
out = [G(k, firm, household) for k in k_vals]
582583
583584
fig, ax = plt.subplots(figsize=(11, 8))
@@ -655,7 +656,8 @@ def prices_to_capital_stock(household, r, firm):
655656
# Create a grid of r values to compute demand and supply of capital
656657
num_points = 20
657658
r_min, r_max = 0.005, 0.04
658-
r_vals = [r_min + i * (r_max - r_min) / (num_points - 1) for i in range(num_points)]
659+
r_vals = [r_min + i * (r_max - r_min) / (num_points - 1)
660+
for i in range(num_points)]
659661
660662
# Compute supply of capital
661663
k_vals = []
@@ -732,7 +734,8 @@ Use the following values of $\beta$ and plot the relationship you find.
732734
:tags: [hide-output]
733735
734736
β_min, β_max, num_β = 0.94, 0.98, 20
735-
β_vals = [β_min + i * (β_max - β_min) / (num_β - 1) for i in range(num_β)]
737+
β_vals = [β_min + i * (β_max - β_min) / (num_β - 1)
738+
for i in range(num_β)]
736739
```
737740

738741
```{exercise-end}

0 commit comments

Comments
 (0)