One-Way Analysis of Variance: Using The One-Way
One-Way Analysis of Variance: Using The One-Way
(ANOVA)
14-1 One-Way Analysis of Variance: Using the one-way
ANOVA technique to determine if there is a
significant difference among three or more means
𝑠2𝐵
𝐹= 2
𝑠𝑊
• Using the F test to compare three or more means
• The technique we will use is called an analysis of
variance or ANOVA.
• When would you use this type of test?
We will follow the same 5 step process we’ve become accustomed to so far.
Here are a couple of differences:
Furthermore, to compute F,
2 n Xi i X GM
2
and sW2
i
n 1 si
2
s
B
k 1 ni 1
where
More about the F Test
• In the F test, two different estimates
of the population variance are made
(between group and within group)
• The first estimate is called the
between-group variance, and it
involves finding the variance of the
means. 𝑠 2
𝐵
• The second estimate, the within- 𝐹= 2
𝑠 𝑊
group variance, is made by
computing the variance using all the
data and is not affected by differences
in the means.
More about the F test (ctnd)
Since k = 3, N = 15,
and α = 0.05,
d.f.N. = k – 1 = 3 – 1 = 2
d.f.D. = N – k = 15 – 3 = 12
3. Click Analyze
Step 3: Compute the test value (continued).
** Be efficient:
you could run the ANOVA test in
GeoGebra first, then use the
results to find your critical values
based on the d.f. that are given.
Step 4: Make the decision.
Reject the null hypothesis, since the critical value is
3.89 and the test value f=9.17 is in the critical region
for a right-tailed test.
Note that this suggests that at least one mean is different from the others.
Another statistical test can be used to determine which one is different.
Some important things to note:
• For three groups, the F test can only show whether or not a difference exists
among the three means, not where the difference lies.
• Other statistical tests, Scheffé test and the Tukey test, are used to find where
the difference exists.
• You might be wondering why we don’t just use the t test. The t test was used to
compare two means. It should not be used to compare three or more because
• it would require you to do comparisons of two groups at a time. When you compare 2
means, the other means are ignored. The ANOVA tests all means simultaneously.
• If you are testing 3 means with a t-test, you’d need to run the test 3 times. If you were
testing 5 means, you would need to run the t-test 10 times. You only need to run an F-test
once.
• When you run multiple t-tests instead of one F –test you are increasing your probability of
making a type one error.
15
Example: Toll Road Employees
A state employee wishes to see if there is a significant
difference in the number of employees at the interchanges of
three state toll roads. The data are shown. At α = 0.05, can it be
concluded that there is a significant difference in the average
number of employees the interchanges?
Example: Toll Road Employees (continued)
Step 1: Assumptions:
1. The populations from which the samples were obtained are normally distribu
2. The dependent variable is an interval/ratio level of measurement.
3. The variances of the populations are equal
4. The samples are independent of one another
20
Note Regarding Example 1
• The following slides demonstrate hand calculations
required to do an ANOVA by hand.
• Geogebra will run the ANOVA test for you.
However, it may be useful for you to view the next
four slides to that you can appreciate what
technology does for you in terms of running the
tests and obtaining the results from a software
program.
Computing the test value (by hand) Example: Lowering Blood Pressure
X GM
X
10 12 9 4 116
7.73
N 15 15
2
c. Find the between-group variance, . sB
n X X GM
2
s 2
i i
B
k 1
Step 3: Compute the test value. (continued)
2
s
c. Find the between-group variance, B .
5 11.8 7.73 5 3.8 7.73 5 7.6 7.73
2 2 2
2
sB
3 1
160.13
80.07
2
2
s
d. Find the within-group variance, W .
s2
i
n 1 si
2
4 5.7 4 10.2 4 10.3 104.80
8.73
ni 1
W
444 12
X GM
X
7 14 32 11 152
8.4
N 15 18
2
c. Find the between-group variance, sB
n X X GM
2
s 2
i i
B
k 1
Step 3: Compute the test value. (continued)
c. Find the between-group variance, sB2
6 15.5 8.4 6 4 8.4 6 5.8 8.4
2 2 2
2
s
B
3 1
459.18
229.59
2
2
s
d. Find the within-group variance, W
sW2
ni 1 si
2
ni 1
5 81.9 5 25.6 5 29.0 682.5
45.5
555 15
e. Compute the F value.
sB2 229.59
F 2 5.05
sW 45.5