<img src="https://d5nxst8fruw4z.cloudfront.net/atrk.gif?account=iA1Pi1a8Dy00ym" style="display:none" height="1" width="1" alt="" />

# 11.2: The One-Way ANOVA Test

Difficulty Level: At Grade Created by: CK-12

## Learning Objectives

• Understand the shortcomings of comparing multiple means as pairs of hypotheses.
• Understand the steps of the ANOVA method and its advantages.
• Compare the means of three or more populations using the ANOVA method.
• Calculate the pooled standard deviation and confidence intervals as estimates of standard deviations of the populations.

## Introduction

Previously, we have discussed analysis that allows us to test if the means and variances of two populations are equal. But let’s say that a teacher is testing multiple reading programs to determine the impact on student achievement. There are five different reading programs and her 31 students are randomly assigned to one of the five programs. The mean achievement scores and variances for the groups are recorded along with the means and the variances for all the subjects combined.

We could conduct a series of t-tests to test that all of the sample means came from the same population. However, this would be tedious and has a major flaw which we will discuss later. Instead, we use something called the Analysis of Variance (ANOVA) that allows us to test the hypothesis that multiple (K) population means and variance of scores are equal. Theoretically, we could test hundreds of population means using this procedure.

## Shortcomings of Comparing Multiple Means Using Previously Explained Methods

As mentioned, to test whether pairs of sample means differ by more than we would expect due to chance, we could conduct a series of separate t-tests in order to compare all possible pairs of means. This would be tedious, but we could use the computer or TI-83/4 calculator to compute these easily and quickly. However, there is a major flaw with this reasoning.

When more than one t-test is run, each at its own level of significance ( α=.10,.05,.01, etc.) the probability of making one or more Type I errors multiplies exponentially. Recall that a Type I error occurs when we reject the null hypothesis when we should not. The level of significance, α, is the probability of a Type I error in a single test. When testing more than one pair of samples, the probability of making at least one Type I error is 1(1α)c where α is the level of significance for each t-test and c is the number of independent t-tests. Using the example from the introduction, if our teacher tested conducted separate t-tests to examine the means of the populations, she would have to conduct 10 separate t-tests. If she performed these tests with α=.05, the probability of committing a Type I error is not .05 as one would initially expect. Instead, it would be 0.40 – extremely high!

## The Steps of the ANOVA Method

In ANOVA, we are actually analyzing the total variation of the scores including (1) the variation of the scores within the groups and (2) the variation between the group means. Since we are interested in two different types of variation, we first calculate each type of variation independently and then calculate the ratio between the two. We use the F-distribution as our sampling distribution and set our critical values and test our hypothesis accordingly.

When using the ANOVA method, we are testing the null hypothesis that the means and the variances of our samples are equal. When we conduct a hypothesis test, we are testing the probability of obtaining an extreme F-statistic by chance. If we reject the null hypothesis that the means and variances of the samples are equal, then we are saying that there is a small likelihood α that we would have obtained such an extreme F-statistic by chance.

To test a hypothesis using the ANOVA method, there are several steps that we need to take. These include:

1. Calculating the mean squares between groups (MSB). The MSB is the difference between the means of the various samples. If we hypothesize that the group means are equal (μ1=μ2==μk), then they must also equal the population mean. Under our null hypothesis, we state that the means of the different samples are all equal and come from the same population, but we understand that there may be fluctuations due to sampling error.

When we calculate the MSB , we must first determine the SSB , which is the sum of the differences between the individual scores and the means in each group. To calculate this difference, we use the formula:

SSB=k=1knk(X¯kX¯)2

where:

k= the group number

nk= the sample size in group k

X¯k= the mean of group k

X¯= mean of all individual observations

k= the number of groups

When simplified, the formula becomes:

SSB=k=1kT2knkT2N

where

Tk= sum of the observations in group K

T= sum of all observations.

Once we calculate this value, we divide by the number of degrees of freedom (K1) to arrive at the MSB.

MSB=SSBK1

