SlideShare a Scribd company logo
1 of 12
Elementary Statistics
Chapter 12:
Analysis of Variance
12.2 Two-Way ANOVA
Not Finished!
1
Chapter 12: Analysis of Variance
12.1 One-Way ANOVA
12.2 Two-Way ANOVA
2
Objectives:
1. Analyze a two-way ANOVA design
2. Draw interaction plots
3. Perform the Tukey test
Good lecture Videos to watch: ANOVA
Concept: https://www.youtube.com/watch?v=ITf4vHhyGpc
Hand Calculation: https://www.youtube.com/watch?v=WUjsSB7E-ko
Visual Explanation: https://www.youtube.com/watch?v=JgMFhKi6f6Y
3
12.2 Two - Way ANOVA
Two-Way ANOVA:
This analysis requires two categorical (Qualitative) (Nominal)variables, or factors, and are considered
independent variables.
The number of factors defines the name of the ANOVA analysis:
One-way ANOVA uses one factor.
Two-way ANOVA has two.
Each factor has a limited (finite) number of possible values or levels.
Example:
Gender is a categorical factor with two levels: Male & Female.
Dependent (Response) Variable (Outcome):
It is a continuous variable whose different combinations of values for the two categorical variables divide
the continuous data into groups.
Two-way ANOVA determines whether the mean differences between these groups are statistically significant.
It, also, determines whether the interaction effect between the two factors is statistically significant. In that case, it is
extremely important to interpret them properly.
Two factors fixed at different levels:
Factor A with n levels & Factor B has m levels
Design: n Γ— m factorial design.
4
12.2 Two - Way ANOVA
Objective:
With sample data categorized with two factors (a row variable and a column variable),
use two-way analysis of variance to conduct the following three tests:
1. Test for an effect from an interaction between the row factor and the column factor.
2. Test for an effect from the row factor.
3. Test for an effect from the column factor.
Interaction :
There is an interaction between two factors if the effect of one of the factors changes for
different categories of the other factor.
Key Concept:
The method of two-way analysis of variance is used with data divided into categories
according to two factors. The method of this section requires that we first test for an
interaction between the two factors; then we test for an effect from the row factor, and
we test for an effect from the column factor.
5
12.2 Two - Way ANOVA
Requirements:
1. Normality For each cell, the sample values come from a population with a
distribution that is approximately normal.
2. Variation The populations have the same variance σ² (or standard deviation Οƒ).
3. Sampling The samples are simple random samples of quantitative data.
4. Independence The samples are independent of each other.
5. Two-Way The sample values are categorized two ways.
6. Balanced Design All of the cells have the same number of sample values.
Interaction Effect: An interaction effect is suggested when line
segments are far from being parallel.
No Interaction Effect: If the line segments are approximately
parallel, it appears that the different categories of a variable
have the same effect for the different categories of the other
variable, so there does not appear to be an interaction effect.
6
12.2 Two - Way ANOVA
Step 2: Row/Column Effects:
If there is an interaction effect, stop. (If there is an interaction between factors, we
shouldn’t consider the effects of either factor without considering those of the other.)
If there is no interaction effect, we can test the hypothesis tests for the row factor
effect and column factor effect.
Step 1: Interaction Effect:
Test the null hypothesis that there is no interaction between the two factors.
Test statistic: 𝐹 =
𝑀𝑆 (πΌπ‘›π‘‘π‘’π‘Ÿπ‘Žπ‘π‘‘π‘–π‘œπ‘›)
𝑀𝑆 (πΈπ‘Ÿπ‘Ÿπ‘œπ‘Ÿ)
Procedure for Two-Way Analysis of Variance
7
Step 1: Interaction Effect:
Test the null hypothesis that there is no interaction
between the two factors.
Test statistic: 𝐹 =
𝑀𝑆 (πΌπ‘›π‘‘π‘’π‘Ÿπ‘Žπ‘π‘‘π‘–π‘œπ‘›)
𝑀𝑆 (πΈπ‘Ÿπ‘Ÿπ‘œπ‘Ÿ)
Step 2: Row/Column Effects:
If there is an interaction effect, stop. (If there is an interaction
between factors, we shouldn’t consider the effects of either factor
without considering those of the other.)
If we conclude that there is no interaction effect, then we should
proceed with the following two hypothesis tests.
Pulse Rates with Two Factors: Age Bracket and Gender
Blank Female Male
18-29 104 82 80 78 80 84 82 66 70 78 72 64 72 64 64 70 72 64 54 52
30-49 66 74 96 86 98 88 82 72 80 80 80 90 58 74 96 72 58 66 80 92
50-80 94 72 82 86 72 90 64 72 72 100 54 102 52 52 62 82 82 60 52 74
The table shown is an example of pulse rates (beats per minute) categorized with two factors:
1. Age Bracket (years): One factor is age bracket (18–29, 30–49, 50–80).
2. Gender: The second factor is gender (female, male).
Given the pulse rates from the earlier table, use two-way analysis of variance to test for an interaction
effect, an effect from the row factor of age bracket, and an effect from the column factor of gender. Use
a 0.05 significance level.
8
Calculate the mean for each cell and construct a
graph. The individual cell means are shown in
the table below. Those means vary from a low of
64.8 to a high of 82.2, so they vary considerably.
blank Female Male
18-29 80.4 64.8
30-49 82.2 76.6
50-80 80.4 67.2
Example 1:
9
Example 1: Continued
Requirement Check:
1. For each cell, the sample values appear to be from a population with a distribution that is
approximately normal, as indicated by normal quantile plots.
2. The variances of the cells (100.3, 51.7, 103.5, 183.2, 138.5, 293.5) differ considerably, but the test
is robust against departures from equal variances.
3. The samples are simple random samples of subjects. Requirement Check
4. The samples are independent of each other; the subjects are not matched in any way.
5. The sample values are categorized in two ways (age bracket and gender).
6. All of the cells have the same number (ten) of sample values.
The requirements are satisfied.
Step 1:
H0: There is no interaction between the two factors
H1: There is interaction between the two factors
𝑇𝑆: 𝐹 =
𝑀𝑆 (πΌπ‘›π‘‘π‘’π‘Ÿπ‘Žπ‘π‘‘π‘–π‘œπ‘›)
𝑀𝑆 (πΈπ‘Ÿπ‘Ÿπ‘œπ‘Ÿ)
=
136.2667
145.11111
= 0.9391
Interpretation:
P-value = 0.3973 > 0.05
Fail to reject the null hypothesis
There is no interaction effect.
10
Example 1: Continued
Step 2: Row/Column Effects:
Since there is no interaction effect, we test for effects from the row and
column factors. Here is their null hypotheses:
H0: There are no effects from the row factor (age bracket).
H0: There are no effects from the column factor (gender).
𝑇𝑆: 𝐹 =
𝑀𝑆 (𝐴𝑔𝑒 π‘π‘Ÿπ‘Žπ‘π‘˜π‘’π‘‘)
𝑀𝑆 (πΈπ‘Ÿπ‘Ÿπ‘œπ‘Ÿ)
=
263.46667
145.11111
= 1.8156
𝑇𝑆: 𝐹 =
𝑀𝑆 (π‘”π‘’π‘›π‘‘π‘’π‘Ÿ)
𝑀𝑆 (πΈπ‘Ÿπ‘Ÿπ‘œπ‘Ÿ)
=
1972.2667
145.1111
= 13.5914
Interpretation: P-value = 0.1725 > 0.05
Fail to reject the null hypothesis
There are no effects from the row factor (age bracket); pulse rates are not affected by the age bracket.
Interpretation: P-value = 0.0005 < 0.05
Reject the null hypothesis
There are effects from the column factor (gender); pulse rates are affected by the gender.
Final Interpretation: According to this sample data, we conclude that pulse rates seem to be affected
by gender, but not by age bracket and not by an interaction between age bracket and gender.
11
12.2 Two - Way ANOVA
12
12.2 Two - Way ANOVA

