Skip to content

Commit 6eb8ef5

Browse files
auto sync from book-dp1
1 parent 771b8bc commit 6eb8ef5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

code/jl/concave_map_fp.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fig, ax = plt.subplots(figsize=(10, 5.5))
1515
# Plot the functions
1616
lb = L"g"
1717
ax.plot(x_grid, g.(x_grid), lw=2, alpha=0.6, label=lb)
18-
ax.plot(x_grid, x_grid, "k--", lw=1, alpha=0.7, label=L"45")
18+
ax.plot(x_grid, x_grid, "k--", lw=1, alpha=0.7, label="45 degree line")
1919

2020
# Show and annotate the fixed point
2121
fps = (xstar,)
@@ -35,6 +35,6 @@ ax.set_ylim(0, 3)
3535
ax.set_xlim(0, 3)
3636

3737
plt.show()
38-
#fig.savefig("../figures/concave_map_fp.pdf")
38+
fig.savefig("../figures/concave_map_fp.pdf")
3939

4040

code/jl/modified_opt_savings.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function create_savings_model(; β=0.98, γ=2.5,
55
ρ=0.9, ν=0.1, y_size=20,
66
η_min=0.75, η_max=1.25, η_size=2)
77
η_grid = LinRange(η_min, η_max, η_size)
8-
ϕ = ones(η_size) * (1 / η_size) # Uniform distributoin
8+
ϕ = ones(η_size) * (1 / η_size) # Uniform distribution
99
w_grid = LinRange(w_min, w_max, w_size)
1010
mc = tauchen(y_size, ρ, ν)
1111
y_grid, Q = exp.(mc.state_values), mc.p

pdf/dp.pdf

-31.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)