Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Comparing Three or More Means 13.

Slides:



Advertisements
Similar presentations
BPS - 5th Ed. Chapter 241 One-Way Analysis of Variance: Comparing Several Means.
Advertisements

Chapter 11 Analysis of Variance
Analysis of variance (ANOVA)-the General Linear Model (GLM)
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Variance Chapter 16.
© 2010 Pearson Prentice Hall. All rights reserved Least Squares Regression Models.
The Two Factor ANOVA © 2010 Pearson Prentice Hall. All rights reserved.
© 2010 Pearson Prentice Hall. All rights reserved The Complete Randomized Block Design.
© 2010 Pearson Prentice Hall. All rights reserved Single Factor ANOVA.
Part I – MULTIVARIATE ANALYSIS
Chapter 11 Analysis of Variance
Statistics for Business and Economics
Statistics Are Fun! Analysis of Variance
Chapter Topics The Completely Randomized Model: One-Factor Analysis of Variance F-Test for Difference in c Means The Tukey-Kramer Procedure ANOVA Assumptions.
Chapter 3 Analysis of Variance
Lecture 9: One Way ANOVA Between Subjects
8. ANALYSIS OF VARIANCE 8.1 Elements of a Designed Experiment
One-way Between Groups Analysis of Variance
Lecture 12 One-way Analysis of Variance (Chapter 15.2)
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
Chapter 12: Analysis of Variance
F-Test ( ANOVA ) & Two-Way ANOVA
1 1 Slide © 2003 South-Western/Thomson Learning™ Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Statistics Design of Experiment.
HAWKES LEARNING SYSTEMS math courseware specialists Copyright © 2010 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Chapter 14 Analysis.
QNT 531 Advanced Problems in Statistics and Research Methods
1 1 Slide © 2005 Thomson/South-Western Chapter 13, Part A Analysis of Variance and Experimental Design n Introduction to Analysis of Variance n Analysis.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
© 2003 Prentice-Hall, Inc.Chap 11-1 Analysis of Variance IE 340/440 PROCESS IMPROVEMENT THROUGH PLANNED EXPERIMENTATION Dr. Xueping Li University of Tennessee.
© 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.
© Copyright McGraw-Hill CHAPTER 12 Analysis of Variance (ANOVA)
Chapter 10 Analysis of Variance.
1 Chapter 13 Analysis of Variance. 2 Chapter Outline  An introduction to experimental design and analysis of variance  Analysis of Variance and the.
Copyright © 2004 Pearson Education, Inc.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Inference about Two Means: Independent Samples 11.3.
Chapter 10: Analyzing Experimental Data Inferential statistics are used to determine whether the independent variable had an effect on the dependent variance.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Comparing Three or More Means ANOVA (One-Way Analysis of Variance)
Analysis of Variance 1 Dr. Mohammed Alahmed Ph.D. in BioStatistics (011)
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 13 Multiple Regression Section 13.3 Using Multiple Regression to Make Inferences.
Lecture 9-1 Analysis of Variance
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.1 One-Way ANOVA: Comparing.
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.
12-1 Chapter Twelve McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved.
Chapter 4 Analysis of Variance
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Lecture Slides Elementary Statistics Eleventh Edition and the Triola.
Copyright © 2016, 2013, 2010 Pearson Education, Inc. Chapter 10, Slide 1 Two-Sample Tests and One-Way ANOVA Chapter 10.
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.
1/54 Statistics Analysis of Variance. 2/54 Statistics in practice Introduction to Analysis of Variance Analysis of Variance: Testing for the Equality.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Experimental Design and Analysis of Variance Chapter 11.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
© 2010 Pearson Prentice Hall. All rights reserved Chapter Hypothesis Tests Regarding a Parameter 10.
Chapter 14 Inference on the Least-Squares Regression Model and Multiple Regression.
Lecture Slides Elementary Statistics Twelfth Edition
Factorial Experiments
ANOVA Econ201 HSTS212.
i) Two way ANOVA without replication
Comparing Three or More Means
Statistics Analysis of Variance.
Statistics for Business and Economics (13e)
Comparing Three or More Means
Chapter 11 Analysis of Variance
Chapter 10 – Part II Analysis of Variance
STATISTICS INFORMED DECISIONS USING DATA
Presentation transcript:

Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Comparing Three or More Means 13

Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Comparing Three or More Means (One-Way Analysis of Variance) 13.1

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Objectives 1.Verify the requirements to perform a one- way ANOVA 2.Test a hypothesis regarding three or more means using one-way ANOVA 13-3

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Analysis of Variance (ANOVA) is an inferential method used to test the equality of three or more population means CAUTION! Do not test H 0 : μ 1 = μ 2 = μ 3 by conducting three separate hypothesis tests, because the probability of making a Type I error will be much higher than α.

