Two-Way Analysis of Variance
Two-Way Analysis of Variance
VARIANCE
Mr. Edd Villamor
WHAT IS TWO-WAY ANOVA?
A, B, C Low density
High density
Crop Yield
(Numerical/Dependent Variable)
A TWO-WAY ANOVA WITH INTERACTION TESTS
THREE NULL HYPOTHESES AT THE SAME TIME:
There is no difference in average yield at either There is a difference in average yield by planting
planting density. density.
The effect of one independent variable on average There is an interaction effect between planting
yield does not depend on the effect of the other density and fertilizer type on average yield.
independent variable (a.k.a. no interaction effect).
HOW TO INTERPRET THE P-VALUE
Do not accept the null hypothesis if the P-value is less than the α (<0.05).
(The independent variable has a significant effect on the dependent variable)
Accept the null hypothesis if the P-value is greater than the α (>0.05).
(The independent variable has no significant effect on the dependent variable)
ASSUMPTIONS OF THE TWO-WAY ANOVA
1.Homogeneity of variance (a.k.a. homoscedasticity)
The variation around the mean for each group being compared should be
similar among all groups. If your data don’t meet this assumption, you may be
able to use a non-parametric alternative, like the Kruskal-Wallis test.
ASSUMPTIONS OF THE TWO-WAY ANOVA
2. Independence of observations
Your independent variables should not be dependent on one another (i.e. one
should not cause the other). This is impossible to test with categorical
variables – it can only be ensured by good experimental design.
In addition, your dependent variable should represent unique observations –
that is, your observations should not be grouped within locations or
individuals.
If your data don’t meet this assumption (i.e. if you set up experimental
treatments within blocks), you can include a blocking variable and/or use a
repeated-measures ANOVA.
ASSUMPTIONS OF THE TWO-WAY ANOVA
3.Normally-distributed dependent variable
The values of the dependent variable should follow a bell curve. If your data
don’t meet this assumption, you can try a data transformation.