Skip to content

Commit

Permalink
Merge branch 'main' into example_spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
longye-tian authored Aug 2, 2024
2 parents 3f0162e + eecca09 commit 596bfec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lectures/prob_dist.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ $$
p(i) = (1 - \theta)^i \theta
$$

where $\lambda \in [0,1]$ is a parameter
where $\theta \in [0,1]$ is a parameter

(A discrete distribution has infinite support if the set of points to which it assigns positive probability is infinite.)

Expand Down Expand Up @@ -884,7 +884,10 @@ x_costco = prices.pct_change()[1:] * 100
fig, ax = plt.subplots()
ax.violinplot([x_amazon, x_costco])
ax.set_ylabel('monthly return (percent change)')
ax.set_xlabel('KDE')
ax.set_xlabel('retailers')
ax.set_xticks([1, 2])
ax.set_xticklabels(['Amazon', 'Costco'])
plt.show()
```

Expand Down

0 comments on commit 596bfec

Please sign in to comment.