Two-Way ANOVA Ch 13. In a 2-way design, 2 factors (independent variables) are studied in conjunction with the response (dependent) variable. There is.

Slides:



Advertisements
Similar presentations
ANOVA Two Factor Models Two Factor Models. 2 Factor Experiments Two factors can either independently or together interact to affect the average response.
Advertisements

 Population multiple regression model  Data for multiple regression  Multiple linear regression model  Confidence intervals and significance tests.
BPS - 5th Ed. Chapter 241 One-Way Analysis of Variance: Comparing Several Means.
The Analysis of Variance
Analysis of Variance (ANOVA). When ANOVA is used.. All the explanatory variables are categorical (factors) Each factor has two or more levels Example:Example:
ANOVA: Analysis of Variation
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Variance Chapter 16.
ANALYSIS OF VARIANCE.
Copyright ©2011 Brooks/Cole, Cengage Learning Analysis of Variance Chapter 16 1.
Statistics for Managers Using Microsoft® Excel 5th Edition
Part I – MULTIVARIATE ANALYSIS
Analysis of Variance. Experimental Design u Investigator controls one or more independent variables –Called treatment variables or factors –Contain two.
Statistics for Business and Economics
Statistics for Managers Using Microsoft® Excel 5th Edition
IPS Chapter 12 © 2010 W.H. Freeman and Company  Inference for On-Way Analysis of Variance  Comparing the Means One-Way Analysis of Variance.
Chapter 12: Analysis of Variance
Psy B07 Chapter 1Slide 1 ANALYSIS OF VARIANCE. Psy B07 Chapter 1Slide 2 t-test refresher  In chapter 7 we talked about analyses that could be conducted.
ANOVA Chapter 12.
F-Test ( ANOVA ) & Two-Way ANOVA
QNT 531 Advanced Problems in Statistics and Research Methods
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Comparing Three or More Means 13.
© 2002 Prentice-Hall, Inc.Chap 9-1 Statistics for Managers Using Microsoft Excel 3 rd Edition Chapter 9 Analysis of Variance.
Chapter 11 HYPOTHESIS TESTING USING THE ONE-WAY ANALYSIS OF VARIANCE.
 The idea of ANOVA  Comparing several means  The problem of multiple comparisons  The ANOVA F test 1.
