Skip to content

Commit 629a6dd

Browse files
authored
Merge pull request #140 from JoramSoch/master
added 3 proofs
2 parents cffa7a5 + 3ba1a1c commit 629a6dd

4 files changed

Lines changed: 317 additions & 3 deletions

File tree

I/ToC.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,19 +439,22 @@ title: "Table of Contents"
439439
4.4. Dirichlet distribution <br>
440440
&emsp;&ensp; 4.4.1. *[Definition](/D/dir)* <br>
441441
&emsp;&ensp; 4.4.2. **[Probability density function](/P/dir-pdf)** <br>
442-
&emsp;&ensp; 4.4.3. **[Exceedance probabilities](/P/dir-ep)** <br>
442+
&emsp;&ensp; 4.4.3. **[Kullback-Leibler divergence](/P/dir-kl)** <br>
443+
&emsp;&ensp; 4.4.4. **[Exceedance probabilities](/P/dir-ep)** <br>
443444

444445
5. Matrix-variate continuous distributions
445446

446447
5.1. Matrix-normal distribution <br>
447448
&emsp;&ensp; 5.1.1. *[Definition](/D/matn)* <br>
448449
&emsp;&ensp; 5.1.2. **[Probability density function](/P/matn-pdf)** <br>
449450
&emsp;&ensp; 5.1.3. **[Equivalence to multivariate normal distribution](/P/matn-mvn)** <br>
450-
&emsp;&ensp; 5.1.4. **[Transposition](/P/matn-trans)** <br>
451-
&emsp;&ensp; 5.1.5. **[Linear transformation](/P/matn-ltt)** <br>
451+
&emsp;&ensp; 5.1.4. **[Kullback-Leibler divergence](/P/matn-kl)** <br>
452+
&emsp;&ensp; 5.1.5. **[Transposition](/P/matn-trans)** <br>
453+
&emsp;&ensp; 5.1.6. **[Linear transformation](/P/matn-ltt)** <br>
452454

453455
5.2. Wishart distribution <br>
454456
&emsp;&ensp; 5.2.1. *[Definition](/D/wish)* <br>
457+
&emsp;&ensp; 5.2.2. **[Kullback-Leibler divergence](/P/wish-kl)** <br>
455458

456459

457460
<br>

