The Two Factor ANOVA © 2010 Pearson Prentice Hall. All rights reserved.

Slides:



Advertisements
Similar presentations
© 2010 Pearson Prentice Hall. All rights reserved Multiple Comparisons for the Single Factor ANOVA.
Advertisements

Statistics Review – Part II Topics: – Hypothesis Testing – Paired Tests – Tests of variability 1.
BPS - 5th Ed. Chapter 241 One-Way Analysis of Variance: Comparing Several Means.
© 2010 Pearson Prentice Hall. All rights reserved Least Squares Regression Models.
© 2010 Pearson Prentice Hall. All rights reserved The Complete Randomized Block Design.
© 2010 Pearson Prentice Hall. All rights reserved Single Factor ANOVA.
© 2010 Pearson Prentice Hall. All rights reserved Two Sample Hypothesis Testing for Means from Independent Groups.
Two Sample Hypothesis Testing for Proportions
© 2010 Pearson Prentice Hall. All rights reserved Hypothesis Testing Using a Single Sample.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
Part I – MULTIVARIATE ANALYSIS
ANOVA Determining Which Means Differ in Single Factor Models Determining Which Means Differ in Single Factor Models.
Statistics Are Fun! Analysis of Variance
Lecture 9: One Way ANOVA Between Subjects
Chi-Square and F Distributions Chapter 11 Understandable Statistics Ninth Edition By Brase and Brase Prepared by Yixun Shi Bloomsburg University of Pennsylvania.
Chapter 12: Analysis of Variance
The Chi-Square Distribution 1. The student will be able to  Perform a Goodness of Fit hypothesis test  Perform a Test of Independence hypothesis test.
8 - 1 © 2003 Pearson Prentice Hall Chi-Square (  2 ) Test of Variance.
QNT 531 Advanced Problems in Statistics and Research Methods
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.2 Estimating Differences.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Comparing Three or More Means 13.
Agresti/Franklin Statistics, 1 of 82 Chapter 13 Comparing Groups: Analysis of Variance Methods Learn …. How to use Statistical inference To Compare Several.
Inference for Linear Regression Conditions for Regression Inference: Suppose we have n observations on an explanatory variable x and a response variable.
1 © 2008 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 15 The Analysis of Variance.
 The idea of ANOVA  Comparing several means  The problem of multiple comparisons  The ANOVA F test 1.
© Copyright McGraw-Hill CHAPTER 12 Analysis of Variance (ANOVA)
Chapter 10 Analysis of Variance.
Copyright © 2004 Pearson Education, Inc.
Copyright © 2011 Pearson Education, Inc. Analysis of Variance Chapter 26.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Inference about Two Means: Independent Samples 11.3.
Copyright © Cengage Learning. All rights reserved. 14 Elements of Nonparametric Statistics.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
+ Chapter 12: More About Regression Section 12.1 Inference for Linear Regression.
ANOVA 1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 9 An Introduction to Analysis of Variance Terry Dielman Applied Regression.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
Chapter 15 The Analysis of Variance. 2 A study was done on the survival time of patients with advanced cancer of the stomach, bronchus, colon, ovary or.
CHAPTER 4 Analysis of Variance One-way ANOVA
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.1 One-Way ANOVA: Comparing.
Slide Slide 1 Section 8-4 Testing a Claim About a Mean:  Known.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Section 12-3 Two-Way ANOVA.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.3 Two-Way ANOVA.
Lesson Two-Way ANOVA. Objectives Analyze a two-way ANOVA design Draw interaction plots Perform the Tukey test.
Copyright © Cengage Learning. All rights reserved. 12 Analysis of Variance.
Chapter 12 Introduction to Analysis of Variance PowerPoint Lecture Slides Essentials of Statistics for the Behavioral Sciences Eighth Edition by Frederick.
12-1 Chapter Twelve McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved.
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Lecture Slides Elementary Statistics Eleventh Edition and the Triola.
McGraw-Hill, Bluman, 7th ed., Chapter 12
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Overview and One-Way ANOVA.
Formula for Linear Regression y = bx + a Y variable plotted on vertical axis. X variable plotted on horizontal axis. Slope or the change in y for every.
Copyright © 2014, 2011 Pearson Education, Inc. 1 Chapter 26 Analysis of Variance.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 11 Inference for Distributions of Categorical.
Aron, Aron, & Coups, Statistics for the Behavioral and Social Sciences: A Brief Course (3e), © 2005 Prentice Hall Chapter 10 Introduction to the Analysis.
Analysis of Variance ANOVA - method used to test the equality of three or more population means Null Hypothesis - H 0 : μ 1 = μ 2 = μ 3 = μ k Alternative.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
Slide 1 Copyright © 2004 Pearson Education, Inc. Chapter 11 Multinomial Experiments and Contingency Tables 11-1 Overview 11-2 Multinomial Experiments:
© 2010 Pearson Prentice Hall. All rights reserved Chapter Hypothesis Tests Regarding a Parameter 10.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.1 One-Way ANOVA: Comparing.
The 2 nd to last topic this year!!.  ANOVA Testing is similar to a “two sample t- test except” that it compares more than two samples to one another.
© 2010 Pearson Prentice Hall. All rights reserved Chapter Hypothesis Tests Regarding a Parameter 10.
Lecture Slides Elementary Statistics Twelfth Edition
Factorial Experiments
i) Two way ANOVA without replication
Comparing Three or More Means
Lesson ANOVA - D Two-Way ANOVA.
Comparing Three or More Means
Chapter 11 Analysis of Variance
Lecture Slides Elementary Statistics Eleventh Edition
STATISTICS INFORMED DECISIONS USING DATA
Presentation transcript:

