Two Factor ANOVA
Two Factor ANOVA
Factorial Designs
Intro to Factorial Designs
Thus far, we have been looking at rather
simple designs – designs with a single
independent variable.
However, behavior is often a function of
multiple influences, and we frequently need to
look at multiple causal variables at the same
time.
We can do this with an analysis of variance,
but we need to design our experiment in the
appropriate way to allow us to do this.
Factorial Designs
Factorial design – an experimental design
with two or more factors (independent
variables) where the factors are completely
crossed.
Completely Crossed – each level of one
factor is combined with each level of every
other factor.
Example
Assume we wanted to look at the effects of
amount of sleep on task performance, and we
thought that amount of sleep would make
very little difference on easy tasks, but less
sleep would impede performance on difficult
tasks.
Thus, we could create a factorial design with
two factors – Amount of sleep (8 hours vs. 4
hours) and task difficult (easy vs. hard).
2 X 2 Factorial Design
5 people per 4 hours of 8 hours of total
condition sleep sleep
Easy 8 7 7.5
Task
Difficult 3 6 4.5
Task
Easy 8 7 7.5
Task
Difficult 3 6 4.5
Task
Easy 8 7 7.5
Task
Difficult 3 6 4.5
Task
3 4 4 8
5 5 6 7
4 4 7 9
3 6 5 9
5 3 4 8
( X
j 1 i 1
ij X T ) n j ( X j X T ) ( X ij X j )
2
j 1
2
j 1 i 1
2
( X
j 1 i 1
ij X T ) n j ( X j X T ) ( X ij X j )
2
j 1
2
j 1 i 1
2
SS A SS B SS AxB
Two Way Anova Model & Hypotheses
X ijk j k jk eijk
ijk
( X X
k 1 j 1 i 1
.. ) 2
SStotal X .. X T
J
n j . ( X j . X .. ) 2 SS A
j 1
K
n.k ( X .k X .. ) 2 SS B
k 1
K J
n jk ( X jk X j . X .k X .. ) 2 SS AB
k 1 j 1
K J n
ijk
( X X
k 1 j 1 i 1
jk ) 2
SS within
B1 B2 Row Totals
A1 20 26 46
A2 22 41 63
Column
42 67 109
Totals
Example continued
T..2 (109) 2 11881
(I ) 594.05
N 20 20
n J K
( II ) X i2 667
i 1 j 1 k 1
J
T
j 1
2
j.
(46) 2 (63) 2 2116 3969 6085
( III ) 608.5
nJ (5)(2) 10 10
K
T 2
.k
(42) 2 (67) 2 1764 4489 6253
( IV ) k 1
625.3
nK (5)(2) 10 10
J K
T
j 1 k 1
2
jk
202 262 222 412 3241
(V ) 648.2
n 5 5
Example Continued
Total 19 72.95
( X1 X 2 )2 (5.2 8.2) 2
Fcomp (1, N JK )
1 1
( ) MS within
F3,4 19.15
n1 n2 .47
(4.0 5.2) 2 1.44
F1,3 3.06
2
( )(1.175) .47
5
CriticalF (1,16) 4.49
Thus, we know that the only mean that differs from the others is the mean
for both – 5.2 doesn’t differ from 4.0 but it does differ from 8.2 – the other
comparisons we can infer from this. Our conclusion – both lecture and
workbook are necessary to get any significant learning.
Effect Sizes