@@ -78,7 +78,9 @@ print(X)
78
78
```
79
79
80
80
In this setting, the LLN tells us if we flip the coin many times, the fraction
81
- of heads that we see will be close to the mean $p$.
81
+ of heads that we see will be close to the mean $p$.
82
+
83
+ We use $n$ to represent the number of times the coin is flipped.
82
84
83
85
Let's check this:
84
86
@@ -286,7 +288,7 @@ as expected.
286
288
287
289
Let's vary ` n ` to see how the distribution of the sample mean changes.
288
290
289
- We will use a violin plot to show the different distributions.
291
+ We will use a [ violin plot] ( https://intro.quantecon.org/prob_dist.html#violin-plots ) to show the different distributions.
290
292
291
293
Each distribution in the violin plot represents the distribution of $X_n$ for some $n$, calculated by simulation.
292
294
@@ -357,7 +359,7 @@ This means that the distribution of $\bar X_n$ does not eventually concentrate o
357
359
358
360
Hence the LLN does not hold.
359
361
360
- The LLN fails to hold here because the assumption $\mathbb E|X| = \infty$ is violated by the Cauchy distribution.
362
+ The LLN fails to hold here because the assumption $\mathbb E|X| < \infty$ is violated by the Cauchy distribution.
361
363
362
364
+++
363
365
@@ -438,7 +440,7 @@ Here $\stackrel { d } {\to} N(0, \sigma^2)$ indicates [convergence in distributi
438
440
439
441
The striking implication of the CLT is that for ** any** distribution with
440
442
finite [ second moment] ( https://en.wikipedia.org/wiki/Moment_(mathematics) ) , the simple operation of adding independent
441
- copies ** always** leads to a Gaussian curve.
443
+ copies ** always** leads to a Gaussian(Normal) curve.
442
444
443
445
444
446
@@ -503,7 +505,7 @@ The fit to the normal density is already tight and can be further improved by in
503
505
``` {exercise}
504
506
:label: lln_ex1
505
507
506
- Repeat the simulation [above1 ](sim_one) with the [Beta distribution](https://en.wikipedia.org/wiki/Beta_distribution).
508
+ Repeat the simulation [above ](sim_one) with the [Beta distribution](https://en.wikipedia.org/wiki/Beta_distribution).
507
509
508
510
You can choose any $\alpha > 0$ and $\beta > 0$.
509
511
```
0 commit comments