22-1 Factorial Treatments (§ 14.3, 14.4, 15.4) Completely randomized designs - One treatment factor at t levels. Randomized block design - One treatment.

Slides:



Advertisements
Similar presentations
Analysis of Variance (ANOVA)
Advertisements

Multiple Comparisons in Factorial Experiments
Latin Square Designs (§15.4)
Chapter 11 Analysis of Variance
1 Chapter 4 Experiments with Blocking Factors The Randomized Complete Block Design Nuisance factor: a design factor that probably has an effect.
Chapter 4 Randomized Blocks, Latin Squares, and Related Designs
Other Analysis of Variance Designs Chapter 15. Chapter Topics Basic Experimental Design Concepts  Defining Experimental Design  Controlling Nuisance.
Design and Analysis of Experiments
The Two Factor ANOVA © 2010 Pearson Prentice Hall. All rights reserved.
© 2010 Pearson Prentice Hall. All rights reserved The Complete Randomized Block Design.
Statistics for Managers Using Microsoft® Excel 5th Edition
1 Multifactor ANOVA. 2 What We Will Learn Two-factor ANOVA K ij =1 Two-factor ANOVA K ij =1 –Interaction –Tukey’s with multiple comparisons –Concept of.
Part I – MULTIVARIATE ANALYSIS
Chapter 11 Analysis of Variance
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter 3 Experiments with a Single Factor: The Analysis of Variance
Experimental Design Terminology  An Experimental Unit is the entity on which measurement or an observation is made. For example, subjects are experimental.
1 Chapter 5 Introduction to Factorial Designs Basic Definitions and Principles Study the effects of two or more factors. Factorial designs Crossed:
Chapter 17 Analysis of Variance
8. ANALYSIS OF VARIANCE 8.1 Elements of a Designed Experiment
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall Statistics for Business and Economics 7 th Edition Chapter 15 Analysis of Variance.
Chapter 11 Analysis of Variance
Copyright ©2011 Pearson Education 11-1 Chapter 11 Analysis of Variance Statistics for Managers using Microsoft Excel 6 th Global Edition.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
Chap 10-1 Analysis of Variance. Chap 10-2 Overview Analysis of Variance (ANOVA) F-test Tukey- Kramer test One-Way ANOVA Two-Way ANOVA Interaction Effects.
Understanding the Two-Way Analysis of Variance
Chapter 12: Analysis of Variance
ANOVA Chapter 12.
Announcements: Homework 10: –Due next Thursday (4/25) –Assignment will be on the web by tomorrow night.
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.
23-1 Analysis of Covariance (Chapter 16) A procedure for comparing treatment means that incorporates information on a quantitative explanatory variable,
© Copyright McGraw-Hill CHAPTER 12 Analysis of Variance (ANOVA)
23-1 Multiple Covariates and More Complicated Designs in ANCOVA (§16.4) The simple ANCOVA model discussed earlier with one treatment factor and one covariate.
Two-way ANOVA Introduction to Factorial Designs and their Analysis.
CHAPTER 12 Analysis of Variance Tests
Chapter 10 Analysis of Variance.
Testing Multiple Means and the Analysis of Variance (§8.1, 8.2, 8.6) Situations where comparing more than two means is important. The approach to testing.
The Randomized Complete Block Design
Two-Way Balanced Independent Samples ANOVA Computations.
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 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 =
STA305 week 51 Two-Factor Fixed Effects Model The model usually used for this design includes effects for both factors A and B. In addition, it includes.
The Completely Randomized Design (§8.3)
Orthogonal Linear Contrasts This is a technique for partitioning ANOVA sum of squares into individual degrees of freedom.
Intermediate Applied Statistics STAT 460 Lecture 17, 11/10/2004 Instructor: Aleksandra (Seša) Slavković TA: Wang Yu
Lecture 9-1 Analysis of Variance
1 Analysis of Variance & One Factor Designs Y= DEPENDENT VARIABLE (“yield”) (“response variable”) (“quality indicator”) X = INDEPENDENT VARIABLE (A possibly.
1 Always be contented, be grateful, be understanding and be compassionate.
Chapter 10: Analysis of Variance: Comparing More Than Two Means.
Strip-Plot Designs Sometimes called split-block design For experiments involving factors that are difficult to apply to small plots Three sizes of plots.
Chapter 13 Repeated-Measures and Two-Factor Analysis of Variance
Chapter 11 Analysis of Variance. 11.1: The Completely Randomized Design: One-Way Analysis of Variance vocabulary –completely randomized –groups –factors.
Chapter 4 Analysis of Variance
IE241: Introduction to Design of Experiments. Last term we talked about testing the difference between two independent means. For means from a normal.
Chapter 9 More Complicated Experimental Designs. Randomized Block Design (RBD) t > 2 Treatments (groups) to be compared b Blocks of homogeneous units.
1 Mixed and Random Effects Models 1-way ANOVA - Random Effects Model 1-way ANOVA - Random Effects Model 2-way ANOVA - Mixed Effects Model 2-way ANOVA -
Fixed effects analysis in a Two–way ANOVA. Problem 5.6 Layout.
Designs for Experiments with More Than One Factor When the experimenter is interested in the effect of multiple factors on a response a factorial design.
Chapter 11 Analysis of Variance
Two-Way Analysis of Variance Chapter 11.
Factorial Experiments
CHAPTER 13 Design and Analysis of Single-Factor Experiments:
Applied Business Statistics, 7th ed. by Ken Black
Comparing Three or More Means
Chapter 11 Analysis of Variance
STATISTICS INFORMED DECISIONS USING DATA
Presentation transcript:

22-1 Factorial Treatments (§ 14.3, 14.4, 15.4) Completely randomized designs - One treatment factor at t levels. Randomized block design - One treatment factor at t levels, one block factor at b levels. Latin square design - One treatment factor at t levels, two block factors, each at t levels. Many other blocking structures are available. Check the literature on Experimental Design. Now we move on to the situation where the t treatment levels are defined as combinations of two or more “factors”. Factor – a controlled variable (e.g. temperature, fertilizer type, percent sand in concrete mix). Factors can have several levels (subdivisions).

22-2 Example 1 of Factors What factors (characteristics, conditions) will make a wiring harness for a car last longer? FACTORLevels Number of strands 7 or 9. Length of unsoldered, 0, 3, 6, or 12. uninsulated wire (in 0.01 inches) Diameter of wire (gauge) 24, 22, or 20 A treatment is a specific combination of levels of the three factors. T1 = ( 7 strand, 0.06 in, 22 gauge) Response is the number of stress cycles the harness survives.

22-3 Example 2 of Factors What is the effect of temperature and pressure on the bonding strength of a new adhesive? Factor x 1 : temperature (any value between 30 o F to 100 o F) Factor x 2 : pressure (any value between 1 and 4 kg/cm 2 Factors (temperature, pressure) have continuous levels, Treatments are combinations of factors at specific levels. Response is bonding strength - can be determined for any combination of the two factors. Response surface above the (x 1 by x 2 ) Cartesian surface.

22-4 Other Examples of Factors The effect of added Nitrogen, Phosphorus and Potassium on crop yield. The effect of replications and duration on added physical strength in weight lifting. The effect of age and diet on weight loss achieved. The effect of years of schooling and gender on Math scores. The effect of a contaminant dose and body weight on liver enzyme levels. Since many of the responses we are interested in are affected by multiple factors, it is natural to think of treatments as being constructed as combinations of factor levels.

22-5 One at a Time Approach Consider a Nitrogen and Phosphorus study on crop yield. Suppose two levels of each factor were chosen for study: lbs/acre. One-factor-at-a- time approach: Fix one factor then vary the other TreatmentNPYieldParameter T  1 T  2 T  3 H 0 :  1 -  2 = test of N-effect (20 unit difference observed in response). H 0 :  2 -  3 = test of P-effect (35 unit difference observed in response). If I examined the yield at N=60 and P=20 what would I expect to find? E(Y | N=60,P=20) =     -    =  = 180? E(Y | N=60,P=20) =   +(  1 -  2 )+(  3 -  2 ) = = 180?

22-6 Interaction and Parallel Lines We apply the N=60, P=20 treatment and get the following: TreatmentNPYieldParameter T   T  2 T  3 T  P Yield Expected T4 Observed T4 N=40 N=60 20 T2 T1 T3

22-7 Parallel and Non-Parallel Profiles P N=40 N=60 20 Parallel Lines => the effect of the two factors is additive (independent). Non-Parallel Lines => the effect of the two factors interacts (dependent). The effect of one factor on the response does not remain the same for different levels of the second factor. That is, the factors do not act independently of each other. Without looking at all combinations of both factors, we would not be able to determine if the factors interact.

22-8 Factorial Experiment Factorial Experiment - an experiment in which the response y is observed at all factor level combinations. An experiment is not a design. (e.g. one can perform a factorial experiment in a completely randomized design, or in a randomized complete block design, or in a Latin square design.) Design relates to how the experimental units are arranged, grouped, selected and how treatments are allocated to units. Experiment relates to how the treatments are formed. In a factorial experiment, treatments are formed as combinations of factor levels. (E.g. a fractional factorial experiment uses only a fraction (1/2, 1/3, 1/4, etc.) of all possible factor level combinations.)

22-9 General Data Layout Two Factor (a x b) Factorial Column Factor (B) Row Factor(A)123…b Totals 1T 11 T 12 T 13 …T 1b A 1 2T 21 T 22 T 23 …T 2b A 2 3T 31 T 32 T 33 …T 3b A 3 ………………... aT a1 T a2 T a3 …T ab A a Totals B 1 B 2 B 3 …B b G y ijk = observed response for the k th replicate (k=1,…,n) for the treatment defined by the combination of the i th level of the row factor and the j th level of the column factor.

22-10 Model  ij = mean of the ij th table cell, expected value of the response for the combination for the i th row factor level and the j th column factor level. Overall Test of no treatment differences: H o : all  ij are equal H a : at least two  ij differ Test as in a completely randomized design with a x b treatments.

22-11 Sums of Squares

22-12 After the Overall F test As with any experiment, if the hypothesis of equal cell means is rejected, the next step is to determine where the differences are. In a factorial experiment, there are a number of predefined contrasts (linear comparisons) that are always of interest. Main Effect of Treatment Factor A - Are there differences in the means of the factor A levels (averaged over the levels of factor B). Main Effect of Treatment Factor B - Are there differences in the means of the factor B levels (averaged over the levels of factor A). Interaction Effects of Factor A with Factor B - Are the differences between the levels of factor A the same for all levels of factor B? (or equivalently, are the differences among the levels of factor B the same for all levels of factor A? (Yes  no interaction present; no  interaction is present.)

22-13 Main Effects Column Factor (B) Row Factor(A)123…b 1  11  12  13 …  1b  1  2  21  22  13 …  1b  2  3  31  32  13 …  1b  3  ………………... a  a1  a2  a3 …  ab  a  Totals   1    2    3 …    b    Testing is via a set of linear comparisons. Factor A main effects:

22-14 Testing for Main Effects: Factor A There are a levels of Treatment Factor A. This implies that there are a-1 mutually independent linear contrasts that make up the test for main effects for Treatment Factor A. The Sums of Squares for the main effect for treatment differences among levels of Factor A is computed as the sum of the individual contrast sums of squares for any set of a-1 mutually independent linear comparisons of the a level means. Regardless of the chosen set, this overall main effect sums of squares will always equal the value of SSA below. Reject H 0 if F > F (a-1),ab(n-1), 

22-15 Profile Analysis for Factor A  53 Mean for level 1 of Factor A Mean for level 5 of Factor A Profile for level 2 of Factor B. Profile of mean of Factor A (main effect of A)  11  12  13 11  51  52  5  Factor A Levels     

22-16 Insignificant Main Effect for Factor A  11  12  13 11  51  52  5  Factor A Levels      Is there strong evidence of a Main Effect for Factor A? SSA small (w.r.t. SSE)  No.

22-17 Significant Main Effect for Factor A Factor A Levels      Is there strong evidence of a Main Effect for Factor A? SSA large (w.r.t. SSE)  Yes.

22-18 Main Effect Linear Comparisons - Factor A Column Factor (B) Row Factor(A)12b=3 1  11  12  13  1  2  21  22  13  2  3  31  32  13  3  4  41  42  43  4  a=5  51  52  53  5  Totals   1    2    3    Testing via a set of linear comparisons. Not mutually orthogonal, but together they represent a-1=4 dimensions of comparison.

22-19 Main Effect Linear Comparisons - Factor B Column Factor (B) Row Factor(A)12b=3 1  11  12  13  1  2  21  22  13  2  3  31  32  13  3  4  41  42  43  4  a=5  51  52  53  5  Totals   1     2     3    Testing via a set of linear comparisons. Not mutually orthogonal, but together they represent b-1=2 dimensions of comparison.

22-20 Testing for Main Effects: Factor B There are b levels of Treatment Factor B. This implies that there are b-1 mutually independent linear contrasts that make up the test for main effects for Treatment Factor B. The Sums of Squares for the main effect for treatment differences among levels of Factor B is computed as the sum of the individual contrast sums of squares for any set of b-1 mutually independent linear comparisons of the b level means. Regardless of the chosen set, this overall main effect sums of squares will always equal the value of SSB below. Reject H 0 if F > F (b-1),ab(n-1), 

22-21 Interaction Two Factors, A and B, are said to interact if the difference in mean response for two levels of one factor is not constant across levels of the second factor Factor A Levels Factor A Levels Differences between levels of Factor B do not depend on the level of Factor A. Differences between levels of Factor B do depend on the level of Factor A.

22-22 Interaction Linear Comparisons Interaction is lack of consistency in differences between two levels of Factor B across levels of Factor A Factor A Levels  11  12  13  21  22  23  33  32  31  43  42  41  53  52  51 These four linear comparisons tested simultaneously is equivalent to testing that the profile line for level 1 of B is parallel to the profile line for level 2 of B. Four more similar contrasts would be needed to test the profile line for level 1 of B to that of level 3 of B.

22-23 Model for Interaction Tests for interaction are based on the  ij terms exclusively. If all  ij terms are equal to zero, then there is no interaction.

22-24 Overall Test for Interaction H 0 : No interaction, H A : Interaction exists. TS: RR: F > F (a-1)(b-1),ab(n-1), 

22-25 Partitioning of Total Sums of Squares TSS = SSR + SSE = SSA + SSB + SSAB + SSE ANOVA Table

22-26 Multiple Comparisons in Factorial Experiments Methods are the same as in the one-way classification situation i.e. composition of yardstick. Just need to remember to use: (i) MSE and df error from the SSE entry in AOV table; (ii) n is the number of replicates that go into forming the sample means being compared; (iii) t in Tukey’s HSD method is # of level means being compared. Significant interactions can affect how multiple comparisons are performed. If Main Effects are significant AND Interactions are NOT significant: Use multiple comparisons on factor main effects (factor means). If Interactions ARE significant: 1)Multiple comparisons on main effect level means should NOT be done as they are meaningless. 2)Should instead perform multiple comparisons among all factorial means of interest.

22-27 Two Factor Factorial Example: pesticides and fruit trees (Example 14.6 in Ott & Longnecker, p.896) An experiment was conducted to determine the effect of 4 different pesticides (factor A) on the yield of fruit from 3 different varieties of a citrus tree (factor B). 8 trees from each variety were randomly selected; the 4 pesticides were applied to 2 trees of each variety. Yields (bushels/tree) obtained were: 49, 3950, 5543, 3853, 48 55, 4167, 5853, 4285, 73 66, 6885, 9269, 6285, 99 Pesticide (A) Variety (B) This is a completely randomized 3  4 factorial experiment with factor A at a=4 levels, and factor B at b=3 levels. There are t=3  4=12 treatments, each replicated n=2 times.

22-28 Example in Minitab AByield Stat > ANOVA > Two-way… Two-way ANOVA: yield versus A, B Analysis of Variance for yield Source DF SS MS F P A B Interaction Error Total Interaction not significant; refit additive model: Stat > ANOVA > Two-way > additive model Two-way ANOVA: yield versus A, B Source DF SS MS F P A B Error Total S = R-Sq = 86.58% R-Sq(adj) = 82.86%

22-29 Analyze Main Effects with Tukey’s HSD (MTB) Stat > ANOVA > General Linear Model Use to get factor or profile plots MTB will use t=4 & n=6 to compare A main effects, and t=3 & n=8 to compare B main effects.

22-30 Tukey Analysis of Main Effects (MTB) A = 1 subtracted from: Difference SE of Adjusted A of Means Difference T-Value P-Value A = 2 subtracted from: Difference SE of Adjusted A of Means Difference T-Value P-Value A = 3 subtracted from: Difference SE of Adjusted A of Means Difference T-Value P-Value Summary: A 3 A 1 A 2 A 4 All Pairwise Comparisons among Levels of B B = 1 subtracted from: Difference SE of Adjusted B of Means Difference T-Value P-Value B = 2 subtracted from: Difference SE of Adjusted B of Means Difference T-Value P-Value Summary: B 1 B 2 B 3

22-31 Compare All Level Means with Tukey’s HSD (MTB) MTB will use t=4*3=12 & n=2 to compare all level combinations of A with B. If the interaction had been significant, we would then compare all level means…

22-32 Tukey Comparison of All Level Means (MTB) A = 1, B = 1 subtracted from: Difference SE of Adjusted A B of Means Difference T-Value P-Value etc.... A = 4, B = 2 subtracted from: Difference SE of Adjusted A B of Means Difference T-Value P-Value There are a total of t(t-1)/2=12(11)/2=66 pairwise comparisons here! Note that if we wanted just the comparisons among levels of B (within each level of A), we should use t=3 & n=2. (Not possible in MTB.)

22-33 Example in R ANOVA Table: Model with interaction > fruit <- read.table("fruit.txt",header=T) > fruit.lm <- lm(yield~factor(A)+factor(B)+factor(A)*factor(B),data=fruit) > anova(fruit.lm) Df Sum Sq Mean Sq F value Pr(>F) factor(A) *** factor(B) e-06 *** factor(A):factor(B) Residuals Main Effects: Interaction is not significant so fit additive model > summary(lm(yield~factor(A)+factor(B),data=fruit)) Call: lm(formula = yield ~ factor(A) + factor(B), data = fruit) Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) e-09 *** factor(A) ** factor(A) factor(A) *** factor(B) ** factor(B) e-08 ***

22-34 Profile Plot for the Example (R) Level 3, Factor B Level 2, Factor B Level 1, Factor B Averaging the 2 reps, in each A,B combination gives a typical point on the graph: interaction.plot(fruit$A,fruit$B,fruit$yield)

22-35 Pesticides and Fruit Trees Example in RCBD Layout Suppose now that the two replicates per treatment in the experiment were obtained at different locations (Farm 1, Farm 2). 49, 3950, 5543, 3853, 48 55, 4167, 5853, 4285, 73 66, 6885, 9269, 6285, 99 Pesticide (A) Variety (B) This is now a 3  4 factorial experiment in a randomized complete block design layout with factor A at 4 levels, factor B at 3 levels, and the location (block) factor at 2 levels. (There are still t=3  4=12 treatments.) The analysis would therefore proceed as in a 3-way ANOVA.