Copyright © 2013, 20 and 2007 Pearson Education, Inc. 1.There must be k simple random samples; one from each of k populations or a randomized experiment with k treatments. 2.The k samples are independent of each other; that is, the subjects in one group cannot be related in any way to subjects in a second group. 3.The populations are normally distributed. 4.The populations must have the same variance; that is, each treatment group has the population variance σ 2. Requirements of a One-Way ANOVA Test 13-5

Copyright © 2013, 20 and 2007 Pearson Education, Inc. H 0 : μ 1 = μ 2 = μ 3 H 1 : At least one population mean is different from the others Testing a Hypothesis Regarding k =

Copyright © 2013, 20 and 2007 Pearson Education, Inc. The methods of one-way ANOVA are robust, so small departures from the normality requirement will not significantly affect the results of the procedure. In addition, the requirement of equal population variances does not need to be strictly adhered to, especially if the sample size for each treatment group is the same. Therefore, it is worthwhile to design an experiment in which the samples from the populations are roughly equal in size. Testing Using ANOVE 13-7

Copyright © 2013, 20 and 2007 Pearson Education, Inc. The one-way ANOVA procedures may be used if the largest sample standard deviation is no more than twice the smallest sample standard deviation. Verifying the Requirement of Equal Population Variance 13-8

Copyright © 2013, 20 and 2007 Pearson Education, Inc. The following data represent the weight (in grams) of pennies minted at the Denver mint in 1990,1995, and Verify that the requirements in order to perform a one-way ANOVA are satisfied. Parallel Example 1: Verifying the Requirements of ANOVA 13-9

Copyright © 2013, 20 and 2007 Pearson Education, Inc

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution 1.The 3 samples are simple random samples. 2.The samples were obtained independently. 3.Normal probability plots for the 3 years follow. All of the plots are roughly linear so the normality assumption is satisfied

Copyright © 2013, 20 and 2007 Pearson Education, Inc

Copyright © 2013, 20 and 2007 Pearson Education, Inc

Copyright © 2013, 20 and 2007 Pearson Education, Inc

Copyright © 2013, 20 and 2007 Pearson Education, Inc. 4.The sample standard deviations are computed for each sample using Minitab and shown on the following slide. The largest standard deviation is not more than twice the smallest standard deviation ( = > ) so the requirement of equal population variances is considered satisfied. Solution 13-15

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Descriptive Statistics Variable N Mean Median TrMean StDev SE Mean Variable Minimum Maximum Q1 Q

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Objective 2 Test a Hypothesis Regarding Three or More Means Using One-Way ANOVA 13-17

Copyright © 2013, 20 and 2007 Pearson Education, Inc. The basic idea in one-way ANOVA is to determine if the sample data could come from populations with the same mean, μ, or suggests that at least one sample comes from a population whose mean is different from the others. To make this decision, we compare the variability among the sample means to the variability within each sample

Copyright © 2013, 20 and 2007 Pearson Education, Inc. We call the variability among the sample means the between-sample variability, and the variability of each sample the within-sample variability. If the between-sample variability is large relative to the within-sample variability, we have evidence to suggest that the samples come from populations with different means

