Week6 16oct 2425
Week6 16oct 2425
ANOVA
Schedule
• Mock Questions
• One-way ANOVA
• Two-way ANOVA
When we use one-way ANOVA?
We want to test….. More than 2 conditions
Anova
• Null hypothesis: the treatment conditions have
no effect on the participant’s scores
H 0 : 1 = 2 = 3
• H1: There is at least one mean difference
among the populations
• The treatment conditions do affect the scores
• The acceptable shorthand is “Not H0”
The F-Ratio: The Test Statistic for ANOVA
x1
x3
Variance Between
x2
x1
x3
Variance WITHIN
x2
The F-Ratio: The Test Statistic for ANOVA
• The value obtained for the F-ratio determines whether any treatment effects exist;
two possibilities:
• Fail to reject H0
• No systematic treatment effects; the differences are entirely caused by random, unsystematic
factors
• the means are very close to overall mean or distribution melt together
𝑆𝑀𝐴𝐿𝐿
𝐿𝐴𝑅𝐺𝐸
• means are fairly close to overall mean and distributions overlap a bit; difficult to distinguish
𝑆𝑖𝑚𝑙𝑎𝑟
𝑆𝑖𝑚𝑙𝑎𝑟
• Reject H0
• The treatment does have an effect and causes systematic differences between samples
• At least one mean is an outlier and each distribution is narrow; distinct from each other.
𝐿𝐴𝑅𝐺𝐸
• 𝑆𝑀𝐴𝐿𝐿
Reporting the Results of Analysis of Variance
• Factorial designs
• Consider more than one factor
• We will study two-factor designs only
• Also limited to situations with equal n’s in each group
• Joint impact of factors is considered
• Three hypotheses tested by three F-ratios
• Large F-ratio → greater treatment differences than would be
expected with no treatment effects
An Overview of the Two-Factor, Independent-
Measures ANOVA (4 of 4)
H 0 : A1 = A2 H 0 : B1 = B2
H1 : A1 A2 H1 : B1 B2
Interactions
• The mean differences between individual
treatment conditions, or cells, are different from
what would be predicted from the overall main
effects of the factors
• Dependence of factors
• The effect of one factor depends on the level or value of the other
factor
• Unique combinations of the factors produce unique effects
• Interaction can be observed in a graph
• Nonparallel lines (lines that cross, converge or diverge) indicate
that interaction is occurring
• Is called the A × B interaction, or “ the A by B” interaction
Graph Showing
the Treatment
Means for No
Interaction
Graph for an
Interaction
Independence of Main Effects and Interactions
• The A-effect: the main effect of factor A typically evaluates the mean
differences between rows
• The B-effect: the main effect of factor B typically evaluates the mean
differences between columns
• The A × B interaction: evaluates mean differences between treatment
conditions that are not predicted from the overall main effects
An Example of the Two-Factor ANOVA and Effect
Size
• First stage
• Identical to independent samples ANOVA
• Compute SStotal, SSbetween treatments, and
SSwithin treatments
• Second stage
• Partition the SSbetween treatments into three separate components:
differences attributed to factor A, to factor B, and to any remaining
mean differences that define the interaction
Structure of
the Analysis
for a Two-
Factor
ANOVA
Example
• Ackerman and Goldsmith (2011)
• learning performance
• studied text from printed pages vs from a computer screen
• Self-regulated vs Fixed time control
Factor B: Text Presentation Mode
Paper Computer
Screen
Self-regulated 11 4
8 4
9 8
10 5
Trow = 70
7 4
M=9 M=5
T = 45 T = 25
SS = 10 SS = 12 N = 20
Factor A G = 155
Fixed 10 10 ∑X2 = 1303
Time Control
7 6
10 10
6 10
7 9 Trow = 85
M=8 M=9
T = 40 T = 45
SS = 14 SS = 12
Tcol = 85 Tcol = 70
Stage 1 of the Two-Factor Analysis
2
G
SS total = X −
2
N
dftotal = N – 1
= 20 – 1 = 19
Stage 1 of the Two-Factor Analysis
SS within −treatments = SSinside each treatment
SSwithin= 10 + 12 + 14 + 12
= 48
dfbetween treatments = k – 1
= k – 1 = number of cells – 1 = 4 – 1 = 3
Stage 2 of the Two-Factor Analysis
• This stage determines the numerators for the three
F-ratios by partitioning SSbetween treatments
Tcol2 G 2
SS B =
2 2
n
Trow G −
SS A = −
row N ncol N
df A = number of rows – 1
=2–1
=1
Stage 2 of the Two-Factor Analysis
Tcol2 G 2
SS B = −
ncol N
df B = number of rows – 1
=2–1
=1
Stage 2 of the Two-Factor Analysis
SS AxB = SS between treatments − SS A − SS B
SS AxB = SS between – SS A – SS B
=53.75 – 11.25 – 11.25
=31.25
df AxB = df between – df A – df B
=3–1-1
=1
SS within treatments
MS within treatments =
df within treatments
MS A MS B MS AxB
FA = FB = FAxB =
MS within MS within MS within
Mean Squares for the Two-Factor ANOVA
SS within treatments
MS within treatments =
df within treatments
MS within = 48/16 = 3
SS A SS B SS AxB
MS A = MS B = MS AxB =
df A df B df AxB
MS A MS B MS AxB
FA = FB = FAxB =
MS within MS within MS within
FA = 11.25/3 = 3.75
FB = 11.25/3 = 3.75
FAxB = 31.25/3 = 10.42
Measuring Effect Size for the Two-Factor
ANOVA
• Compute a value for η2 (eta squared), the
percentage of variance explained by the treatment
effects
SS A SS A
=
2
= = 11.25/11.25 + 48 = 0.190
− SS B − SS AxB SS A + SS within treatments
A
SS total
SS B SS B
B2 = = = 11.25/11.25 + 48 = 0.190
SStotal − SS A − SS AxB SS B + SS within _ treatments
SS AxB SS AxB
AxB
2
= = =31.25/31.25+48 = 0.394
SS total − SS A − SS B SS AxB + SS within treatments
Source Sum of Square df Mean Square F
(SS)
Between treatments 53.75 3
Factor A (time) 11.25 1 11.25 F(1,16) = 3.75
Factor B (mode) 11.25 1 11.25 F(1,16) = 3.75
AxB 31.25 1 31.25 F(1,16) = 10.42
Within Groups 48 16 3
Total 101.75 19