P/dir-kl.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
---
2+
layout: proof
3+
mathjax: true
4+
5+
author: "Joram Soch"
6+
affiliation: "BCCN Berlin"
7+
e_mail: "joram.soch@bccn-berlin.de"
8+
date: 2021-12-02 14:28:00
9+
10+
title: "Kullback-Leibler divergence for the Dirichlet distribution"
11+
chapter: "Probability Distributions"
12+
section: "Multivariate continuous distributions"
13+
topic: "Dirichlet distribution"
14+
theorem: "Kullback-Leibler divergence"
15+
16+
sources:
17+
- authors: "Penny, William D."
18+
year: 2001
19+
title: "KL-Divergences of Normal, Gamma, Dirichlet and Wishart densities"
20+
in: "University College, London"
21+
pages: "p. 2, eqs. 8-9"
22+
url: "https://www.fil.ion.ucl.ac.uk/~wpenny/publications/densities.ps"
23+
24+
proof_id: "P294"
25+
shortcut: "dir-kl"
26+
username: "JoramSoch"
27+
---
28+
29+
30+
**Theorem:** Let $x$ be an $k \times 1$ [random vector](/D/rvec). Assume two [Dirichlet distributions](/D/dir) $P$ and $Q$ specifying the probability distribution of $x$ as
31+
32+
$$ \label{eq:dirs}
33+
\begin{split}
34+
P: \; x &\sim \mathrm{Dir}(\alpha_1) \\
35+
Q: \; x &\sim \mathrm{Dir}(\alpha_2) \; .
36+
\end{split}
37+
$$
38+
39+
Then, the [Kullback-Leibler divergence](/D/kl) of $P$ from $Q$ is given by
40+
41+
$$ \label{eq:dir-KL}
42+
\mathrm{KL}[P\,||\,Q] = \ln \frac{\Gamma\left(\sum_{i=1}^{k} \alpha_{1i}\right)}{\Gamma\left(\sum_{i=1}^{k} \alpha_{2i}\right)} + \sum_{i=1}^{k} \ln \frac{\Gamma(\alpha_{2i})}{\Gamma(\alpha_{1i})} + \sum_{i=1}^{k} \left( \alpha_{1i} - \alpha_{2i} \right) \left[ \psi(\alpha_{1i}) - \psi\left(\sum_{i=1}^{k} \alpha_{1i}\right) \right] \; .
43+
$$
44+
45+
46+
**Proof:** The [KL divergence for a continuous random variable](/D/kl) is given by
47+
48+
$$ \label{eq:KL-cont}
49+
\mathrm{KL}[P\,||\,Q] = \int_{\mathcal{X}} p(x) \, \ln \frac{p(x)}{q(x)} \, \mathrm{d}x
50+
$$
51+
52+
which, applied to the [Dirichlet distributions](/D/mvn) in \eqref{eq:dirs}, yields
53+
54+
$$ \label{eq:dir-KL-s1}
55+
\begin{split}
56+
\mathrm{KL}[P\,||\,Q] &= \int_{\mathcal{X}^k} \mathrm{Dir}(x; \alpha_1) \, \ln \frac{\mathrm{Dir}(x; \alpha_1)}{\mathrm{Dir}(x; \alpha_2)} \, \mathrm{d}x \\
57+
&= \left\langle \ln \frac{\mathrm{Dir}(x; \alpha_1)}{\mathrm{Dir}(x; \alpha_2)} \right\rangle_{p(x)}
58+
\end{split}
59+
$$
60+
61+
where $\mathcal{X}^k$ is the set $\left\lbrace x \in \mathbb{R}^k \; \vert \; \sum_{i=1}^{k} x_i = 1, \; 0 \leq x_i \leq 1, \; i = 1,\ldots,k \right\rbrace$.
62+
63+
Using the [probability density function of the Dirichlet distribution](/P/dir-pdf), this becomes:
64+
65+
$$ \label{eq:dir-KL-s2}
66+
\begin{split}
67+
\mathrm{KL}[P\,||\,Q] &= \left\langle \ln \frac{ \frac{\Gamma\left( \sum_{i=1}^k \alpha_{1i} \right)}{\prod_{i=1}^k \Gamma(\alpha_{1i})} \, \prod_{i=1}^k {x_i}^{\alpha_{1i}-1} }{ \frac{\Gamma\left( \sum_{i=1}^k \alpha_{2i} \right)}{\prod_{i=1}^k \Gamma(\alpha_{2i})} \, \prod_{i=1}^k {x_i}^{\alpha_{2i}-1} } \right\rangle_{p(x)} \\
68+
&= \left\langle \ln \left( \frac{\Gamma\left( \sum_{i=1}^k \alpha_{1i} \right)}{\Gamma\left( \sum_{i=1}^k \alpha_{2i} \right)} \cdot \frac{\prod_{i=1}^k \Gamma(\alpha_{2i})}{\prod_{i=1}^k \Gamma(\alpha_{1i})} \cdot \prod_{i=1}^k {x_i}^{\alpha_{1i}-\alpha_{2i}} \right) \right\rangle_{p(x)} \\
69+
&= \left\langle \ln \frac{\Gamma\left( \sum_{i=1}^k \alpha_{1i} \right)}{\Gamma\left( \sum_{i=1}^k \alpha_{2i} \right)} + \sum_{i=1}^k \ln \frac{\Gamma(\alpha_{2i})}{\Gamma(\alpha_{1i})} + \sum_{i=1}^k (\alpha_{1i}-\alpha_{2i}) \cdot \ln (x_i) \right\rangle_{p(x)} \\
70+
&= \ln \frac{\Gamma\left( \sum_{i=1}^k \alpha_{1i} \right)}{\Gamma\left( \sum_{i=1}^k \alpha_{2i} \right)} + \sum_{i=1}^k \ln \frac{\Gamma(\alpha_{2i})}{\Gamma(\alpha_{1i})} + \sum_{i=1}^k (\alpha_{1i}-\alpha_{2i}) \cdot \left\langle \ln x_i \right\rangle_{p(x)} \; .
71+
\end{split}
72+
$$
73+
74+
Using the [expected value of a logarithmized Dirichlet variate](/P/dir-logmean)
75+
76+
$$ \label{eq:dir-logmean}
77+
x \sim \mathrm{Dir}(\alpha) \quad \Rightarrow \quad \left\langle \ln x_i \right\rangle = \psi(\alpha_i) - \psi\left(\sum_{i=1}^{k} \alpha_i\right) \; ,
78+
$$
79+
80+
the Kullback-Leibler divergence from \eqref{eq:dir-KL-s2} becomes:
81+
82+
$$ \label{eq:dir-KL-s3}
83+
\mathrm{KL}[P\,||\,Q] = \ln \frac{\Gamma\left( \sum_{i=1}^k \alpha_{1i} \right)}{\Gamma\left( \sum_{i=1}^k \alpha_{2i} \right)} + \sum_{i=1}^k \ln \frac{\Gamma(\alpha_{2i})}{\Gamma(\alpha_{1i})} + \sum_{i=1}^k (\alpha_{1i}-\alpha_{2i}) \cdot \left[ \psi(\alpha_{1i}) - \psi\left(\sum_{i=1}^{k} \alpha_{1i}\right) \right]
84+
$$