2. Calculating the mean squares within groups (MSW). The mean squares within groups calculation is also called the pooled estimate of the population variance. Remember that when we square the standard deviation of a sample, we are estimating population variance. Therefore, to calculate this figure, we sum of the squared deviations within each group and then divide by the sum of the degrees of freedom for each group.

To calculate the MSW we first find the SSW, which is calculated using the formula:

(Xi1X¯1)2+(Xi2X¯2)2++(XikX¯k)2(n11)+(n21)++(nk1)

Simplified, this formula states:

SSW=k=1ki=1nkX2ikk=1kT2knk

where

Tk= sum of the observations in group k

Essentially, this formula sums the squares of each observation and then subtracts the total of the observations squared divided by the number of observations. Finally, we divide this value by the total number of degrees of freedom in the scenario (NK).

MSw=SSwNK

3. Calculate the test statistic. The test statistic is as follows:

F=MSBMSW

4. Find the critical value on the F- distribution. As mentioned above, K1degrees of freedom are associated with MSB and NKdegrees of freedom are associated with MSW. The degrees of freedom for MSB are read across the columns and the degrees of freedom for MSW are read across the rows.

5. Interpret the results of the hypothesis test. In ANOVA, the last step is to decide whether to reject the null hypothesis and then provide clarification about what that decision means.

The primary advantage to using the ANOVA method is that it takes all types of variation into account so that we have an accurate analysis. In addition, we can use technological tools including computer programs (SAS, SPSS, Microsoft Excel) and the TI-83/4 calculator to easily conduct the calculations and test our hypothesis. We use these technological tools quite often when using the ANOVA method.

Let’s take a look at an example to help clarify.

Example:

Let’s go back to the example in the introduction with the teacher that is testing multiple reading programs to determine the impact on student achievement. There are five different reading programs and her 31 students are randomly assigned to the five programs and she collects the following data:

Method

1143251628674353764985754910865510129118 Please (1) compare the means of these different groups by calculating the mean squares between groups and (2) use the standard deviations from our samples to calculate the mean squares within groups and estimate the pooled variance of a population.

Solution:

To solve for SSB , it is necessary to calculate several summary statistics from the data above.

Number(nk)Total(Tk)Mean(X¯)Sum of Squared Obs.(i=1nkX2ik)Sum of Obs. SquaredNumber of Obs(T2knk)7223.149269.146335.50199181.508516.38345325.135387.60306288.8055010.00510500.0031=194=6.26=1,452=1,364.57

Using this information, we find that the sum of squares between groups is equal to

SSB=k=1kT2knkT2N1,364.57(194)231150.5

Since there are four Degrees of Freedom for this calculation (the number of groups minus one), the mean squares between groups is

MSB=SSBK1150.5437.6

Next we calculate the mean squares within groups (MSW) which is also known as the estimation of the pooled variance of a population (σ2).

To calculate the mean squares within groups, we use the formula

SSW=k=1ki=1nkX2ikk=1kT2knk

Using our summary statistics from above, we can calculate that the within groups mean square (MSW) is equal to:

SSW=k=1ki=1nkX2ikk=1kT2knk1,4521,364.5787.43

And so we have

MSW=SSWNK87.43263.36

Therefore, our F-Ratio is

F=MSBMSW37.63.3611.18

