SlideShare a Scribd company logo
BI FACTORIAL ANOVA (2- WAY
ANOVA)
Factorial ANOVA
• One-Way ANOVA = ANOVA with one IV with 1+
levels and one DV
• Factorial ANOVA = ANOVA with 2+ IV’s and one
DV
– Factorial ANOVA Notation:
• 2 x 3 x 4 ANOVA
• The number of numbers = the number of IV’s
• The numbers themselves = the number of levels in each
IV
Factorial ANOVA
• 2 x 3 x 4 ANOVA = an ANOVA with 3 IV’s, one of which has 2
levels, one of which has 3 levels, and the last of which has 4
levels
• Why use a factorial ANOVA? Why not just use
multiple one-way ANOVA’s?
1. Increased power – with the same sample size and effect
size, a factorial ANOVA is more likely to result in the
rejection of Ho
– aka with equal effect size and probability of rejecting Ho if it is
true (α), you can use fewer subjects (and time and money)
Factorial ANOVA
• Why use a factorial ANOVA? Why not just use
multiple one-way ANOVA’s?
2. With 3 IV’s, you’d need to run 3 one-way
ANOVA’s, which would inflate your α-level
– However, this could be corrected with a Bonferroni
Correction
3. The best reason is that a factorial ANOVA can
detect interactions, something that multiple
one-way ANOVA’s cannot do
Factorial ANOVA
• Interaction:
– when the effects of one independent variable differ
according to levels of another independent variable
– Ex. We are testing two IV’s, Gender (male and female) and
Age (young, medium, and old) and their effect on
performance
• If males performance differed as a function of age, i.e. males
performed better or worse with age, but females performance was
the same across ages, we would say that Age and Gender interact,
or that we have an Age x Gender interaction
Factorial ANOVA
• Interaction:
– Presented graphically:
• Note how male’s
performance changes as a
function of age while
females does not
• Note also that the lines cross
one another, this is the
hallmark of an interaction,
and why interactions are
sometimes called cross-over
or disordinal interactions
AGE
OldMediumYoung
Performance
40
30
20
10
0
GENDER
Male
Female
Factorial ANOVA
• Interactions:
– However, it is not necessary that the lines cross,
only that the slopes differ from one another
• I.e. one line can be flat, and the other sloping upward,
but not cross – this is still an interaction
• See Fig. 17.2 on page 410 in the text for more examples
Factorial ANOVA
• As opposed to interactions, we have what are
called main effects:
– the effect of an IV independent of any other IV’s
• This is what we were looking at with one-way ANOVA’s
– if we have a significant main effect of our IV, then we
can say that the mean of at least one of the
groups/levels of that IV is different than at least one of
the other groups/levels
Factorial ANOVA
• Finally, we also have simple effects:
– the effect of one group/level of our IV at one
group/level of another IV
• Using our example earlier of the effects of Gender
(Men/Women) and Age (Young/Medium/Old) on
Performance, to say that young women outperformed
other groups would be to talk about a simple effect
Factorial ANOVA
• We then calculate the Grand Mean ( )
– This remains (ΣX)/N, or all of our observations
added together, divided by the number of
observations
• We can also calculate SStotal, which is also
calculated the same as in a one-way ANOVA
..X
 
N
X
X
2
2 

Factorial ANOVA
• Next we want to calculate our SS terms for our
IV’s, something new to factorial ANOVA
– SSIV = nxΣ( - )2
• n = number of subjects per group/level of our IV
• x = number of groups/levels in the other IVIVX ..X
Factorial ANOVA
– SSIV = nxΣ( - )2
1. Subtract the grand mean from each of our levels means
• For SSgender, this would involve subtracting the mean for males from
the grand mean, and the mean for females from the grand mean
• Note: The number of values should equal the number of levels of
your IV
2. Square all of these values
3. Add all of these values up
4. Multiply this number by the number of subjects in each cell x
the number of levels of the other IV
5. Repeat for any IV’s
• Using the previous example, we would have both SSgender and SSage
IVX ..X
Factorial ANOVA
• Next we want to calculate SScells, which has a
formula similar to SSIV
– SScells =
1. Subtract the grand mean from each of our cell means
• Note: The number of values should equal the number of cells
2. Square all of these values
3. Add all of these values up
4. Multiply this number by the number of subjects in each cell
 2
