Skip to content

Commit 2e133c4

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

7 files changed

Lines changed: 6 additions & 8 deletions

File tree

P/bin-lbf.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: 2022-11-25 14:40:00
99

10-
title: "Log model evidence for binomial observations"
10+
title: "Log Bayes factor for binomial observations"
1111
chapter: "Statistical Models"
1212
section: "Count data"
1313
topic: "Binomial observations"

P/bin-lme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ the LME finally becomes
118118

119119
$$ \label{eq:Bin-LME-s2}
120120
\begin{split}
121-
\log \mathrm{p}(y|m) = \log \Gamma(n+1) &- \log \Gamma(k+1) - \log \Gamma(n-k+1) \\
121+
\log \mathrm{p}(y|m) = \log \Gamma(n+1) &- \log \Gamma(y+1) - \log \Gamma(n-y+1) \\
122122
&+ \log B(\alpha_n,\beta_n) - \log B(\alpha_0,\beta_0) \; .
123123
\end{split}
124124
$$

P/bin-mll.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ $$
3939

4040
**Proof:** The [log-likelihood function for binomial data](/P/bin-mle) is given by
4141

42-
With the [probability mass function of the binomial distribution](/P/bin-pmf), equation \eqref{eq:Bin} implies the following [likelihood function](/D/lf):
43-
4442
$$ \label{eq:Bin-LL}
4543
\mathrm{LL}(p) = \log {n \choose y} + y \log p + (n-y) \log (1-p)
4644
$$

P/mult-lbf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ $$ \label{eq:Mult-LME-m1}
6464
\end{split}
6565
$$
6666

67-
Because the null model $m_0$ has no free parameter, its [log model evidence](/D/lme) (logarithmized [marginal likelihood](/D/ml)) is equal to the [log-likelihood function for multinomial observations](/P/mult-mle) at the value $p = [1/k, \ldots, 1/k]$:
67+
Because the null model $m_0$ has no free parameter, its [log model evidence](/D/lme) (logarithmized [marginal likelihood](/D/ml)) is equal to the [log-likelihood function for multinomial observations](/P/mult-mle) at the value $p_0 = [1/k, \ldots, 1/k]$:
6868

6969
$$ \label{eq:Mult-LME-m0}
7070
\begin{split}

P/mult-mle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ $$ \label{eq:Mult-marg}
4040
X \sim \mathrm{Mult}(n,p) \quad \Rightarrow \quad X_j \sim \mathrm{Bin}(n, p_j) \quad \text{for all} \quad j = 1, \ldots, k \; .
4141
$$
4242

43-
Thus, combining \eqref{eq:Mult} with \eqref{eq:Mult}, we have
43+
Thus, combining \eqref{eq:Mult} with \eqref{eq:Mult-marg}, we have
4444

4545
$$ \label{eq:Mult-Bin}
4646
y_j \sim \mathrm{Bin}(n,p_j)

P/mult-pp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $$
3939
Then, the [posterior probability](/D/pmp) of the [alternative model](/D/h1) is given by
4040

4141
$$ \label{eq:Mult-PP1}
42-
p(m_1|y) =
42+
p(m_1|y) = \frac{1}{1 + k^{-n} \cdot \frac{\Gamma \left( \sum_{j=1}^{k} \alpha_{nj} \right)}{\Gamma \left( \sum_{j=1}^{k} \alpha_{0j} \right)} \cdot \frac{\prod_{j=1}^k \Gamma(\alpha_{0j})}{\prod_{j=1}^k \Gamma(\alpha_{nj})}}
4343
$$
4444

4545
where $\Gamma(x)$ is the gamma function and $\alpha_n$ are the [posterior hyperparameters for multinomial observations](/P/mult-post) which are functions of the [numbers of observations](/D/mult) $y_1, \ldots, y_k$.

P/ugkv-lbf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $$
5454
The LME of the alternative $m_1$ is equal to the [log model evidence for the univariate Gaussian with known variance](/P/ugkv-lme):
5555

5656
$$ \label{eq:UGkv-LME-m1}
57-
\mathrm{LME}(m_1) = \frac{n}{2} \log\left( \frac{\tau}{2 \pi} \right) + \frac{1}{2} \log\left( \frac{\lambda_0}{\lambda_n} \right) - \frac{1}{2} \left( \tau y^\mathrm{T} y + \lambda_0 \mu_0^2 - \lambda_n \mu_n^2 \right) \; .
57+
\mathrm{LME}(m_1) = \log p(y|m_1) = \frac{n}{2} \log\left( \frac{\tau}{2 \pi} \right) + \frac{1}{2} \log\left( \frac{\lambda_0}{\lambda_n} \right) - \frac{1}{2} \left( \tau y^\mathrm{T} y + \lambda_0 \mu_0^2 - \lambda_n \mu_n^2 \right) \; .
5858
$$
5959

6060
Because the null model $m_0$ has no free parameter, its [log model evidence](/D/lme) (logarithmized [marginal likelihood](/D/ml)) is equal to the [log-likelihood function for the univariate Gaussian with known variance](/P/ugkv-mle) at the value $\mu = 0$:

0 commit comments

Comments
 (0)