Copyright © 2013, 20 and 2007 Pearson Education, Inc. The analysis of variance F-test statistic is given by ANOVA F-Test Statistic 13-20

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Step 1: Compute the sample mean of the combined data set by adding up all the observations and dividing by the number of observations. Call this value. Step 2: Find the sample mean for each sample (or treatment). Let represent the sample mean of sample 1, represent the sample mean of sample 2, and so on. Step 3: Find the sample variance for each sample (or treatment). Let represent the sample variance for sample 1, represent the sample variance for sample 2, and so on. Computing the F-Test Statistic 13-21

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Step 4: Compute the sum of squares due to treatments, SST, and the sum of squares due to error, SSE. Step 5: Divide each sum of squares by its corresponding degrees of freedom (k – 1 and n – k, respectively) to obtain the mean squares MST and MSE. Step 6: Compute the F-test statistic: Computing the F-Test Statistic 13-22

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Compute the F-test statistic for the penny data. Parallel Example 2: Computing the F-Test Statistic 13-23

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution Step 1: Compute the overall mean. Step 2: Find the sample variance for each treatment (year)

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution Step 3: Find the sample variance for each treatment (year)

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution Step 4: Compute the sum of squares due to treatment, SST, and the sum of squares due to error, SSE. SST =11(2.4964–2.5018) (2.5091– ) (2.5–2.5018) 2 = SSE =(11–1)(0.0005) + (11–1)(0.0006) + (11–1)(0.0002) =

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution Step 5: Compute the mean square due to treatment, MST, and the mean square due to error, MSE

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution Step 6: Compute the F-statistic

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution Source of Variation Sum of Squares Degrees of Freedom Mean Squares F-Test Statistic Treatment Error Total ANOVA Table: 13-29

Copyright © 2013, 20 and 2007 Pearson Education, Inc. If the P-value is less than the level of significance, α, reject the null hypothesis. Decision Rule in the One-Way ANOVA Test 13-30

Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Post Hoc Tests on One-Way Analysis of Variance 13.2

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Objective 1.Perform the Tukey Test 13-32

Copyright © 2013, 20 and 2007 Pearson Education, Inc. When the results from a one-way ANOVA lead us to conclude that at least one population mean is different from the others, we can make additional comparisons between the means to determine which means differ significantly. The procedures for making these comparisons are called multiple comparison methods

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Objective 1 Perform the Tukey Test 13-34

Copyright © 2013, 20 and 2007 Pearson Education, Inc. The computation of the test statistic for Tukey’s test for comparing pairs of means follows the same logic as the test for comparing two means from independent sampling. However, the standard error that is used is where s 2 is the mean square error estimate (MSE) of σ 2 from the one-way ANOVA, n 1 is the sample size from population 1, and n 2 is the sample size from population

Copyright © 2013, 20 and 2007 Pearson Education, Inc. The test statistic for Tukey’s test when testing H 0 : μ 1 = μ 2 versus H 1 : μ 1 ≠ μ 2 is given by where s 2 is the mean square estimate of σ 2 (MSE) from ANOVA n 1 is the sample size from population 1 n 2 is the sample size from population 2 Test Statistic for Tukey’s Test 13-36

Copyright © 2013, 20 and 2007 Pearson Education, Inc. The critical value for Tukey’s test using a familywise error rate α is given by where ν is the degrees of freedom due to error (n – k) k is the total number of means being compared Critical Value for Tukey’s Test 13-37

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Find the critical value from the Studentized range distribution with v = 13 degrees of freedom and k = 4 degrees of freedom with a familywise error rate α = Find the critical value from the Studentized range distribution with v = 64 degrees of freedom and k = 6 degrees of freedom with a familywise error rate α = Parallel Example 1: Finding the Critical Value from the Studentized Range Distribution 13-38

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution a) b) 13-39