..XXn cell 
Factorial ANOVA
• Now that we have SStotal, the SS’s for our IV’s,
and SScells, we can find SSerror and the SS for our
interaction term, SSint
– SSint = SScells – SSIV1 – SSIV2 – etc…
• Going back to our previous example,
SSint = SScells – SSgender – SSage
– SSerror = SStotal – SScells
Two Way ANOVA
Data required
• When 2 independent variables
(Nominal/categorical) have
an effect on one dependent variable
(ordinal or ratio measurement scale)
• Compares relative influences on Dependent Variable
• Examine interactions between independent variables
• Just as we had Sums of Squares and Mean Squares in
One-way ANOVA, we have the same in Two-way
ANOVA.
Two way ANOVA
Include tests of three null hypotheses:
1) Means of observations grouped by one factor
are same;
2) Means of observations grouped by the other
factor are the same; and
3) There is no interaction between the two factors.
The interaction test tells whether the effects of
one factor depend on the other factor
Example-
we have test score of boys & girls in age group of
10 yr,11yr & 12 yr. If we want to study the effect of
gender & age on score.
Two independent factors- Gender, Age
Dependent factor - Test score
Ho -Gender will have no significant effect on student
score
Ha -
Ho - Age will have no significant effect on student score
Ha -
Ho – Gender & age interaction will have no significant
effect on student score
Ha -
Two-way ANOVA Table
Source of
Variation
Degrees of
Freedom
Sum of
Squares
Mean
Square F-ratio
P-value
Factor A r  1 SSA MSA FA = MSA / MSE Tail area
Factor B c 1 SSB MSB FB = MSB / MSE Tail area
Interaction (r – 1) (c – 1) SSAB MSAB FAB = MSAB / MSE Tail area
Error
(within)
rc(n – 1) SSE MSE
Total rcn  1 SST
Example with SPSS
Example:
Do people with private health insurance visit their
Physicians more frequently than people with no
insurance or other types of insurance ?
N=86
• Type of insurance - 1.No insurance
2.Private insurance
3. TRICARE
• No. of visits to their Physicians(dependent
variable)
Gender
0-M
1-F
References
• Methods in Biostatistics by BK Mahajan
• Statistical Methods by SP Gupta
• Basic & Clinical Biostatistics by Dawson and
Beth
• Munro’s statistical methods for health care
research
ANOVA - BI FACTORIAL ANOVA (2- WAY ANOVA)

More Related Content

PPT
In Anova
PPTX
Analysis of variance (ANOVA) everything you need to know
PPTX
Statistical inference
PPT
Biometry BOOK by mbazi E
PPTX
Full Lecture Presentation on ANOVA
PPTX
Comparing means
PPT
Analysis of covariance
PDF
Inferential Statistics
In Anova
Analysis of variance (ANOVA) everything you need to know
Statistical inference
Biometry BOOK by mbazi E
Full Lecture Presentation on ANOVA
Comparing means
Analysis of covariance
Inferential Statistics

What's hot (20)

PPTX
PPTX
One Way ANOVA and Two Way ANOVA using R
PPT
Analysis of variance
PPTX
PPTX
Introduction to Statistics
PPTX
The Chi-Square Statistic: Tests for Goodness of Fit and Independence
PPTX
Analysis of variance
PPTX
Univariate & bivariate analysis
PPT
Chi square mahmoud
ODP
Correlation
PPTX
Two phase sampling
PDF
Applied statistics lecture_2
PPTX
Statistical Estimation
PDF
Statistical inference: Hypothesis Testing and t-tests
PPT
Anova lecture
PPT
Mixed models
PPTX
Non parametric study; Statistical approach for med student
PDF
PPT
Experimental designs
PDF
Statistics lecture 8 (chapter 7)
One Way ANOVA and Two Way ANOVA using R
Analysis of variance
Introduction to Statistics
The Chi-Square Statistic: Tests for Goodness of Fit and Independence
Analysis of variance
Univariate & bivariate analysis
Chi square mahmoud
Correlation
Two phase sampling
Applied statistics lecture_2
Statistical Estimation
Statistical inference: Hypothesis Testing and t-tests
Anova lecture
Mixed models
Non parametric study; Statistical approach for med student
Experimental designs
Statistics lecture 8 (chapter 7)
Ad

Similar to ANOVA - BI FACTORIAL ANOVA (2- WAY ANOVA) (20)

