Quantitative Methods: Week 7
Quantitative Methods: Week 7
WEEK 7
The one-way analysis of variance is used to test the claim that three
or more population means are equal.
Conditions or Assumptions
The data are randomly sampled
The variances of each sample are assumed equal
The residuals are normally distributed
8 2 3 2
9 4 5 2
6 3 4 -1
7 5 2 0
3 1 3 3
ANOVA USING THE FIVE-STEP APPROACH
Source of Sums of Squares Degrees of Mean Squares
Step 4. Compute the test statistic. F
Variation (SS) Freedom (df) (MS)
To organize our computations we complete the ANOVA table
Between
k-1
Treatments
Error (or
N-k
Residual) (within)
Total N-1
ANOVA USING THE FIVE-STEP APPROACH
Low
Low Calorie Low Fat Control
Carbohydrate
In order to compute the sums of squares we must first compute the
sample n means for each
5 group and5 the overall mean
5 based on5the
total
Group sample.
mean 6.6 3.0 3.4 1.2
Example 1
EXAMPLE -2
EXAMPLE -2
Step 4. Compute the test statistic.
To organize our computations we will complete
the ANOVA table. In order to compute the sums of
squares we must first compute the sample means
for each group and the overall mean.
Finally,
EXAMPLE -2
Next,
SSE requires computing the squared differences between each
observation and its group mean. We will compute SSE in parts. For
the participants with normal bone density:
H :
0 F M B
EXAMPLE -3
k
Grand Mean
n x
x
The grand mean is the average of all the i i
i 1
values when the factor is ignored k
nx n x n x
x 1 1 2 2 k k
n n n 1 2 k
One-way ANOVA
SS B n x x
k 2
i i
i 1
SS B n x x n x x n x x
2 2 2
1 1 2 2 k k
Example -3
SS B 1900.8376 1902
Example -3
SS W df s
k
2
i i
i 1
SS W df s df s 2
1 1 2
2
2
df s
k
2
k
Example -3
SS W 3386.31 3386
SS W 6 310.90 8 119.86 7 80.29
Example -3
After filling in the sum of squares, we have …
Source SS df MS F
Between 1902
Within 3386
Total 5288
Example -3
Degrees of Freedom, df
The between group df is one less than the number of
groups
We have three groups, so df(B) = 2
The within group df is the sum of the individual df’s of
each group
The sample sizes are 7, 9, and 8
df(W) = 6 + 8 + 7 = 21
The total df is one less than the sample size
df(Total) = 24 – 1 = 23
Example -3
Filling in the degrees of freedom gives this …
Source SS df MS F
Between 1902 2
Within 3386 21
Total 5288 23
Example -3
Source SS df MS F
Source SS df MS F
Example -3
Completing the table with the p-value
Source SS df MS F