Copyright © 2013, 20 and 2007 Pearson Education, Inc. After rejecting the null hypothesis H 0 : μ 1 = μ 2 = ··· = μ k the following steps can be used to compare pairs of means for significant differences, provided that 1.There are k simple random samples from k populations. 2.The k samples are independent of each other. 3.The populations are normally distributed. 4.The populations have the same variance. Step 1: Arrange the sample means in ascending order. Tukey’s Test 13-40

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Step 2: Compute the pairwise differences where. Step 3: Compute the test statistic, for each pairwise difference. Tukey’s Test 13-41

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Step 4: Determine the critical value,, where α is the level of significance (the familywise error rate). Step 5: If, reject the null hypothesis that H 0 : μ i = μ j and conclude that the means are significantly different. Step 6: Compare all pairwise differences to identify which means differ. Tukey’s Test 13-42

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Suppose that there is sufficient evidence to reject H 0 : μ 1 = μ 2 = μ 3 using a one-way ANOVA. The mean square error from ANOVA is found to be The sample means are, and, with n 1 = n 2 = n 3 =9. Use Tukey’s test to determine which pairwise means are significantly different using a familywise error rate of α = Parallel Example 2: Performing Tukey’s Test 13-43

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution Step 1: The means, in ascending order, are Step 2: We next compute the pairwise differences for each pair, subtracting the smaller sample mean from the larger sample mean: 13-44

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution Step 3: Compute the test statistic q 0 for each pairwise difference. 2-1: 2-3: 13-45

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution 3-1: Step 4: Find the critical value using an α = 0.05 familywise error rate with ν = n – k =27 – 3 = 24 and k = 3. Then q 0.05,24,3 =

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution Step 5: Since 6.22 and 4.42 are greater than 3.532, but 1.79 is less than 3.532, we reject H 0 : μ 1 =μ 2 and H 0 : μ 2 =μ 3 but not H 0 : μ 1 =μ 3. Step 6: The conclusions of Tukey’s test are 13-47

Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section The Randomized Complete Block Design 13.3

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Objectives 1.Conduct analysis of variance on the randomized complete block design 2.Perform the Tukey test 13-49

Copyright © 2013, 20 and 2007 Pearson Education, Inc. In the completely randomized design, the researcher manipulates a single factor and fixes it at two or more levels and then randomly assigns experimental units to a treatment. This design is not always sufficient because the researcher may be aware of additional factors that cannot be fixed at a single level throughout the experiment

Copyright © 2013, 20 and 2007 Pearson Education, Inc. The randomized block design is an experimental design that captures more information and therefore reduces experimental error

Copyright © 2013, 20 and 2007 Pearson Education, Inc. “In Other Words” A block is a method for controlling experimental error. Blocks should form a homogenous group. For example, if age is thought to explain some of the variability in the response variable, we can remove age from the experimental error by forming blocks of experimental units with the same age. Gender is another common block

Copyright © 2013, 20 and 2007 Pearson Education, Inc. CAUTION! When we block, we are not interested in determining whether the block is significant. We only want to remove experimental error to reduce the mean square error

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Objective 1 Conduct Analysis of Variance on the Randomized Complete Block Design 13-54

Copyright © 2013, 20 and 2007 Pearson Education, Inc. 1.The response variable for each of the k populations is normally distributed. 2.The response variable for each of the k populations has the same variance; that is, each treatment group has population variance σ 2. Requirements for Analyzing Data from a Randomized Complete Block Design 13-55