PPTX
Hypothesis Testing
PPT
classmar16.ppt
PPT
classmar16.ppt
PPTX
ANOVA biostat easy explaination .pptx
PPTX
PDF
How do I do a T test, correlation and ANOVA in SpssSolution .pdf
ODP
ANOVA II
PPTX
ANOVA DUA HALA 10042018.pptx
PPTX
Inferential statistics quantitative data - anova
PPT
DOCX
iStockphotoThinkstockchapter 8Factorial and Mixed-Fac.docx
DOCX
Chapter 18 – Pricing Setting in the Business WorldThere are few .docx
PDF
2 way ANOVA(Analysis Of VAriance
PPT
Chapter 10 2 way
PPTX
Tugasan kumpulan anova
PPTX
Parametric & non-parametric
PPT
Statistics for Anaesthesiologists
PPTX
Analysis of variance (ANOVA)
Hypothesis Testing
classmar16.ppt
classmar16.ppt
ANOVA biostat easy explaination .pptx
How do I do a T test, correlation and ANOVA in SpssSolution .pdf
ANOVA II
ANOVA DUA HALA 10042018.pptx
Inferential statistics quantitative data - anova
iStockphotoThinkstockchapter 8Factorial and Mixed-Fac.docx
Chapter 18 – Pricing Setting in the Business WorldThere are few .docx
2 way ANOVA(Analysis Of VAriance
Chapter 10 2 way
Tugasan kumpulan anova
Parametric & non-parametric
Statistics for Anaesthesiologists
Analysis of variance (ANOVA)
Ad

More from Dr. Hament Sharma (20)

PPTX
HEMOPTYSIS
PPTX
pneumothorax
PPTX
PPT
toxic shock syndrome
PPTX
obstructive bronchitis
PPT
HELMINTHIASIS HELMINTHIC INFECTION
PPTX
DIABETES MELLITUS
PPTX
PHOTOCHEMICAL REACTION AND TRANSFORMATIONS
PPT
tumor - DEFINITION AND DESCRIPTON
PPT
Physiology Of Sexual Differentia
DOCX
SURVEY - Patients satisfaction survey during surgery
PPTX
tuberculosis - CAVERNOUS TUBERCULOSIS
PPTX
errors of measurement and systematic errors
PPTX
bronchitis - CHRONIC BRONCHITIS
DOCX
histo - MCQ ON NERVOUS SYSTEM
PPTX
CONGENITAL INFECTION (Cytomegalovirus & Toxoplasmosis)
PPTX
kidney - ADAPTIVE CHANGES OF KIDNEY IN KIDNEY DISEASES
PPTX
rashes - different types of rashes & diagnosis
DOCX
PPTX
symptomatic hypertension
HEMOPTYSIS
pneumothorax
toxic shock syndrome
obstructive bronchitis
HELMINTHIASIS HELMINTHIC INFECTION
DIABETES MELLITUS
PHOTOCHEMICAL REACTION AND TRANSFORMATIONS
tumor - DEFINITION AND DESCRIPTON
Physiology Of Sexual Differentia
SURVEY - Patients satisfaction survey during surgery
tuberculosis - CAVERNOUS TUBERCULOSIS
errors of measurement and systematic errors
bronchitis - CHRONIC BRONCHITIS
histo - MCQ ON NERVOUS SYSTEM
CONGENITAL INFECTION (Cytomegalovirus & Toxoplasmosis)
kidney - ADAPTIVE CHANGES OF KIDNEY IN KIDNEY DISEASES
rashes - different types of rashes & diagnosis
symptomatic hypertension

Recently uploaded (20)

PDF
Copy of OB - Exam #2 Study Guide. pdf
PPTX
Transforming Regulatory Affairs with ChatGPT-5.pptx
PPTX
DENTAL CARIES FOR DENTISTRY STUDENT.pptx
PPT
STD NOTES INTRODUCTION TO COMMUNITY HEALT STRATEGY.ppt
PPTX
Chapter-1-The-Human-Body-Orientation-Edited-55-slides.pptx
PPTX
CHEM421 - Biochemistry (Chapter 1 - Introduction)
PPTX
ca esophagus molecula biology detailaed molecular biology of tumors of esophagus
PPT
genitourinary-cancers_1.ppt Nursing care of clients with GU cancer
PPTX
MANAGEMENT SNAKE BITE IN THE TROPICALS.pptx
PPT
ASRH Presentation for students and teachers 2770633.ppt
PPT
Breast Cancer management for medicsl student.ppt
PPTX
Note on Abortion.pptx for the student note
PDF
Therapeutic Potential of Citrus Flavonoids in Metabolic Inflammation and Ins...
PPT
OPIOID ANALGESICS AND THEIR IMPLICATIONS
PDF
focused on the development and application of glycoHILIC, pepHILIC, and comm...
PPT
HIV lecture final - student.pptfghjjkkejjhhge
PDF
Human Health And Disease hggyutgghg .pdf
PPTX
Cardiovascular - antihypertensive medical backgrounds
DOC
Adobe Premiere Pro CC Crack With Serial Key Full Free Download 2025
PPTX
Clinical approach and Radiotherapy principles.pptx
Copy of OB - Exam #2 Study Guide. pdf
Transforming Regulatory Affairs with ChatGPT-5.pptx
DENTAL CARIES FOR DENTISTRY STUDENT.pptx
STD NOTES INTRODUCTION TO COMMUNITY HEALT STRATEGY.ppt
Chapter-1-The-Human-Body-Orientation-Edited-55-slides.pptx
CHEM421 - Biochemistry (Chapter 1 - Introduction)
ca esophagus molecula biology detailaed molecular biology of tumors of esophagus
genitourinary-cancers_1.ppt Nursing care of clients with GU cancer
MANAGEMENT SNAKE BITE IN THE TROPICALS.pptx
ASRH Presentation for students and teachers 2770633.ppt
Breast Cancer management for medicsl student.ppt
Note on Abortion.pptx for the student note
Therapeutic Potential of Citrus Flavonoids in Metabolic Inflammation and Ins...
OPIOID ANALGESICS AND THEIR IMPLICATIONS
focused on the development and application of glycoHILIC, pepHILIC, and comm...
HIV lecture final - student.pptfghjjkkejjhhge
Human Health And Disease hggyutgghg .pdf
Cardiovascular - antihypertensive medical backgrounds
Adobe Premiere Pro CC Crack With Serial Key Full Free Download 2025
Clinical approach and Radiotherapy principles.pptx

ANOVA - BI FACTORIAL ANOVA (2- WAY ANOVA)

  • 1. BI FACTORIAL ANOVA (2- WAY ANOVA)
  • 2. Factorial ANOVA • One-Way ANOVA = ANOVA with one IV with 1+ levels and one DV • Factorial ANOVA = ANOVA with 2+ IV’s and one DV – Factorial ANOVA Notation: • 2 x 3 x 4 ANOVA • The number of numbers = the number of IV’s • The numbers themselves = the number of levels in each IV
  • 3. Factorial ANOVA • 2 x 3 x 4 ANOVA = an ANOVA with 3 IV’s, one of which has 2 levels, one of which has 3 levels, and the last of which has 4 levels • Why use a factorial ANOVA? Why not just use multiple one-way ANOVA’s? 1. Increased power – with the same sample size and effect size, a factorial ANOVA is more likely to result in the rejection of Ho – aka with equal effect size and probability of rejecting Ho if it is true (α), you can use fewer subjects (and time and money)
  • 4. Factorial ANOVA • Why use a factorial ANOVA? Why not just use multiple one-way ANOVA’s? 2. With 3 IV’s, you’d need to run 3 one-way ANOVA’s, which would inflate your α-level – However, this could be corrected with a Bonferroni Correction 3. The best reason is that a factorial ANOVA can detect interactions, something that multiple one-way ANOVA’s cannot do
  • 5. Factorial ANOVA • Interaction: – when the effects of one independent variable differ according to levels of another independent variable – Ex. We are testing two IV’s, Gender (male and female) and Age (young, medium, and old) and their effect on performance • If males performance differed as a function of age, i.e. males performed better or worse with age, but females performance was the same across ages, we would say that Age and Gender interact, or that we have an Age x Gender interaction
  • 6. Factorial ANOVA • Interaction: – Presented graphically: • Note how male’s performance changes as a function of age while females does not • Note also that the lines cross one another, this is the hallmark of an interaction, and why interactions are sometimes called cross-over or disordinal interactions AGE OldMediumYoung Performance 40 30 20 10 0 GENDER Male Female
  • 7. Factorial ANOVA • Interactions: – However, it is not necessary that the lines cross, only that the slopes differ from one another • I.e. one line can be flat, and the other sloping upward, but not cross – this is still an interaction • See Fig. 17.2 on page 410 in the text for more examples
  • 8. Factorial ANOVA • As opposed to interactions, we have what are called main effects: – the effect of an IV independent of any other IV’s • This is what we were looking at with one-way ANOVA’s – if we have a significant main effect of our IV, then we can say that the mean of at least one of the groups/levels of that IV is different than at least one of the other groups/levels
  • 9. Factorial ANOVA • Finally, we also have simple effects: – the effect of one group/level of our IV at one group/level of another IV • Using our example earlier of the effects of Gender (Men/Women) and Age (Young/Medium/Old) on Performance, to say that young women outperformed other groups would be to talk about a simple effect
  • 10. Factorial ANOVA • We then calculate the Grand Mean ( ) – This remains (ΣX)/N, or all of our observations added together, divided by the number of observations • We can also calculate SStotal, which is also calculated the same as in a one-way ANOVA ..X   N X X 2 2  
  • 11. Factorial ANOVA • Next we want to calculate our SS terms for our IV’s, something new to factorial ANOVA – SSIV = nxΣ( - )2 • n = number of subjects per group/level of our IV • x = number of groups/levels in the other IVIVX ..X
  • 12. Factorial ANOVA – SSIV = nxΣ( - )2 1. Subtract the grand mean from each of our levels means • For SSgender, this would involve subtracting the mean for males from the grand mean, and the mean for females from the grand mean • Note: The number of values should equal the number of levels of your IV 2. Square all of these values 3. Add all of these values up 4. Multiply this number by the number of subjects in each cell x the number of levels of the other IV 5. Repeat for any IV’s • Using the previous example, we would have both SSgender and SSage IVX ..X
  • 13. Factorial ANOVA • Next we want to calculate SScells, which has a formula similar to SSIV – SScells = 1. Subtract the grand mean from each of our cell means • Note: The number of values should equal the number of cells 2. Square all of these values 3. Add all of these values up 4. Multiply this number by the number of subjects in each cell  2 ..XXn cell 
  • 14. Factorial ANOVA • Now that we have SStotal, the SS’s for our IV’s, and SScells, we can find SSerror and the SS for our interaction term, SSint – SSint = SScells – SSIV1 – SSIV2 – etc… • Going back to our previous example, SSint = SScells – SSgender – SSage – SSerror = SStotal – SScells
  • 16. Data required • When 2 independent variables (Nominal/categorical) have an effect on one dependent variable (ordinal or ratio measurement scale) • Compares relative influences on Dependent Variable • Examine interactions between independent variables • Just as we had Sums of Squares and Mean Squares in One-way ANOVA, we have the same in Two-way ANOVA.
  • 17. Two way ANOVA Include tests of three null hypotheses: 1) Means of observations grouped by one factor are same; 2) Means of observations grouped by the other factor are the same; and 3) There is no interaction between the two factors. The interaction test tells whether the effects of one factor depend on the other factor
  • 18. Example- we have test score of boys & girls in age group of 10 yr,11yr & 12 yr. If we want to study the effect of gender & age on score. Two independent factors- Gender, Age Dependent factor - Test score
  • 19. Ho -Gender will have no significant effect on student score Ha - Ho - Age will have no significant effect on student score Ha - Ho – Gender & age interaction will have no significant effect on student score Ha -
  • 20. Two-way ANOVA Table Source of Variation Degrees of Freedom Sum of Squares Mean Square F-ratio P-value Factor A r  1 SSA MSA FA = MSA / MSE Tail area Factor B c 1 SSB MSB FB = MSB / MSE Tail area Interaction (r – 1) (c – 1) SSAB MSAB FAB = MSAB / MSE Tail area Error (within) rc(n – 1) SSE MSE Total rcn  1 SST
  • 21. Example with SPSS Example: Do people with private health insurance visit their Physicians more frequently than people with no insurance or other types of insurance ? N=86 • Type of insurance - 1.No insurance 2.Private insurance 3. TRICARE • No. of visits to their Physicians(dependent variable) Gender 0-M 1-F
  • 22. References • Methods in Biostatistics by BK Mahajan • Statistical Methods by SP Gupta • Basic & Clinical Biostatistics by Dawson and Beth • Munro’s statistical methods for health care research