Skip to content

Commit

Permalink
[mle] Update the String Format (#430)
Browse files Browse the repository at this point in the history
* update the string format

* fix mus
  • Loading branch information
HumphreyYang authored Dec 5, 2024
1 parent f4d7a8d commit 463d1e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lectures/mle.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ for μ in [1, 5, 10]:
distribution.append(poisson_pmf(y_i, μ))
ax.plot(y_values,
distribution,
label=f'$\mu$={μ}',
label=fr'$\mu$={μ}',
alpha=0.5,
marker='o',
markersize=8)
ax.grid()
ax.set_xlabel('$y$', fontsize=14)
ax.set_ylabel('$f(y \mid \mu)$', fontsize=14)
ax.set_ylabel(r'$f(y \mid \mu)$', fontsize=14)
ax.axis(xmin=0, ymin=0)
ax.legend(fontsize=14)
Expand Down Expand Up @@ -211,14 +211,14 @@ for X in datasets:
distribution.append(poisson_pmf(y_i, μ))
ax.plot(y_values,
distribution,
label=f'$\mu_i$={μ:.1}',
label=fr'$\mu_i$={μ:.1}',
marker='o',
markersize=8,
alpha=0.5)
ax.grid()
ax.legend()
ax.set_xlabel('$y \mid x_i$')
ax.set_xlabel(r'$y \mid x_i$')
ax.set_ylabel(r'$f(y \mid x_i; \beta )$')
ax.axis(xmin=0, ymin=0)
plt.show()
Expand Down

0 comments on commit 463d1e2

Please sign in to comment.