Two-way ANOVA
Hypothesis Testing 1
Suppose there are treatments and blocks in an experimental design, from which samples are obtained. Assume that the samples of the th treatment are independently and randomly distributed following a normal distribution , with the population variance of each normal distribution being equal, i.e., . In the two-way ANOVA for comparing population means across groups, the hypothesis test is as follows:
- :
- : At least one is different from the others.
Test Statistic
Assume the ANOVA table is provided under a randomized block design.
Source | df | SS | MS | F |
---|---|---|---|---|
Treatments | SST | MST | MST/MSE | |
Blocks | SSB | MSB | ||
Error | SSE | MSE | ||
Total | TSS |
The test statistic is given by: This test statistic follows an F-distribution with degrees of freedom under the assumption that the null hypothesis is true.
Explanation
Let the mean for each treatment be denoted as , and the overall mean as . For the derivation of the test statistic, refer to F-test in ANOVA.
Precautions
One cautionary note is that although a block is added in a two-way ANOVA, the primary focus remains on the differences between treatments, hence should not be a concern2. It is evident from the test statistic that it only incorporates , which, when compared with the test statistic of one-way ANOVA, differs only in the numerator. Although there is a possibility for a test for differences between blocks, denoted by , the main focus should first be on differences between treatments. Analogously to the original , this test statistic follows an F-distribution with degrees of freedom under the assumption that the null hypothesis is true.
Example 3
A university seeks to determine if gas usage differs by season: spring, fall, and winter, in its laboratories. Since each lab might have different characteristics or preferences, they decided to use four similar labs A, B, C, and D as blocks to mitigate any discrepancies among them. Using data on seasonal gas usage from these labs, let’s perform an analysis under a randomized block design. The null hypothesis is that the mean gas usage is identical for each season, while the alternative hypothesis is that at least one season has a different mean gas usage.
Lab | Spring | Fall | Winter |
---|---|---|---|
A | 27 | 68 | 308 |
B | 24 | 76 | 326 |
C | 31 | 65 | 312 |
D | 23 | 67 | 300 |
The overall mean is 135.6, with seasonal means being 26.3 for spring, 69.0 for fall, and 311.5 for winter.
Given the number of treatments and blocks , and allow to be computed as follows: Considering and , at a significance level , the lower bound of the rejection region is , and , thereby allowing the null hypothesis to be rejected. In other words, at least one season’s mean gas usage differs from another.
However, as previously mentioned, it’s unnecessary to strictly test differences according to blocks, but the test statistic for blocks will be , which is smaller than , indicating the null hypothesis cannot be rejected. Therefore, gas usage does not significantly differ by lab.
Verification
See Also
Experimental Design | Parametric Methods | Non-Parametric Methods |
---|---|---|
Completely Randomized Design | One-Way ANOVA | Kruskal-Wallis Test |
Randomized Block Design | Two-Way ANOVA | Friedman Test |