Skip to content

Commit

Permalink
Merge pull request #432 from QuantEcon/update_heavy_tail
Browse files Browse the repository at this point in the history
[heavy_tails] Update references and titles of figures
  • Loading branch information
jstac authored May 8, 2024
2 parents 3c5585a + 735bf78 commit 90db84e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lectures/heavy_tails.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ too much from the mean.
Putting this another way, light-tailed distributions are those that
rarely generate extreme values.

(A more formal definition is given [below](https://intro.quantecon.org/heavy_tails.html#light-and-heavy-tails).)
(A more formal definition is given {ref}`below <heavy-tail:formal-definition>`.)

Many statisticians and econometricians
use rules of thumb such as "outcomes more than four or five
Expand Down Expand Up @@ -308,7 +308,7 @@ like
* forecasting
* taxation (across a heavy-tailed income distribution), etc.

We return to these points [below](https://intro.quantecon.org/heavy_tails.html#why-do-heavy-tails-matter).
We return to these points {ref}`below <heavy-tail:application>`.


## Visual comparisons
Expand Down Expand Up @@ -541,6 +541,8 @@ fig, ax = plt.subplots()
alpha = 1.0
ax.plot(x, np.exp(- alpha * x), label='exponential', alpha=0.8)
ax.plot(x, x**(- alpha), label='Pareto', alpha=0.8)
ax.set_xlabel('X value')
ax.set_ylabel('CCDF')
ax.legend()
plt.show()
```
Expand All @@ -559,6 +561,8 @@ fig, ax = plt.subplots()
alpha = 1.0
ax.loglog(x, np.exp(- alpha * x), label='exponential', alpha=0.8)
ax.loglog(x, x**(- alpha), label='Pareto', alpha=0.8)
ax.set_xlabel('log value')
ax.set_ylabel('log prob')
ax.legend()
plt.show()
```
Expand Down Expand Up @@ -996,6 +1000,7 @@ The sequence shows no sign of converging.
We return to this point in the exercises.


(heavy-tail:application)=
## Why do heavy tails matter?

We have now seen that
Expand Down Expand Up @@ -1073,6 +1078,7 @@ nonnegative random variables and their distributions.
The definitions for
left hand tails are very similar and we omit them to simplify the exposition.

(heavy-tail:formal-definition)=
### Light and heavy tails

A distribution $F$ with density $f$ on $\mathbb R_+$ is called [heavy-tailed](https://en.wikipedia.org/wiki/Heavy-tailed_distribution) if
Expand Down

0 comments on commit 90db84e

Please sign in to comment.