From 26c3b1bf7be86f1fd6df86bafbf9f14bc7f7cb08 Mon Sep 17 00:00:00 2001 From: mmcky Date: Thu, 1 Aug 2024 19:24:32 +1000 Subject: [PATCH 1/3] FIX: pickups from live lecture --- lectures/prob_dist.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/prob_dist.md b/lectures/prob_dist.md index 6976b665..aae2e88f 100644 --- a/lectures/prob_dist.md +++ b/lectures/prob_dist.md @@ -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.) From 6d7b3be1d0d6a464a83af584067070d1cd73c143 Mon Sep 17 00:00:00 2001 From: Longye Tian Date: Thu, 1 Aug 2024 20:06:06 +1000 Subject: [PATCH 2/3] update xlables This updates the x labels of the violin plot comparing Amazon and Costco. --- lectures/prob_dist.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lectures/prob_dist.md b/lectures/prob_dist.md index aae2e88f..4e4b89f1 100644 --- a/lectures/prob_dist.md +++ b/lectures/prob_dist.md @@ -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('Retailer') + +ax.set_xticks([1, 2]) +ax.set_xticklabels(['Amazon', 'Costco']) plt.show() ``` From c550a03079696876b1c1ff03c8ec91e226519c13 Mon Sep 17 00:00:00 2001 From: Longye Tian Date: Thu, 1 Aug 2024 20:08:41 +1000 Subject: [PATCH 3/3] Update prob_dist.md --- lectures/prob_dist.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/prob_dist.md b/lectures/prob_dist.md index 4e4b89f1..22defb18 100644 --- a/lectures/prob_dist.md +++ b/lectures/prob_dist.md @@ -884,7 +884,7 @@ 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('Retailer') +ax.set_xlabel('retailers') ax.set_xticks([1, 2]) ax.set_xticklabels(['Amazon', 'Costco'])