The Two Factor ANOVA © 2010 Pearson Prentice Hall. All rights reserved

Recall, there are two ways to deal with factors: control the factors by fixing them at a single level or by fixing them at different levels, and randomize so that their effect on the response variable is minimized. In both the completely randomized design and the randomized complete block design, we manipulated one factor to see how varying it affected the response variable.

In a Two-Way Analysis of Variance design, two factors are used to explain the variability in the response variable. We deal with the two factors by fixing them at different levels. We refer to the two factors as factor A and factor B. If factor A has n levels and factor B has m levels, we refer to the design as an factorial design.

Parallel Example 1: A 2 x 4 Factorial Design Suppose the rice farmer is interested in comparing the fruiting period for not only the four fertilizer types, but for two different seed types as well. The farmer divides his plot into 16 identical subplots. He randomly assigns each seed/fertilizer combination to two of the subplots and obtains the fruiting periods shown on the following slide. Identify the main effects. What does it mean to say there is an interaction effect between the two factors?

Fertilizer 1 Fertilizer 2 Fertilizer 3 Fertilizer 4 Seed Type A 13.5 13.9 14.1 15.2 14.7 17.1 16.4 Seed Type B 14.4 15.0 15.4 15.3 15.9 16.9 17.3

Solution The two factors are A: fertilizer type and B: seed type. Since all levels of factor A are combined with all levels of factor B, we say that the factors are crossed. The main effect of factor A is the change in fruiting period that results from changing the fertilizer type. The main effect of factor B is the change in fruiting period that results from changing the seed type. We say that there is an interaction effect if the effect of fertilizer on fruiting period varies with seed type.

Requirements for the Two-Way Analysis of Variance The populations from which the samples are drawn must be normal. The samples are independent. The populations all have the same variance.

In a two-way ANOVA, we test three separate hypotheses. Hypotheses Regarding Interaction Effect H0: there is no interaction effect between the factors H1: there is interaction between the factors Hypotheses Regarding Main Effects H0: there is no effect of factor A on the response variable H1: there is an effect of factor A on the response variable H0: there is no effect of factor B on the response variable H1: there is an effect of factor B on the response variable

Whenever conducting a two-way ANOVA, we always first test the hypothesis regarding interaction effect. If the null hypothesis of no interaction is rejected, we do not interpret the result of the hypotheses involving the main effects. This is because the interaction clouds the interpretation of the main effects.

