Oskar Blakstad274.4K reads

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.

Discover 34 more articles on this topic

Don't miss these related articles:

- 1Statistical Hypothesis Testing
- 2Relationships
- 3Correlation
- 4Regression
- 5Student’s T-Test
- 6ANOVA
- 7Nonparametric Statistics
- 8Other Ways to Analyse Data

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

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, 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 to be tested.

- 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.

- 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 namely replication, randomization and local control.

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.

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.

Full reference:

Oskar Blakstad (Oct 19, 2009). Two-Way ANOVA. Retrieved Sep 30, 2023 from Assisted Self-Help: https://staging.explorable.com/en/two-way-anova

Discover 34 more articles on this topic

Don't miss these related articles:

- 1Statistical Hypothesis Testing
- 2Relationships
- 3Correlation
- 4Regression
- 5Student’s T-Test
- 6ANOVA
- 7Nonparametric Statistics
- 8Other Ways to Analyse Data