SlideShare a Scribd company logo
•Fixed, random, mixed-model ANOVAs
• Factorial vs. nested designs
• Formal design notation
• Split-plot designs
ANOVA lecture
Goals
1. Describe your ANOVA design to a
statistician (who can then help you
analyse it).
2. Recognize three common types of
ANOVA designs:
• Factorial: fixed, randomized block
• Nested
• Split-plot
3. For your reference: formulas for F
tests for each
Factor – a variable of interest
e.g. temperature
Level – a particular value / state of a factor
e.g. hot, cold
In this example, temperature is a factor with two levels.
Fixed factor
Either
(1) The investigator chooses the levels of the factor for
some purpose.
Eg. Ambient CO2 vs. double CO2
OR
(2) The levels used represent all possible levels.
Eg. Biological sex: Male, female
Random factor
The levels of the factor are chosen randomly from a
universe of possible levels.
Eg. We want to look at whether butterfly collectors
differ in their diversity estimates for 4 plots. We select
5 collectors “randomly” from a village.
Eg. We use three breeding lines of fruit flies as blocks
in a genetics experiment. Blocks are typically random
effects!
Formal notation
Af
6 is a fixed factor called A with 6 levels
Br
5 is a random factor called B with 5 levels
Group exercise (groups of 3)
Experimental design handout
 Write out the factors and levels using
formal notation
ANOVA Example: formal notation
Example 1
Ecologists: Er
10
Papers: Pf
2
Example 2:
Populations: Pr
2
Herbivory: Hf
2
Example 3:
Light: Lf
3
Nutrients: Nf
3
Blocks: Br
3
Fixed-effects ANOVA (Model I)
•All factors are fixed
Random-effects ANOVA (Model II)
•All factors are random
Mixed-model ANOVA (Model III)
•Contains both fixed and random effects, e.g.
randomized block!
Two-way factorial ANOVA
How to calculate “F”
Fixed effect
(factors A & B
fixed)
Random effect
(factors A & B
random)
Mixed model
(A fixed, B
random)
Factor A
Factor B
A x B
MS A
MS Error
MS B
MS Error
MS A x B
MS Error
MS A
MS A x B
MS B
MS A x B
MS A x B
MS Error
MS A x B
MS Error
MS B
MS Error
MS A
MS A x B
Factorial design:
All levels of one factor crossed by all levels
of another factor, i.e. all possible
combinations are represented.
If you can fill in a table with unique
replicates, it’s factorial!
Pea plant
Bean plant
Corn plant
Ambient CO2
Double CO2
Nested design
In this example, strain type is “nested within”
fertilizer.
Fertilizer is often called “group”, strain “subgroup”
The nested factor is always random
No fertilizer Nitrogen fertilizer Phosphorus fertilizer
Strain A Strain B Strain C Strain D Strain E Strain F
Strain A
Strain B
Strain C
O N P
Strain D
Strain E
Strain F
Fertilizer
No fertilizer Nitrogen fertilizer Phosphorus
fertilizer
Strain A Strain B Strain C Strain D Strain E Strain F
Grand mean
Variance: Group
No fertilizer Nitrogen fertilizer Phosphorus
fertilizer
Strain A Strain B Strain C Strain D Strain E Strain F
Variance: Subgroup within a group
Grand mean
Variance: Group
No fertilizer Nitrogen fertilizer Phosphorus
fertilizer
Strain A Strain B Strain C Strain D Strain E Strain F
Variance: Subgroup within a group
Variance: Among all subgroups
Grand mean
Variance: Group
Nested ANOVA: “A” Subgroups nested within “B”
Groups, with n replicates
In our example, A=2, B=3 and n=2
Total
Groups
MS Subgroups within groups
MS Among all subgroups
MS Groups
MS Subgroups within groups
B-1
Subgroups
within groups
B(A-1)
ABn-1
df F
Among all
subgroups
AB(n-1)
Formal notation cont.
Af
6 x Br
5 tells us that this is a factorial design
with factor A “crossed” with factor B
Af
6 (Br
5) tells us that this is a nested design
with factor A “nested within” with factor B. In
other words, A is subgroup, B is group.
Group exercise (groups of 3)
Experimental design handout
 Write out the factors and levels using
formal notation
Example 1:
Er
10
x Pf
2
Example 2:
Pr
2
(Hf
2
)
Example 3:
Br
3
x Lf
3
x Nf
3
Split plot design
An experiment replicated within an
experiment!
Ambient CO2
Elevated CO2
4 Main plots, e.g. greenhouses
Split plot design
An experiment replicated within an
experiment!
Main plot
CO2 MS maintreat F
Main plot error MS mainerror
Split plot design
An experiment replicated within an
experiment!
Ambient CO2
Elevated CO2
4 Main plots, e.g. greenhouses
Split plot design
An experiment replicated within an
experiment!
3 5 6 2 4 1
5 3 6 4 2 1
6 3 2 5 1 4
1 5 6 3 2 4
Subplots with six different
nutrient concentrations
Split plot design
An experiment replicated within an
experiment!
Subplot
nutrient MS subtreat F
nutrient x CO2 MS subinteract F
Subplot error MS suberror
Split plot design
An experiment replicated within an
experiment!
Subplot
nutrient MS subtreat F
nutrient x CO2 MS subinteract F
Subplot error MS suberror
Main plot
CO2 MS maintreat F
Main plot error MS mainerror

