Skip to content

Commit d51db23

Browse files
committed
corrected some pages
Several small mistakes/errors were corrected in several proofs/definitions.
1 parent b285f7f commit d51db23

8 files changed

Lines changed: 20 additions & 20 deletions

File tree

D/logreg.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ date: 2020-06-28 20:51:00
99

1010
title: "Logistic regression"
1111
chapter: "Statistical Models"
12-
section: "Probability data"
12+
section: "Categorical data"
1313
topic: "Logistic regression"
1414
definition: "Definition"
1515

I/Table_of_Contents.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,6 @@ title: "Table of Contents"
391391
&emsp;&ensp; 4.2.1. *[Definition](/D/dir-data)* <br>
392392
&emsp;&ensp; 4.2.2. **[Maximum likelihood estimation](/P/dir-mle)** <br>
393393

394-
4.3. Logistic regression <br>
395-
&emsp;&ensp; 4.3.1. *[Definition](/D/logreg)* <br>
396-
&emsp;&ensp; 4.3.2. **[Probability and log-odds](/P/logreg-pnlo)** <br>
397-
&emsp;&ensp; 4.3.3. **[Log-odds and probability](/P/logreg-lonp)** <br>
398-
399394
5. Categorical data
400395

401396
5.1. Binomial observations <br>
@@ -410,6 +405,11 @@ title: "Table of Contents"
410405
&emsp;&ensp; 5.2.3. **[Posterior distribution](/P/mult-post)** <br>
411406
&emsp;&ensp; 5.2.4. **[Log model evidence](/P/mult-lme)** <br>
412407

408+
5.3. Logistic regression <br>
409+
&emsp;&ensp; 5.3.1. *[Definition](/D/logreg)* <br>
410+
&emsp;&ensp; 5.3.2. **[Probability and log-odds](/P/logreg-pnlo)** <br>
411+
&emsp;&ensp; 5.3.3. **[Log-odds and probability](/P/logreg-lonp)** <br>
412+
413413

414414
<br>
415415
<section class="chapter" id="Model Selection">

P/logreg-lonp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ date: 2020-03-03 12:01:00
99

1010
title: "Log-odds and probability in logistic regression"
1111
chapter: "Statistical Models"
12-
section: "Probability data"
12+
section: "Categorical data"
1313
topic: "Logistic regression"
1414
theorem: "Log-odds and probability"
1515

P/logreg-pnlo.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ date: 2020-05-19 05:08:00
99

1010
title: "Probability and log-odds in logistic regression"
1111
chapter: "Statistical Models"
12-
section: "Probability data"
12+
section: "Categorical data"
1313
topic: "Logistic regression"
1414
theorem: "Probability and log-odds"
1515

P/mean-lotus.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,18 @@ $$
5353
Writing the probability mass function $f_Y(y)$ in terms of $y = g(x)$, we have:
5454

5555
$$ \label{eq:mean-lotus-disc-s2}
56-
\mathrm{E}[g(X)] = \sum_{y \in \mathcal{Y}} y \, \mathrm{Pr}(g(x) = y) \; .
56+
\begin{split}
57+
\mathrm{E}[g(X)] &= \sum_{y \in \mathcal{Y}} y \, \mathrm{Pr}(g(x) = y) \\
58+
&= \sum_{y \in \mathcal{Y}} y \, \mathrm{Pr}(x = g^{-1}(y)) \\
59+
&= \sum_{y \in \mathcal{Y}} y \sum_{x = g^{-1}(y)} f_X(x) \\
60+
&= \sum_{y \in \mathcal{Y}} \sum_{x = g^{-1}(y)} y f_X(x) \\
61+
&= \sum_{y \in \mathcal{Y}} \sum_{x = g^{-1}(y)} g(x) f_X(x) \; .
62+
\end{split}
5763
$$
5864

59-
Replacing the probability that $g(x) = y$ in terms of $f_X(x)$, this becomes:
65+
Finally, noting that "for all $y$, then for all $x = g^{-1}(y)$" is equivalent to "for all $x$" if $g^{-1}$ is a monotonic function, we can conclude that
6066

