Transcript Section 4
Lesson 13 - 4
Two-Way ANOVA
Objectives
• Analyze a two-way ANOVA design
• Draw interaction plots
• Perform the Tukey test
Vocabulary
• Factorial design – a design of experiment that will
test n levels of k factors in a n x k factorial design
• Cells – in a factorial design, a cell contains different
levels of the factors
• Crossed – a condition when all levels of one factor
are combined with all levels of another factor
• Main effect – the effect of changing levels of a single
factor
• Interaction effect – when changes in level of one
factor result in different changes in the response
variable for different levels of the second factor
• Interaction Plots – graphical depictions of the
interaction between factors in a factorial design
One-way ANOVA
● A one-way ANOVA is appropriate when
We wish to analyze k population means
The k populations are described by one factor
that has k different levels
The k different populations do not have any
particular relationship to each other … they are
just different from each other
● We analyze whether at least one of the
population means is significantly different
from the others
Two-way ANOVA
● Sometimes, however, the populations are described by
two different factors
One factor could be which of the medications is given
One factor could be the age group of the patient
● We still have a set of different populations, but there is
a definite structure to these populations
The related populations given the same medication
The related populations of the same age group
● This is a situation for two-way ANOVA
● Two-way ANOVA is an applicable method to analyze two
factors and their interactions
Requirements
Two-way Analysis of Variance (ANOVA):
• The populations from which the samples are
drawn must be normally distributed
• The samples are independent
• The populations have the same variance
Interaction Effect
Always test the hypothesis regarding the
interaction effect. If the null hypothesis of no
interaction is rejected, we do not interpret the
results of the hypotheses involving the main
effects because the interaction clouds those
results.
An interaction plot is a chart that graphically
represents the interactions between the factors
Constructing Interaction Plots
1. Compute mean value of the response variable within each cell
2. Compute row mean value of the response variable and the
column mean value of the response variable with each level of
each factor
3. On a Cartesian plane, label the horizontal axis for each level
of factor A. Vertical axis will represent the mean value of the
response variable
4. For each level of factor A, plot the mean value of the response
variable for each level of factor B
5. Connect the points with straight lines (you should have as
many lines as you have levels of factor B)
The more the difference there is in the slope of the two lines, the
stronger the evidence of interaction
Interaction Plots
Interaction Plot
No Interaction
A1
A2
Mean Response
Mean Response
Interaction Plot
A3
A1
A3
A3
Interaction Plot
Significant
Interaction
A2
A2
Mean Response
Mean Response
Interaction Plot
A1
Some
Interaction
Significant
Interaction
A1
A2
A3
Interaction Plots Summary
● Parallel lines – factors A and B have no
interaction
● Somewhat parallel lines – factors A and B
have some interaction
● Significantly non-parallel lines – factors A
and B have a significant interaction
Example
• 3 patients in each age group are given each
of the 3 different medications
• The measured effects are
Age group
Med
21 – 30
31 – 40
41 – 50
51 – 60
A
2, 6, 3
5, 9, 1
4, 8, 8
6, 10, 9
B
1, 3, 2
2, 8, 3
5, 2, 3
6, 1, 1
C
1, 1, 4
6, 4, 8
7, 2, 5
4, 2, 8
• Enter into Excel and run Two-way ANOVA
Using Excel
The data was entered into Excel as follows
– The columns are the age groups
– Groups of 3 rows together are the medications
– Every combination of medication / age group has
the same number of subjects
Example Summary
• From Excel:
– “Sample” refers to the rows – the medications
– “Columns” refers to the columns – the age groups
– We conclude that there is no interaction effect
– We conclude that there is a no age group effect
– We conclude that there is medication effect
Example Interaction Plot
Summary and Homework
• Summary
– A two-way analysis of variance analyzes whether
two factors affect the means
• The main effect of Factor A
• The main effect of Factor B
• The interaction of Factor A with Factor B
– The main effects can be interpreted only when there
is no significant interaction between the factors
• Homework
– pg 723 - 727: 1-8, 10, 11, 17