Copyright © 2013, 20 and 2007 Pearson Education, Inc. A rice farmer is interested in the effect of four fertilizers on fruiting period. He randomly selects four rows from his field that have been planted with the same seed and divides each row into four segments. The fertilizers are then randomly assigned to the four segments. Assume that the environmental conditions are the same for each of the four rows. The data given in the next slide represent the fruiting period, in days, for each row/fertilizer combination. Is there sufficient evidence to conclude that the fruiting period for the four fertilizers differs at the α = 0.05 level of significance? Parallel Example 2: Analyzing the Randomized Complete Block Design 13-56

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Fertilizer 1Fertilizer 2Fertilizer 3Fertilizer 4 Row Row Row Row

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution We wish to test H 0 : μ 1 = μ 2 = μ 3 = μ 4 versus H 1 : at least one of the means is different We first verify the requirements for the test: 1.Normal probability plots for the data from each of the four fertilizers indicates that the normality requirement is satisfied

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution 2. s 1 = s 2 =1.775 s 3 =1.449 s 4 =1.509 Since the largest standard deviation is not more than twice the smallest standard deviation, the assumption of equal variances is not violated

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution ANOVA output from Minitab: Two-way ANOVA: Fruiting period versus Fertilizer, Row Source DF SS MS F P Fertilizer Row Error Total

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution Since the P-value is < 0.001, we reject the null hypothesis and conclude that there is a difference in fruiting period for the four fertilizers. Note: We are not interested in testing whether the fruiting periods among the blocks are equal

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Objective 2 Perform the Tukey Test 13-62

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Once the null hypothesis of equal population means is rejected, we can proceed to determine which means differ significantly using Tukey’s test. The steps are identical to those for comparing means in the one-way ANOVA. The critical value is q α,ν,k using a familywise error rate of α with ν = (r – 1)(c – 1) = the error degrees of freedom (r is the number of blocks and c is the number of treatments) and k is the number of means being tested

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Parallel Example 3: Multiple Comparisons Using Tukey’s Test Use Tukey’s test to determine which pairwise means differ for the data presented in Example 2 with a familywise error rate of α = 0.05, using MINITAB

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Tukey Simultaneous Tests Response Variable Fruiting period All Pairwise Comparisons among Levels of Fertilizer Fertilizer = 1 subtracted from: Fertilizer Lower Center Upper ( *------) ( *------) (------* ) Fertilizer = 2 subtracted from: Fertilizer Lower Center Upper (------* ) ( *------) Fertilizer = 3 subtracted from: Fertilizer Lower Center Upper (------* )

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Tukey Simultaneous Tests Response Variable Fruiting period All Pairwise Comparisons among Levels of Fertilizer Fertilizer = 1 subtracted from: Difference SE of Adjusted Fertilizer of Means Difference T-Value P-Value Fertilizer = 2 subtracted from: Difference SE of Adjusted Fertilizer of Means Difference T-Value P-Value Fertilizer = 3 subtracted from: Difference SE of Adjusted Fertilizer of Means Difference T-Value P-Value

Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Two-Way Analysis of Variance 13.4

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Objectives 1.Analyze a two-way ANOVA design 2.Draw interaction plots 3.Perform the Tukey test 13-68

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Objective 1 Analyze a Two-Way Analysis of Variance Design 13-69

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Recall, there are two ways to deal with factors: (1) control the factors by fixing them at a single level or by fixing them at different levels, and (2) 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

Copyright © 2013, 20 and 2007 Pearson Education, Inc. 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

Copyright © 2013, 20 and 2007 Pearson Education, Inc. 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? 13-72

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Fertilizer 1Fertilizer 2Fertilizer 3Fertilizer 4 Seed Type A Seed Type B

Copyright © 2013, 20 and 2007 Pearson Education, Inc. 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

Copyright © 2013, 20 and 2007 Pearson Education, Inc. 1. The populations from which the samples are drawn must be normal. 2. The samples are independent. 3. The populations all have the same variance. Requirements to Perform the Two-Way Analysis of Variance 13-75

Copyright © 2013, 20 and 2007 Pearson Education, Inc. In a two-way ANOVA, we test three separate hypotheses. Hypotheses Regarding Interaction Effect H 0 : there is no interaction effect between the factors H 1 : there is interaction between the factors Hypotheses Regarding Main Effects H 0 : there is no effect of factor A on the response variable H 1 : there is an effect of factor A on the response variable H 0 : there is no effect of factor B on the response variable H 1 : there is an effect of factor B on the response variable 13-76

Copyright © 2013, 20 and 2007 Pearson Education, Inc. 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

Copyright © 2013, 20 and 2007 Pearson Education, Inc. 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. a)Verify the requirement of equal population variances. b)Use MINITAB to test whether there is an interaction effect between fertilizer type and seed type. c)If there is no significant interaction, determine if there is a significant difference in the means for i)the 4 fertilizers ii)the 2 seed types 13-78

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution a)The standard deviations for each treatment combination are given in the table below: Fertilizer 1Fertilizer 2Fertilizer 3Fertilizer 4 Seed Type A 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

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution MINITAB output: Analysis of Variance for Fruiting period Source DF SS MS F P Fertilizer Seed Fert*Seed Error Total b)The P-value for the interaction term is > 0.05, so we fail to reject the null hypothesis and conclude that there is no interaction effect

