Professional Documents
Culture Documents
ANOVA
Analysis of Variance
Chapter 16
k = number of conditions (in this case, 3)
One-Way ANOVA
One-Way ANOVA has one independent
variable (1 factor) with > 2 conditions
conditions = levels = treatments
e.g., for a brand of cola factor, the levels are:
Coke, Pepsi, RC Cola
Two-Way ANOVA
Two-Way ANOVA has 2 independent
variables (factors)
each can have multiple conditions
Example
Two Independent Variables (IVs)
IV1: Brand; and IV2: Calories
Three levels of Brand:
Coke, Pepsi, RC Cola
ANOVA
When a factor uses independent samples
in all conditions, it is called a betweensubjects factor
between-subjects ANOVA
Independent
Independent
Samples
Samples
t-test
Paired
Related
Samples
Samples
t-test
2 or more
samples
Between
Subjects
ANOVA
Repeated
Measures
ANOVA
Multiple t-tests
result in a familywise error rate much larger than
the we selected
ANOVA Assumptions
5
4
3
2
1
Tylenol
Aspirin
Ibuprofen
Gin
Pain Reliever
Post-hoc Tests
If the ANOVA is significant
at least one significant difference between conditions
In that case, we follow the ANOVA with posthoc tests that compare two conditions at a time
post-hoc comparisons
identify the specific
significant differences
between each pair
5
Mean Pain level
2 samples
4
3
2
1
Tylenol
Aspirin
Ibuprofen
Gin
Pain Reliever
Partitioning Variance
Homogeneity of variance
21= 22 = 23 = 24 = 25
Normality
scores in each population are normally
distributed
5
4
3
2
1
Tylenol
Aspirin
Ibuprofen
Gin
Pain Reliever
Partitioning Variance
Partitioning Variance
Total Variance in Scores
MSerror
(chance variance)
X X2
= 1
s X1 X 2
difference between
systematic variance
sample means
= chance variance
difference expected by
chance (standard error)
variance between
sample means
variance expected by
chance (error)
Fobt =
systematic variance
= chance variance
Mean:
Tylenol
Aspirin
Ibuprofen
Gin
1.6
2.1
2.3
2.7
1.6
3.3 3
1.7
2.4
2.4
1.9
1.9
2.7
3.3
2.4
1.8
4
Pain level
tobt
(systematic variance:
treatment effect)
MSgroup
2.1 1
2.2
Tylenol
Aspirin
Ibuprofen
Gin
Pain Reliever
X:
Total Variance
(variability among all the
scores in the data set)
Tylenol
Aspirin
Ibuprofen
Gin
1.6
2.1
2.3
2.7
1.6
3.3
1.7
2.4
2.4
1.9
1.9
2.7
1. Treatment effect
(systematic)
2. Chance (random error +
individual differences)
3.3
2.1
2.4
1.8
2.2
Error Variance
(within groups)
1. Chance (random error +
individual differences)
Overall X = 2.1
F=
0 + Chance
Chance
MS
F=
>1
Fobt =
MSgroup
MSerror
dfgroup = k - 1
error (within):
dferror = k ( n - 1)
Total:
dftotal = N - 1
alpha ()
e.g., .05, .01
4. State Hypotheses
(numerator)
(numerator)
H0: 1 = 2 = 3
H1: not all s are equal
referred to as the
omnibus null hypothesis
DV:
Response time
(seconds)
X1
X2
X3
Control
Normal
Cell
Hands-free
Cell
.50
.55
.45
.40
.75
.65
.60
.60
.65
.50
.65
.70
s2X = (X - X)2
N-1
Group
Error
Sum of df
Squares
SSgroup dfgroup
SSerror
dferror
Total
SStotal
Mean
F
Squares
MSgroup Fobt
MSerror
dftotal
Sum of
Squares
.072
.050
.122
df
2
9
11
Mean
F
Squares
MSgroup Fobt
MSerror
df between groups = k - 1
df error (within groups ) = k (n -1)
df total = N 1
(the sum of dfgroup and dferror)
-2
(X - X)2 =
X-X (X-X)2
Sample Variance
Definitional Formula
X=4
s2X = 8/2 = 4
Sum of
Squares
.072
.050
.122
df
dfgroup
dferror
dftotal
Mean
Squares
MSgroup
MSerror
F
Fobt
SSgroup
df group
.072
= .0360
2
MSerror =
SSerror
df error
.050
= .0056
9
Fobt =
MSgroup
MSerror
.0360
= 6.45
.0056
Group
Error
Total
Sum of
Squares
.072
.050
.122
df
2
9
11
Mean
F
Squares
.0360
6.45
.0056
Interpret Fobt
.475
.65
.625
Report results
F(2, 9) = 6.45, p < .05
Post-hoc Comparisons
Fishers Least Signficant Difference Test
(LSD)
uses t-tests to perform all pairwise comparisons
between group means.
good with three groups, risky with > 3
this is a liberal test; i.e., it gives you high
power to detect a difference if there is one, but
at an increased risk of a Type I error
Post-hoc Comparisons
Bonferroni procedure
uses t-tests to perform pairwise comparisons
between group means,
but controls overall error rate by setting the
error rate for each test to the familywise error
rate divided by the total number of tests.
Hence, the observed significance level is
adjusted for the fact that multiple comparisons
are being made.
e.g., if six comparisons are being made (all
possibilities for four groups), then alpha = .05/6
= .0083
Calculation: PASW
Post-hoc Comparisons
Tukey HSD
(Honestly Significant Difference)
sets the familywise error rate at the error rate
for the collection for all pairwise comparisons.
very common test
2 =
2 =
SS group (k 1) MSerror
SS total + MSerror
.072 (3 1)(.0056)
= 0.48
.122 + .0056
PASW :
One-Way ANOVA
(Between Subjects)
Performing Test
Dependent Variable: rt
Tukey HSD
(I) condition
control
cell
hands
(J) condition
cell
hands
control
hands
control
cell
Mean
Difference
(I-J)
-.17500*
-.15000*
.17500*
.02500
.15000*
-.02500
Std. Error
.05270
.05270
.05270
.05270
.05270
.05270
Sig.
.022
.046
.022
.885
.046
.885
ANOVA Summary
Fast Medium
20.0
2.0
44.0
22.0
30.0
2.0
X=
31.3
8.7
Slow
2.0
2.0
2.0
2.0
Effect size
10