Skip to content

Commit dbb589e

Browse files
authored
Merge pull request #168 from JoramSoch/master
added 1 proof
2 parents 0f09211 + e2bea83 commit dbb589e

2 files changed

Lines changed: 86 additions & 19 deletions

File tree

I/ToC.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -550,25 +550,26 @@ title: "Table of Contents"
550550

551551
1.4. Multiple linear regression <br>
552552
&emsp;&ensp; 1.4.1. *[Definition](/D/mlr)* <br>
553-
&emsp;&ensp; 1.4.2. **[Ordinary least squares](/P/mlr-ols)** (1) <br>
554-
&emsp;&ensp; 1.4.3. **[Ordinary least squares](/P/mlr-ols2)** (2) <br>
555-
&emsp;&ensp; 1.4.4. *[Total sum of squares](/D/tss)* <br>
556-
&emsp;&ensp; 1.4.5. *[Explained sum of squares](/D/ess)* <br>
557-
&emsp;&ensp; 1.4.6. *[Residual sum of squares](/D/rss)* <br>
558-
&emsp;&ensp; 1.4.7. **[Total, explained and residual sum of squares](/P/mlr-pss)** <br>
559-
&emsp;&ensp; 1.4.8. *[Estimation matrix](/D/emat)* <br>
560-
&emsp;&ensp; 1.4.9. *[Projection matrix](/D/pmat)* <br>
561-
&emsp;&ensp; 1.4.10. *[Residual-forming matrix](/D/rfmat)* <br>
562-
&emsp;&ensp; 1.4.11. **[Estimation, projection and residual-forming matrix](/P/mlr-mat)** <br>
563-
&emsp;&ensp; 1.4.12. **[Idempotence of projection and residual-forming matrix](/P/mlr-idem)** <br>
564-
&emsp;&ensp; 1.4.13. **[Weighted least squares](/P/mlr-wls)** (1) <br>
565-
&emsp;&ensp; 1.4.14. **[Weighted least squares](/P/mlr-wls2)** (2) <br>
566-
&emsp;&ensp; 1.4.15. **[Maximum likelihood estimation](/P/mlr-mle)** <br>
567-
&emsp;&ensp; 1.4.16. **[Maximum log-likelihood](/P/mlr-mll)** <br>
568-
&emsp;&ensp; 1.4.17. **[Deviance function](/P/mlr-dev)** <br>
569-
&emsp;&ensp; 1.4.18. **[Akaike information criterion](/P/mlr-aic)** <br>
570-
&emsp;&ensp; 1.4.19. **[Bayesian information criterion](/P/mlr-bic)** <br>
571-
&emsp;&ensp; 1.4.20. **[Corrected Akaike information criterion](/P/mlr-aicc)** <br>
553+
&emsp;&ensp; 1.4.2. **[Special case of general linear model](/P/mlr-glm)** <br>
554+
&emsp;&ensp; 1.4.3. **[Ordinary least squares](/P/mlr-ols)** (1) <br>
555+
&emsp;&ensp; 1.4.4. **[Ordinary least squares](/P/mlr-ols2)** (2) <br>
556+
&emsp;&ensp; 1.4.5. *[Total sum of squares](/D/tss)* <br>
557+
&emsp;&ensp; 1.4.6. *[Explained sum of squares](/D/ess)* <br>
558+
&emsp;&ensp; 1.4.7. *[Residual sum of squares](/D/rss)* <br>
559+
&emsp;&ensp; 1.4.8. **[Total, explained and residual sum of squares](/P/mlr-pss)** <br>
560+
&emsp;&ensp; 1.4.9. *[Estimation matrix](/D/emat)* <br>
561+
&emsp;&ensp; 1.4.10. *[Projection matrix](/D/pmat)* <br>
562+
&emsp;&ensp; 1.4.11. *[Residual-forming matrix](/D/rfmat)* <br>
563+
&emsp;&ensp; 1.4.12. **[Estimation, projection and residual-forming matrix](/P/mlr-mat)** <br>
564+
&emsp;&ensp; 1.4.13. **[Idempotence of projection and residual-forming matrix](/P/mlr-idem)** <br>
565+
&emsp;&ensp; 1.4.14. **[Weighted least squares](/P/mlr-wls)** (1) <br>
566+
&emsp;&ensp; 1.4.15. **[Weighted least squares](/P/mlr-wls2)** (2) <br>
567+
&emsp;&ensp; 1.4.16. **[Maximum likelihood estimation](/P/mlr-mle)** <br>
568+
&emsp;&ensp; 1.4.17. **[Maximum log-likelihood](/P/mlr-mll)** <br>
569+
&emsp;&ensp; 1.4.18. **[Deviance function](/P/mlr-dev)** <br>
570+
&emsp;&ensp; 1.4.19. **[Akaike information criterion](/P/mlr-aic)** <br>
571+
&emsp;&ensp; 1.4.20. **[Bayesian information criterion](/P/mlr-bic)** <br>
572+
&emsp;&ensp; 1.4.21. **[Corrected Akaike information criterion](/P/mlr-aicc)** <br>
572573

