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}:{\mathrm{\xce\xbc}}_{1}={\mathrm{\xce\xbc}}_{2}={\mathrm{\xce\xbc}}_{3}=.\; .\; .{\mathrm{\xce\xbc}}_{k}$

${H}_{a}$: At least two of the group means ${\mathrm{\xce\xbc}}_{1},{\mathrm{\xce\xbc}}_{2},{\mathrm{\xce\xbc}}_{3},.\; .\; .\; ,{\mathrm{\xce\xbc}}_{k}$ are not equal. That is, ${\mathrm{\xce\xbc}}_{i}\mathrm{\xe2\u2030}{\mathrm{\xce\xbc}}_{j}$ for some $i\mathrm{\xe2\u2030}j$.

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}*:

*Î¼*=

_{1}*Î¼*=

_{2}*Î¼*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.

_{3}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).