Two-way ANOVA: Difference between revisions
Leonie.ptr (talk | contribs) |
m (Text cleaning) |
||
(15 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
'''Two-way ANOVA''', short for two-way analysis of variances and also called two-factorial ANOVA, is a statistical method | '''Two-way ANOVA''', short for two-way analysis of variances and also called two-factorial ANOVA, is a statistical [[method]] that is applied to investigate the effect of two categorical independent variables on one dependent variable. Those independent variables are also called factors <ref>Harring & Johnson 2018, p. 1734</ref>. In the course of the analysis, three different effects are of [[interest]] <ref>Denis 2021, p. 147</ref>: | ||
* '''Main effect''' of factor A on the dependent variable | * '''Main effect''' of factor A on the dependent variable | ||
* '''Main effect''' of factor B on the dependent variable | * '''Main effect''' of factor B on the dependent variable | ||
* '''Interaction effect''' of | * '''Interaction effect''' of factors A and B | ||
==Differences compared to one-way ANOVA== | ==Differences compared to one-way ANOVA== | ||
Just like the one-way ANOVA, a two-way ANOVA investigates differences | Just like the one-way ANOVA, a two-way ANOVA investigates differences in group means <ref>Harring & Johnson 2018, p.1736</ref>. The main difference lies in the number of independent variables or factors used. While the effect of only one factor on the dependent variable is analyzed for the one-way ANOVA, two-way ANOVA investigates the effects and interaction of two factors <ref>Harring & Johnson 2018 p. 1734</ref>. Thus, both row mean differences and column mean differences are investigated. However, the main question of interest is equal to that of the one-way ANOVA <ref>Denis 2021, p. 148</ref>: | ||
* ''' | * '''"Why does any given score in our data deviate from the mean of all the data?"''' | ||
==Two-way ANOVA design== | ==Two-way ANOVA design== | ||
For conducting a two-factorial ANOVA one can use either a balanced or unbalanced design. An identical number of observations for each group would be called balanced, while a different number of subjects per group is called unbalanced. However, the main problem of unbalanced designs is that the estimates of main effects might be distorted and therefore might have to be adjusted <ref>Harring & Johnson 2018, p. 1736</ref>. | For conducting a two-factorial ANOVA one can use either a balanced or unbalanced design. An identical number of observations for each group would be called balanced, while a different number of subjects per group is called unbalanced. However, the main problem of unbalanced designs is that the estimates of main effects might be distorted and therefore might have to be adjusted <ref>Harring & Johnson 2018, p. 1736</ref>. | ||
With '''a''' levels of factor A and '''b''' levels of factor B, the resulting data layout has a number of '''a''' x '''b''' cells | With '''a''' levels of factor A and '''b''' levels of factor B, the resulting data layout has a number of '''a''' x '''b''' cells, also called treatments. The following table shows a general data layout for two-way ANOVA analyses <ref>Aczel-Sounderpandian 2009, pp. 381, 392</ref>: | ||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ | ||
|- | |- | ||
|| || || '''Factor A''' || | || || || || '''Factor A''' || | ||
|- | |- | ||
|| || || Level 1 || Level 2 || Level 3 || Level | || || || Level 1 || Level 2 || Level 3 || Level ... | ||
|- | |- | ||
| || Level 1 || - || - || - || - | | || Level 1 || - || - || - || - | ||
Line 24: | Line 24: | ||
|'''Factor B''' || Level 2 || - || - || - || - | |'''Factor B''' || Level 2 || - || - || - || - | ||
|- | |- | ||
| || Level | | || Level ... || - || - || - || - | ||
|} | |} | ||
Line 32: | Line 32: | ||
'''x<sub>ijk</sub> = μ + α<sub>i</sub> + β<sub>j</sub> + (αβ)<sub>ij</sub> + ε<sub>ijk</sub>''' | '''x<sub>ijk</sub> = μ + α<sub>i</sub> + β<sub>j</sub> + (αβ)<sub>ij</sub> + ε<sub>ijk</sub>''' | ||
with | with: | ||
μ = overall mean | μ = overall mean | ||
Line 63: | Line 64: | ||
H<sub>1</sub>: Not all (αβ)<sub>ij</sub> = 0 | H<sub>1</sub>: Not all (αβ)<sub>ij</sub> = 0 | ||
In the course of performing a two-way ANOVA, the third hypothesis concerning the interaction effect is investigated first, as the interpretation of results varies depending on whether an interaction can be found or not <ref>Aczel−Sounderpandian 2009, p. 383</ref>. | |||
==Two-way ANOVA assumptions== | ==Two-way ANOVA assumptions== | ||
There are three assumptions that must be satisfied in order to be able to | There are three assumptions that must be satisfied in order to be able to use an analysis of variances in general <ref>Aczel−Sounderpandian 2009, p. 351</ref>: | ||
* '''Normality:''' the investigated groups need to be normally distributed | * '''Normality:''' the investigated groups [[need]] to be normally distributed | ||
* '''Independence:''' the investigated groups need to be independent from each other | * '''Independence:''' the investigated groups need to be independent from each other | ||
* '''Homogeneity:''' the investigated groups need to have equal variances | * '''Homogeneity:''' the investigated groups need to have equal variances | ||
Those assumptions thus also need to be satisfied to be able to perform a two-way ANOVA. | |||
==Footnotes== | ==Footnotes== | ||
<references/> | <references/> | ||
{{infobox5|list1={{i5link|a=[[Mann-Whitney U test]]}} — {{i5link|a=[[Descriptive statistics]]}} — {{i5link|a=[[Parametric analysis]]}} — {{i5link|a=[[Adjusted mean]]}} — {{i5link|a=[[Random error]]}} — {{i5link|a=[[Cluster analysis]]}} — {{i5link|a=[[Attribute control chart]]}} — {{i5link|a=[[Multiple regression analysis]]}} — {{i5link|a=[[Three-Way ANOVA]]}} }} | |||
==References== | ==References== | ||
* Pujar, P. M., Kenchannavar, H. H., Kulkarni, R. M. & Kulkarni, U. P. (2019). ''[https://link.springer.com/article/10.1007/s13201-019-1111-9??utm_source=other_website&error=cookies_not_supported&code=188f871b-3db9-4119-9fce-1d03778a69ec#article-info Real-time water quality monitoring through Internet of Things and ANOVA-based analysis: a case study on river Krishna]''. | * Pujar, P. M., Kenchannavar, H. H., Kulkarni, R. M. & Kulkarni, U. P. (2019). ''[https://link.springer.com/article/10.1007/s13201-019-1111-9??utm_source=other_website&error=cookies_not_supported&code=188f871b-3db9-4119-9fce-1d03778a69ec#article-info Real-time water quality monitoring through Internet of Things and ANOVA-based analysis: a case study on river Krishna]''. "Applied Water Science", 10, 1-16. | ||
* Wilcox, R. (2022). ''[https://meth.psychopen.eu/index.php/meth/article/view/7769 One-way and two-way anova: Inferences about a robust, heteroscedastic measure of effect size]''. | * Wilcox, R. (2022). ''[https://meth.psychopen.eu/index.php/meth/article/view/7769 One-way and two-way anova: Inferences about a robust, heteroscedastic measure of effect size]''. "Methodology", 18(1), 58-73. | ||
* Yigit, S. & Mendes, M. (2018). ''[https://revstat.ine.pt/index.php/REVSTAT/article/download/244/256 Which Effect Size Measure is Appropriate for One-Way and Two-Way ANOVA Models? - A Monte Carlo Simulation Study]''. | * Yigit, S. & Mendes, M. (2018). ''[https://revstat.ine.pt/index.php/REVSTAT/article/download/244/256 Which Effect Size Measure is Appropriate for One-Way and Two-Way ANOVA Models? - A Monte Carlo Simulation Study]''. "REVSTAT-Statistical Journal", 16(3), 295-313. | ||
{{a|Leonie Pöter}} | {{a|Leonie Pöter}} | ||
[[Category:Statistics]] | [[Category:Statistics]] |
Latest revision as of 06:12, 18 November 2023
Two-way ANOVA, short for two-way analysis of variances and also called two-factorial ANOVA, is a statistical method that is applied to investigate the effect of two categorical independent variables on one dependent variable. Those independent variables are also called factors [1]. In the course of the analysis, three different effects are of interest [2]:
- Main effect of factor A on the dependent variable
- Main effect of factor B on the dependent variable
- Interaction effect of factors A and B
Differences compared to one-way ANOVA
Just like the one-way ANOVA, a two-way ANOVA investigates differences in group means [3]. The main difference lies in the number of independent variables or factors used. While the effect of only one factor on the dependent variable is analyzed for the one-way ANOVA, two-way ANOVA investigates the effects and interaction of two factors [4]. Thus, both row mean differences and column mean differences are investigated. However, the main question of interest is equal to that of the one-way ANOVA [5]:
- "Why does any given score in our data deviate from the mean of all the data?"
Two-way ANOVA design
For conducting a two-factorial ANOVA one can use either a balanced or unbalanced design. An identical number of observations for each group would be called balanced, while a different number of subjects per group is called unbalanced. However, the main problem of unbalanced designs is that the estimates of main effects might be distorted and therefore might have to be adjusted [6].
With a levels of factor A and b levels of factor B, the resulting data layout has a number of a x b cells, also called treatments. The following table shows a general data layout for two-way ANOVA analyses [7]:
Factor A | |||||
Level 1 | Level 2 | Level 3 | Level ... | ||
Level 1 | - | - | - | - | |
Factor B | Level 2 | - | - | - | - |
Level ... | - | - | - | - |
Two-way ANOVA model
In the following, the model of a two-way ANOVA is shown [8]:
xijk = μ + αi + βj + (αβ)ij + εijk
with:
μ = overall mean
αi = effect factor A, level i
βj = effect factor B, level j
(αβ)ij = interaction effect, levels i,j
εijk = error
Two-way ANOVA hypotheses
When applying a two-way ANOVA, the following three sets of hypotheses are tested [9]:
Main effect of factor A
H0: αi = 0 for all i, meaning there is no difference in means between the groups
H1: Not all αi = 0
Main effect of factor B
H0: βj = 0 for all j, meaning there is no difference in means between the groups
H1: Not all βj = 0
Interaction between A and B
H0: (αβ)ij = 0 for all i and j, meaning there is two-way interaction between levels of the two factors
H1: Not all (αβ)ij = 0
In the course of performing a two-way ANOVA, the third hypothesis concerning the interaction effect is investigated first, as the interpretation of results varies depending on whether an interaction can be found or not [10].
Two-way ANOVA assumptions
There are three assumptions that must be satisfied in order to be able to use an analysis of variances in general [11]:
- Normality: the investigated groups need to be normally distributed
- Independence: the investigated groups need to be independent from each other
- Homogeneity: the investigated groups need to have equal variances
Those assumptions thus also need to be satisfied to be able to perform a two-way ANOVA.
Footnotes
- ↑ Harring & Johnson 2018, p. 1734
- ↑ Denis 2021, p. 147
- ↑ Harring & Johnson 2018, p.1736
- ↑ Harring & Johnson 2018 p. 1734
- ↑ Denis 2021, p. 148
- ↑ Harring & Johnson 2018, p. 1736
- ↑ Aczel-Sounderpandian 2009, pp. 381, 392
- ↑ Aczel−Sounderpandian 2009, p. 382
- ↑ Aczel−Sounderpandian 2009, pp. 382-383
- ↑ Aczel−Sounderpandian 2009, p. 383
- ↑ Aczel−Sounderpandian 2009, p. 351
Two-way ANOVA — recommended articles |
Mann-Whitney U test — Descriptive statistics — Parametric analysis — Adjusted mean — Random error — Cluster analysis — Attribute control chart — Multiple regression analysis — Three-Way ANOVA |
References
- Pujar, P. M., Kenchannavar, H. H., Kulkarni, R. M. & Kulkarni, U. P. (2019). Real-time water quality monitoring through Internet of Things and ANOVA-based analysis: a case study on river Krishna. "Applied Water Science", 10, 1-16.
- Wilcox, R. (2022). One-way and two-way anova: Inferences about a robust, heteroscedastic measure of effect size. "Methodology", 18(1), 58-73.
- Yigit, S. & Mendes, M. (2018). Which Effect Size Measure is Appropriate for One-Way and Two-Way ANOVA Models? - A Monte Carlo Simulation Study. "REVSTAT-Statistical Journal", 16(3), 295-313.
Author: Leonie Pöter