Skip to content

Commit eb5dc78

Browse files
committed
minor updates
1 parent e51ac00 commit eb5dc78

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lectures/likelihood_ratio_process_2.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,9 +1436,10 @@ def simulate_three_model_allocation(s_seq, f_func, g_func, h_func,
14361436
The following code cell defines a plotting function to show the convergence of beliefs and consumption ratio
14371437

14381438
```{code-cell} ipython3
1439+
:tags: [hide-input]
14391440
14401441
def plot_three_model_results(c1_data, π_data, nature_labels, λ=0.5,
1441-
agent_labels=None, title_suffix="", figsize=(12, 10)):
1442+
agent_labels=None, figsize=(12, 10)):
14421443
"""
14431444
Create plots for three-model exercises.
14441445
"""
@@ -1501,7 +1502,7 @@ def plot_three_model_results(c1_data, π_data, nature_labels, λ=0.5,
15011502
ax.plot(c1_med, color=colors[i], linewidth=2, label="median")
15021503
ax.axhline(y=0.5, color='grey', linestyle='--', alpha=0.5)
15031504
ax.set_title(
1504-
f'Agent 1 consumption share (Nature = {nature_label}{title_suffix})')
1505+
f'Agent 1 consumption share (Nature = {nature_label})')
15051506
ax.set_xlabel('t')
15061507
ax.set_ylabel("median consumption share")
15071508
ax.set_ylim([-0.01, 1.01])
@@ -1644,9 +1645,7 @@ c1_data = [results_f[0], results_g[0]]
16441645
π_data = [results_f[1:], results_g[1:]]
16451646
nature_labels = ['f', 'g']
16461647
1647-
title_suffix = f" (Agent 1: ε={ε}, Agent 2: dogmatic)"
1648-
fig, axes = plot_three_model_results(c1_data, π_data, nature_labels, λ,
1649-
title_suffix=title_suffix)
1648+
fig, axes = plot_three_model_results(c1_data, π_data, nature_labels, λ)
16501649
plt.show()
16511650
```
16521651

0 commit comments

Comments
 (0)