Copyright © 2013, 20 and 2007 Pearson Education, Inc. 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

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Objective 2 Draw Interaction Plots 13-82

Copyright © 2013, 20 and 2007 Pearson Education, Inc. 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. Constructing Interaction Plots 13-83

Copyright © 2013, 20 and 2007 Pearson Education, Inc. 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. Constructing Interaction Plots 13-84

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Parallel Example 4: Drawing an Interaction Plot Draw an interaction plot for the data from the rice farmer example

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution The cell means are given in the table below. Fertilizer 1Fertilizer 2Fertilizer 3Fertilizer 4 Seed Type A Seed Type B

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Note that the lines have fairly similar slopes between points which indicates no interaction between fertilizer and seed type

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Objective 3 Perform the Tukey Test 13-88

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Once we reject the hypothesis of equal population means for either factor, we proceed to determine which means differ significantly using Tukey’s test. The steps are identical to those for one-way ANOVA. However, the critical value is q α,ν,k where α is the familywise error rate ν = N – ab where N is the total sample size, a is the number of levels for factor A and b is the number of levels for factor B k is the number of means being tested for the factor 13-89

Copyright © 2013, 20 and 2007 Pearson Education, Inc. The standard error is where m is the product of the number of levels for the factor and the number of observations within each cell

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Parallel Example 7: Multiple Comparisons Using Tukey’s Test For the rice farming example, use MINITAB to perform Tukey’s test to determine which means differ for the four types of fertilizer using a familywise error rate of α =

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution Confidence Interval Method 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 ( * ) ( * ) ( *------) Fertilizer = 2 subtracted from: Fertilizer Lower Center Upper ( * ) ( *------) Fertilizer = 3 subtracted from: Fertilizer Lower Center Upper ( *------)

Copyright © 2013, 20 and 2007 Pearson Education, Inc. For Fertilizer 2 – Fertilizer 1 the confidence interval contains 0, so we do not reject the null hypothesis that means for Fertilizer 1 and 2 are equal. For Fertilizer 3 – Fertilizer 1 the confidence interval does not contain 0, so we reject the null hypothesis that means for Fertilizer 1 and 3 are equal. For Fertilizer 4 – Fertilizer 3 the confidence interval does not contain 0, so we reject the null hypothesis that means for Fertilizer 3 and 4 are equal Solution Confidence Interval Method

Copyright © 2013, 20 and 2007 Pearson Education, Inc. For Fertilizer 3 – Fertilizer 2 the confidence interval contains 0, so we do not reject the null hypothesis that means for Fertilizer 2 and 3 are equal. For Fertilizer 4 – Fertilizer 2 the confidence interval does not contain 0, so we reject the null hypothesis that means for Fertilizer 2 and 4 are equal. For Fertilizer 4 – Fertilizer 1 the confidence interval does not contain 0, so we reject the null hypothesis that means for Fertilizer 1 and 4 are equal Solution Confidence Interval Method

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Solution P-Value Method Tukey Simultaneous Tests Response Variable Fruiting period All Pairwise Comparisons among Levels of Fertilizer Fertilizer = 1 subtracted from: Difference SE of Adjusted Fertilizer of Means Difference T-Value P-Value Fertilizer = 2 subtracted from: Difference SE of Adjusted Fertilizer of Means Difference T-Value P-Value Fertilizer = 3 subtracted from: Difference SE of Adjusted Fertilizer of Means Difference T-Value P-Value

Copyright © 2013, 20 and 2007 Pearson Education, Inc. Using the P-value method yields the same results: we do not reject the null hypothesis that means for Fertilizer 1 and 2 are equal we reject the null hypothesis that means for Fertilizer 1 and 3 are equal we reject the null hypothesis that means for Fertilizer 3 and 4 are equal we do not reject the null hypothesis that means for Fertilizer 2 and 3 are equal we reject the null hypothesis that means for Fertilizer 2 and 4 are equal we reject the null hypothesis that means for Fertilizer 1 and 4 are equal Solution P-Value Method