Skip to content

Commit 83d8473

Browse files
authored
Merge pull request #102 from StatProofBook/master
update to master
2 parents c3a43cc + 7b635e0 commit 83d8473

12 files changed

Lines changed: 40 additions & 11 deletions

File tree

I/PbA.md

Lines changed: 9 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 (361 proofs)
11+
### JoramSoch (369 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)
@@ -142,6 +142,8 @@ title: "Proof by Author"
142142
- [Linear transformation theorem for the moment-generating function](/P/mgf-ltt)
143143
- [Linear transformation theorem for the multivariate normal distribution](/P/mvn-ltt)
144144
- [Linearity of the expected value](/P/mean-lin)
145+
- [Log Bayes factor for binomial observations](/P/bin-lbf)
146+
- [Log Bayes factor for multinomial observations](/P/mult-lbf)
145147
- [Log Bayes factor for the univariate Gaussian with known variance](/P/ugkv-lbf)
146148
- [Log Bayes factor in terms of log model evidences](/P/lbf-lme)
147149
- [Log family evidences in terms of log model evidences](/P/lfe-lme)
@@ -163,7 +165,9 @@ title: "Proof by Author"
163165
- [Marginal distributions of the normal-gamma distribution](/P/ng-marg)
164166
- [Marginal likelihood is a definite integral of joint likelihood](/P/ml-jl)
165167
- [Maximum likelihood estimation can result in biased estimates](/P/mle-bias)
168+
- [Maximum likelihood estimation for binomial observations](/P/bin-mle)
166169
- [Maximum likelihood estimation for Dirichlet-distributed data](/P/dir-mle)
170+
- [Maximum likelihood estimation for multinomial observations](/P/mult-mle)
167171
- [Maximum likelihood estimation for multiple linear regression](/P/mlr-mle)
168172
- [Maximum likelihood estimation for Poisson-distributed data](/P/poiss-mle)
169173
- [Maximum likelihood estimation for simple linear regression](/P/slr-mle)
@@ -173,6 +177,8 @@ title: "Proof by Author"
173177
- [Maximum likelihood estimation for the univariate Gaussian](/P/ug-mle)
174178
- [Maximum likelihood estimation for the univariate Gaussian with known variance](/P/ugkv-mle)
175179
- [Maximum likelihood estimator of variance is biased](/P/resvar-bias)
180+
- [Maximum log-likelihood for binomial observations](/P/bin-mll)
181+
- [Maximum log-likelihood for multinomial observations](/P/mult-mll)
176182
- [Maximum log-likelihood for multiple linear regression](/P/mlr-mll)
177183
- [Mean of the Bernoulli distribution](/P/bern-mean)
178184
- [Mean of the beta distribution](/P/beta-mean)
@@ -252,6 +258,8 @@ title: "Proof by Author"
252258
- [Posterior model probabilities in terms of log model evidences](/P/pmp-lme)
253259
- [Posterior model probability in terms of log Bayes factor](/P/pmp-lbf)
254260
- [Posterior probability of the alternative hypothesis for Bayesian linear regression](/P/blr-pp)
261+
- [Posterior probability of the alternative model for binomial observations](/P/bin-pp)
262+
- [Posterior probability of the alternative model for multinomial observations](/P/mult-pp)
255263
- [Probability and log-odds in logistic regression](/P/logreg-pnlo)
256264
- [Probability density function is first derivative of cumulative distribution function](/P/pdf-cdf)
257265
- [Probability density function of a linear function of a continuous random vector](/P/pdf-linfct)