P/matn-kl.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
---
2+
layout: proof
3+
mathjax: true
4+
5+
author: "Joram Soch"
6+
affiliation: "BCCN Berlin"
7+
e_mail: "joram.soch@bccn-berlin.de"
8+
date: 2021-12-02 20:22:00
9+
10+
title: "Kullback-Leibler divergence for the matrix-normal distribution"
11+
chapter: "Probability Distributions"
12+
section: "Matrix-variate continuous distributions"
13+
topic: "Matrix-normal distribution"
14+
theorem: "Kullback-Leibler divergence"
15+
16+
sources:
17+
18+
proof_id: "P296"
19+
shortcut: "matn-kl"
20+
username: "JoramSoch"
21+
---
22+
23+
24+
**Theorem:** Let $X$ be an $n \times p$ [random matrix](/D/rmat). Assume two [matrix-normal distributions](/D/matn) $P$ and $Q$ specifying the probability distribution of $X$ as
25+
26+
$$ \label{eq:matns}
27+
\begin{split}
28+
P: \; X &\sim \mathcal{MN}(M_1, U_1, V_1) \\
29+
Q: \; X &\sim \mathcal{MN}(M_2, U_2, V_2) \; .
30+
\end{split}
31+
$$
32+
33+
Then, the [Kullback-Leibler divergence](/D/kl) of $P$ from $Q$ is given by
34+
35+
$$ \label{eq:matn-KL}
36+
\begin{split}
37+
\mathrm{KL}[P\,||\,Q] &= \frac{1}{2} \left[ \mathrm{vec}(M_2 - M_1)^\mathrm{T} \mathrm{vec}\left(U_2^{-1} (M_2 - M_1) V_2^{-1}\right) \right. \\
38+
&+ \left. \mathrm{tr}\left( (V_2^{-1}V_1) \otimes (U_2^{-1}U_1) \right) - n \ln \frac{|V_1|}{|V_2|} - p \ln \frac{|U_1|}{|U_2|} - n p \right] \; .
39+
\end{split}
40+
$$
41+
42+
43+
**Proof:** The [matrix-normal distribution is equivalent to the multivariate normal distribution](/P/matn-mvn),
44+
45+
$$ \label{eq:matn-mvn}
46+
X \sim \mathcal{MN}(M, U, V) \quad \Leftrightarrow \quad \mathrm{vec}(X) \sim \mathcal{N}(\mathrm{vec}(M), V \otimes U) \; ,
47+
$$
48+
49+
and the [Kullback-Leibler divergence for the multivariate normal distribution](/P/mvn-kl) is
50+
51+
$$ \label{eq:mvn-KL}
52+
\mathrm{KL}[P\,||\,Q] = \frac{1}{2} \left[ (\mu_2 - \mu_1)^T \Sigma_2^{-1} (\mu_2 - \mu_1) + \mathrm{tr}(\Sigma_2^{-1} \Sigma_1) - \ln \frac{|\Sigma_1|}{|\Sigma_2|} - n \right]
53+
$$
54+
55+
where $X$ is an $n \times 1$ [random vector](/D/rvec).
56+
57+
Thus, we can plug the distribution parameters from \eqref{eq:matns} into the KL divergence in \eqref{eq:mvn-KL} using the relationship given by \eqref{eq:matn-mvn}
58+
59+
$$ \label{eq:matn-KL-s1}
60+
\begin{split}
61+
\mathrm{KL}[P\,||\,Q] &= \frac{1}{2} \left[ (\mathrm{vec}(M_2) - \mathrm{vec}(M_1))^T (V_2 \otimes U_2)^{-1} (\mathrm{vec}(M_2) - \mathrm{vec}(M_1)) \right. \\
62+
&+ \left. \mathrm{tr}\left( (V_2 \otimes U_2)^{-1} (V_1 \otimes U_1) \right) - \ln \frac{|V_1 \otimes U_1|}{|V_2 \otimes U_2|} - n p \right] \; .
63+
\end{split}
64+
$$
65+
66+
Using the vectorization operator and Kronecker product properties
67+
68+
$$ \label{eq:vec-add}
69+
\mathrm{vec}(A) + \mathrm{vec}(B) = \mathrm{vec}(A+B)
70+
$$
71+
72+
$$ \label{eq:kron-inv}
73+
(A \otimes B)^{-1} = A^{-1} \otimes B^{-1}
74+
$$
75+
76+
$$ \label{eq:kron-prod}
77+
(A \otimes B) (C \otimes D) = (AC) \otimes (BD)
78+
$$
79+
80+
$$ \label{eq:kron-det}
81+
|A \otimes B| = |A|^m \, |B|^n \quad \text{where} \quad A \in \mathbb{R}^{n \times n} \quad \text{and} \quad B \in \mathbb{R}^{m \times m} \; ,
82+
$$
83+
84+
the Kullback-Leibler divergence from \eqref{eq:matn-KL-s1} becomes:
85+
86+
$$ \label{eq:matn-KL-s2}
87+
\begin{split}
88+
\mathrm{KL}[P\,||\,Q] &= \frac{1}{2} \left[ \mathrm{vec}(M_2 - M_1)^\mathrm{T} \, (V_2^{-1} \otimes U_2^{-1}) \, \mathrm{vec}(M_2 - M_1) \right. \\
89+
&+ \left. \mathrm{tr}\left( (V_2^{-1}V_1) \otimes (U_2^{-1}U_1) \right) - n \ln \frac{|V_1|}{|V_2|} - p \ln \frac{|U_1|}{|U_2|} - n p \right] \; .
90+
\end{split}
91+
$$
92+
93+
Using the relationship between Kronecker product and vectorization operator
94+
95+
$$ \label{eq:kron-vec}
96+
(C^\mathrm{T} \otimes A) \, \mathrm{vec}(B) = \mathrm{vec}(ABC) \; ,
97+
$$
98+
99+
we finally have:
100+
101+
$$ \label{eq:matn-KL-s3}
102+
\begin{split}
103+
\mathrm{KL}[P\,||\,Q] &= \frac{1}{2} \left[ \mathrm{vec}(M_2 - M_1)^\mathrm{T} \mathrm{vec}\left(U_2^{-1} (M_2 - M_1) V_2^{-1}\right) \right. \\
104+
&+ \left. \mathrm{tr}\left( (V_2^{-1}V_1) \otimes (U_2^{-1}U_1) \right) - n \ln \frac{|V_1|}{|V_2|} - p \ln \frac{|U_1|}{|U_2|} - n p \right] \; .
105+
\end{split}
106+
$$