More Related Content

What's hot (20)

Analysis of variance (ANOVA)
Analysis of variance (ANOVA)Analysis of variance (ANOVA)
Analysis of variance (ANOVA)
Β 
One way anova final ppt.
One way anova final ppt.One way anova final ppt.
One way anova final ppt.
Β 
Mann Whitney U test
Mann Whitney U testMann Whitney U test
Mann Whitney U test
Β 
T test
T testT test
T test
Β 
Analysis of variance anova
Analysis of variance anovaAnalysis of variance anova
Analysis of variance anova
Β 
Anova; analysis of variance
Anova; analysis of varianceAnova; analysis of variance
Anova; analysis of variance
Β 
Variance & standard deviation
Variance & standard deviationVariance & standard deviation
Variance & standard deviation
Β 
Non parametric tests
Non parametric testsNon parametric tests
Non parametric tests
Β 
Non parametric test
Non parametric testNon parametric test
Non parametric test
Β 
In Anova
In  AnovaIn  Anova
In Anova
Β 
Friedman test Stat
Friedman test Stat Friedman test Stat
Friedman test Stat
Β 
t distribution, paired and unpaired t-test
t distribution, paired and unpaired t-testt distribution, paired and unpaired t-test
t distribution, paired and unpaired t-test
Β 
One Way Anova
One Way AnovaOne Way Anova
One Way Anova
Β 
Non parametric test
Non parametric testNon parametric test
Non parametric test
Β 
{ANOVA} PPT-1.pptx
{ANOVA} PPT-1.pptx{ANOVA} PPT-1.pptx
{ANOVA} PPT-1.pptx
Β 
Chi square test
Chi square testChi square test
Chi square test
Β 
Analysis of variance (anova)
Analysis of variance (anova)Analysis of variance (anova)
Analysis of variance (anova)
Β 
Mann Whitney U Test | Statistics
Mann Whitney U Test | StatisticsMann Whitney U Test | Statistics
Mann Whitney U Test | Statistics
Β 
Repeated Measures ANOVA
Repeated Measures ANOVARepeated Measures ANOVA
Repeated Measures ANOVA
Β 
Regression Analysis
Regression AnalysisRegression Analysis
Regression Analysis
Β 