More Related Content

PPTX
Factorial Design
PPTX
finalpresentation-150427092058-conversion-gate02 (1).pptx
DOCX
iStockphotoThinkstockchapter 8Factorial and Mixed-Fac.docx
PPT
5 factorial design
PDF
RM_05_DOE.pdf
PPTX
4_4_WP_4_06_ND_Model.pptx
PPTX
4_4_WP_4_06_ND_Model.pptx
Factorial Design
finalpresentation-150427092058-conversion-gate02 (1).pptx
iStockphotoThinkstockchapter 8Factorial and Mixed-Fac.docx
5 factorial design
RM_05_DOE.pdf
4_4_WP_4_06_ND_Model.pptx
4_4_WP_4_06_ND_Model.pptx

Similar to analysis of covariance lecture modules using plots (20)

PDF
G03405049058
PDF
Doe introductionh
PPTX
factorial design.pptx
PPTX
factorial analysis.pptx
PPT
Stactistics: Analysis of Variance Part I
PPT
Experimental Design
PPTX
presentation of factorial experiment 3*2
PDF
Factorial Experiments for graduate stddd.pdf
PDF
Advanced Statist: Factorial Experiments.pdf
PPTX
Unit 4 Blocking and Confounding For Two level Factorials.pptx
PPTX
Design of Engineering Experiments Part 5
PPT
hedges.ppt
PPTX
One way anova, data science, statistics.
PPTX
One Way Anova, Data Science, Statistics.
PPTX
TWO WAY ANOVA.pptx biostatistics and reasearch
PPT
Nested Analysis of variance by study&control site
PPT
NestedANOVA.ppt
PPT
Factorial design - Dr. Manu Melwin Joy - School of Management Studies, Cochin...
PDF
Blocking lab
G03405049058
Doe introductionh
factorial design.pptx
factorial analysis.pptx
Stactistics: Analysis of Variance Part I
Experimental Design
presentation of factorial experiment 3*2
Factorial Experiments for graduate stddd.pdf
Advanced Statist: Factorial Experiments.pdf
Unit 4 Blocking and Confounding For Two level Factorials.pptx
Design of Engineering Experiments Part 5
hedges.ppt
One way anova, data science, statistics.
One Way Anova, Data Science, Statistics.
TWO WAY ANOVA.pptx biostatistics and reasearch
Nested Analysis of variance by study&control site
NestedANOVA.ppt
Factorial design - Dr. Manu Melwin Joy - School of Management Studies, Cochin...
Blocking lab
Ad

Recently uploaded (20)

PDF
Clinical guidelines as a resource for EBP(1).pdf
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPTX
STERILIZATION AND DISINFECTION-1.ppthhhbx
PPT
ISS -ESG Data flows What is ESG and HowHow
PPTX
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
PPTX
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
PDF
annual-report-2024-2025 original latest.
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PDF
Introduction to the R Programming Language
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PDF
Fluorescence-microscope_Botany_detailed content
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PDF
Lecture1 pattern recognition............
PPTX
Database Infoormation System (DBIS).pptx
PPT
Quality review (1)_presentation of this 21
Clinical guidelines as a resource for EBP(1).pdf
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
Business Ppt On Nestle.pptx huunnnhhgfvu
STERILIZATION AND DISINFECTION-1.ppthhhbx
ISS -ESG Data flows What is ESG and HowHow
Introduction to Basics of Ethical Hacking and Penetration Testing -Unit No. 1...
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
annual-report-2024-2025 original latest.
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Introduction to the R Programming Language
Supervised vs unsupervised machine learning algorithms
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Fluorescence-microscope_Botany_detailed content
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
Lecture1 pattern recognition............
Database Infoormation System (DBIS).pptx
Quality review (1)_presentation of this 21
Ad

