Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "The Two Factor ANOVA © 2010 Pearson Prentice Hall. All rights reserved."— Presentation transcript:

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

2 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.

3 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.

4 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?

5 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

6 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.

7 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.

8 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

9 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.

10 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

11 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.

12 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.

13 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

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

15 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. Now that the interaction is non-significant we can look a the test for main effects from fertilizer and seed types.

16 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.

17 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.

18 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 ( * ) ( * ) ( *------) Fertilizer = 2 subtracted from: Fertilizer Lower Center Upper ( * ) ( *------) Fertilizer = 3 subtracted from: Fertilizer Lower Center Upper ( *------)

19 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.

20 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.

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


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

Similar presentations


Ads by Google