H 0 : μ1 =μ2 =μ 3= ⋯
H 1 : Not all of the population means are the same
ANOVA
It’s like this: If I have three groups to
compare:
I could do three pair-wise ttests, but this would
increase my type I error
So, instead I want to look at the pairwise
differences “all at once.”
To do this, I can recognize that variance is a
statistic that let’s me look at more than one
difference at a time…
The “F-test”
Is the difference in the means of the groups
(=variability within groups)?
Summarizes the mean differences
between all groups at once.
Variabilit
y
between
groups
F
Variabilit
ywithin
groups
2
between
~Fn,m
2
within
0: within
2 2
H between
a:
2 2
H between
within
ANOVA Table
Mean Sum
Source of Sum of of
variation d.f. squares Squares F-statistic p-value
SSB SSB/k-1 Go to
Between k-1 SSB
(k groups) (sum of squared k 1
Fk-1,nk-k
deviations of SSW
nk k chart
group means
from grand
mean)
SSW s2=SSW/nk-k
Within nk-k
(sum of squared
(n individuals per
deviations of
group)
observations
from their group
mean)
(67-59.7) 2+ (69-59.7) 59 64 60 56
2…+….(sum of 40 squared 72 63 59 60
deviations) = 2060.6 71 65 64 65
Step 3) Fill in the ANOVA table
Total 39 2257.1
Step 3) Fill in the ANOVA table
Total 39 2257.1
INTERPRETATION of ANOVA:
How much of the variance in height is explained by treatment group?
R2=“Coefficient of Determination” = SSB/TSS = 196.5/2275.1=9%
Coefficient of Determination
2 SSB SSB
R= =
SSB+SSE SST
The amount of variation in the outcome variable (dependent variable) that
is explained by the predictor (independent variable).
Step 1. Assumptions for the
Test
Level of measurement of the group variable can be any
level of variable that identifies groups.
16
Step 3. Sampling distribution and
test statistic
In the ANOVA test, the probability is obtained from the “F”
distribution instead of the normal curve distribution.
17
Step 4. Computing the Test
Statistic
Conceptually the test statistic is computed in a way similar
to the independent samples t-test. Both are computed by
dividing the differences in means by the measure of
variability among the groups.
18
Step 5. Decision and
Interpretation
If the probability of the test statistic is less than or equal to
the probability of the level of significance (alpha error rate),
we reject the null hypothesis and conclude that our data
supports the research hypothesis.
19
Interpreting Differences in
Population Means
If we fail to reject the null hypothesis, we can state that we
found no differences among the means for the population
groups for this characteristic. We do not say they are
equal.
20
ANOVA summary
A statistically significant ANOVA (F-test)
only tells you that at least two of the groups
differ, but not which ones differ.
22
ANOVA Test in SPSS (3)
23
ANOVA Test in SPSS (2)
24
ANOVA Test in SPSS (3)
25
One-way ANOVA in SPSS
ANOVA
VAR00001
Sum of
Squares df Mean Square F Sig.
Between Groups 52,431 2 26,215 2,765 ,111
Within Groups 94,800 10 9,480
Total 147,231 12