File tree Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Expand file tree Collapse file tree 1 file changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -334,8 +334,8 @@ heavy-tailed.
334
334
---
335
335
mystnb:
336
336
figure:
337
- caption: Histogram of Cauchy distribution
338
- name: hist -cauchy
337
+ caption: Draws from Normal and Cauchy distributions
338
+ name: draws-normal -cauchy
339
339
---
340
340
n = 120
341
341
np.random.seed(11)
@@ -393,8 +393,8 @@ Here are some draws from the exponential distribution.
393
393
---
394
394
mystnb:
395
395
figure:
396
- caption: Histogram of Exponential distribution
397
- name: hist -exponential
396
+ caption: Draws of Exponential distribution
397
+ name: draws -exponential
398
398
---
399
399
n = 120
400
400
np.random.seed(11)
450
450
---
451
451
mystnb:
452
452
figure:
453
- caption: Histogram of Pareto distribution
454
- name: hist -pareto
453
+ caption: Draws from Pareto distribution
454
+ name: draws -pareto
455
455
---
456
456
n = 120
457
457
np.random.seed(11)
528
528
Here's a plot that illustrates how $G_E$ goes to zero faster than $G_P$.
529
529
530
530
``` {code-cell} ipython3
531
+ ---
532
+ mystnb:
533
+ figure:
534
+ caption: Pareto and exponential distribution comparison
535
+ name: compare-pareto-exponential
536
+ ---
531
537
x = np.linspace(1.5, 100, 1000)
532
538
fig, ax = plt.subplots()
533
539
alpha = 1.0
@@ -541,6 +547,12 @@ Here's a log-log plot of the same functions, which makes visual comparison
541
547
easier.
542
548
543
549
``` {code-cell} ipython3
550
+ ---
551
+ mystnb:
552
+ figure:
553
+ caption: Pareto and exponential distribution comparison (log-log)
554
+ name: compare-pareto-exponential-log-log
555
+ ---
544
556
fig, ax = plt.subplots()
545
557
alpha = 1.0
546
558
ax.loglog(x, np.exp(- alpha * x), label='exponential', alpha=0.8)
You can’t perform that action at this time.
0 commit comments