Skip to content

Commit 7d9e1d7

Browse files
authored
Merge pull request #94 from StatProofBook/master
update to master
2 parents aeeb3ca + aa1e4cf commit 7d9e1d7

9 files changed

Lines changed: 33 additions & 14 deletions

File tree

I/PbA.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: "Proof by Author"
88

99
- [Covariance matrix of the multinomial distribution](/P/mult-cov)
1010

11-
### JoramSoch (326 proofs)
11+
### JoramSoch (331 proofs)
1212

1313
- [Accuracy and complexity for the univariate Gaussian](/P/ug-anc)
1414
- [Accuracy and complexity for the univariate Gaussian with known variance](/P/ugkv-anc)
@@ -44,6 +44,7 @@ title: "Proof by Author"
4444
- [Corrected Akaike information criterion in terms of maximum log-likelihood](/P/aicc-mll)
4545
- [Correlation always falls between -1 and +1](/P/corr-range)
4646
- [Correlation coefficient in terms of standard scores](/P/corr-z)
47+
- [Covariance and variance of the normal-gamma distribution](/P/ng-cov)
4748
- [Covariance matrices of the matrix-normal distribution](/P/matn-cov)
4849
- [Covariance matrix of the categorical distribution](/P/cat-cov)
4950
- [Covariance matrix of the multivariate normal distribution](/P/mvn-cov)
@@ -71,6 +72,7 @@ title: "Proof by Author"
7172
- [Deviance for multiple linear regression](/P/mlr-dev)
7273
- [Deviance information criterion for multiple linear regression](/P/blr-dic)
7374
- [Differential entropy can be negative](/P/dent-neg)
75+
- [Differential entropy for the matrix-normal distribution](/P/matn-dent)
7476
- [Differential entropy of the gamma distribution](/P/gam-dent)
7577
- [Differential entropy of the multivariate normal distribution](/P/mvn-dent)
7678
- [Differential entropy of the normal distribution](/P/norm-dent)
@@ -105,6 +107,7 @@ title: "Proof by Author"
105107
- [Gaussian integral](/P/norm-gi)
106108
- [Gibbs' inequality](/P/gibbs-ineq)
107109
- [Inflection points of the probability density function of the normal distribution](/P/norm-infl)
110+
- [Invariance of the covariance matrix under addition of constant vector](/P/covmat-inv)
108111
- [Invariance of the differential entropy under addition of a constant](/P/dent-inv)
109112
- [Invariance of the Kullback-Leibler divergence under parameter transformation](/P/kl-inv)
110113
- [Invariance of the variance under addition of a constant](/P/var-inv)
@@ -307,6 +310,8 @@ title: "Proof by Author"
307310
- [Relationship between second raw moment, variance and mean](/P/momraw-2nd)
308311
- [Relationship between signal-to-noise ratio and R²](/P/snr-rsq)
309312
- [Sampling from the matrix-normal distribution](/P/matn-samp)
313+
- [Sampling from the normal-gamma distribution](/P/ng-samp)
314+
- [Scaling of the covariance matrix upon multiplication with constant matrix](/P/covmat-scal)
310315
- [Scaling of the variance upon multiplication with a constant](/P/var-scal)
311316
- [Second central moment is variance](/P/momcent-2nd)
312317
- [Simple linear regression is a special case of multiple linear regression](/P/slr-mlr)

I/PbN.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,3 +349,8 @@ title: "Proof by Number"
349349
| P341 | matn-mean | [Mean of the matrix-normal distribution](/P/matn-mean) | JoramSoch | 2022-09-15 |
350350
| P342 | matn-cov | [Covariance matrices of the matrix-normal distribution](/P/matn-cov) | JoramSoch | 2022-09-15 |
351351
| P343 | matn-marg | [Marginal distributions for the matrix-normal distribution](/P/matn-marg) | JoramSoch | 2022-09-15 |
352+
| P344 | matn-dent | [Differential entropy for the matrix-normal distribution](/P/matn-dent) | JoramSoch | 2022-09-22 |
353+
| P345 | ng-cov | [Covariance and variance of the normal-gamma distribution](/P/ng-cov) | JoramSoch | 2022-09-22 |
354+
| P346 | ng-samp | [Sampling from the normal-gamma distribution](/P/ng-samp) | JoramSoch | 2022-09-22 |
355+
| P347 | covmat-inv | [Invariance of the covariance matrix under addition of constant vector](/P/covmat-inv) | JoramSoch | 2022-09-22 |
356+
| P348 | covmat-scal | [Scaling of the covariance matrix upon multiplication with constant matrix](/P/covmat-scal) | JoramSoch | 2022-09-22 |

I/PbT.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ title: "Proof by Topic"
4747
- [Corrected Akaike information criterion in terms of maximum log-likelihood](/P/aicc-mll)
4848
- [Correlation always falls between -1 and +1](/P/corr-range)
4949
- [Correlation coefficient in terms of standard scores](/P/corr-z)
50+
- [Covariance and variance of the normal-gamma distribution](/P/ng-cov)
5051
- [Covariance matrices of the matrix-normal distribution](/P/matn-cov)
5152
- [Covariance matrix of the categorical distribution](/P/cat-cov)
5253
- [Covariance matrix of the multinomial distribution](/P/mult-cov)
@@ -79,6 +80,7 @@ title: "Proof by Topic"
7980
- [Deviance for multiple linear regression](/P/mlr-dev)
8081
- [Deviance information criterion for multiple linear regression](/P/blr-dic)
8182
- [Differential entropy can be negative](/P/dent-neg)
83+
- [Differential entropy for the matrix-normal distribution](/P/matn-dent)
8284
- [Differential entropy of the gamma distribution](/P/gam-dent)
8385
- [Differential entropy of the multivariate normal distribution](/P/mvn-dent)
8486
- [Differential entropy of the normal distribution](/P/norm-dent)
@@ -126,6 +128,7 @@ title: "Proof by Topic"
126128
### I
127129

128130
- [Inflection points of the probability density function of the normal distribution](/P/norm-infl)
131+
- [Invariance of the covariance matrix under addition of constant vector](/P/covmat-inv)
129132
- [Invariance of the differential entropy under addition of a constant](/P/dent-inv)
130133
- [Invariance of the Kullback-Leibler divergence under parameter transformation](/P/kl-inv)
131134
- [Invariance of the variance under addition of a constant](/P/var-inv)
@@ -368,7 +371,9 @@ title: "Proof by Topic"
368371
### S
369372

370373
- [Sampling from the matrix-normal distribution](/P/matn-samp)
374+
- [Sampling from the normal-gamma distribution](/P/ng-samp)
371375
- [Savage-Dickey Density Ratio for computing Bayes Factors](/P/bf-sddr)
376+
- [Scaling of the covariance matrix upon multiplication with constant matrix](/P/covmat-scal)
372377
- [Scaling of the variance upon multiplication with a constant](/P/var-scal)
373378
- [Second central moment is variance](/P/momcent-2nd)
374379
- [Simple linear regression is a special case of multiple linear regression](/P/slr-mlr)

I/PwS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ title: "Proofs without Source"
99
- [Bayesian information criterion for multiple linear regression](/P/mlr-bic)
1010
- [Chi-squared distribution is a special case of gamma distribution](/P/chi2-gam)
1111
- [Conditional distributions of the normal-gamma distribution](/P/ng-cond)
12+
- [Covariance and variance of the normal-gamma distribution](/P/ng-cov)
1213
- [Covariance matrix of the categorical distribution](/P/cat-cov)
1314
- [Cross-validated log Bayes factor for the univariate Gaussian with known variance](/P/ugkv-cvlbf)
1415
- [Cross-validated log model evidence for the univariate Gaussian with known variance](/P/ugkv-cvlme)
@@ -24,6 +25,7 @@ title: "Proofs without Source"
2425
- [Derivation of the posterior model probability](/P/pmp-der)
2526
- [Deviance for multiple linear regression](/P/mlr-dev)
2627
- [Deviance information criterion for multiple linear regression](/P/blr-dic)
28+
- [Differential entropy for the matrix-normal distribution](/P/matn-dent)
2729
- [Differential entropy of the normal-gamma distribution](/P/ng-dent)
2830
- [Effects of mean-centering on parameter estimates for simple linear regression](/P/slr-meancent)
2931
- [Entropy of the binomial distribution](/P/bin-ent)

P/matn-marg.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ $$ \label{eq:xj-marg-mvn}
148148
x_{\bullet,j} \sim \mathcal{N}(m_{\bullet,j}, v_{jj} U) \; .
149149
$$
150150

151-
4) This is a special case of 1). Setting $A$ to the $i$-th elementary row vector in $n$ dimensions and $B$ to the $j$-th elementary row vector in $p$ dimensions
151+
4) This is a special case of 2) and 3). Setting $A$ to the $i$-th elementary row vector in $n$ dimensions and $B$ to the $j$-th elementary row vector in $p$ dimensions
152152

