Published on *Explorable.com* (https://forum.explorable.com)

A Two-Way ANOVA is useful when we desire to compare the effect of multiple levels of two factors and we have multiple observations at each level.

One-Way ANOVA [3] compares three or more levels of **one factor**. But some experiments [4] involve **two factors** each with multiple levels in which case it is appropriate to use Two-Way ANOVA [5].

Let us discuss the concepts of factors, levels and observation through an example.

A Two-Way ANOVA is a design with two factors.

Let us suppose that the Human Resources Department of a company desires to know if occupational stress varies according to age and gender.

The variable of interest is therefore **occupational stress** as measured by a scale.

There are two **factors **being studied - age and gender.

Further suppose that the employees have been classified into three groups or **levels**:

- age less than 40,
- 40 to 55
- above 55

In addition employees have been labeled into gender classification **(levels)**:

- male
- female

In this design [6], factor age has three levels and gender two. In all, there are 3 x 2 = 6 groups or cells. With this layout, we obtain scores on occupational stress from employee(s) belonging to the six cells.

There are two versions of the Two-Way ANOVA.

The basic version has one observation in each cell - one occupational stress score from one employee in each of the six cells.

The second version has more than one observation per cell but the number of observations in each cell must be equal. The advantage of the second version is it also helps us to test if there is any interaction between the two factors.

For instance, in the example above, we may be interested to know if there is any interaction between age and gender.

This helps us to know if age and gender are independent of each other - they are independent if the effect of age on stress remains the same irrespective of whether we take gender into consideration.

In the basic version there are two null hypotheses [7] to be tested [8].

- H
_{01}: All the age groups have equal stress on the average - H
_{02}: Both the gender groups have equal stress on the average.

In the second version, a third hypothesis is also tested:

- H
_{03}: The two factors are independent or that interaction effect is not present.

The computational aspect involves computing F-statistic for each hypothesis.

The assumptions in both versions remain the same - normality, independence and equality of variance [9].

- An important advantage of this design is it is more efficient than its one-way counterpart. There are two assignable sources of variation - age and gender in our example - and this helps to reduce error variation thereby making this design more efficient.
- Unlike One-Way ANOVA, it enables us to test the effect of two factors at the same time.
- One can also test for independence of the factors provided there are more than one observation in each cell. The only restriction is that the number of observations in each cell has to be equal (there is no such restriction in case of one-way ANOVA).

An Two-Way ANOVA satisfies all three principles of design of experiments [10] namely replication, randomization and local control [11].

Principles of replication and randomization need to be satisfied in a manner similar to One-Way ANOVA.

The principle of local control means to make the observations as homogeneous as possible so that error due to one or more assignable causes may be removed from the experimental error [12].

In our example if we divided the employees only according to their age, then we would have ignored the effect of gender on stress which would then accumulate with the experimental error.

But we divided them not only according to age but also according to gender which would help in reducing the error - this is application of the principle of local control for reducing error variation and making the design more efficient.

**Links**

[1] https://forum.explorable.com/two-way-anova

[2] https://forum.explorable.com/

[3] https://forum.explorable.com/one-way-anova

[4] https://forum.explorable.com/experimental-research

[5] http://www4.uwsp.edu/PSYCH/stat/13/anova-2w.htm

[6] https://forum.explorable.com/factorial-design

[7] https://forum.explorable.com/null-hypothesis

[8] https://forum.explorable.com/hypothesis-testing

[9] https://forum.explorable.com/statistical-variance

[10] https://forum.explorable.com/design-of-experiment

[11] https://forum.explorable.com/controlled-variables

[12] https://forum.explorable.com/experimental-error