Skip to content

Commit f71298e

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

11 files changed

Lines changed: 27 additions & 27 deletions

D/mult.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ $$ \label{eq:mult}
3333
X \sim \mathrm{Mult}(n, \left[p_1, \ldots, p_k \right]) \; ,
3434
$$
3535

36-
if $X$ are the numbers of observations belonging to $k$ distinct categories in $n$ [independent](/D/ind) trials, where each trial has [$k$ possible outcomes](/D/cat) and the category probabilities are identical across trials.
36+
if $X$ are the numbers of observations belonging to $k$ distinct categories in $n$ [independent](/D/ind) trials, where each trial has $k$ [possible outcomes](/D/cat) and the category probabilities are identical across trials.

P/kl-ent.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ affiliation: "BCCN Berlin"
77
e_mail: "joram.soch@bccn-berlin.de"
88
date: 2020-05-27 23:20:00
99

10-
title: "Relation of Kullback-Leibler divergence to entropy"
10+
title: "Relation of discrete Kullback-Leibler divergence to Shannon entropy"
1111
chapter: "General Theorems"
1212
section: "Information theory"
1313
topic: "Kullback-Leibler divergence"

P/matn-marg.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ where $m_{ij}$ is the $(i,j)$-th entry of $M$.
6969
$$ \label{eq:A}
7070
A \in \mathbb{R}^{\lvert I \rvert \times n}, \quad \text{s.t.} \quad a_{ij} = \left\{
7171
\begin{array}{rl}
72-
0 \; , & \text{if} \; I_i = j \\
73-
1 \; , & \text{otherwise}
72+
1 \; , & \text{if} \; I_i = j \\
73+
0 \; , & \text{otherwise}
7474
\end{array}
7575
\right.
7676
$$
@@ -80,8 +80,8 @@ and define a selector matrix $B$, such that $b_{ij} = 1$, if the $j$-th column i
8080
$$ \label{eq:B}
8181
B \in \mathbb{R}^{p \times \lvert J \rvert}, \quad \text{s.t.} \quad b_{ij} = \left\{
8282
\begin{array}{rl}
83-
0 \; , & \text{if} \; J_j = i \\
84-
1 \; , & \text{otherwise} \; .
83+
1 \; , & \text{if} \; J_j = i \\
84+
0 \; , & \text{otherwise} \; .
8585
\end{array}
8686
\right.
8787
$$

P/matn-samp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $$
3737
**Proof:** If all entries of $X$ are independent and [standard normally distributed](/D/snorm)
3838

3939
$$ \label{eq:xij-dist}
40-
x_{ij} \sim \mathcal{N}(0, 1) \quad \text{ind. for all} \quad i = 1,\ldots,n \quad \text{and} \quad j = 1,\ldots,p \; ,
40+
x_{ij} \overset{\mathrm{i.i.d.}}{\sim} \mathcal{N}(0, 1) \quad \text{for all} \quad i = 1,\ldots,n \quad \text{and} \quad j = 1,\ldots,p \; ,
4141
$$
4242

4343
this [implies a multivariate normal distribution with diagonal covariance matrix](/P/mvn-ind):

P/mult-cov.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ $$
4646
which [has the variance](/P/bin-var) $\mathrm{Var}(X_i) = n p_i(1-p_i) = n (p_i - p_i^2)$, constituting the elements of the main diagonal in $\mathrm{Cov}(X)$ in \eqref{eq:mult-cov}. To prove $\mathrm{Cov}(X_i, X_j) = -n p_i p_j$ for $i \ne j$ (which constitutes the off-diagonal elements of the covariance matrix), we first recognize that
4747

4848
$$ \label{eq:bin-sum}
49-
X_i = \sum_{k=1}^n \mathbb{I}_i(k), \quad \text{with} \quad \mathbb{I}_i(k) := \begin{cases}
49+
X_i = \sum_{k=1}^n \mathbb{I}_i(k), \quad \text{with} \quad \mathbb{I}_i(k) = \begin{cases}
5050
1 & \text{if $k$-th draw was of category $i$}, \\
51-
0 & \text{otherwise},
51+
0 & \text{otherwise} \; ,
5252
\end{cases}
5353
$$
5454

55-
the indicator function $\mathbb{I}_i$ being a [Bernoulli-distributed](/D/bern) random variable with the [expected value](/P/bern-mean) $p_i$. Then, we have
55+
where the indicator function $\mathbb{I}_i$ is a [Bernoulli-distributed](/D/bern) random variable with the [expected value](/P/bern-mean) $p_i$. Then, we have
5656

5757
$$ \label{eq:mult-cov-qed}
5858
\begin{split}

P/mvn-cov.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ $$ \label{eq:mvn-cov-qed}
102102
\begin{split}
103103
\mathrm{Cov}(x) &= \mathrm{Cov}( Az + \mu ) \\
104104
&\overset{\eqref{eq:cov-inv}}{=} \mathrm{Cov}(Az) \\
105-
&\overset{\eqref{eq:cov-scal}}{=} A \mathrm{Cov}(z) A^\mathrm{T} \\
105+
&\overset{\eqref{eq:cov-scal}}{=} A \, \mathrm{Cov}(z) A^\mathrm{T} \\
106106
&\overset{\eqref{eq:z-cov}}{=} A I_n A^\mathrm{T} \\
107107
&= A A^\mathrm{T} \\
108108
&= \Sigma \; .

P/mvn-mean.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ $$ \label{eq:mvn-mean-qed}
8484
\begin{split}
8585
\mathrm{E}(x) &= \mathrm{E}( Az + \mu ) \\
8686
&= \mathrm{E}(Az) + \mathrm{E}(\mu) \\
87-
&= A \mathrm{E}(z) + \mu \\
88-
&\overset{\eqref{eq:z-mean}}{=} A 0_n + \mu \\
87+
&= A \, \mathrm{E}(z) + \mu \\
88+
&\overset{\eqref{eq:z-mean}}{=} A \, 0_n + \mu \\
8989
&= \mu \; .
9090
\end{split}
9191
$$

P/ug-ttest1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ $$ \label{eq:var-samp}
6464
s^2 = \frac{1}{n-1} \sum_{i=1}^{n} (y_i - \bar{y})^2 \; .
6565
$$
6666

67-
Using the [linearity of the expected value](/P/mean-lin), the [additivity of the variance under independence](/P/var-add) and [scaling of the variance upon multiplication](/P/var-scal), the sample mean follows a [normal distribution](/D/norm)
67+
Using the [linear combination formula for normal random variables](/P/norm-lincomb), the sample mean follows a [normal distribution](/D/norm) with the following parameters:
6868

6969
$$ \label{eq:mean-samp-dist}
70-
\bar{y} = \frac{1}{n} \sum_{i=1}^{n} y_i \sim \mathcal{N}\left( \frac{1}{n} n \mu, \left(\frac{1}{n}\right)^2 n \sigma^2 \right) = \mathcal{N}\left( \mu, \sigma^2/n \right)
70+
\bar{y} = \frac{1}{n} \sum_{i=1}^{n} y_i \sim \mathcal{N}\left( \frac{1}{n} n \mu, \left(\frac{1}{n}\right)^2 n \sigma^2 \right) = \mathcal{N}\left( \mu, \sigma^2/n \right) \; .
7171
$$
7272

73-
and additionally using the [invariance of the variance under addition](/P/var-inv) and applying the null hypothesis from \eqref{eq:ttest1-h0}, the distribution of $Z = \sqrt{n}(\bar{y}-\mu_0)/\sigma$ becomes [standard normal](/D/snorm)
73+
Again employing the linear combination theorem and applying the null hypothesis from \eqref{eq:ttest1-h0}, the distribution of $Z = \sqrt{n}(\bar{y}-\mu_0)/\sigma$ becomes [standard normal](/D/snorm)
7474

7575
$$ \label{eq:Z-dist}
7676
Z = \frac{\sqrt{n}(\bar{y}-\mu_0)}{\sigma} \sim \mathcal{N}\left( \frac{\sqrt{n}}{\sigma} (\mu - \mu_0), \left(\frac{\sqrt{n}}{\sigma}\right)^2 \frac{\sigma^2}{n} \right) \overset{H_0}{=} \mathcal{N}\left( 0, 1 \right) \; .

P/ug-ttest2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ y_{2i} &\sim \mathcal{N}(\mu_2, \sigma^2), \quad i = 1, \ldots, n_2
4242
\end{split}
4343
$$
4444

45-
be a [univariate Gaussian data set](/D/ug) representing two groups of unequal size $n_1$ and $n_2$ with unknown means $\mu_1$ and $\mu_2$ and equal unknown variance $\sigma^2$. Then, the [test statistic](/D/tstat)
45+
be two [univariate Gaussian data sets](/D/ug) representing two groups of unequal size $n_1$ and $n_2$ with unknown means $\mu_1$ and $\mu_2$ and equal unknown variance $\sigma^2$. Then, the [test statistic](/D/tstat)
4646

4747
$$ \label{eq:t}
4848
t = \frac{(\bar{y}_1-\bar{y}_2)-\mu_\Delta}{s_p \cdot \sqrt{\frac{1}{n_1}+\frac{1}{n_2}}}
@@ -85,16 +85,16 @@ s^2_2 &= \frac{1}{n_2-1} \sum_{i=1}^{n_2} (y_{2i} - \bar{y}_2)^2 \; .
8585
\end{split}
8686
$$
8787

88-
Using the [linearity of the expected value](/P/mean-lin), the [additivity of the variance under independence](/P/var-add) and [scaling of the variance upon multiplication](/P/var-scal), the sample means follow a [normal distribution](/D/norm)
88+
Using the [linear combination formula for normal random variables](/P/norm-lincomb), the sample means follows [normal distributions](/D/norm) with the following parameters:
8989

9090
$$ \label{eq:mean-samp-dist}
9191
\begin{split}
9292
\bar{y}_1 &= \frac{1}{n_1} \sum_{i=1}^{n_1} y_{1i} \sim \mathcal{N}\left( \frac{1}{n_1} n_1 \mu_1, \left(\frac{1}{n_1}\right)^2 n_1 \sigma^2 \right) = \mathcal{N}\left( \mu_1, \sigma^2/n_1 \right) \\
93-
\bar{y}_2 &= \frac{1}{n_2} \sum_{i=1}^{n_2} y_{2i} \sim \mathcal{N}\left( \frac{1}{n_2} n_2 \mu_2, \left(\frac{1}{n_2}\right)^2 n_2 \sigma^2 \right) = \mathcal{N}\left( \mu_2, \sigma^2/n_2 \right)
93+
\bar{y}_2 &= \frac{1}{n_2} \sum_{i=1}^{n_2} y_{2i} \sim \mathcal{N}\left( \frac{1}{n_2} n_2 \mu_2, \left(\frac{1}{n_2}\right)^2 n_2 \sigma^2 \right) = \mathcal{N}\left( \mu_2, \sigma^2/n_2 \right) \; .
9494
\end{split}
9595
$$
9696

97-
and additionally using the [invariance of the variance under addition](/P/var-inv) and applying the null hypothesis from \eqref{eq:ttest2-h0}, the distribution of $Z = ( ( \bar{y}_1 - \bar{y}_2 ) - \mu_{\Delta} ) / ( \sigma \sqrt{1/n_1+1/n_2} )$ becomes [standard normal](/D/snorm)
97+
Again employing the linear combination theorem and applying the null hypothesis from \eqref{eq:ttest2-h0}, the distribution of $Z = ( ( \bar{y}_1 - \bar{y}_2 ) - \mu_{\Delta} ) / ( \sigma \sqrt{1/n_1+1/n_2} )$ becomes [standard normal](/D/snorm)
9898

9999
$$ \label{eq:Z-dist}
100100
Z = \frac{(\bar{y}_1-\bar{y}_2)-\mu_\Delta}{\sigma \cdot \sqrt{\frac{1}{n_1}+\frac{1}{n_2}}} \sim \mathcal{N}\left( \frac{(\mu_1-\mu_2)-\mu_\Delta}{\sigma \cdot \sqrt{\frac{1}{n_1}+\frac{1}{n_2}}}, \left(\frac{1}{\sigma \cdot \sqrt{\frac{1}{n_1}+\frac{1}{n_2}}}\right)^2 \left( \frac{\sigma^2}{n_1} + \frac{\sigma^2}{n_2} \right) \right) \overset{H_0}{=} \mathcal{N}\left( 0, 1 \right) \; .

P/ugkv-ztest1.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,13 @@ $$ \label{eq:mean-samp}
6464
\bar{y} = \frac{1}{n} \sum_{i=1}^{n} y_i \; .
6565
$$
6666

67-
Using the [linearity of the expected value](/P/mean-lin), the [additivity of the variance under independence](/P/var-add) and [scaling of the variance upon multiplication](/P/var-scal), the sample mean follows a [normal distribution](/D/norm)
67+
Using the [linear combination formula for normal random variables](/P/norm-lincomb), the sample mean follows a [normal distribution](/D/norm) with the following parameters:
6868

6969
$$ \label{eq:mean-samp-dist}
70-
\bar{y} = \frac{1}{n} \sum_{i=1}^{n} y_i \sim \mathcal{N}\left( \frac{1}{n} n \mu, \left(\frac{1}{n}\right)^2 n \sigma^2 \right) = \mathcal{N}\left( \mu, \sigma^2/n \right)
70+
\bar{y} = \frac{1}{n} \sum_{i=1}^{n} y_i \sim \mathcal{N}\left( \frac{1}{n} n \mu, \left(\frac{1}{n}\right)^2 n \sigma^2 \right) = \mathcal{N}\left( \mu, \sigma^2/n \right) \; .
7171
$$
7272

73-
and additionally using the [invariance of the variance under addition](/P/var-inv), the distribution of $z = \sqrt{n/\sigma^2} (\bar{y}-\mu_0)$ becomes
73+
Again employing the linear combination theorem, the distribution of $z = \sqrt{n/\sigma^2} (\bar{y}-\mu_0)$ becomes
7474

7575
$$ \label{eq:z-dist-s1}
7676
z = \sqrt{\frac{n}{\sigma^2}} (\bar{y} - \mu_0) \sim \mathcal{N}\left( \sqrt{\frac{n}{\sigma^2}} (\mu - \mu_0), \left(\sqrt{\frac{n}{\sigma^2}}\right)^2 \frac{\sigma^2}{n} \right) = \mathcal{N}\left( \sqrt{n} \, \frac{\mu-\mu_0}{\sigma}, 1 \right) \; ,

0 commit comments

Comments
 (0)