analysis of covariance lecture modules using plots

  • 1. •Fixed, random, mixed-model ANOVAs • Factorial vs. nested designs • Formal design notation • Split-plot designs ANOVA lecture
  • 2. Goals 1. Describe your ANOVA design to a statistician (who can then help you analyse it). 2. Recognize three common types of ANOVA designs: • Factorial: fixed, randomized block • Nested • Split-plot 3. For your reference: formulas for F tests for each
  • 3. Factor – a variable of interest e.g. temperature Level – a particular value / state of a factor e.g. hot, cold In this example, temperature is a factor with two levels.
  • 4. Fixed factor Either (1) The investigator chooses the levels of the factor for some purpose. Eg. Ambient CO2 vs. double CO2 OR (2) The levels used represent all possible levels. Eg. Biological sex: Male, female
  • 5. Random factor The levels of the factor are chosen randomly from a universe of possible levels. Eg. We want to look at whether butterfly collectors differ in their diversity estimates for 4 plots. We select 5 collectors “randomly” from a village. Eg. We use three breeding lines of fruit flies as blocks in a genetics experiment. Blocks are typically random effects!
  • 6. Formal notation Af 6 is a fixed factor called A with 6 levels Br 5 is a random factor called B with 5 levels
  • 7. Group exercise (groups of 3) Experimental design handout  Write out the factors and levels using formal notation
  • 8. ANOVA Example: formal notation Example 1 Ecologists: Er 10 Papers: Pf 2 Example 2: Populations: Pr 2 Herbivory: Hf 2 Example 3: Light: Lf 3 Nutrients: Nf 3 Blocks: Br 3
  • 9. Fixed-effects ANOVA (Model I) •All factors are fixed Random-effects ANOVA (Model II) •All factors are random Mixed-model ANOVA (Model III) •Contains both fixed and random effects, e.g. randomized block!
  • 10. Two-way factorial ANOVA How to calculate “F” Fixed effect (factors A & B fixed) Random effect (factors A & B random) Mixed model (A fixed, B random) Factor A Factor B A x B MS A MS Error MS B MS Error MS A x B MS Error MS A MS A x B MS B MS A x B MS A x B MS Error MS A x B MS Error MS B MS Error MS A MS A x B
  • 11. Factorial design: All levels of one factor crossed by all levels of another factor, i.e. all possible combinations are represented. If you can fill in a table with unique replicates, it’s factorial! Pea plant Bean plant Corn plant Ambient CO2 Double CO2
  • 12. Nested design In this example, strain type is “nested within” fertilizer. Fertilizer is often called “group”, strain “subgroup” The nested factor is always random No fertilizer Nitrogen fertilizer Phosphorus fertilizer Strain A Strain B Strain C Strain D Strain E Strain F
  • 13. Strain A Strain B Strain C O N P Strain D Strain E Strain F Fertilizer
  • 14. No fertilizer Nitrogen fertilizer Phosphorus fertilizer Strain A Strain B Strain C Strain D Strain E Strain F Grand mean Variance: Group
  • 15. No fertilizer Nitrogen fertilizer Phosphorus fertilizer Strain A Strain B Strain C Strain D Strain E Strain F Variance: Subgroup within a group Grand mean Variance: Group
  • 16. No fertilizer Nitrogen fertilizer Phosphorus fertilizer Strain A Strain B Strain C Strain D Strain E Strain F Variance: Subgroup within a group Variance: Among all subgroups Grand mean Variance: Group
  • 17. Nested ANOVA: “A” Subgroups nested within “B” Groups, with n replicates In our example, A=2, B=3 and n=2 Total Groups MS Subgroups within groups MS Among all subgroups MS Groups MS Subgroups within groups B-1 Subgroups within groups B(A-1) ABn-1 df F Among all subgroups AB(n-1)
  • 18. Formal notation cont. Af 6 x Br 5 tells us that this is a factorial design with factor A “crossed” with factor B Af 6 (Br 5) tells us that this is a nested design with factor A “nested within” with factor B. In other words, A is subgroup, B is group.
  • 19. Group exercise (groups of 3) Experimental design handout  Write out the factors and levels using formal notation
  • 20. Example 1: Er 10 x Pf 2 Example 2: Pr 2 (Hf 2 ) Example 3: Br 3 x Lf 3 x Nf 3
  • 21. Split plot design An experiment replicated within an experiment! Ambient CO2 Elevated CO2 4 Main plots, e.g. greenhouses
  • 22. Split plot design An experiment replicated within an experiment! Main plot CO2 MS maintreat F Main plot error MS mainerror
  • 23. Split plot design An experiment replicated within an experiment! Ambient CO2 Elevated CO2 4 Main plots, e.g. greenhouses
  • 24. Split plot design An experiment replicated within an experiment! 3 5 6 2 4 1 5 3 6 4 2 1 6 3 2 5 1 4 1 5 6 3 2 4 Subplots with six different nutrient concentrations
  • 25. Split plot design An experiment replicated within an experiment! Subplot nutrient MS subtreat F nutrient x CO2 MS subinteract F Subplot error MS suberror
  • 26. Split plot design An experiment replicated within an experiment! Subplot nutrient MS subtreat F nutrient x CO2 MS subinteract F Subplot error MS suberror Main plot CO2 MS maintreat F Main plot error MS mainerror