6167
$$ \label{eq:mean-lotus-disc-s3}
62-
\mathrm{E}[g(X)] = \sum_{y \in \mathcal{Y}} y \sum_{x: \; g(x) = y} f_X(x) \; .
63-
$$
64-
65-
Observe that $y = g(x)$ can be moved into the inner sum. Finally, noting that "for all $y$, then for all $x$, such that $g(x) = y$" is equivalent to "for all $x$" if $g^{-1}$ is a monotonic function, we can conclude that
66-
67-
$$ \label{eq:mean-lotus-disc-s4}
6868
\mathrm{E}[g(X)] = \sum_{x \in \mathcal{X}} g(x) f_X(x) \; .
6969
$$
7070

P/ng-kl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ topic: "Normal-gamma distribution"
1414
theorem: "Kullback-Leibler divergence"
1515

1616
sources:
17-
- authors: "Soch & Allefeld"
17+
- authors: "Soch J, Allefeld A"
1818
year: 2016
1919
title: "Kullback-Leibler Divergence for the Normal-Gamma Distribution"
2020
in: "arXiv math.ST"

P/norm-cdfwerf.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ username: "JoramSoch"
3333
---
3434

3535

36-
**Theorem:** Let $X$ be a [random variable](/D/rvar) following a [normal distributions](/D/norm):
36+
**Theorem:** Let $X$ be a [random variable](/D/rvar) following a [normal distribution](/D/norm):
3737

3838
$$ \label{eq:norm}
3939
X \sim \mathcal{N}(\mu, \sigma^2) \; .
@@ -104,7 +104,7 @@ T(0) = \varphi(0) \cdot \sum_{i=1}^{\infty} \frac{0^{2i-1}}{(2i-1)!!} + c &= \fr
104104
\end{split}
105105
$$
106106

107-
3) Finally, the cumulative distribution functions of the standard normal distribution and the general normal distribution [are related to each other](/P/norm-snorm) as
107+
3) Finally, the [cumulative distribution functions](/D/cdf) of the [standard normal distribution](/D/snorm) and the general [normal distribution](/D/norm) [are related to each other](/P/norm-snorm) as
108108

109109
$$ \label{eq:norm-snorm-cdf}
110110
\Phi_{\mu,\sigma}(x) = \Phi\left( \frac{x-\mu}{\sigma} \right) \; .

P/norm-snorm2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ where $\mathcal{Y} = \left\lbrace y = g(x): x \in \mathcal{X} \right\rbrace$. Wi
6262
$$ \label{eq:pdf-Z}
6363
\begin{split}
6464
f_Z(z) &= \frac{1}{\sqrt{2 \pi} \sigma} \cdot \exp \left[ -\frac{1}{2} \left( \frac{g^{-1}(z)-\mu}{\sigma} \right)^2 \right] \cdot \frac{\mathrm{d}g^{-1}(z)}{\mathrm{d}z} \\
65-
&= \frac{1}{\sqrt{2 \pi} \sigma} \cdot \exp \left[ -\frac{1}{2} \left( \frac{(\sigma z + \mu)-\mu}{\sigma} \right)^2 \right] \cdot \frac{\mathrm{d}(\sigma Z + \mu)}{\mathrm{d}z} \\
65+
&= \frac{1}{\sqrt{2 \pi} \sigma} \cdot \exp \left[ -\frac{1}{2} \left( \frac{(\sigma z + \mu)-\mu}{\sigma} \right)^2 \right] \cdot \frac{\mathrm{d}(\sigma z + \mu)}{\mathrm{d}z} \\
6666
&= \frac{1}{\sqrt{2 \pi} \sigma} \cdot \exp \left[ -\frac{1}{2} z^2 \right] \cdot \sigma \\
6767
&= \frac{1}{\sqrt{2 \pi}} \cdot \exp \left[ -\frac{1}{2} z^2 \right]
6868
\end{split}

0 commit comments

Comments
 (0)