Skip to content

Commit e19c9e5

Browse files
authored
Merge pull request #100 from StatProofBook/master
update to master
2 parents 42b680b + a3b4ef4 commit e19c9e5

14 files changed

Lines changed: 90 additions & 40 deletions

I/PbA.md

Lines changed: 7 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 (355 proofs)
11+
### JoramSoch (361 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)
@@ -18,6 +18,7 @@ title: "Proof by Author"
1818
- [Additivity of the Kullback-Leibler divergence for independent distributions](/P/kl-add)
1919
- [Additivity of the variance for independent random variables](/P/var-add)
2020
- [Akaike information criterion for multiple linear regression](/P/mlr-aic)
21+
- [Application of Cochran's theorem to two-way analysis of variance](/P/anova2-cochran)
2122
- [Bayes' rule](/P/bayes-rule)
2223
- [Bayes' theorem](/P/bayes-th)
2324
- [Bayesian information criterion for multiple linear regression](/P/mlr-bic)
@@ -105,6 +106,8 @@ title: "Proof by Author"
105106
- [Expression of the cumulative distribution function of the normal distribution without the error function](/P/norm-cdfwerf)
106107
- [Expression of the probability mass function of the beta-binomial distribution using only the gamma function](/P/betabin-pmfitogf)
107108
- [Extreme points of the probability density function of the normal distribution](/P/norm-extr)
109+
- [F-statistic in terms of ordinary least squares estimates in one-way analysis of variance](/P/anova1-fols)
110+
- [F-statistics in terms of ordinary least squares estimates in two-way analysis of variance](/P/anova2-fols)
108111
- [F-test for grand mean in two-way analysis of variance](/P/anova2-fgm)
109112
- [F-test for interaction in two-way analysis of variance](/P/anova2-fia)
110113
- [F-test for main effect in one-way analysis of variance](/P/anova1-f)
@@ -228,7 +231,9 @@ title: "Proof by Author"
228231
- [Parameters of the corresponding forward model](/P/cfm-para)
229232
- [Partition of a covariance matrix into expected values](/P/covmat-mean)
230233
- [Partition of covariance into expected values](/P/cov-mean)
234+
- [Partition of sums of squares in one-way analysis of variance](/P/anova1-pss)
231235
- [Partition of sums of squares in ordinary least squares](/P/mlr-pss)
236+
- [Partition of sums of squares in two-way analysis of variance](/P/anova2-pss)
232237
- [Partition of the log model evidence into accuracy and complexity](/P/lme-anc)
233238
- [Partition of the mean squared error into bias and variance](/P/mse-bnv)
234239
- [Partition of variance into expected values](/P/var-mean)
@@ -327,6 +332,7 @@ title: "Proof by Author"
327332
- [Relationship between residual variance and sample variance in simple linear regression](/P/slr-resvar)
328333
- [Relationship between second raw moment, variance and mean](/P/momraw-2nd)
329334
- [Relationship between signal-to-noise ratio and R²](/P/snr-rsq)
335+
- [Reparametrization for one-way analysis of variance](/P/anova1-repara)
330336
- [Sampling from the matrix-normal distribution](/P/matn-samp)
331337
- [Sampling from the normal-gamma distribution](/P/ng-samp)
332338
- [Scaling of the covariance matrix upon multiplication with constant matrix](/P/covmat-scal)

I/PbN.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,3 +380,9 @@ title: "Proof by Number"
380380
| P372 | anova2-fme | [F-test for main effect in two-way analysis of variance](/P/anova2-fme) | JoramSoch | 2022-11-10 |
381381
| P373 | anova2-fia | [F-test for interaction in two-way analysis of variance](/P/anova2-fia) | JoramSoch | 2022-11-11 |
382382
| P374 | anova2-fgm | [F-test for grand mean in two-way analysis of variance](/P/anova2-fgm) | JoramSoch | 2022-11-11 |
383+
| P375 | anova1-repara | [Reparametrization for one-way analysis of variance](/P/anova1-repara) | JoramSoch | 2022-11-15 |
384+
| P376 | anova1-pss | [Partition of sums of squares in one-way analysis of variance](/P/anova1-pss) | JoramSoch | 2022-11-15 |
385+
| P377 | anova1-fols | [F-statistic in terms of ordinary least squares estimates in one-way analysis of variance](/P/anova1-fols) | JoramSoch | 2022-11-15 |
386+
| P378 | anova2-cochran | [Application of Cochran's theorem to two-way analysis of variance](/P/anova2-cochran) | JoramSoch | 2022-11-16 |
387+
| P379 | anova2-pss | [Partition of sums of squares in two-way analysis of variance](/P/anova2-pss) | JoramSoch | 2022-11-16 |
388+
| 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 |

I/PbT.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ title: "Proof by Topic"
1414
- [Additivity of the Kullback-Leibler divergence for independent distributions](/P/kl-add)
1515
- [Additivity of the variance for independent random variables](/P/var-add)
1616
- [Akaike information criterion for multiple linear regression](/P/mlr-aic)
17+
- [Application of Cochran's theorem to two-way analysis of variance](/P/anova2-cochran)
1718

1819
### B
1920

@@ -120,6 +121,8 @@ title: "Proof by Topic"
120121

121122
### F
122123

124+
- [F-statistic in terms of ordinary least squares estimates in one-way analysis of variance](/P/anova1-fols)
125+
- [F-statistics in terms of ordinary least squares estimates in two-way analysis of variance](/P/anova2-fols)
123126
- [F-test for grand mean in two-way analysis of variance](/P/anova2-fgm)
124127
- [F-test for interaction in two-way analysis of variance](/P/anova2-fia)
125128
- [F-test for main effect in one-way analysis of variance](/P/anova1-f)
@@ -277,7 +280,9 @@ title: "Proof by Topic"
277280
- [Parameters of the corresponding forward model](/P/cfm-para)
278281
- [Partition of a covariance matrix into expected values](/P/covmat-mean)
279282
- [Partition of covariance into expected values](/P/cov-mean)
283+
- [Partition of sums of squares in one-way analysis of variance](/P/anova1-pss)
280284
- [Partition of sums of squares in ordinary least squares](/P/mlr-pss)
285+
- [Partition of sums of squares in two-way analysis of variance](/P/anova2-pss)
281286
- [Partition of the log model evidence into accuracy and complexity](/P/lme-anc)
282287
- [Partition of the mean squared error into bias and variance](/P/mse-bnv)
283288
- [Partition of variance into expected values](/P/var-mean)
@@ -386,6 +391,7 @@ title: "Proof by Topic"
386391
- [Relationship between residual variance and sample variance in simple linear regression](/P/slr-resvar)
387392
- [Relationship between second raw moment, variance and mean](/P/momraw-2nd)
388393
- [Relationship between signal-to-noise ratio and R²](/P/snr-rsq)
394+
- [Reparametrization for one-way analysis of variance](/P/anova1-repara)
389395

390396
### S
391397

I/PwS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ title: "Proofs without Source"
3737
- [Expectation of the cross-validated log Bayes factor for the univariate Gaussian with known variance](/P/ugkv-cvlbfmean)
3838
- [Expectation of the log Bayes factor for the univariate Gaussian with known variance](/P/ugkv-lbfmean)
3939
- [Exponential distribution is a special case of gamma distribution](/P/exp-gam)
40+
- [F-statistic in terms of ordinary least squares estimates in one-way analysis of variance](/P/anova1-fols)
41+
- [F-statistics in terms of ordinary least squares estimates in two-way analysis of variance](/P/anova2-fols)
4042
- [First raw moment is mean](/P/momraw-1st)
4143
- [Gamma distribution is a special case of Wishart distribution](/P/gam-wish)
4244
- [Joint likelihood is the product of likelihood function and prior density](/P/jl-lfnprior)

P/anova1-f.md

Lines changed: 52 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -30,32 +30,50 @@ username: "JoramSoch"
3030
**Theorem:** Assume the [one-way analysis of variance](/D/anova1) model
3131

3232
$$ \label{eq:anova1}
33-
y_{ij} = \mu_i + \varepsilon_{ij}, \; \varepsilon_{ij} \overset{\mathrm{i.i.d.}}{\sim} \mathcal{N}(0, \sigma^2), \; i = 1, \ldots, k, \; j = 1, \dots, n_i \; ,
33+
y_{ij} = \mu_i + \varepsilon_{ij}, \; \varepsilon_{ij} \overset{\mathrm{i.i.d.}}{\sim} \mathcal{N}(0, \sigma^2), \; i = 1, \ldots, k, \; j = 1, \dots, n_i \; .
3434
$$
3535

36-
and consider the [null](/D/h0) and [alternative](/D/h1) hypothesis
36+
Then, the [test statistic](/D/tstat)
37+
38+
$$ \label{eq:anova1-f}
39+
F = \frac{\frac{1}{k-1} \sum_{i=1}^{k} n_i (\bar{y}_i - \bar{y})^2}{\frac{1}{n-k} \sum_{i=1}^{k} \sum_{j=1}^{n_i} (y_{ij} - \bar{y}_i)^2}
40+
$$
41+
42+
follows an [F-distribution](/D/f)
43+
44+
$$ \label{eq:anova1-f-h0}
45+
F \sim \mathrm{F}(k-1, n-k)
46+
$$
47+
48+
under the [null hypothesis](/D/h0)
3749

3850
$$ \label{eq:anova1-h0}
3951
\begin{split}
40-
H_0: &\; \mu_1 = \ldots = \mu_K \\
52+
H_0: &\; \mu_1 = \ldots = \mu_k \\
4153
H_1: &\; \mu_i \neq \mu_j \quad \text{for at least one} \quad i,j \in \left\lbrace 1, \ldots, k \right\rbrace, \; i \neq j \; .
4254
\end{split}
4355
$$
4456

45-
Then, the [test statistic](/D/tstat)
4657

47-
$$ \label{eq:anova1-f}
48-
F = \frac{\frac{1}{k-1} \sum_{i=1}^{k} n_i (\bar{y}_i - \bar{y})^2}{\frac{1}{n-k} \sum_{i=1}^{k} \sum_{j=1}^{n_i} (y_{ij} - \bar{y}_i)^2}
58+
**Proof:** Denote sample sizes as
59+
60+
$$ \label{eq:samp-size}
61+
\begin{split}
62+
n_i &- \text{number of samples in category} \; i \\
63+
n &= \sum_{i=1}^{k} n_ij
64+
\end{split}
4965
$$
5066

51-
follows an [F-distribution](/D/f) under the null hypothesis:
67+
and denote sample means as
5268

53-
$$ \label{eq:anova1-f-h0}
54-
F \sim \mathrm{F}(k-1, n-k), \; \text{if} \; H_0 \; .
69+
$$ \label{eq:mean-samp}
70+
\begin{split}
71+
\bar{y}_i &= \frac{1}{n_i} \sum_{j=1}^{n_i} y_{ij} \\
72+
\bar{y} &= \frac{1}{n} \sum_{i=1}^{k} \sum_{j=1}^{n_i} y_{ij} \; .
73+
\end{split}
5574
$$
5675

57-
58-
**Proof:** Let $\mu$ be the common [mean](/D/mean) under the [null hypothesis](/D/h0) $\mu_1 = \ldots = \mu_K = \mu$. Under $H_0$, we have:
76+
Let $\mu$ be the common [mean](/D/mean) according to $H_0$ given by \eqref{eq:anova1-h0}, i.e. $\mu_1 = \ldots = \mu_k = \mu$. Under this null hypothesis, we have:
5977

6078
$$ \label{eq:yij-h0}
6179
y_{ij} \sim \mathcal{N}(\mu, \sigma^2) \quad \text{for all} \quad i = 1, \ldots, k, \; j = 1, \ldots, n_i \; .
@@ -98,7 +116,7 @@ $$ \label{eq:sum-yib}
98116
\end{split}
99117
$$
100118

101-
where $n = \sum_{i=1}^{k} n_i$, the sum in \eqref{eq:sum-Uij-s1} reduces to
119+
non-square products in \eqref{eq:sum-Uij-s1} disappear and the sum reduces to
102120

103121
$$ \label{eq:sum-Uij-s2}
104122
\begin{split}
@@ -137,17 +155,29 @@ $$
137155

138156
Then, we observe that the sum in \eqref{eq:sum-Uij-s2} can be represented in the form of \eqref{eq:cochran-p1} using the matrices
139157

140-
$$ \label{eq:sum-Uij-s3-Bj}
158+
$$ \label{eq:B}
141159
\begin{split}
142-
B^{(1)} &= I_n - \mathrm{diag}\left( \frac{1}{n_1} J_{n_1}, \; \ldots, \; \frac{1}{n_K} J_{n_K} \right) \\
143-
B^{(2)} &= \mathrm{diag}\left( \frac{1}{n_1} J_{n_1}, \; \ldots, \; \frac{1}{n_K} J_{n_K} \right) - \frac{1}{n} J_n \\
160+
B^{(1)} &= I_n - \mathrm{diag}\left( \frac{1}{n_1} J_{n_1}, \; \ldots, \; \frac{1}{n_k} J_{n_k} \right) \\
161+
B^{(2)} &= \mathrm{diag}\left( \frac{1}{n_1} J_{n_1}, \; \ldots, \; \frac{1}{n_k} J_{n_k} \right) - \frac{1}{n} J_n \\
144162
B^{(3)} &= \frac{1}{n} J_n
145163
\end{split}
146164
$$
147165

148-
where $J_n$ is an $n \times n$ matrix of ones and $\mathrm{diag}\left( A_1, \ldots, A_n \right)$ denotes a block-diagonal matrix composed of $A_1, \ldots, A_n$. The matrices in \eqref{eq:sum-Uij-s3-Bj} fulfill $B^{(1)} + B^{(2)} + B^{(3)} = I_n$ and their ranks are given by:
166+
where $J_n$ is an $n \times n$ matrix of ones and $\mathrm{diag}\left( A_1, \ldots, A_n \right)$ denotes a block-diagonal matrix composed of $A_1, \ldots, A_n$. We observe that those matrices satisfy
149167

150-
$$ \label{eq:sum-Uij-s3-Bj-rk}
168+
$$ \label{eq:U-Q-B}
169+
\sum_{i=1}^{k} \sum_{j=1}^{n_i} U_{ij}^2 = Q_1 + Q_2 + Q_3 = U^\mathrm{T} B^{(1)} U + U^\mathrm{T} B^{(2)} U + U^\mathrm{T} B^{(3)} U
170+
$$
171+
172+
as well as
173+
174+
$$ \label{eq:B-In}
175+
B^{(1)} + B^{(2)} + B^{(3)} = I_n
176+
$$
177+
178+
and their ranks are:
179+
180+
$$ \label{eq:B-rk}
151181
\begin{split}
152182
\mathrm{rank}\left( B^{(1)} \right) &= n-k \\
153183
\mathrm{rank}\left( B^{(2)} \right) &= k-1 \\
@@ -164,7 +194,7 @@ $$ \label{eq:ess-rss}
164194
\end{split}
165195
$$
166196

167-
Then, using \eqref{eq:sum-Uij-s2}, \eqref{eq:cochran-p1}, \eqref{eq:cochran-p2}, \eqref{eq:sum-Uij-s3-Bj} and \eqref{eq:sum-Uij-s3-Bj-rk}, we find that
197+
Then, using \eqref{eq:sum-Uij-s2}, \eqref{eq:cochran-p1}, \eqref{eq:cochran-p2}, \eqref{eq:B} and \eqref{eq:B-rk}, we find that
168198

169199
$$ \label{eq:ess-rss-dist}
170200
\begin{split}
@@ -184,8 +214,10 @@ F &= \frac{(\mathrm{ESS}/\sigma^2)/(k-1)}{(\mathrm{RSS}/\sigma^2)/(n-k)} \\
184214
\end{split}
185215
$$
186216

187-
which, [by definition of the F-distribution](/D/f), is distributed as:
217+
which, [by definition of the F-distribution](/D/f), is distributed as
188218

189219
$$ \label{eq:anova1-f-qed}
190-
F \sim \mathrm{F}(k-1, n-k), \; \text{if} \; H_0 \; .
220+
F \sim \mathrm{F}(k-1, n-k)
191221
$$
222+
223+
under the [null hypothesis](/D/h0) for the main effect.

P/anova1-fols.md

Lines changed: 2 additions & 2 deletions
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-15 17:35:00
99

10-
title: "F-statistic for main effect in terms of ordinary least squares estimates in one-way analysis of variance"
10+
title: "F-statistic in terms of ordinary least squares estimates in one-way analysis of variance"
1111
chapter: "Statistical Models"
1212
section: "Univariate normal data"
1313
topic: "Analysis of variance"
@@ -46,7 +46,7 @@ $$ \label{eq:anova1-f}
4646
F = \frac{\frac{1}{k-1} \sum_{i=1}^{k} n_i (\bar{y}_i - \bar{y})^2}{\frac{1}{n-k} \sum_{i=1}^{k} \sum_{j=1}^{n_i} (y_{ij} - \bar{y}_i)^2}
4747
$$
4848

49-
where $\bar{y}_i$ is the average of all values $y_{ij}$ from category $i$ and $\bar{y}$ is the grand mean of all values $y_{ij}$ from all categories $i = 1, \ldots, k$.
49+
where $\bar{y} _i$ is the average of all values $y_{ij}$ from category $i$ and $\bar{y}$ is the grand mean of all values $y_{ij}$ from all categories $i = 1, \ldots, k$.
5050

5151
1) The [ordinary least squares estimates for one-way ANOVA](/P/anova1-ols) are
5252

P/anova1-pss.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ $$ \label{eq:anova1-pss}
3939
\mathrm{SS}_\mathrm{tot} = \mathrm{SS}_\mathrm{treat} + \mathrm{SS}_\mathrm{res}
4040
$$
4141

42-
where $\mathrm{SS}_\mathrm{tot}$ is the [total sum of squares](/D/tss), $\mathrm{SS}_\mathrm{treat}$ is the [treatment sum of squares](/D/trss) (equivalent to [explained sum of squares](/D/ess)) and $\mathrm{SS}_\mathrm{res}$ is the [residual sum of squares](/D/rss).
42+
where $\mathrm{SS} _\mathrm{tot}$ is the [total sum of squares](/D/tss), $\mathrm{SS} _\mathrm{treat}$ is the [treatment sum of squares](/D/trss) (equivalent to [explained sum of squares](/D/ess)) and $\mathrm{SS} _\mathrm{res}$ is the [residual sum of squares](/D/rss).
4343

4444

4545
**Proof:** The [total sum of squares](/D/tss) for [one-way ANOVA](/D/anova1) is given by

P/anova1-repara.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ title: "Reparametrization for one-way analysis of variance"
1111
chapter: "Statistical Models"
1212
section: "Univariate normal data"
1313
topic: "Analysis of variance"
14-
theorem: "Reparametrization for one-way ANOVA"
14+
theorem: "Reparametrization of one-way ANOVA"
1515

1616
sources:
1717
- authors: "Wikipedia"
@@ -94,7 +94,7 @@ $$
9494

9595
$$ \label{eq:anova1-repara-c2-qed}
9696
\begin{split}
97-
\hat{\mu} &= \bar{y}_{\bullet \bullet} \hphantom{\bar{y}_{i \bullet} - } = \frac{1}{n} \sum_{i=1}^{k} \sum_{j=1}^{n_i} y_{ij} \\
97+
\hat{\mu} &= \bar{y}_{\bullet \bullet} = \frac{1}{n} \sum_{i=1}^{k} \sum_{j=1}^{n_i} y_{ij} \\
9898
\hat{\delta}_i &= \bar{y}_{i \bullet} - \bar{y}_{\bullet \bullet} = \frac{1}{n_i} \sum_{j=1}^{n_i} y_{ij} - \frac{1}{n} \sum_{i=1}^{k} \sum_{j=1}^{n_i} y_{ij} \; .
9999
\end{split}
100100
$$
@@ -133,7 +133,7 @@ $$ \label{eq:anova1-repara-c4-s1}
133133
F &= \frac{\left( \frac{1}{\sigma^2} \sum_{i=1}^{k} \sum_{j=1}^{n_i} (\hat{\delta}_i - \delta_i)^2 \right)/(k-1)}{\left( \frac{1}{\sigma^2} \sum_{i=1}^{k} \sum_{j=1}^{n_i} (y_{ij} - \bar{y}_i)^2 \right)/(n-k)} \\
134134
&= \frac{\frac{1}{k-1} \sum_{i=1}^{k} \sum_{j=1}^{n_i} (\hat{\delta}_i - \delta_i)^2}{\frac{1}{n-k} \sum_{i=1}^{k} \sum_{j=1}^{n_i} (y_{ij} - \bar{y}_i)^2} \\
135135
&= \frac{\frac{1}{k-1} \sum_{i=1}^{k} n_i (\hat{\delta}_i - \delta_i)^2}{\frac{1}{n-k} \sum_{i=1}^{k} \sum_{j=1}^{n_i} (y_{ij} - \bar{y}_i)^2} \\
136-
&= \frac{\frac{1}{k-1} \sum_{i=1}^{k} n_i \hat{\delta}_i^2}{\frac{1}{n-k} \sum_{i=1}^{k} \sum_{j=1}^{n_i} (y_{ij} - \bar{y}_i)^2}
136+
&\overset{\eqref{eq:anova1-repara-c4-h0}}{=} \frac{\frac{1}{k-1} \sum_{i=1}^{k} n_i \hat{\delta}_i^2}{\frac{1}{n-k} \sum_{i=1}^{k} \sum_{j=1}^{n_i} (y_{ij} - \bar{y}_i)^2}
137137
\end{split}
138138
$$
139139

@@ -143,4 +143,4 @@ $$ \label{eq:anova1-repara-c4-qed}
143143
F \sim \mathrm{F}(k-1, n-k)
144144
$$
145145

146-
under the null hypothesis \eqref{eq:anova1-repara-c4-h0}.
146+
under the null hypothesis.

P/anova2-cochran.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ $$ \label{eq:sum-Uijk-s3d}
152152
&\overset{\eqref{eq:sum-Uijk-s3b}}{=} \sum_{i=1}^{a} \sum_{j=1}^{b} \sum_{k=1}^{n_{ij}} (\bar{y}_{i j \bullet} - \bar{y}_{\bullet \bullet \bullet} - \gamma_{ij}) \\
153153
&= \sum_{i=1}^{a} \sum_{j=1}^{b} n_{ij} \bar{y}_{i j \bullet} - \bar{y}_{\bullet \bullet \bullet} \sum_{i=1}^{a} \sum_{j=1}^{b} n_{ij} - \sum_{i=1}^{a} \sum_{j=1}^{b} n_{ij} \gamma_{ij} \\
154154
&\overset{\eqref{eq:mean-samp}}{=} \sum_{i=1}^{a} \sum_{j=1}^{b} n_{ij} \cdot \frac{1}{n_{ij}} \sum_{k=1}^{n_{ij}} y_{ijk} - n \cdot \frac{1}{n} \sum_{i=1}^{a} \sum_{j=1}^{b} \sum_{k=1}^{n_{ij}} y_{ijk} - \sum_{i=1}^{a} \sum_{j=1}^{b} n_{ij} \gamma_{ij} \\
155-
&= - \frac{1}{n} \sum_{i=1}^{a} \sum_{j=1}^{b} \frac{n_{ij}}{n} \gamma_{ij} \overset{\eqref{eq:anova2-constr}}{=} 0 \; .
155+
&= - \sum_{i=1}^{a} \sum_{j=1}^{b} n_{ij} \gamma_{ij} = - \frac{1}{n} \sum_{i=1}^{a} \sum_{j=1}^{b} \frac{n_{ij}}{n} \gamma_{ij} \overset{\eqref{eq:anova2-constr}}{=} 0 \; .
156156
\end{split}
157157
$$
158158

P/anova2-fgm.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ title: "F-test for grand mean in two-way analysis of variance"
1111
chapter: "Statistical Models"
1212
section: "Univariate normal data"
1313
topic: "Analysis of variance"
14-
theorem: "F-test for interaction in two-way ANOVA"
14+
theorem: "F-test for grand mean in two-way ANOVA"
1515

1616
sources:
1717
- authors: "Nandy, Siddhartha"
@@ -141,9 +141,7 @@ $$
141141
and the term $\bar{y}_{\bullet \bullet \bullet}$ does not depend on $i$, $j$ and $k$
142142

143143
$$ \label{eq:yb-const}
144-
\begin{split}
145144
\bar{y}_{\bullet \bullet \bullet} = \text{const.} \; ,
146-
\end{split}
147145
$$
148146

149147
non-square products in \eqref{eq:sum-Uijk-s2} disappear and the sum reduces to
@@ -191,7 +189,7 @@ $$
191189
where $J_n$ is an $n \times n$ matrix of ones, $J_{n,m}$ is an $n \times m$ matrix of ones and $\mathrm{diag}\left( A_1, \ldots, A_n \right)$ denotes a block-diagonal matrix composed of $A_1, \ldots, A_n$. We observe that those matrices satisfy
192190

193191
$$ \label{eq:U-Q-B}
194-
\sum_{i=1}^{a} \sum_{j=1}^{b} \sum_{k=1}^{n_{ij}} U_i^2 = Q_1 + Q_2 + Q_3 = U^\mathrm{T} B^{(1)} U + U^\mathrm{T} B^{(2)} U + U^\mathrm{T} B^{(3)} U
192+
\sum_{i=1}^{a} \sum_{j=1}^{b} \sum_{k=1}^{n_{ij}} U_{ijk]^2 = Q_1 + Q_2 + Q_3 = U^\mathrm{T} B^{(1)} U + U^\mathrm{T} B^{(2)} U + U^\mathrm{T} B^{(3)} U
195193
$$
196194

197195
as well as

0 commit comments

Comments
 (0)