P/wish-kl.md

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
---
2+
layout: proof
3+
mathjax: true
4+
5+
author: "Joram Soch"
6+
affiliation: "BCCN Berlin"
7+
e_mail: "joram.soch@bccn-berlin.de"
8+
date: 2021-12-02 15:33:00
9+
10+
title: "Kullback-Leibler divergence for the Wishart distribution"
11+
chapter: "Probability Distributions"
12+
section: "Matrix-variate continuous distributions"
13+
topic: "Wishart distribution"
14+
theorem: "Kullback-Leibler divergence"
15+
16+
sources:
17+
- authors: "Penny, William D."
18+
year: 2001
19+
title: "KL-Divergences of Normal, Gamma, Dirichlet and Wishart densities"
20+
in: "University College, London"
21+
pages: "pp. 2-3, eqs. 13/15"
22+
url: "https://www.fil.ion.ucl.ac.uk/~wpenny/publications/densities.ps"
23+
- authors: "Wikipedia"
24+
year: 2021
25+
title: "Wishart distribution"
26+
in: "Wikipedia, the free encyclopedia"
27+
pages: "retrieved on 2021-12-02"
28+
url: "https://en.wikipedia.org/wiki/Wishart_distribution#KL-divergence"
29+
30+
proof_id: "P295"
31+
shortcut: "wish-kl"
32+
username: "JoramSoch"
33+
---
34+
35+
36+
**Theorem:** Let $S$ be a $p \times p$ [random matrix](/D/rmat). Assume two [Wishart distributions](/D/wish) $P$ and $Q$ specifying the probability distribution of $S$ as
37+
38+
$$ \label{eq:wishs}
39+
\begin{split}
40+
P: \; S &\sim \mathcal{W}(V_1, n_1) \\
41+
Q: \; S &\sim \mathcal{W}(V_2, n_2) \; .
42+
\end{split}
43+
$$
44+
45+
Then, the [Kullback-Leibler divergence](/D/kl) of $P$ from $Q$ is given by
46+
47+
$$ \label{eq:wish-KL}
48+
\mathrm{KL}[P\,||\,Q] = \frac{1}{2} \left[ n_2 \left( \ln |V_2| - \ln |V_1| \right) + n_1 \mathrm{tr}(V_2^{-1} V_1) + 2 \ln \frac{\Gamma_p\left(\frac{n_2}{2}\right)}{\Gamma_p\left(\frac{n_1}{2}\right)} + (n_1-n_2) \psi_p\left(\frac{n_1}{2}\right) - n_1 p \right]
49+
$$
50+
51+
where $\Gamma_p(x)$ is the multivariate gamma function
52+
53+
$$ \label{eq:mult-gam-fct}
54+
\Gamma_p(x) = \pi^{p(p-1)/4} \, \prod_{j=1}^k \Gamma\left(x - \frac{j-1}{2}\right)
55+
$$
56+
57+
and $\psi_p(x)$ is the multivariate digamma function
58+
59+
$$ \label{eq:mult-gam-fct}
60+
\psi_p(x) = \frac{\mathrm{d}\ln \Gamma_p(x)}{\mathrm{d}x} = \sum_{j=1}^k \psi\left(x - \frac{j-1}{2}\right) \; .
61+
$$
62+
63+
64+
**Proof:** The [KL divergence for a continuous random variable](/D/kl) is given by
65+
66+
$$ \label{eq:KL-cont}
67+
\mathrm{KL}[P\,||\,Q] = \int_{\mathcal{X}} p(x) \, \ln \frac{p(x)}{q(x)} \, \mathrm{d}x
68+
$$
69+
70+
which, applied to the [Wishart distributions](/D/wish) in \eqref{eq:wishs}, yields
71+
72+
$$ \label{eq:wish-KL-s1}
73+
\begin{split}
74+
\mathrm{KL}[P\,||\,Q] &= \int_{\mathcal{S}^p} \mathcal{W}(S; V_1, n_1) \, \ln \frac{\mathcal{W}(S; V_1, n_1)}{\mathcal{W}(S; V_2, n_2)} \, \mathrm{d}S \\
75+
&= \left\langle \ln \frac{\mathcal{W}(S; \alpha_1)}{\mathcal{W}(S; \alpha_1)} \right\rangle_{p(S)}
76+
\end{split}
77+
$$
78+
79+
where $\mathcal{S}^p$ is the set of all positive-definite symmetric $p \times p$ matrices.
80+
81+
Using the [probability density function of the Wishart distribution](/P/wish-pdf), this becomes:
82+
83+
$$ \label{eq:wish-KL-s2}
84+
\begin{split}
85+
\mathrm{KL}[P\,||\,Q] &= \left\langle \ln \frac{\frac{1}{\sqrt{2^{n_1 p} |V_1|^{n_1}} \Gamma_p \left( \frac{n_1}{2} \right)} \cdot |S|^{(n_1-p-1)/2} \cdot \exp\left[ -\frac{1}{2} \mathrm{tr}\left( V_1^{-1} S \right) \right]}{\frac{1}{\sqrt{2^{n_2 p} |V_2|^{n_2}} \Gamma_p \left( \frac{n_2}{2} \right)} \cdot |S|^{(n_2-p-1)/2} \cdot \exp\left[ -\frac{1}{2} \mathrm{tr}\left( V_2^{-1} S \right) \right]} \right\rangle_{p(S)} \\
86+
&= \left\langle \ln \left( \sqrt{2^{(n_2-n_1)p} \cdot \frac{|V_2|^{n_2}}{|V_1|^{n_1}}} \cdot \frac{\Gamma_p\left( \frac{n_2}{2} \right)}{\Gamma_p\left( \frac{n_1}{2} \right)} \cdot |S|^{(n_1-n_2)/2} \cdot \exp\left[ -\frac{1}{2} \mathrm{tr}\left( V_1^{-1} S \right) -\frac{1}{2} \mathrm{tr}\left( V_2^{-1} S \right) \right] \right) \right\rangle_{p(S)} \\
87+
&= \left\langle \frac{(n_2-n_1)p}{2} \ln 2 + \frac{n_2}{2} \ln |V_2| - \frac{n_1}{2} \ln |V_1| + \ln \frac{\Gamma_p\left( \frac{n_2}{2} \right)}{\Gamma_p\left( \frac{n_1}{2} \right)} \right. \\
88+
&+ \left. \quad \frac{n_1-n_2}{2} \ln |S| - \frac{1}{2} \mathrm{tr}\left( V_1^{-1} S \right) - \frac{1}{2} \mathrm{tr}\left( V_2^{-1} S \right) \right\rangle_{p(S)} \\
89+
&= \frac{(n_2-n_1)p}{2} \ln 2 + \frac{n_2}{2} \ln |V_2| - \frac{n_1}{2} \ln |V_1| + \ln \frac{\Gamma_p\left( \frac{n_2}{2} \right)}{\Gamma_p\left( \frac{n_1}{2} \right)} \\
90+
&+ \frac{n_1-n_2}{2} \left\langle \ln |S| \right\rangle_{p(S)} - \frac{1}{2} \left\langle \mathrm{tr}\left( V_1^{-1} S \right) \right\rangle_{p(S)} - \frac{1}{2} \left\langle \mathrm{tr}\left( V_2^{-1} S \right) \right\rangle_{p(S)} \; .
91+
\end{split}
92+
$$
93+
94+
Using the [expected value of a Wishart random matrix](/P/wish-mean)
95+
96+
$$ \label{eq:wish-mean}
97+
S \sim \mathcal{W}(V,n) \quad \Rightarrow \quad \left\langle S \right\rangle = n V \; ,
98+
$$
99+
100+
such that the [expected value of the matrix trace](/P/mean-tr) becomes
101+
102+
$$ \label{eq:wish-trmean}
103+
\left\langle \mathrm{tr}(AS) \right\rangle = \mathrm{tr}\left( \left\langle AS \right\rangle \right) = \mathrm{tr}\left( A \left\langle S \right\rangle \right) = \mathrm{tr}\left( A \cdot (nV) \right) = n \cdot \mathrm{tr}(AV) \; ,
104+
$$
105+
106+
and the [expected value of a Wishart log-determinant](/P/wish-logdetmean)
107+
108+
$$ \label{eq:wish-logdetmean}
109+
S \sim \mathcal{W}(V,n) \quad \Rightarrow \quad \left\langle \ln |S| \right\rangle = \psi_p\left(\frac{n}{2}\right) + p \cdot \ln 2 + \ln |V| \; ,
110+
$$
111+
112+
the Kullback-Leibler divergence from \eqref{eq:wish-KL-s2} becomes:
113+
114+
$$ \label{eq:wish-KL-s3}
115+
\begin{split}
116+
\mathrm{KL}[P\,||\,Q] &= \frac{(n_2-n_1)p}{2} \ln 2 + \frac{n_2}{2} \ln |V_2| - \frac{n_1}{2} \ln |V_1| + \ln \frac{\Gamma_p\left( \frac{n_2}{2} \right)}{\Gamma_p\left( \frac{n_1}{2} \right)} \\
117+
&+ \frac{n_1-n_2}{2} \left[ \psi_p\left(\frac{n_1}{2}\right) + p \cdot \ln 2 + \ln |V_1| \right] - \frac{n_1}{2} \mathrm{tr}\left( V_1^{-1} V_1 \right) - \frac{n_1}{2} \mathrm{tr}\left( V_2^{-1} V_1 \right) \\
118+
&= \frac{n_2}{2} \left( \ln |V_2| - \ln |V_1| \right) + \ln \frac{\Gamma_p\left( \frac{n_2}{2} \right)}{\Gamma_p\left( \frac{n_1}{2} \right)} + \frac{n_1-n_2}{2} \psi_p\left(\frac{n_1}{2}\right) - \frac{n_1}{2} \mathrm{tr}\left( I_p \right) - \frac{n_1}{2} \mathrm{tr}\left( V_2^{-1} V_1 \right) \\
119+
& = \frac{1}{2} \left[ n_2 \left( \ln |V_2| - \ln |V_1| \right) + n_1 \mathrm{tr}(V_2^{-1} V_1) + 2 \ln \frac{\Gamma_p\left(\frac{n_2}{2}\right)}{\Gamma_p\left(\frac{n_1}{2}\right)} + (n_1-n_2) \psi_p\left(\frac{n_1}{2}\right) - n_1 p \right] \; .
120+
\end{split}
121+
$$

0 commit comments

Comments
 (0)