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.
334334---
335335mystnb:
336336 figure:
337- caption: Histogram of Cauchy distribution
338- name: hist -cauchy
337+ caption: Draws from Normal and Cauchy distributions
338+ name: draws-normal -cauchy
339339---
340340n = 120
341341np.random.seed(11)
@@ -393,8 +393,8 @@ Here are some draws from the exponential distribution.
393393---
394394mystnb:
395395 figure:
396- caption: Histogram of Exponential distribution
397- name: hist -exponential
396+ caption: Draws of Exponential distribution
397+ name: draws -exponential
398398---
399399n = 120
400400np.random.seed(11)
450450---
451451mystnb:
452452 figure:
453- caption: Histogram of Pareto distribution
454- name: hist -pareto
453+ caption: Draws from Pareto distribution
454+ name: draws -pareto
455455---
456456n = 120
457457np.random.seed(11)
528528Here's a plot that illustrates how $G_E$ goes to zero faster than $G_P$.
529529
530530``` {code-cell} ipython3
531+ ---
532+ mystnb:
533+ figure:
534+ caption: Pareto and exponential distribution comparison
535+ name: compare-pareto-exponential
536+ ---
531537x = np.linspace(1.5, 100, 1000)
532538fig, ax = plt.subplots()
533539alpha = 1.0
@@ -541,6 +547,12 @@ Here's a log-log plot of the same functions, which makes visual comparison
541547easier.
542548
543549``` {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+ ---
544556fig, ax = plt.subplots()
545557alpha = 1.0
546558ax.loglog(x, np.exp(- alpha * x), label='exponential', alpha=0.8)
You can’t perform that action at this time.
0 commit comments