Similar to Two-Way ANOVA: Analyze Data with Two Factors

chapter-1-2jalan.ppt
chapter-1-2jalan.pptchapter-1-2jalan.ppt
chapter-1-2jalan.pptDitaChairunisa
Β 
Uji anova 2 arah keterangan dan contoh.ppt
Uji anova 2 arah keterangan dan contoh.pptUji anova 2 arah keterangan dan contoh.ppt
Uji anova 2 arah keterangan dan contoh.pptBennyKurniawan42
Β 
Week 3 Lecture 9 Effect Size When we reject the null h.docx
Week 3 Lecture 9 Effect Size When we reject the null h.docxWeek 3 Lecture 9 Effect Size When we reject the null h.docx
Week 3 Lecture 9 Effect Size When we reject the null h.docxcockekeshia
Β 
Variance component analysis by paravayya c pujeri
Variance component analysis by paravayya c pujeriVariance component analysis by paravayya c pujeri
Variance component analysis by paravayya c pujeriParavayya Pujeri
Β 
Two-factor Mixed MANOVA with SPSS
Two-factor Mixed MANOVA with SPSSTwo-factor Mixed MANOVA with SPSS
Two-factor Mixed MANOVA with SPSSJ P Verma
Β 
Sem+Essentials
Sem+EssentialsSem+Essentials
Sem+EssentialsOUM SAOKOSAL
Β 
iStockphotoThinkstockchapter 8Factorial and Mixed-Fac.docx
iStockphotoThinkstockchapter 8Factorial and Mixed-Fac.docxiStockphotoThinkstockchapter 8Factorial and Mixed-Fac.docx
iStockphotoThinkstockchapter 8Factorial and Mixed-Fac.docxvrickens
Β 
Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docx
Chapter 11 Chi-Square Tests and ANOVA  359 Chapter .docxChapter 11 Chi-Square Tests and ANOVA  359 Chapter .docx
Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docxbartholomeocoombs
Β 
Advanced Methods of Statistical Analysis used in Animal Breeding.
Advanced Methods of Statistical Analysis used in Animal Breeding.Advanced Methods of Statistical Analysis used in Animal Breeding.
Advanced Methods of Statistical Analysis used in Animal Breeding.DrBarada Mohanty
Β 
ANOVA - BI FACTORIAL ANOVA (2- WAY ANOVA)
ANOVA - BI FACTORIAL ANOVA (2- WAY ANOVA)ANOVA - BI FACTORIAL ANOVA (2- WAY ANOVA)
ANOVA - BI FACTORIAL ANOVA (2- WAY ANOVA)Dr. Hament Sharma
Β 
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaPractice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaLong Beach City College
Β 
Chapter 18 – Pricing Setting in the Business WorldThere are few .docx
Chapter 18 – Pricing Setting in the Business WorldThere are few .docxChapter 18 – Pricing Setting in the Business WorldThere are few .docx
Chapter 18 – Pricing Setting in the Business WorldThere are few .docxrobert345678
Β 
Quantitative_analysis.ppt
Quantitative_analysis.pptQuantitative_analysis.ppt
Quantitative_analysis.pptmousaderhem1
Β 
Article Write-upsTo help you connect what you’re learning in cl.docx
Article Write-upsTo help you connect what you’re learning in cl.docxArticle Write-upsTo help you connect what you’re learning in cl.docx
Article Write-upsTo help you connect what you’re learning in cl.docxdavezstarr61655
Β 
ANOVA Lec 1 (alternate).pptx
ANOVA Lec 1 (alternate).pptxANOVA Lec 1 (alternate).pptx
ANOVA Lec 1 (alternate).pptxMohsinIqbalQazi
Β 
Regression and Classification Analysis
Regression and Classification AnalysisRegression and Classification Analysis
Regression and Classification AnalysisYashIyengar
Β 
Lecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.pptLecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.pptMohammedAbdela7
Β 

