# 13.2: One-Way ANOVA

The purpose of a one-way \(ANOVA\) test is to determine the existence of a statistically significant difference among several group means. The test actually uses variances to help determine if the means are equal or not. In order to perform a one-way \(ANOVA\) test, there are five basic **assumptions **to be fulfilled:

- Each population from which a sample is taken is assumed to be normal.
- All samples are randomly selected and independent.
- The populations are assumed to have equal standard deviations
**(or variances)**. - The factor is a categorical variable.
- The response is a numerical variable.

### The Null and Alternative Hypotheses

The null hypothesis is simply that all the group population means are the same. The alternative hypothesis is that at least one pair of means is different. For example, if there are \(k\) groups:

\[H_{0}: \mu_{1} = \mu_{2} = \mu_{3} = \dotsc = \mu_{k}\]

\[H_{a}: \text{At least two of the group means} \mu_{2} = \mu_{3} = \dotsc = \mu_{k} \text{are not equal}\].

The graphs, a set of box plots representing the distribution of values with the group means indicated by a horizontal line through the box, help in the understanding of the hypothesis test. In the first graph (red box plots), \(H_{0}: \mu_{1} = \mu_{2} = \mu_{3}\) and the three populations have the same distribution if the null hypothesis is true. The variance of the combined data is approximately the same as the variance of each of the populations.

If the null hypothesis is false, then the variance of the combined data is larger which is caused by the different means as shown in the second graph (green box plots).

* Figure 13.2.1.* (a) \(H_{0}\) is true. All means are the same; the differences are due to random variation. (b) \(H_{0}\) is not true. All means are not the same; the differences are too large to be due to random variation.

### Chapter Review

Analysis of variance extends the comparison of two groups to several, each a level of a categorical variable (factor). Samples from each group are independent, and must be randomly selected from normal populations with equal variances. We test the null hypothesis of equal means of the response in every group versus the alternative hypothesis of one or more group means being different from the others. A one-way \(ANOVA\) hypothesis test determines if several population means are equal. The distribution for the test is the \(F\) distribution with two different degrees of freedom.

**Assumptions:**

- Each population from which a sample is taken is assumed to be normal.
- All samples are randomly selected and independent.
- The populations are assumed to have equal standard deviations (or variances).

*Use the following information to answer the next five exercises.* There are five basic assumptions that must be fulfilled in order to perform a one-way \(ANOVA\) test. What are they?

Exercise 13.2.1

Write one assumption.

**Answer**

Each population from which a sample is taken is assumed to be normal.

Exercise 13.2.2

Write another assumption.

Exercise 13.2.3

Write a third assumption.

**Answer**

The populations are assumed to have equal standard deviations (or variances).

Exercise 13.2.4

Write a fourth assumption.

Exercise 13.2.5

Write the final assumption.

**Answer**

The response is a numerical value.

Exercise 13.2.6

State the null hypothesis for a one-way \(ANOVA\) test if there are four groups.

Exercise 13.2.7

State the alternative hypothesis for a one-way \(ANOVA\) test if there are three groups.

**Answer**

\(H_{a}: \text{At least two of the group means } \mu_{1}, \mu_{2}, \mu_{3} \text{ are not equal.}\)

Exercise 13.2.8

When do you use an \(ANOVA\) test?

## Glossary

- Analysis of Variance
- also referred to as \(ANOVA\), is a method of testing whether or not the means of three or more populations are equal. The method is applicable if:
- all populations of interest are normally distributed.
- the populations have equal standard deviations.
- samples (not necessarily of the same size) are randomly and independently selected from each population.

The test statistic for analysis of variance is the \(F\)-ratio.

- One-Way\(ANOVA\)
- a method of testing whether or not the means of three or more populations are equal; the method is applicable if:
- all populations of interest are normally distributed.
- the populations have equal standard deviations.
- samples (not necessarily of the same size) are randomly and independently selected from each population.

The test statistic for analysis of variance is the \(F\)-ratio.

- Variance
- mean of the squared deviations from the mean; the square of the standard deviation. For a set of data, a deviation can be represented as \(x - \bar{x}\) where \(x\) is a value of the data and
\[\bar{x}\]

is the sample mean. The sample variance is equal to the sum of the squares of the deviations divided by the difference of the sample size and one.