Skip to content

Commit eecca09

Browse files
mmckylongye-tian
andauthoredAug 1, 2024··
FIX: pickups from live lecture (#542)
* FIX: pickups from live lecture * update xlables This updates the x labels of the violin plot comparing Amazon and Costco. * Update prob_dist.md --------- Co-authored-by: Longye Tian <longye.tian@outlook.com>
1 parent 1a46d9d commit eecca09

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎lectures/prob_dist.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ $$
296296
p(i) = (1 - \theta)^i \theta
297297
$$
298298

299-
where $\lambda \in [0,1]$ is a parameter
299+
where $\theta \in [0,1]$ is a parameter
300300

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

@@ -884,7 +884,10 @@ x_costco = prices.pct_change()[1:] * 100
884884
fig, ax = plt.subplots()
885885
ax.violinplot([x_amazon, x_costco])
886886
ax.set_ylabel('monthly return (percent change)')
887-
ax.set_xlabel('KDE')
887+
ax.set_xlabel('retailers')
888+
889+
ax.set_xticks([1, 2])
890+
ax.set_xticklabels(['Amazon', 'Costco'])
888891
plt.show()
889892
```
890893

1 commit comments

Comments
 (1)
Please sign in to comment.