Skip to content

Commit ad13261

Browse files
authored
Merge branch 'main' into tom_july
2 parents a79c793 + 0c60b16 commit ad13261

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

lectures/lln_clt.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ will converge to their population means.
5151

5252
Let's see an example of the LLN in action before we go further.
5353

54+
```{prf:example}
55+
:label: lln_ex_ber
56+
5457
Consider a [Bernoulli random variable](https://en.wikipedia.org/wiki/Bernoulli_distribution) $X$ with parameter $p$.
5558
5659
This means that $X$ takes values in $\{0,1\}$ and $\mathbb P\{X=1\} = p$.
@@ -68,6 +71,7 @@ $$
6871
\mathbb E X
6972
= 0 \cdot \mathbb P\{X=0\} + 1 \cdot \mathbb P\{X=1\} = \mathbb P\{X=1\} = p
7073
$$
74+
```
7175

7276
We can generate a draw of $X$ with `scipy.stats` (imported as `st`) as follows:
7377

@@ -369,7 +373,8 @@ The LLN fails to hold here because the assumption $\mathbb E|X| < \infty$ is vio
369373

370374
The LLN can also fail to hold when the IID assumption is violated.
371375

372-
For example, suppose that
376+
```{prf:example}
377+
:label: lln_ex_fail
373378
374379
$$
375380
X_0 \sim N(0,1)
@@ -384,6 +389,7 @@ $$
384389
$$
385390
386391
Therefore, the distribution of $\bar X_n$ is $N(0,1)$ for all $n$!
392+
```
387393

388394
Does this contradict the LLN, which says that the distribution of $\bar X_n$
389395
collapses to the single point $\mu$?
@@ -439,9 +445,9 @@ n \to \infty
439445
Here $\stackrel { d } {\to} N(0, \sigma^2)$ indicates [convergence in distribution](https://en.wikipedia.org/wiki/Convergence_of_random_variables#Convergence_in_distribution) to a centered (i.e., zero mean) normal with standard deviation $\sigma$.
440446

441447

442-
The striking implication of the CLT is that for **any** distribution with
448+
The striking implication of the CLT is that for any distribution with
443449
finite [second moment](https://en.wikipedia.org/wiki/Moment_(mathematics)), the simple operation of adding independent
444-
copies **always** leads to a Gaussian(Normal) curve.
450+
copies always leads to a Gaussian(Normal) curve.
445451

446452

447453

@@ -599,7 +605,7 @@ $$
599605
$$
600606
601607
where $\alpha, \beta, \sigma$ are constants and $\epsilon_1, \epsilon_2,
602-
\ldots$ is IID and standard norma.
608+
\ldots$ are IID and standard normal.
603609
604610
Suppose that
605611

lectures/unpleasant.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ $\widetilde R \check B_{-1}$ is a *real* quantity, being measured in time $0$ go
9797
9898
### Open market operations
9999
100-
At time $0$, government can rearrange its portolio of debts with subject to the following constraint (on open-market operations):
100+
At time $0$, government can rearrange its portfolio of debts subject to the following constraint (on open-market operations):
101101
102102
$$
103103
\widetilde R B_{-1} + \frac{m_0}{p_0} = \widetilde R \check B_{-1} + \frac{\check m_0}{p_0}
@@ -152,7 +152,7 @@ running monetary and fiscal policies.
152152
153153
Here, by **fiscal policy** we mean the collection of actions that determine a sequence of net-of-interest government deficits $\{g_t\}_{t=0}^\infty$ that must be financed by issuing to the public either money or interest bearing bonds.
154154
155-
By **monetary policy** or **debt-management policy**, we mean the collection of actions that determine how the government divides its portolio of debts to the public between interest-bearing parts (government bonds) and non-interest-bearing parts (money).
155+
By **monetary policy** or **debt-management policy**, we mean the collection of actions that determine how the government divides its portfolio of debts to the public between interest-bearing parts (government bonds) and non-interest-bearing parts (money).
156156
157157
By an **open market operation**, we mean a government monetary policy action in which the government
158158
(or its delegate, say, a central bank) either buys government bonds from the public for newly issued money, or sells bonds to the public and withdraws the money it receives from public circulation.
@@ -315,7 +315,7 @@ These parameter settings mean that just before time $0$, the "central bank" sell
315315
316316
That leaves the public with less currency but more government interest-bearing bonds.
317317
318-
Since the public has less currency (it's supply has diminished) it is plausible to anticipate that the price level at time $0$ will be driven downward.
318+
Since the public has less currency (its supply has diminished) it is plausible to anticipate that the price level at time $0$ will be driven downward.
319319
320320
But that is not the end of the story, because this **open market operation** at time $0$ has consequences for future settings of $m_{t+1}$ and the gross-of-interest government deficit $\bar g_t$.
321321
@@ -418,7 +418,7 @@ plt.xlabel('$m_0$')
418418
plt.show()
419419
```
420420
421-
Now let's write and implement code that let's us experiment with the time $0$ open market operation described earlier.
421+
Now let's write and implement code that lets us experiment with the time $0$ open market operation described earlier.
422422
423423
```{code-cell} ipython3
424424
def simulate(m0, model, length=15, p0_guess=1):

0 commit comments

Comments
 (0)