153153
$$ \label{eq:AB-elem}
154154
A = e_i, \; B = e_j^\mathrm{T} \; ,

P/matn-samp.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ username: "JoramSoch"
2727
---
2828

2929

30-
**Theorem:** Let $X \in \mathbb{R}^{n \times p}$ be a [random matrix](/D/rmat) with all entries independently following a [standard normal distribution](/D/snorm). Moreover, let $A \in \mathbb{R}^{n \times n}$ and $B \in \mathbb{R}^{p \times p}$, such that $A A^\mathrm{T} = U$ and $B^\mathrm{T} B = V$. Then, $Y = M + A X B$ follows a [matrix-normal distribution](/D/matn) with [mean](/D/mean-rmat) $M$, [covariance](/D/covmat) across rows $U$ and [covariance](/D/covmat) across rows $U$:
30+
**Theorem:** Let $X \in \mathbb{R}^{n \times p}$ be a [random matrix](/D/rmat) with all entries independently following a [standard normal distribution](/D/snorm). Moreover, let $A \in \mathbb{R}^{n \times n}$ and $B \in \mathbb{R}^{p \times p}$, such that $A A^\mathrm{T} = U$ and $B^\mathrm{T} B = V$.
31+
32+
Then, $Y = M + A X B$ follows a [matrix-normal distribution](/D/matn) with [mean](/D/mean-rmat) $M$, [covariance](/D/covmat) across rows $U$ and [covariance](/D/covmat) across rows $U$:
3133

