You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: I/PbN.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -380,3 +380,9 @@ title: "Proof by Number"
380
380
| P372 | anova2-fme |[F-test for main effect in two-way analysis of variance](/P/anova2-fme)| JoramSoch | 2022-11-10 |
381
381
| P373 | anova2-fia |[F-test for interaction in two-way analysis of variance](/P/anova2-fia)| JoramSoch | 2022-11-11 |
382
382
| 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 |
**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:
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
149
167
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}
151
181
\begin{split}
152
182
\mathrm{rank}\left( B^{(1)} \right) &= n-k \\
153
183
\mathrm{rank}\left( B^{(2)} \right) &= k-1 \\
@@ -164,7 +194,7 @@ $$ \label{eq:ess-rss}
164
194
\end{split}
165
195
$$
166
196
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
168
198
169
199
$$ \label{eq:ess-rss-dist}
170
200
\begin{split}
@@ -184,8 +214,10 @@ F &= \frac{(\mathrm{ESS}/\sigma^2)/(k-1)}{(\mathrm{RSS}/\sigma^2)/(n-k)} \\
184
214
\end{split}
185
215
$$
186
216
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
188
218
189
219
$$ \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)
191
221
$$
222
+
223
+
under the [null hypothesis](/D/h0) for the main effect.
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$.
50
50
51
51
1) The [ordinary least squares estimates for one-way ANOVA](/P/anova1-ols) are
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).
43
43
44
44
45
45
**Proof:** The [total sum of squares](/D/tss) for [one-way ANOVA](/D/anova1) is given by
non-square products in \eqref{eq:sum-Uijk-s2} disappear and the sum reduces to
@@ -191,7 +189,7 @@ $$
191
189
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
192
190
193
191
$$ \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
0 commit comments