Sec Two-Way Analysis of Variance. Bluman, Chapter 12 1

Size: px
Start display at page:

Download "Sec Two-Way Analysis of Variance. Bluman, Chapter 12 1"

Transcription

1 Sec 12.3 Two-Way Analysis of Variance Bluman, Chapter 12 1

2 12-3 Two-Way Analysis of Variance In doing a study that involves a twoway analysis of variance, the researcher is able to test the effects of two independent variables or factors on one dependent variable. In addition, the interaction effect of the two variables can be tested. Bluman, Chapter 12 2

3 A case study: Suppose we want to test the effects of two different kinds of plant food and two different kinds of soil on the growth of a certain plant. The factors are: the different kind of plant food and the different kind of soil. The dependent variable is the plant growth. Bluman, Chapter 12 3

4 Contributing factors: Tempterature, water, sunlight etc. are kept constant. There will be four groups Bluman, Chapter 12 4

5 Soil type P L A N T A1 I II F O O D A2 Bluman, Chapter 12 5

6 2X2 Design There are two factors and two treatments, therefore this is a two by two design. Bluman, Chapter 12 6

7 Two-Way Analysis of Variance Variables or factors are changed between two levels (i.e., two different treatments). The groups for a two-way ANOVA are sometimes called treatment groups. A two-way ANOVA has several null hypotheses. There is one for each independent variable and one for the interaction. Bluman, Chapter 12 7

8 Hypotheses; Bluman, Chapter 12 8

9 Two-Way ANOVA Summary Table Source Sum of Squares d.f. Mean Squares F A B A X B Within (error) SS A SS B SS AXB SS W a 1 b 1 (a 1)(b 1) ab(n 1) MS A MS B MS AXB MS W F A F B F AXB Total Bluman, Chapter 12 9

10 Assumptions for Two-Way ANOVA 1. The populations from which the samples were obtained must be normally or approximately normally distributed. 2. The samples must be independent. 3. The variances of the populations from which the samples were selected must be equal. 4. The groups must be equal in sample size. Bluman, Chapter 12 10

11 Chapter 12 Analysis of Variance Section 12-3 Example 12-5 Page #648 Bluman, Chapter 12 11

12 Example 12-5: Gasoline Consumption A researcher wishes to see whether the type of gasoline used and the type of automobile driven have any effect on gasoline consumption. Two types of gasoline, regular and high-octane, will be used, and two types of automobiles, two-wheel- and four-wheel-drive, will be used in each group. There will be two automobiles in each group, for a total of eight automobiles used. Use a two-way analysis of variance at α = Bluman, Chapter 12 12

13 Example 12-5: Gasoline Consumption Step 1: State the hypotheses. The hypotheses for the interaction are these: H 0 : There is no interaction effect between type of gasoline used and type of automobile a person drives on gasoline consumption. H 1 : There is an interaction effect between type of gasoline used and type of automobile a person drives on gasoline consumption. Bluman, Chapter 12 13

14 Example 12-5: Gasoline Consumption Step 1: State the hypotheses. The hypotheses for the gasoline types are H 0 : There is no difference between the means of gasoline consumption for two types of gasoline. H 1 : There is a difference between the means of gasoline consumption for two types of gasoline. Bluman, Chapter 12 14

15 Example 12-5: Gasoline Consumption Step 1: State the hypotheses. The hypotheses for the types of automobile driven are H 0 : There is no difference between the means of gasoline consumption for two-wheel-drive and four-wheel-drive automobiles. H 1 : There is a difference between the means of gasoline consumption for two-wheel-drive and four-wheel-drive automobiles. Bluman, Chapter 12 15

16 Example 12-5: Gasoline Consumption Step 2: Find the critical value for each. Since α = 0.05, d.f.n. = 1, and d.f.d. = 4 for each of the factors, the critical values are the same, obtained from Table H as C.V Step 3: Find the test values. Since the computation is quite lengthy, we will use the summary table information obtained using statistics software such as Minitab. Bluman, Chapter 12 16

17 Example 12-5: Gasoline Consumption Two-Way ANOVA Summary Table Source Sum of Squares d.f. Mean Squares F Gasoline A Automobile B Interaction A X B Within (error) Total Bluman, Chapter 12 17

18 Example 12-1: Lowering Blood Pressure Step 4: Make the decision. Since F B = and F AXB = are greater than the critical value 7.71, the null hypotheses concerning the type of automobile driven and the interaction effect should be rejected. Step 5: Summarize the results. Since the null hypothesis for the interaction effect was rejected, it can be concluded that the combination of type of gasoline and type of automobile does affect gasoline consumption. Bluman, Chapter 12 18