Lecture Presentation Slides SEVENTH EDITION STATISTICS Moore / McCabe / Craig Introduction to the Practice of Chapter 12 One-Way Analysis of Variance.
t(ea) for Two: Test between the Means of Different Groups When you want to know if there is a ‘difference’ between the two groups in the mean Use “t-test”.
© Copyright McGraw-Hill CHAPTER 12 Analysis of Variance (ANOVA)
Two-way ANOVA Introduction to Factorial Designs and their Analysis.
One-way ANOVA: - Inference for one-way ANOVA IPS chapter 12.1 © 2006 W.H. Freeman and Company.
One-Way ANOVA Ch 12.  Recall:  A categorical variable = factor.  Its values =levels  ANOVA in general studies the effect of categorical variables.
Multiple regression - Inference for multiple regression - A case study IPS chapters 11.1 and 11.2 © 2006 W.H. Freeman and Company.
1 Chapter 13 Analysis of Variance. 2 Chapter Outline  An introduction to experimental design and analysis of variance  Analysis of Variance and the.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
Inferential Statistics
Chapter 10: Analyzing Experimental Data Inferential statistics are used to determine whether the independent variable had an effect on the dependent variance.
MGS3100_04.ppt/Sep 29, 2015/Page 1 Georgia State University - Confidential MGS 3100 Business Analysis Regression Sep 29 and 30, 2015.
Chapter 19 Analysis of Variance (ANOVA). ANOVA How to test a null hypothesis that the means of more than two populations are equal. H 0 :  1 =  2 =
Comparing Three or More Means ANOVA (One-Way Analysis of Variance)
Lecture 9-1 Analysis of Variance
One-way ANOVA: - Comparing the means IPS chapter 12.2 © 2006 W.H. Freeman and Company.
1 Overview of Experimental Design. 2 3 Examples of Experimental Designs.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.3 Two-Way ANOVA.
AP Statistics: ANOVA Section 1. In section 13.1 A, we used a t-test to compare the means between two groups. An ANOVA (ANalysis Of VAriance) test is used.
Objectives (IPS Chapter 12.1) Inference for one-way ANOVA  Comparing means  The two-sample t statistic  An overview of ANOVA  The ANOVA model  Testing.
Chapter 4 Analysis of Variance
McGraw-Hill, Bluman, 7th ed., Chapter 12
IE241: Introduction to Design of Experiments. Last term we talked about testing the difference between two independent means. For means from a normal.
ANOVA Overview of Major Designs. Between or Within Subjects Between-subjects (completely randomized) designs –Subjects are nested within treatment conditions.
Analysis of Variance 11/6. Comparing Several Groups Do the group means differ? Naive approach – Independent-samples t-tests of all pairs – Each test doesn't.
Chapter 14: Analysis of Variance One-way ANOVA Lecture 9a Instructor: Naveen Abedin Date: 24 th November 2015.
ENGR 610 Applied Statistics Fall Week 8 Marshall University CITE Jack Smith.
Aron, Aron, & Coups, Statistics for the Behavioral and Social Sciences: A Brief Course (3e), © 2005 Prentice Hall Chapter 10 Introduction to the Analysis.
Two-way ANOVA The Two-Way ANOVA Model and Inference for Two-Way ANOVA PBS Chapters 15.1 and 15.2 © 2009 W.H. Freeman and Company.
ANOVA: Analysis of Variation
Chapter 11 Analysis of Variance
ANOVA: Analysis of Variation
ANOVA: Analysis of Variation
26. Follow-up tests and two-way ANOVA
ANOVA: Analysis of Variation
Two-Way Analysis of Variance Chapter 11.
i) Two way ANOVA without replication
Comparing Three or More Means
Hypothesis testing using contrasts
Chapter 10: Analysis of Variance: Comparing More Than Two Means
11/ Inference for one-way ANOVA
ANalysis Of VAriance (ANOVA)
Chapter 11 Analysis of Variance
Chapter 13 Group Differences
Chapter 10 – Part II Analysis of Variance
STATISTICS INFORMED DECISIONS USING DATA
Presentation transcript:

Two-Way ANOVA Ch 13

In a 2-way design, 2 factors (independent variables) are studied in conjunction with the response (dependent) variable. There is thus two ways of organizing the data, as shown in a 2-way table. 2-way table (3 by 3 design to test the attractiveness of a new website) When the dependent variable is quantitative, the data are analyzed with a two-way ANOVA procedure. A chi-square test (as we did for two-way tables) is used instead if the dependent variable is categorical. Color LogoRedGreenBlue Logo 114 Logo 214 Logo 314

 It is more efficient to study 2 factors at once than separately. A 2-way design requires smaller samples sizes per condition than a series of one-way designs would, because the samples for all levels of factor B contribute to sampling for factor A.  Including a second factor thought to influence the response variable helps reduce the residual variation in a model of the data. In a one-way ANOVA for factor A, any effect of factor B is assigned to the residual (“error” term). In a 2-way ANOVA, both factors contribute to the fit part of the model.  Interactions between factors can be investigated. The 2-way ANOVA breaks down the fit part of the model between each of the main components (the 2 factors) and an interaction effect. The interaction cannot be tested with a series of one-way ANOVAs.