Recall the rice farmer who is interested in determining Parallel Example 3: Examining a Two-Way ANOVA Recall the rice farmer who is interested in determining the effect of fertilizer and seed type on the fruiting period of rice. Assume that probability plots indicate that it is reasonable to assume that the data come from populations that are normally distributed. Verify the requirement of equal population variances. Use MINITAB to test whether there is an interaction effect between fertilizer type and seed type. If there is no significant interaction, determine if there is a significant difference in the means for the 4 fertilizers the 2 seed types

Solution The standard deviations for each treatment combination are given in the table below: Fertilizer 1 Fertilizer 2 Fertilizer 3 Fertilizer 4 Seed Type A 0.283 0.424 0.354 0.495 Seed Type B Since the largest standard deviation, 0.495, is not more than twice the smallest standard deviation, 0.283, the assumption of equal variances is met.

Constructing Interaction Plots Step 1: Compute the mean value of the response variable within each cell. In addition, compute the row mean value of the response variable and the column mean value of the response variable with each level of each factor. Step 2: In a Cartesian plane, label the horizontal axis for each level of factor A. The vertical axis will represent the mean value of the response variable. For each level of factor A, plot the mean value of the response variable for each level of factor B. Draw straight lines connecting the points for the common level of factor B. You should have as many lines as there are levels of factor B. The more difference there is in the slopes of the two lines, the stronger the evidence of interaction.

Draw an interaction plot for the data from the rice farmer example. Parallel Example 4: Drawing an Interaction Plot Draw an interaction plot for the data from the rice farmer example. The cell means are given in the table below. Fertilizer 1 Fertilizer 2 Fertilizer 3 Fertilizer 4 Seed Type A 13.7 13.8 14.95 16.75 Seed Type B 14.7 15.05 15.6 17.1

Note that the lines have fairly similar slopes between points which indicates there may be no interaction between fertilizer and seed type.

Solution MINITAB output: Analysis of Variance for Fruiting period Source DF SS MS F P Fertilizer 3 18.3269 6.1090 37.16 0.000 Seed 1 2.6406 2.6406 16.06 0.004 Fert*Seed 3 0.4669 0.1556 0.95 0.463 Error 8 1.3150 1.3150 0.1644 Total 15 22.7494 b) The P-value for the interaction term is 0.463 > 0.05, so we fail to reject the null hypothesis and conclude that there is no interaction effect. Now that the interaction is non-significant we can look a the test for main effects from fertilizer and seed types.

Solution c) i) Since the P-value for fertilizer is given as 0.000, we reject the null hypothesis and conclude that the mean fruiting period is different for at least one of the 4 types of fertilizer. ii) Since the P-value for seed type is found to be 0.004, we reject the null hypothesis and conclude that the mean fruiting period is different for the two seed types.

Solution With the significance in main effects due to the fertilizer type we can construct the Tukey Intevals to determine what differences exist between pairwise means.

Solution Tukey 95.0% Simultaneous Confidence Intervals Response Variable Fruiting period All Pairwise Comparisons among Levels of Fertilizer Fertilizer = 1 subtracted from: Fertilizer Lower Center Upper ------+---------+---------+---------+ 2 -0.6933 0.2250 1.143 (-------*-------) 3 0.1567 1.0750 1.993 (-------*-------) 4 1.8067 2.7250 3.643 (-------*------) ------+---------+---------+---------+ 0.0 1.2 2.4 3.6 Fertilizer = 2 subtracted from: Fertilizer Lower Center Upper ------+---------+---------+---------+ 3 -0.06830 0.8500 1.768 (-------*-------) 4 1.58170 2.5000 3.418 (-------*------) Fertilizer = 3 subtracted from: Fertilizer Lower Center Upper ------+---------+---------+---------+ 4 0.7317 1.650 2.568 (-------*------)

Results Fertilizers 1 and 2 are not significantly different. Fertilizers 2 and 3 are not significantly different. All other pairwise comparisons are significant. It seems that fertilizer 4 results in the greatest fruiting period of the rice.

We do not have to worry about the Tukey comparisons for the seed type since there are only two seed varieties used, we know they are different. It seems that seed variety b has a larger fruiting period.

The “Grand” Conclusion To achieve the longest fruiting period we will want to plant seed type b using fertilizer number 4.