3234
$$ \label{eq:matn-samp}
3335
Y = M + A X B \sim \mathcal{MN}(M, U, V) \; .
@@ -45,7 +47,7 @@ this [implies a multivariate normal distribution with diagonal covariance matrix
4547
$$ \label{eq:vecX-dist}
4648
\begin{split}
4749
\mathrm{vec}(X) &\sim \mathcal{N}\left(\mathrm{vec}(0_{np}), I_{np} \right) \\
48-
&\sim \mathcal{N}\left(\mathrm{vec}(0_{np}), I_p \otimes I_n \right) \; .
50+
&\sim \mathcal{N}\left(\mathrm{vec}(0_{np}), I_p \otimes I_n \right)
4951
\end{split}
5052
$$
5153

@@ -67,4 +69,4 @@ Y = M + AXB &\sim \mathcal{MN}\left(M + A 0_{np} B, A I_n A^\mathrm{T}, B^\mathr
6769
\end{split}
6870
$$
6971

70-
Thus, given $X$ defined by \eqref{eq:xij-dist}, $Y$ defined by \eqref{eq:matn-samp} is a [sample](/D/samp) from $\mathcal{N}\left(M, U, V \right)$.
72+
Thus, given $X$ defined by \eqref{eq:xij-dist}, $Y$ defined by \eqref{eq:matn-samp} is a [sample](/D/samp) from $\mathcal{MN}\left(M, U, V \right)$.

P/mvn-cov.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,13 @@ $$ \label{eq:x-mean}
8484
\mathrm{Cov}(x) = \mathrm{Cov}( Az + \mu ) \; .
8585
$$
8686

87-
With the [invariance of the covariance matrix under addition](/P/cov-inv)
87+
With the [invariance of the covariance matrix under addition](/P/covmat-inv)
8888

8989
$$ \label{eq:cov-inv}
9090
\mathrm{Cov}(x + a) = \mathrm{Cov}(x)
9191
$$
9292

93-
and the [scaling of the covariance matrix upon multiplication](/P/cov-scal)
93+
and the [scaling of the covariance matrix upon multiplication](/P/covmat-scal)
9494

9595
$$ \label{eq:cov-scal}
9696
\mathrm{Cov}(Ax) = A \mathrm{Cov}(x) A^\mathrm{T} \; ,

P/ng-cov.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ Then,
3232
1) the [covariance](/D/cov) of $x$, [conditional](/D/dist-cond) on $y$ is
3333

3434
$$ \label{eq:ng-cov-cond}
35-
\mathrm{Cov}[x|y] = \frac{1}{y} \Lambda^{-1} \; ;
35+
\mathrm{Cov}(x \vert y) = \frac{1}{y} \Lambda^{-1} \; ;
3636
$$
3737

3838
2) the [covariance](/D/cov) of $x$, [unconditional](/D/dist-marg) on $y$ is
3939