Two variables interact if a particular combination of variables leads to results that would not be anticipated on the basis of the main effects of those variables. ◦ Drinking alcohol increases the chance of throat cancer. So does smoking. However, people who both drink and smoke have an even higher chance of getting throat cancer. The combination of smoking and drinking is particularly dangerous: these risk factors interact. An interaction imply that the effect of one variable differs depending on the level of another variable. ◦ The effect of smoking on the probability of getting throat cancer is greater for people who drink than for people who do not drink: the effect of smoking differs depending on whether drinkers or nondrinkers are being considered.

 We record a quantitative variable in a two-way design with I levels of the first factor and J levels of the second factor.  We have independent SRSs from each of I x J Normal populations. Sample sizes do not have to be identical (although many software only carry out the computations when sample sizes are equal  “balanced design”).  All parameters are unknown. The population means may be different but all populations have the same standard deviation σ.

 Each factor is represented by a main effect: this is the impact on the response (dependent variable) of varying levels of that factor, regardless of the other factor (i.e., pooling together the levels of the other factor). There are two main effects, one for each factor.  The interaction of both factors is also studied and is described by the interaction effect.  When there is no clear interaction, the main effects are enough to describe the data. In the presence of interaction, the main effects could mask what is really going on with the data.

In a two-way design, statistical significance can be found for each factor, for the interaction effect, or for any combination of these. Neither factor is significant Only 1 factor is significant Both factors are significant No interactionInteraction effect is significant No interactionWith or without significant interaction Dependent var. Levels of factor A Dependent var. Levels of factor A B1 B2 Levels of factor B: Neither factor is significant No interactionInteraction effect is significant

Main effects, no interaction Important interaction effect: the main effects are misleading. Interaction effect: the main effects don’t tell the whole story.

 A one-way ANOVA tests the following model of your data: Data (“total”) = fit (“groups”) + residual (“error”) So that the sum of squares and degrees of freedom are: SST = SSG + SSE DFT = DFG + DFE  A 2-way design breaks down the “fit” part of the model into more specific subcomponents, so that: SST = SSA + SSB + SSAB + SSE DFT = DFA + DFB + DFAB + DFE Where A and B are the 2 main effects from each of the 2 factors, and AB represents the interaction of factors A and B.

The two-way ANOVA table Source of variation DF Sum of squares SS Mean square MS FP-value Factor ADFA = I -1SSASSA/DFAMSA/MSEfor F A Factor BDFB = J - ISSBSSB/DFBMSB/MSEfor F B InteractionDFAB = (I-1)(J-1)SSABSSAB/DFABMSAB/MSEfor F AB ErrorDFE = N - IJSSESSE/DFE Total DFT = N – 1 =DFA+DFB+DFAB+DFE SST =SSA+SSB+SSAB+SSE SST/DFT  Main effects: P-value for factor A P-value for factor B.  Interaction: P-value for the interacting effect of A and B.  Error: It represents the variability in the measurements within the groups. MSE is an unbiased estimate of the population variance  2.

Do nematodes affect plant growth? A botanist prepares 16 identical planting pots and adds different numbers of nematodes into the pots. Seedling growth (in mm) is recorded 2 weeks later. We analyzed these data with a one-way ANOVA in the previous chapter. We also have data for another plant species. We can study the effect of nematode amounts (4 levels) on seedling growth for both plant species (2 levels, species A and B). Plant species A was also grown with pesticide. We can analyze seedling growth for combinations of nematodes and pesticide conditions.

Source SS df MS F-ratio P NEMATODES SPECIES NEMATODES*SPECIES Error All plants suffer from the presence of nematodes (main effect p<0.001) but plant A and plant B have not significantly different growth (main effect p=0.39). The third plot shows that the effect of nematodes is lower for plant A in red (interaction effect p=0.017).

Source SS df MS F-ratio P NEMATODES PESTICIDE NEMATODES*PESTICIDE Error Both main effects are very significant. The interaction is significant (p=0.001): we can see from the third plot that the detrimental effect of nematodes is much stronger in pesticide-free pots in red.

 A study of cardiovascular risk factors compared runners (average 15 miles/week) with a control group described as sedentary. The other factor present in the study was gender.  There were 200 subjects in each of the 4 combinations  The quantitative response variable under study is the heart rate after 6 minutes of exercise on a treadmill