Similar to Two-Way ANOVA: Analyze Data with Two Factors (20)

chapter-1-2jalan.ppt
chapter-1-2jalan.pptchapter-1-2jalan.ppt
chapter-1-2jalan.ppt
Β 
Uji anova 2 arah keterangan dan contoh.ppt
Uji anova 2 arah keterangan dan contoh.pptUji anova 2 arah keterangan dan contoh.ppt
Uji anova 2 arah keterangan dan contoh.ppt
Β 
Factorial Experiments
Factorial ExperimentsFactorial Experiments
Factorial Experiments
Β 
Week 3 Lecture 9 Effect Size When we reject the null h.docx
Week 3 Lecture 9 Effect Size When we reject the null h.docxWeek 3 Lecture 9 Effect Size When we reject the null h.docx
Week 3 Lecture 9 Effect Size When we reject the null h.docx
Β 
Variance component analysis by paravayya c pujeri
Variance component analysis by paravayya c pujeriVariance component analysis by paravayya c pujeri
Variance component analysis by paravayya c pujeri
Β 
Applied statistics part 3
Applied statistics part 3Applied statistics part 3
Applied statistics part 3
Β 
Two-factor Mixed MANOVA with SPSS
Two-factor Mixed MANOVA with SPSSTwo-factor Mixed MANOVA with SPSS
Two-factor Mixed MANOVA with SPSS
Β 
Sem+Essentials
Sem+EssentialsSem+Essentials
Sem+Essentials
Β 
iStockphotoThinkstockchapter 8Factorial and Mixed-Fac.docx
iStockphotoThinkstockchapter 8Factorial and Mixed-Fac.docxiStockphotoThinkstockchapter 8Factorial and Mixed-Fac.docx
iStockphotoThinkstockchapter 8Factorial and Mixed-Fac.docx
Β 
Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docx
Chapter 11 Chi-Square Tests and ANOVA  359 Chapter .docxChapter 11 Chi-Square Tests and ANOVA  359 Chapter .docx
Chapter 11 Chi-Square Tests and ANOVA 359 Chapter .docx
Β 
Advanced Methods of Statistical Analysis used in Animal Breeding.
Advanced Methods of Statistical Analysis used in Animal Breeding.Advanced Methods of Statistical Analysis used in Animal Breeding.
Advanced Methods of Statistical Analysis used in Animal Breeding.
Β 
ANOVA - BI FACTORIAL ANOVA (2- WAY ANOVA)
ANOVA - BI FACTORIAL ANOVA (2- WAY ANOVA)ANOVA - BI FACTORIAL ANOVA (2- WAY ANOVA)
ANOVA - BI FACTORIAL ANOVA (2- WAY ANOVA)
Β 
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anovaPractice test ch 10 correlation reg ch 11 gof ch12 anova
Practice test ch 10 correlation reg ch 11 gof ch12 anova
Β 
Chapter 18 – Pricing Setting in the Business WorldThere are few .docx
Chapter 18 – Pricing Setting in the Business WorldThere are few .docxChapter 18 – Pricing Setting in the Business WorldThere are few .docx
Chapter 18 – Pricing Setting in the Business WorldThere are few .docx
Β 
Quantitative_analysis.ppt
Quantitative_analysis.pptQuantitative_analysis.ppt
Quantitative_analysis.ppt
Β 
Article Write-upsTo help you connect what you’re learning in cl.docx
Article Write-upsTo help you connect what you’re learning in cl.docxArticle Write-upsTo help you connect what you’re learning in cl.docx
Article Write-upsTo help you connect what you’re learning in cl.docx
Β 
ANOVA Lec 1 (alternate).pptx
ANOVA Lec 1 (alternate).pptxANOVA Lec 1 (alternate).pptx
ANOVA Lec 1 (alternate).pptx
Β 
Regression and Classification Analysis
Regression and Classification AnalysisRegression and Classification Analysis
Regression and Classification Analysis
Β 
Lecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.pptLecture-6 (t-test and one way ANOVA.ppt
Lecture-6 (t-test and one way ANOVA.ppt
Β 
X61
X61X61
X61
Β 

More from Long Beach City College

Practice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samplesPractice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samplesLong Beach City College
Β 
Practice Test Ch 8 Hypothesis Testing
Practice Test Ch 8 Hypothesis TestingPractice Test Ch 8 Hypothesis Testing
Practice Test Ch 8 Hypothesis TestingLong Beach City College
Β 
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaSolution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaLong Beach City College
Β 
Practice test ch 8 hypothesis testing ch 9 two populations
Practice test ch 8 hypothesis testing ch 9 two populationsPractice test ch 8 hypothesis testing ch 9 two populations
Practice test ch 8 hypothesis testing ch 9 two populationsLong Beach City College
Β 
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsSolution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsLong Beach City College
Β 
Solution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability DistributionSolution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability DistributionLong Beach City College
Β 
Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)Long Beach City College
Β 

More from Long Beach City College (20)

Practice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samplesPractice test ch 9 inferences from two samples
Practice test ch 9 inferences from two samples
Β 
Practice Test Ch 8 Hypothesis Testing
Practice Test Ch 8 Hypothesis TestingPractice Test Ch 8 Hypothesis Testing
Practice Test Ch 8 Hypothesis Testing
Β 
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anovaSolution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Solution to the practice test ch 10 correlation reg ch 11 gof ch12 anova
Β 
Practice test ch 8 hypothesis testing ch 9 two populations
Practice test ch 8 hypothesis testing ch 9 two populationsPractice test ch 8 hypothesis testing ch 9 two populations
Practice test ch 8 hypothesis testing ch 9 two populations
Β 
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populationsSolution to the practice test ch 8 hypothesis testing ch 9 two populations
Solution to the practice test ch 8 hypothesis testing ch 9 two populations
Β 
Solution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability DistributionSolution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Solution to the Practice Test 3A, Chapter 6 Normal Probability Distribution
Β 
Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)Practice Test Chapter 6 (Normal Probability Distributions)
Practice Test Chapter 6 (Normal Probability Distributions)
Β 
Practice Test 2 Solutions
Practice Test 2  SolutionsPractice Test 2  Solutions
Practice Test 2 Solutions
Β 
Practice Test 2 Probability
Practice Test 2 ProbabilityPractice Test 2 Probability
Practice Test 2 Probability
Β 
Practice Test 1 solutions
Practice Test 1 solutions  Practice Test 1 solutions
Practice Test 1 solutions
Β 
Practice Test 1
Practice Test 1Practice Test 1
Practice Test 1
Β 
Stat sample test ch 12 solution
Stat sample test ch 12 solutionStat sample test ch 12 solution
Stat sample test ch 12 solution
Β 
Stat sample test ch 12
Stat sample test ch 12Stat sample test ch 12
Stat sample test ch 12
Β 
Stat sample test ch 11
Stat sample test ch 11Stat sample test ch 11
Stat sample test ch 11
Β 
Stat sample test ch 10
Stat sample test ch 10Stat sample test ch 10
Stat sample test ch 10
Β 
One-Way ANOVA
One-Way ANOVAOne-Way ANOVA
One-Way ANOVA
Β 
Contingency Tables
Contingency TablesContingency Tables
Contingency Tables
Β 
Goodness of Fit Notation
Goodness of Fit NotationGoodness of Fit Notation
Goodness of Fit Notation
Β 
Regression
RegressionRegression
Regression
Β 
Correlation
CorrelationCorrelation
Correlation
Β 