We would then analyze this test statistic against our critical value (using the F-distribution table and a value of (α=.02), we find our critical value equal to 4.14. Since our test statistic (11.18) exceeds our critical value (4.14), we reject the null hypothesis. Therefore, we can conclude that not all of the population means of the five programs are equal and that obtaining an F-ratio that extreme by chance is highly improbable.

Technology Note - Excel

Here is the procedure for performing a One-way ANOVA in Excel using this set of data.

1. Copy and paste the table into an empty Excel worksheet
2. Select Data Analysis from the Tools menu and choose “ANOVA: Single-factor” from the list that appears
3. Place the cursor is in the “Input Range” field and select the entire table.
4. Place the cursor in the “Output Range” and click somewhere in a blank cell below the table.
5. Click “Labels” only if you have also included the labels in the table. This will cause the names of the predictor variables to be displayed in the table
6. Click OK and the results shown below will be displayed.

Note: The TI-83/4 also offers a One-way ANOVA test.

Anova: Single Factor

SUMMARY
Groups Count Sum Average Variance
Column 1 7 22 3.142857 3.809524
Column 2 6 33 5.5 3.5
Column 3 8 51 6.375 2.839286
Column 4 5 38 7.6 4.3
Column 5 5 50 10 2.5
ANOVA
Source of Variation SS df MS F Pvalue F crit
Between Groups 150.5033 4 37.62584 11.18893 2.05E05 2.742594
Within Groups 87.43214 26 3.362775
Total 237.9355 30

## Lesson Summary

1. When testing multiple independent samples to determine if they come from the same populations, we could conduct a series of separate t-tests in order to compare all possible pairs of means. However, a more precise and accurate analysis is the Analysis of Variance (ANOVA).
2. In ANOVA, we analyze the total variation of the scores including (1) the variation of the scores within the groups and (2) the variation between the group means and the total mean of all the groups (also known as the grand mean).
3. In this analysis, we calculate the F-ratio, which is the total mean of squares between groups divided by the total mean of squares within groups.
4. The total mean of squares within groups is also known as the estimate of the pooled variance of the population. We find this value by analysis of the standard deviations in each of the samples.

## Review Questions

1. What does the ANOVA acronym stand for?
2. If we are tested whether pairs of sample means differ by more than we would expect due to chance using multiple t-tests, the probability of making a Type I error would ___.
3. In the ANOVA method, we use the ___ distribution.
1. Student’s t-
2. normal
3. F-
4. In the ANOVA method, we complete a series of steps to evaluate our hypothesis. Put the following steps in chronological order.
1. Calculate the mean squares between groups and the means squares within groups
2. Determine the critical values in the F-distribution
3. Evaluate the hypothesis
4. Calculate the test statistic
5. State the null hypothesis

A school psychologist is interested whether or not teachers affect the anxiety scores among students taking the AP Statistics exam. The data below are the scores on a standardized anxiety test for students with three different teachers.

Teacher's Name
Ms. Jones Mr. Smith Mrs. White
8 23 21
6 11 21
4 17 22
12 16 18
16 6 14
17 14 21
12 15 9
10 19 11
11 10
13
1. State the null hypothesis.
2. Using the data above, please fill out the missing values in the table below.
Ms. Jones Mr. Smith Mrs. White Totals
Number (nk) 8 =
Total (Tk) 131 =
Mean (X¯) 14.6 =
Sum of Squared Obs. (nki=1X2ik) =
Sum of Obs. Squared/Number of Obs. (T2knk) =
1. What is the mean squares between groups (MSB) value?
2. What is the mean squares within groups (MSW) value?
3. What is the F-ratio of these two values?
4. Using a α=.05, please use the F-distribution to set a critical value
5. What decision would you make regarding the null hypothesis? Why?

1. Analysis of Variance
2. Increase or increase exponentially
3. C
4. E,A,D,B,C
5. H0:μ1=μ2=μ3
Ms. Jones Mr. Smith Mrs. White Totals
Number (nk) 10 9 8 =27
Total (Tk) 109 131 137 =377
Mean (X¯) 10.9 14.6 17.1 =5,264
Sum of Squared Obs. (nki=1X2ik) 1,339 2,113 2,529 =5,981
Sum of Obs. Squared/Number of Obs. (T2knk) 1,188 1,907 2,346 =5,441
1. 26.35
2. 4.03
3. 6.54
4. 3.40
5. The calculated test statistic exceeds the critical value so we would reject the null hypothesis. Therefore, we could conclude that not all the population means are equal.

### Notes/Highlights Having trouble? Report an issue.

Color Highlighted Text Notes

Show Hide Details
Description
Tags:
Subjects:
Date Created:
Feb 23, 2012