4040
$$ \label{eq:ng-cov-x}
41-
\mathrm{Cov}[x] = \frac{b}{a-1} \Lambda^{-1} \; ;
41+
\mathrm{Cov}(x) = \frac{b}{a-1} \Lambda^{-1} \; ;
4242
$$
4343

4444
3) the [variance](/D/var) of $y$ is
4545

4646
$$ \label{eq:ng-var-y}
47-
\mathrm{Var}[y] = \frac{a}{b^2} \; .
47+
\mathrm{Var}(y) = \frac{a}{b^2} \; .
4848
$$
4949

5050

@@ -65,7 +65,7 @@ $$
6565
such that we have:
6666

6767
$$ \label{eq:ng-cov-cond-qed}
68-
\mathrm{Cov}[x|y] = (y \Lambda)^{-1} = \frac{1}{y} \Lambda^{-1} \; .
68+
\mathrm{Cov}(x \vert y) = (y \Lambda)^{-1} = \frac{1}{y} \Lambda^{-1} \; .
6969
$$
7070

7171
2) The [marginal distribution of the normal-gamma distribution](/P/ng-marg) with respect to $x$ is a [multivariate t-distribution](/D/mvt):
@@ -83,7 +83,7 @@ $$
8383
such that we have:
8484

8585
$$ \label{eq:ng-cov-x-qed}
86-
\mathrm{Cov}[x] = \frac{2a}{2a-2} \left(\frac{a}{b} \Lambda \right)^{-1} = \frac{a}{a-1} \, \frac{b}{a} \, \Lambda^{-1} = \frac{b}{a-1} \Lambda^{-1} \; .
86+
\mathrm{Cov}(x) = \frac{2a}{2a-2} \left(\frac{a}{b} \Lambda \right)^{-1} = \frac{a}{a-1} \, \frac{b}{a} \, \Lambda^{-1} = \frac{b}{a-1} \Lambda^{-1} \; .
8787
$$
8888

8989
3) The [marginal distribution of the normal-gamma distribution](/P/ng-marg) with respect to $y$ is a [univariate gamma distribution](/D/gam):
@@ -101,5 +101,5 @@ $$
101101
such that we have:
102102

103103
$$ \label{eq:ng-var-y-qed}
104-
\mathrm{Var}[y] = \frac{a}{b^2} \; .
104+
\mathrm{Var}(y) = \frac{a}{b^2} \; .
105105
$$

P/ng-samp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ username: "JoramSoch"
2727
---
2828

2929

30-
**Theorem:** Let $Z_1 \in \mathbb{R}^{n \times 1}$ be a [random vector](/D/rvec) with all entries independently following a [standard normal distribution](/D/snorm) and let $Z_2 \in \mathbb{R}$ be a [random variable](/D/rvar) following a [standard gamma distribution](/D/sgam) with shape $a$. Moreover, let $A \in \mathbb{R}^{n \times n}$ be a matrix such that, such that $A A^\mathrm{T} = \Lambda^{-1}$.
30+
**Theorem:** Let $Z_1 \in \mathbb{R}^n$ be a [random vector](/D/rvec) with all entries independently following a [standard normal distribution](/D/snorm) and let $Z_2 \in \mathbb{R}$ be a [random variable](/D/rvar) following a [standard gamma distribution](/D/sgam) with shape $a$. Moreover, let $A \in \mathbb{R}^{n \times n}$ be a matrix, such that $A A^\mathrm{T} = \Lambda^{-1}$.
3131

3232
Then, $X = \mu + A Z_1 / \sqrt{Z_2/b}$ and $Y = Z_2/b$ jointly follow a [normal-gamma distribution](/D/ng) with [mean vector](/D/mean-rvec) $\mu$, [precision matrix](/D/precmat) $\Lambda$, shape parameter $a$ and rate parameter $b$:
3333

0 commit comments

Comments
 (0)