573574
1.5. Bayesian linear regression <br>
574575
&emsp;&ensp; 1.5.1. **[Conjugate prior distribution](/P/blr-prior)** <br>

P/mlr-glm.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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: 2022-07-21 08:28:00
9+
10+
title: "Multiple linear regression is a special case of the general linear model"
11+
chapter: "Statistical Models"
12+
section: "Univariate normal data"
13+
topic: "Multiple linear regression"
14+
theorem: "Special case of general linear model"
15+
16+
sources:
17+
- authors: "Wikipedia"
18+
year: 2022
19+
title: "General linear model"
20+
in: "Wikipedia, the free encyclopedia"
21+
pages: "retrieved on 2022-07-21"
22+
url: "https://en.wikipedia.org/wiki/General_linear_model#Comparison_to_multiple_linear_regression"
23+
24+
proof_id: "P329"
25+
shortcut: "mlr-glm"
26+
username: "JoramSoch"
27+
---
28+
29+
30+
**Theorem:** [Multiple linear regression](/D/mlr) is a special case of the [general linear model](/D/mlr) with number of measurements $v = 1$, such that data matrix $Y$, regression coefficients $B$, noise matrix $E$ and noise covariance $\Sigma$ equate as
31+
32+
$$ \label{eq:mlr-glm}
33+
Y = y, \quad B = \beta, \quad E = \varepsilon \quad \text{and} \quad \Sigma = \sigma^2
34+
$$
35+
36+
where $y$, $\beta$, $\varepsilon$ and $\sigma^2$ are the data vector, regression coefficients, noise vector and noise variance from [multiple linear regression](/D/mlr).
37+
38+
39+
**Proof:** The [linear regression model with correlated errors](/D/mlr) is given by:
40+
41+
$$ \label{eq:mlr}
42+
y = X\beta + \varepsilon, \; \varepsilon \sim \mathcal{N}(0, \sigma^2 V) \; .
43+
$$
44+
45+
Because $\varepsilon$ is an $n \times 1$ vector and $\sigma^2$ is scalar, we have the following identities:
46+
47+
$$
48+
\begin{split}
49+
\mathrm{vec}(\varepsilon) &= \varepsilon \\
50+
\sigma^2 \otimes V &= \sigma^2 V \; .
51+
\end{split}
52+
$$
53+
54+
Thus, using the [relationship between multivariate normal and matrix normal distribution](/P/matn-mvn), equation \eqref{eq:mlr} can also be written as
55+
56+
$$ \label{eq:mlr-dev}
57+
y = X\beta + \varepsilon, \; \varepsilon \sim \mathcal{MN}(0, V, \sigma^2) \; .
58+
$$
59+
60+
Comparing with the [general linear model with correlated observations](/D/glm)
61+
62+
$$ \label{eq:glm}
63+
Y = X B + E, \; E \sim \mathcal{MN}(0, V, \Sigma) \; ,
64+
$$
65+
66+
we finally note the equivalences given in equation \eqref{eq:mlr-glm}.

0 commit comments

Comments
 (0)