Skip to content

Commit 2326b64

Browse files
committed
update a few missing cases
1 parent 0a2a8e8 commit 2326b64

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

lectures/markov_jump_lq.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ for i, state_var in enumerate(state_vec1):
549549
ax.plot(λ_vals, F1[:, i], label=r"$\overline{s}_1$", color="b")
550550
ax.plot(λ_vals, F2[:, i], label=r"$\overline{s}_2$", color="r")
551551
552-
ax.set_xlabel("$\lambda$")
552+
ax.set_xlabel(r"$\lambda$")
553553
ax.set_ylabel("$F_{s_t}$")
554554
ax.set_title(f"Coefficient on {state_var}")
555555
ax.legend()
@@ -617,8 +617,8 @@ for i, state_var in enumerate(state_vec1):
617617
ax.plot_surface(λ_grid, δ_grid, F1_grid[:, :, i], color="b")
618618
# low adjustment cost, red surface
619619
ax.plot_surface(λ_grid, δ_grid, F2_grid[:, :, i], color="r")
620-
ax.set_xlabel("$\lambda$")
621-
ax.set_ylabel("$\delta$")
620+
ax.set_xlabel(r"$\lambda$")
621+
ax.set_ylabel(r"$\delta$")
622622
ax.set_zlabel("$F_{s_t}$")
623623
ax.set_title(f"coefficient on {state_var}")
624624
plt.show()
@@ -659,8 +659,8 @@ def run(construct_func, vals_dict, state_vec):
659659
ax.plot(λ_vals, F1[:, i], label=r"$\overline{s}_1$", color="b")
660660
ax.plot(λ_vals, F2[:, i], label=r"$\overline{s}_2$", color="r")
661661
662-
ax.set_xlabel("$\lambda$")
663-
ax.set_ylabel("$F(\overline{s}_t)$")
662+
ax.set_xlabel(r"$\lambda$")
663+
ax.set_ylabel(r"$F(\overline{s}_t)$")
664664
ax.set_title(f"coefficient on {state_var}")
665665
ax.legend()
666666
plt.show()
@@ -681,10 +681,10 @@ def run(construct_func, vals_dict, state_vec):
681681
# Plot a vertical line at λ=0.5
682682
ax.plot([0.5, 0.5], [min(k_star), max(k_star)], "-.")
683683
684-
ax.set_xlabel("$\lambda$")
684+
ax.set_xlabel(r"$\lambda$")
685685
ax.set_ylabel("$k$")
686686
ax.set_title("Optimal k levels and k targets")
687-
ax.text(0.5, min(k_star)+(max(k_star)-min(k_star))/20, "$\lambda=0.5$")
687+
ax.text(0.5, min(k_star)+(max(k_star)-min(k_star))/20, r"$\lambda=0.5$")
688688
ax.legend(bbox_to_anchor=(1., 1.))
689689
plt.show()
690690
@@ -714,9 +714,9 @@ def run(construct_func, vals_dict, state_vec):
714714
ax = fig.add_subplot(111, projection='3d')
715715
ax.plot_surface(λ_grid, δ_grid, F1_grid[:, :, i], color="b")
716716
ax.plot_surface(λ_grid, δ_grid, F2_grid[:, :, i], color="r")
717-
ax.set_xlabel("$\lambda$")
718-
ax.set_ylabel("$\delta$")
719-
ax.set_zlabel("$F(\overline{s}_t)$")
717+
ax.set_xlabel(r"$\lambda$")
718+
ax.set_ylabel(r"$\delta$")
719+
ax.set_zlabel(r"$F(\overline{s}_t)$")
720720
ax.set_title(f"coefficient on {state_var}")
721721
plt.show()
722722
```

lectures/opt_tax_recur.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ for ax, title, plot in zip(axes, titles, [tax_policy, interest_rate]):
12421242
ax.set(title=title, xlim=(min(gov_debt), max(gov_debt)))
12431243
ax.grid()
12441244
1245-
axes[0].legend(('Time $t=0$', 'Time $t \geq 1$'))
1245+
axes[0].legend(('Time $t=0$', r'Time $t \geq 1$'))
12461246
axes[1].set_xlabel('Initial Government Debt')
12471247
12481248
fig.tight_layout()

lectures/rob_markov_perf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ The function's code is as follows
469469
def nnash_robust(A, C, B1, B2, R1, R2, Q1, Q2, S1, S2, W1, W2, M1, M2,
470470
θ1, θ2, beta=1.0, tol=1e-8, max_iter=1000):
471471
472-
"""
472+
r"""
473473
Compute the limit of a Nash linear quadratic dynamic game with
474474
robustness concern.
475475

0 commit comments

Comments
 (0)