I/PbN.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,3 +386,11 @@ title: "Proof by Number"
386386
| P378 | anova2-cochran | [Application of Cochran's theorem to two-way analysis of variance](/P/anova2-cochran) | JoramSoch | 2022-11-16 |
387387
| P379 | anova2-pss | [Partition of sums of squares in two-way analysis of variance](/P/anova2-pss) | JoramSoch | 2022-11-16 |
388388
| P380 | anova2-fols | [F-statistics in terms of ordinary least squares estimates in two-way analysis of variance](/P/anova2-fols) | JoramSoch | 2022-11-16 |
389+
| P381 | bin-mle | [Maximum likelihood estimation for binomial observations](/P/bin-mle) | JoramSoch | 2022-11-23 |
390+
| P382 | bin-mll | [Maximum log-likelihood for binomial observations](/P/bin-mll) | JoramSoch | 2022-11-24 |
391+
| P383 | bin-lbf | [Log Bayes factor for binomial observations](/P/bin-lbf) | JoramSoch | 2022-11-25 |
392+
| P384 | bin-pp | [Posterior probability of the alternative model for binomial observations](/P/bin-pp) | JoramSoch | 2022-11-26 |
393+
| P385 | mult-mle | [Maximum likelihood estimation for multinomial observations](/P/mult-mle) | JoramSoch | 2022-12-02 |
394+
| P386 | mult-mll | [Maximum log-likelihood for multinomial observations](/P/mult-mll) | JoramSoch | 2022-12-02 |
395+
| P387 | mult-lbf | [Log Bayes factor for multinomial observations](/P/mult-lbf) | JoramSoch | 2022-12-02 |
396+
| P388 | mult-pp | [Posterior probability of the alternative model for multinomial observations](/P/mult-pp) | JoramSoch | 2022-12-02 |

I/PbT.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ title: "Proof by Topic"
172172
- [Linear transformation theorem for the moment-generating function](/P/mgf-ltt)
173173
- [Linear transformation theorem for the multivariate normal distribution](/P/mvn-ltt)
174174
- [Linearity of the expected value](/P/mean-lin)
175+
- [Log Bayes factor for binomial observations](/P/bin-lbf)
176+
- [Log Bayes factor for multinomial observations](/P/mult-lbf)
175177
- [Log Bayes factor for the univariate Gaussian with known variance](/P/ugkv-lbf)
176178
- [Log Bayes factor in terms of log model evidences](/P/lbf-lme)
177179
- [Log family evidences in terms of log model evidences](/P/lfe-lme)
@@ -196,7 +198,9 @@ title: "Proof by Topic"
196198
- [Marginal distributions of the normal-gamma distribution](/P/ng-marg)
197199
- [Marginal likelihood is a definite integral of joint likelihood](/P/ml-jl)
198200
- [Maximum likelihood estimation can result in biased estimates](/P/mle-bias)
201+
- [Maximum likelihood estimation for binomial observations](/P/bin-mle)
199202
- [Maximum likelihood estimation for Dirichlet-distributed data](/P/dir-mle)
203+
- [Maximum likelihood estimation for multinomial observations](/P/mult-mle)
200204
- [Maximum likelihood estimation for multiple linear regression](/P/mlr-mle)
201205
- [Maximum likelihood estimation for Poisson-distributed data](/P/poiss-mle)
202206
- [Maximum likelihood estimation for simple linear regression](/P/slr-mle)
@@ -206,6 +210,8 @@ title: "Proof by Topic"
206210
- [Maximum likelihood estimation for the univariate Gaussian](/P/ug-mle)
207211
- [Maximum likelihood estimation for the univariate Gaussian with known variance](/P/ugkv-mle)
208212
- [Maximum likelihood estimator of variance is biased](/P/resvar-bias)
213+
- [Maximum log-likelihood for binomial observations](/P/bin-mll)
214+
- [Maximum log-likelihood for multinomial observations](/P/mult-mll)
209215
- [Maximum log-likelihood for multiple linear regression](/P/mlr-mll)
210216
- [Mean of the Bernoulli distribution](/P/bern-mean)
211217
- [Mean of the beta distribution](/P/beta-mean)
@@ -301,6 +307,8 @@ title: "Proof by Topic"
301307
- [Posterior model probabilities in terms of log model evidences](/P/pmp-lme)
302308
- [Posterior model probability in terms of log Bayes factor](/P/pmp-lbf)
303309
- [Posterior probability of the alternative hypothesis for Bayesian linear regression](/P/blr-pp)
310+
- [Posterior probability of the alternative model for binomial observations](/P/bin-pp)
311+
- [Posterior probability of the alternative model for multinomial observations](/P/mult-pp)
304312
- [Probability and log-odds in logistic regression](/P/logreg-pnlo)
305313
- [Probability density function is first derivative of cumulative distribution function](/P/pdf-cdf)
306314
- [Probability density function of a linear function of a continuous random vector](/P/pdf-linfct)

I/PwS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ title: "Proofs without Source"
4646
- [Kullback-Leibler divergence for the normal distribution](/P/norm-kl)
4747
- [Linear combination of independent normal random variables](/P/norm-lincomb)
4848
- [Linear transformation theorem for the matrix-normal distribution](/P/matn-ltt)
49+
- [Log Bayes factor for binomial observations](/P/bin-lbf)
50+
- [Log Bayes factor for multinomial observations](/P/mult-lbf)
4951
- [Log Bayes factor for the univariate Gaussian with known variance](/P/ugkv-lbf)
5052
- [Log model evidence for multinomial observations](/P/mult-lme)
5153
- [Log model evidence for multivariate Bayesian linear regression](/P/mblr-lme)
@@ -58,12 +60,15 @@ title: "Proofs without Source"
5860
- [Marginal distributions of the normal-gamma distribution](/P/ng-marg)
5961
- [Marginal likelihood is a definite integral of joint likelihood](/P/ml-jl)
6062
- [Maximum likelihood estimation can result in biased estimates](/P/mle-bias)
63+
- [Maximum likelihood estimation for multinomial observations](/P/mult-mle)
6164
- [Maximum likelihood estimation for multiple linear regression](/P/mlr-mle)
6265
- [Maximum likelihood estimation for Poisson-distributed data](/P/poiss-mle)
6366
- [Maximum likelihood estimation for simple linear regression](/P/slr-mle)
6467
- [Maximum likelihood estimation for simple linear regression](/P/slr-mle2)
6568
- [Maximum likelihood estimation for the general linear model](/P/glm-mle)
6669
- [Maximum likelihood estimation for the Poisson distribution with exposure values](/P/poissexp-mle)
70+
- [Maximum log-likelihood for binomial observations](/P/bin-mll)
71+
- [Maximum log-likelihood for multinomial observations](/P/mult-mll)
6772
- [Mean of the categorical distribution](/P/cat-mean)
6873
- [Mean of the continuous uniform distribution](/P/cuni-mean)
6974
- [Mean of the multinomial distribution](/P/mult-mean)
@@ -84,6 +89,8 @@ title: "Proofs without Source"
8489
- [Ordinary least squares for the general linear model](/P/glm-ols)
8590
- [Parameter estimates for simple linear regression are uncorrelated after mean-centering](/P/slr-olscorr)
8691
- [Posterior density is proportional to joint likelihood](/P/post-jl)
92+
- [Posterior probability of the alternative model for binomial observations](/P/bin-pp)
93+
- [Posterior probability of the alternative model for multinomial observations](/P/mult-pp)
8794
- [Probability density function of the beta distribution](/P/beta-pdf)
8895
- [Probability density function of the continuous uniform distribution](/P/cuni-pdf)
8996
- [Probability density function of the Dirichlet distribution](/P/dir-pdf)

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$.

0 commit comments

Comments
 (0)