Skip to content

Commit 7d9d642

Browse files
style: fix 42 issues in additive_functionals (#292)
- writing: 42 fixes Rules addressed: - qe-writing-008: Remove excessive whitespace between words - qe-writing-008: Remove excessive whitespace between words - qe-writing-008: Remove excessive whitespace between words - qe-writing-008: Remove excessive whitespace between words - qe-writing-008: Remove excessive whitespace between words - qe-writing-008: Remove excessive whitespace between words - qe-writing-008: Remove excessive whitespace between words - qe-writing-001: Use one sentence per paragraph - qe-writing-001: Use one sentence per paragraph - qe-writing-001: Use one sentence per paragraph - ... and 32 more Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt McKay <[email protected]>
1 parent 3298d2d commit 7d9d642

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

‎lectures/additive_functionals.md‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ In addition to what's in Anaconda, this lecture will need the following librarie
3737

3838
Many economic time series display persistent growth that prevents them from being asymptotically stationary and ergodic.
3939

40-
For example, outputs, prices, and dividends typically display irregular but persistent growth.
40+
For example, outputs, prices, and dividends typically display irregular but persistent growth.
4141

4242
Asymptotic stationarity and ergodicity are key assumptions needed to make it possible to learn by applying statistical methods.
4343

4444
But there are good ways to model time series that have persistent growth that still enable statistical learning based on a law of large numbers for an asymptotically stationary and ergodic process.
4545

46-
Thus, {cite}`Hansen_2012_Eca` described two classes of time series models that accommodate growth.
46+
Thus, {cite}`Hansen_2012_Eca` described two classes of time series models that accommodate growth.
4747

4848
They are
4949

@@ -193,6 +193,7 @@ But here we will use a different set of code for simulation, for reasons describ
193193
Let's run some simulations to build intuition.
194194

195195
(addfunc_eg1)=
196+
196197
In doing so we'll assume that $z_{t+1}$ is scalar and that $\tilde x_t$ follows a 4th-order scalar autoregression.
197198

198199
```{math}
@@ -427,7 +428,7 @@ def plot_given_paths(amf, T, ypath, mpath, spath, tpath,
427428
if show_trend:
428429
ax[0, 0].plot(trange, tpath[0, :], label="$t_t$", color="r")
429430
ax[0, 0].axhline(horline, color="k", linestyle="-.")
430-
ax[0, 0].set_title("One Path of All Variables")
431+
ax[0, 0].set_title("One path of all variables")
431432
ax[0, 0].legend(loc="upper left")
432433
433434
# Plot Martingale Component
@@ -437,7 +438,7 @@ def plot_given_paths(amf, T, ypath, mpath, spath, tpath,
437438
lb = mbounds[0, :]
438439
439440
ax[0, 1].fill_between(trange, lb, ub, alpha=0.25, color="m")
440-
ax[0, 1].set_title("Martingale Components for Many Paths")
441+
ax[0, 1].set_title("Martingale components for many paths")
441442
ax[0, 1].axhline(horline, color="k", linestyle="-.")
442443
443444
# Plot Stationary Component
@@ -447,12 +448,12 @@ def plot_given_paths(amf, T, ypath, mpath, spath, tpath,
447448
lb = sbounds[0, :]
448449
ax[1, 0].fill_between(trange, lb, ub, alpha=0.25, color="g")
449450
ax[1, 0].axhline(horline, color="k", linestyle="-.")
450-
ax[1, 0].set_title("Stationary Components for Many Paths")
451+
ax[1, 0].set_title("Stationary components for many paths")
451452
452453
# Plot Trend Component
453454
if show_trend:
454455
ax[1, 1].plot(tpath.T, color="r")
455-
ax[1, 1].set_title("Trend Components for Many Paths")
456+
ax[1, 1].set_title("Trend components for many paths")
456457
ax[1, 1].axhline(horline, color="k", linestyle="-.")
457458
458459
return fig
@@ -974,7 +975,7 @@ The purple 95 percent frequency coverage interval collapses around zero, illustr
974975

975976
## More about the multiplicative martingale
976977

977-
Let's drill down and study probability distribution of the multiplicative martingale $\{\widetilde M_t\}_{t=0}^\infty$ in
978+
Let's drill down and study probability distribution of the multiplicative martingale $\{\widetilde M_t\}_{t=0}^\infty$ in
978979
more detail.
979980

980981
As we have seen, it has representation
@@ -1278,7 +1279,7 @@ These probability density functions again help us understand mechanics underlyin
12781279
[This lecture](https://python.quantecon.org/likelihood_ratio_process.html) studies **likelihood processes**
12791280
and **likelihood ratio processes**.
12801281

1281-
A **likelihood ratio process** is a multiplicative martingale with mean unity.
1282+
A **likelihood ratio process** is a multiplicative martingale with mean unity.
12821283

12831284
Likelihood ratio processes exhibit the peculiar property that naturally also appears
12841285
[here](https://python.quantecon.org/likelihood_ratio_process.html).

0 commit comments

Comments
 (0)