Skip to content

Commit

Permalink
follow wikipedia style for capitalization, Normal -> normal in text
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcky committed Apr 29, 2024
1 parent 90bf2c2 commit f32785b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lectures/heavy_tails.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ distribution:
---
mystnb:
figure:
caption: Histogram (Normal vs Bitcoin returns)
caption: Histogram (normal vs bitcoin returns)
name: hist-normal-btc
---
r = np.random.standard_t(df=5, size=1000)
Expand Down Expand Up @@ -336,7 +336,7 @@ heavy-tailed.
---
mystnb:
figure:
caption: Draws from Normal and Cauchy distributions
caption: Draws from normal and Cauchy distributions
name: draws-normal-cauchy
---
n = 120
Expand Down Expand Up @@ -395,7 +395,7 @@ Here are some draws from the exponential distribution.
---
mystnb:
figure:
caption: Draws of Exponential distribution
caption: Draws of exponential distribution
name: draws-exponential
---
n = 120
Expand Down Expand Up @@ -643,15 +643,15 @@ We can also use a [qq plot](https://en.wikipedia.org/wiki/Q%E2%80%93Q_plot) to d

The [statsmodels](https://www.statsmodels.org/stable/index.html) package provides a convenient [qqplot](https://www.statsmodels.org/stable/generated/statsmodels.graphics.gofplots.qqplot.html) function that, by default, compares sample data to the quintiles of the normal distribution.

If the data is drawn from a Normal distribution, the plot would look like:
If the data is drawn from a normal distribution, the plot would look like:

```{code-cell} ipython3
data_normal = np.random.normal(size=sample_size)
sm.qqplot(data_normal, line='45')
plt.show()
```

We can now compare this with the exponential, log-normal, and pareto distributions
We can now compare this with the exponential, log-normal, and Pareto distributions

```{code-cell} ipython3
# Build figure
Expand Down Expand Up @@ -858,7 +858,7 @@ The data is from the Forbes Billionaires list in 2020.
---
mystnb:
figure:
caption: Wealth distribution (Forbes Billionaires in 2020)
caption: Wealth distribution (Forbes billionaires in 2020)
name: wealth-dist
tags: [hide-input]
---
Expand Down

0 comments on commit f32785b

Please sign in to comment.