Skip to content

Commit b542176

Browse files
dem-extra1google-labs-jules[bot]claude
authored
docs: improve narrative flow, correct mistakes, and clarify heading levels (#1168)
* docs: improve narrative flow and clarify heading levels - Replace bare demonstratives and vague transitions with explicit noun phrases across chapters and subfiles - Demote section headings inside theorem/definition/example divs to level 4 (####) to preserve document outline structure and numbering - Fix slidebreak shortcode usage in probability subfile Co-authored-by: dem-extra1 <112029334+dem-extra1@users.noreply.github.com> * docs: improve narrative flow, clarify heading levels, and fix semantic line breaks - Replace bare demonstratives and vague transitions with explicit noun phrases across chapters and subfiles - Demote section headings inside theorem/definition/example divs to level 4 (####) to preserve document outline structure and numbering - Fix slidebreak shortcode usage in probability subfile - Enforce semantic line breaks after semicolons to pass check-new-line-breaks CI check Co-authored-by: dem-extra1 <112029334+dem-extra1@users.noreply.github.com> --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 681ecbc commit b542176

26 files changed

Lines changed: 75 additions & 71 deletions

‎_subfiles/Linear-models-overview/_exr-prac-linreg-score.qmd‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Using the log-likelihood from @exr-prac-linreg-lik,
88
derive the score equations for $\beta_0$ and $\beta_1$.
9-
That is, compute
9+
Specifically, compute
1010
$\frac{\partial \ell}{\partial \beta_0} = 0$
1111
and
1212
$\frac{\partial \ell}{\partial \beta_1} = 0$,
@@ -68,7 +68,7 @@ $$
6868
\sum_{i=1}^n x_i y_i = \beta_0\sum_{i=1}^n x_i + \beta_1\sum_{i=1}^n x_i^2
6969
$$
7070

71-
These equations are the **normal equations**,
71+
These score equations are the **normal equations**,
7272
whose solution gives the OLS/MLE estimators
7373
$\hat\beta_0$ and $\hat\beta_1$.
7474

‎_subfiles/Linear-models-overview/_sec_linreg_gof.qmd‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ AIC and BIC can be used to compare both nested and non-nested models.
1616
### Formulas
1717

1818
:::{#def-aic}
19-
### Akaike Information Criterion (AIC)
19+
#### Akaike Information Criterion (AIC)
2020

2121
$$\text{AIC} = -2 \ell(\hat\theta) + 2 p$$
2222

@@ -30,7 +30,7 @@ and $n$ is the number of observations.
3030
---
3131

3232
:::{#def-bic}
33-
### Bayesian Information Criterion (BIC)
33+
#### Bayesian Information Criterion (BIC)
3434

3535
$$\text{BIC} = -2 \ell(\hat\theta) + p \log(n)$$
3636

‎_subfiles/inference/_def-inference.qmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:::{#def-inference}
2-
### Statistical inference
2+
#### Statistical inference
33

44
Statistical inference is the process of analyzing data in order
55
to learn about

‎_subfiles/intro-to-survival-analysis/_exr_survival_prediction_intervals.qmd‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:::{#exr-compute-surv-pred}
22

3-
## Construct a prediction interval
3+
#### Construct a prediction interval
44

55
```{r}
66
#| include: false
@@ -51,7 +51,7 @@ Left to the reader for now.
5151
---
5252

5353
:::{#exr-explain-surv-pred}
54-
## Explain the results
54+
#### Explain the results
5555

5656
Why do time-to-event models have such wide predictive intervals?
5757

‎_subfiles/logistic-regression/_exm_wcgs_coef_interp.qmd‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ $$
145145
\ea
146146
$$
147147

148-
That is,
148+
In terms of finite differences,
149149
$\beta_{A}$ is the difference in
150150
log-odds of experiencing CHD
151151
per one-year difference in age
@@ -193,7 +193,7 @@ $$\b_P = \eta(P = 1, A = 0) - \eta(P=0, A = 0)$${#eq-wcgs-intxn-betaP}
193193
- $\text{e}^{\beta_{P}}$ is the ratio of the odds (aka "the odds ratio")
194194
of experiencing CHD,
195195
for a `r age_offset`-year old individual with type A personality
196-
vs a `r age_offset`-year old individual with type B personality; that is,
196+
vs a `r age_offset`-year old individual with type B personality; specifically,
197197

198198
$$
199199
\expf{\beta_{P}}
@@ -266,7 +266,7 @@ Accordingly,
266266
the odds ratio of experiencing CHD per one-year difference in age
267267
differs by a factor of $\text{e}^{\beta_{PA}}$
268268
for participants with type A personality compared to
269-
participants with type B personality; that is,
269+
participants with type B personality; specifically,
270270

271271
$$
272272
\ba

‎_subfiles/logistic-regression/_sec_compare_probs.qmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ $$\rho(\pi_1,\pi_2) = \frac{\pi_1}{\pi_2}$$
8585
:::{#sol-exr-name-RR}
8686

8787
:::{#def-RR}
88-
### Relative risk ratios
88+
#### Relative risk ratios
8989

9090
The ratio of two probabilities $\pi_1$ and $\pi_2$,
9191

‎_subfiles/math-prereqs/_cor_fubini_rect.qmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:::{#cor-fubini-rect}
22

3-
### Continuous functions on a rectangle (corollary of @thm-fubini)
3+
#### Continuous functions on a rectangle (corollary of @thm-fubini)
44

55
If $f : [a, b] \times [c, d] \to \mathbb{R}$ is **continuous** on the
66
closed bounded rectangle $[a, b] \times [c, d]$, then:

‎_subfiles/math-prereqs/_fubini_intro_thm.qmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ follow from a stated theorem rather than from an aside.
1313

1414
:::{#thm-fubini}
1515

16-
### Fubini's theorem (Riemann version)
16+
#### Fubini's theorem (Riemann version)
1717

1818
Let $f$ be **continuous** on a plane region $R \subseteq \mathbb{R}^2$.
1919

‎_subfiles/math-prereqs/_sec_linear_algebra.qmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ is the sum of all entries of $\vx$.
9696
---
9797

9898
:::{#def-indicator-vector}
99-
### Indicator vector / standard basis vector
99+
#### Indicator vector / standard basis vector
100100

101101
The $j$-th **indicator vector** (or **standard basis vector**) $\vecf{e}_j$
102102
of length $p$ has a $1$ in position $j$ and $0$s elsewhere:

‎_subfiles/math-prereqs/_thm_fubini_tonelli.qmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
:::{#thm-fubini-tonelli}
22

3-
### Fubini–Tonelli theorem (measure-theoretic form)
3+
#### Fubini–Tonelli theorem (measure-theoretic form)
44

55
Let $(\Omega_1, \mathcal F_1, \mu_1)$ and $(\Omega_2, \mathcal F_2, \mu_2)$
66
be **σ-finite** measure spaces,

0 commit comments

Comments
 (0)