Recently uploaded

Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)lakshayb543
Β 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
Β 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
Β 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
Β 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
Β 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
Β 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
Β 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
Β 
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...Nguyen Thanh Tu Collection
Β 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
Β 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
Β 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
Β 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
Β 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
Β 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
Β 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
Β 

Recently uploaded (20)

Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Visit to a blind student's schoolπŸ§‘β€πŸ¦―πŸ§‘β€πŸ¦―(community medicine)
Β 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Β 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
Β 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
Β 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
Β 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
Β 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
Β 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
Β 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
Β 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
Β 
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
HỌC TỐT TIαΊΎNG ANH 11 THEO CHΖ―Ζ NG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIαΊΎT - CαΊ’ NΔ‚...
Β 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Β 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Β 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
Β 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
Β 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
Β 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
Β 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
Β 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
Β 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
Β 

Two-Way ANOVA: Analyze Data with Two Factors

  • 1. Elementary Statistics Chapter 12: Analysis of Variance 12.2 Two-Way ANOVA Not Finished! 1
  • 2. Chapter 12: Analysis of Variance 12.1 One-Way ANOVA 12.2 Two-Way ANOVA 2 Objectives: 1. Analyze a two-way ANOVA design 2. Draw interaction plots 3. Perform the Tukey test Good lecture Videos to watch: ANOVA Concept: https://www.youtube.com/watch?v=ITf4vHhyGpc Hand Calculation: https://www.youtube.com/watch?v=WUjsSB7E-ko Visual Explanation: https://www.youtube.com/watch?v=JgMFhKi6f6Y
  • 3. 3 12.2 Two - Way ANOVA Two-Way ANOVA: This analysis requires two categorical (Qualitative) (Nominal)variables, or factors, and are considered independent variables. The number of factors defines the name of the ANOVA analysis: One-way ANOVA uses one factor. Two-way ANOVA has two. Each factor has a limited (finite) number of possible values or levels. Example: Gender is a categorical factor with two levels: Male & Female. Dependent (Response) Variable (Outcome): It is a continuous variable whose different combinations of values for the two categorical variables divide the continuous data into groups. Two-way ANOVA determines whether the mean differences between these groups are statistically significant. It, also, determines whether the interaction effect between the two factors is statistically significant. In that case, it is extremely important to interpret them properly. Two factors fixed at different levels: Factor A with n levels & Factor B has m levels Design: n Γ— m factorial design.
  • 4. 4 12.2 Two - Way ANOVA Objective: With sample data categorized with two factors (a row variable and a column variable), use two-way analysis of variance to conduct the following three tests: 1. Test for an effect from an interaction between the row factor and the column factor. 2. Test for an effect from the row factor. 3. Test for an effect from the column factor. Interaction : There is an interaction between two factors if the effect of one of the factors changes for different categories of the other factor. Key Concept: The method of two-way analysis of variance is used with data divided into categories according to two factors. The method of this section requires that we first test for an interaction between the two factors; then we test for an effect from the row factor, and we test for an effect from the column factor.
  • 5. 5 12.2 Two - Way ANOVA Requirements: 1. Normality For each cell, the sample values come from a population with a distribution that is approximately normal. 2. Variation The populations have the same variance σ² (or standard deviation Οƒ). 3. Sampling The samples are simple random samples of quantitative data. 4. Independence The samples are independent of each other. 5. Two-Way The sample values are categorized two ways. 6. Balanced Design All of the cells have the same number of sample values.
  • 6. Interaction Effect: An interaction effect is suggested when line segments are far from being parallel. No Interaction Effect: If the line segments are approximately parallel, it appears that the different categories of a variable have the same effect for the different categories of the other variable, so there does not appear to be an interaction effect. 6 12.2 Two - Way ANOVA Step 2: Row/Column Effects: If there is an interaction effect, stop. (If there is an interaction between factors, we shouldn’t consider the effects of either factor without considering those of the other.) If there is no interaction effect, we can test the hypothesis tests for the row factor effect and column factor effect. Step 1: Interaction Effect: Test the null hypothesis that there is no interaction between the two factors. Test statistic: 𝐹 = 𝑀𝑆 (πΌπ‘›π‘‘π‘’π‘Ÿπ‘Žπ‘π‘‘π‘–π‘œπ‘›) 𝑀𝑆 (πΈπ‘Ÿπ‘Ÿπ‘œπ‘Ÿ)
  • 7. Procedure for Two-Way Analysis of Variance 7 Step 1: Interaction Effect: Test the null hypothesis that there is no interaction between the two factors. Test statistic: 𝐹 = 𝑀𝑆 (πΌπ‘›π‘‘π‘’π‘Ÿπ‘Žπ‘π‘‘π‘–π‘œπ‘›) 𝑀𝑆 (πΈπ‘Ÿπ‘Ÿπ‘œπ‘Ÿ) Step 2: Row/Column Effects: If there is an interaction effect, stop. (If there is an interaction between factors, we shouldn’t consider the effects of either factor without considering those of the other.) If we conclude that there is no interaction effect, then we should proceed with the following two hypothesis tests.
  • 8. Pulse Rates with Two Factors: Age Bracket and Gender Blank Female Male 18-29 104 82 80 78 80 84 82 66 70 78 72 64 72 64 64 70 72 64 54 52 30-49 66 74 96 86 98 88 82 72 80 80 80 90 58 74 96 72 58 66 80 92 50-80 94 72 82 86 72 90 64 72 72 100 54 102 52 52 62 82 82 60 52 74 The table shown is an example of pulse rates (beats per minute) categorized with two factors: 1. Age Bracket (years): One factor is age bracket (18–29, 30–49, 50–80). 2. Gender: The second factor is gender (female, male). Given the pulse rates from the earlier table, use two-way analysis of variance to test for an interaction effect, an effect from the row factor of age bracket, and an effect from the column factor of gender. Use a 0.05 significance level. 8 Calculate the mean for each cell and construct a graph. The individual cell means are shown in the table below. Those means vary from a low of 64.8 to a high of 82.2, so they vary considerably. blank Female Male 18-29 80.4 64.8 30-49 82.2 76.6 50-80 80.4 67.2 Example 1:
  • 9. 9 Example 1: Continued Requirement Check: 1. For each cell, the sample values appear to be from a population with a distribution that is approximately normal, as indicated by normal quantile plots. 2. The variances of the cells (100.3, 51.7, 103.5, 183.2, 138.5, 293.5) differ considerably, but the test is robust against departures from equal variances. 3. The samples are simple random samples of subjects. Requirement Check 4. The samples are independent of each other; the subjects are not matched in any way. 5. The sample values are categorized in two ways (age bracket and gender). 6. All of the cells have the same number (ten) of sample values. The requirements are satisfied. Step 1: H0: There is no interaction between the two factors H1: There is interaction between the two factors 𝑇𝑆: 𝐹 = 𝑀𝑆 (πΌπ‘›π‘‘π‘’π‘Ÿπ‘Žπ‘π‘‘π‘–π‘œπ‘›) 𝑀𝑆 (πΈπ‘Ÿπ‘Ÿπ‘œπ‘Ÿ) = 136.2667 145.11111 = 0.9391 Interpretation: P-value = 0.3973 > 0.05 Fail to reject the null hypothesis There is no interaction effect.
  • 10. 10 Example 1: Continued Step 2: Row/Column Effects: Since there is no interaction effect, we test for effects from the row and column factors. Here is their null hypotheses: H0: There are no effects from the row factor (age bracket). H0: There are no effects from the column factor (gender). 𝑇𝑆: 𝐹 = 𝑀𝑆 (𝐴𝑔𝑒 π‘π‘Ÿπ‘Žπ‘π‘˜π‘’π‘‘) 𝑀𝑆 (πΈπ‘Ÿπ‘Ÿπ‘œπ‘Ÿ) = 263.46667 145.11111 = 1.8156 𝑇𝑆: 𝐹 = 𝑀𝑆 (π‘”π‘’π‘›π‘‘π‘’π‘Ÿ) 𝑀𝑆 (πΈπ‘Ÿπ‘Ÿπ‘œπ‘Ÿ) = 1972.2667 145.1111 = 13.5914 Interpretation: P-value = 0.1725 > 0.05 Fail to reject the null hypothesis There are no effects from the row factor (age bracket); pulse rates are not affected by the age bracket. Interpretation: P-value = 0.0005 < 0.05 Reject the null hypothesis There are effects from the column factor (gender); pulse rates are affected by the gender. Final Interpretation: According to this sample data, we conclude that pulse rates seem to be affected by gender, but not by age bracket and not by an interaction between age bracket and gender.
  • 11. 11 12.2 Two - Way ANOVA
  • 12. 12 12.2 Two - Way ANOVA