Common Design Problems 1.Masking factor effects 2.Uncontrolled factors 3.One-factor-at-a-time testing.

Slides:



Advertisements
Similar presentations
ANOVA TABLE Factorial Experiment Completely Randomized Design.
Advertisements

Chapter 11 Analysis of Variance
ANOVA With More Than One IV. 2-way ANOVA So far, 1-Way ANOVA, but can have 2 or more IVs. IVs aka Factors. Example: Study aids for exam  IV 1: workbook.
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.
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.
Chapter 11 Analysis of Variance
Experimental design and statistical analyses of data
Statistics for Business and Economics
Chapter 3 Analysis of Variance
Statistics for Managers Using Microsoft® Excel 5th Edition
Chapter 11 Multiple Regression.
Chapter 17 Analysis of Variance
Outline Single-factor ANOVA Two-factor ANOVA Three-factor ANOVA
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.
Chapter 14Prepared by Samantha Gaies, M.A.1 Chapter 14: Two-Way ANOVA Let’s begin by reviewing one-way ANOVA. Try this example… Does motivation level affect.
Factorial ANOVA 2 or More IVs. Questions (1)  What are main effects in ANOVA?  What are interactions in ANOVA? How do you know you have an interaction?
Statistics for Business and Economics Chapter 8 Design of Experiments and Analysis of Variance.
QNT 531 Advanced Problems in Statistics and Research Methods
Analysis of Variance or ANOVA. In ANOVA, we are interested in comparing the means of different populations (usually more than 2 populations). Since this.
INFERENTIAL STATISTICS: Analysis Of Variance ANOVA
© 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.
Factorial Design of Experiments Kevin Leyton-Brown.
Factorial Experiments Analysis of Variance (ANOVA) Experimental Design.
Two-way ANOVA Introduction to Factorial Designs and their Analysis.
CHAPTER 12 Analysis of Variance Tests
Chapter 11 Multifactor Analysis of Variance.
TOPIC 11 Analysis of Variance. Draw Sample Populations μ 1 = μ 2 = μ 3 = μ 4 = ….. μ n Evidence to accept/reject our claim Sample mean each group, grand.
Testing Hypotheses about Differences among Several Means.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 10-1 Chapter 10 Analysis of Variance Statistics for Managers Using Microsoft.
INTRODUCTION TO ANALYSIS OF VARIANCE (ANOVA). COURSE CONTENT WHAT IS ANOVA DIFFERENT TYPES OF ANOVA ANOVA THEORY WORKED EXAMPLE IN EXCEL –GENERATING THE.
IE341 Midterm. 1. The effects of a 2 x 2 fixed effects factorial design are: A effect = 20 B effect = 10 AB effect = 16 = 35 (a) Write the fitted regression.
Design Of Experiments With Several Factors
Lecture 9-1 Analysis of Variance
Chapter 14 Repeated Measures and Two Factor Analysis of Variance
Chapter 10: Analysis of Variance: Comparing More Than Two Means.
Supplementary PPT File for More detail explanation on SPSS Anova Results PY Cheng Nov., 2015.
1 Overview of Experimental Design. 2 3 Examples of Experimental Designs.
Copyright © Cengage Learning. All rights reserved. 12 Analysis of Variance.
Chapter 13 Repeated-Measures and Two-Factor Analysis of Variance
Two-Way (Independent) ANOVA. PSYC 6130A, PROF. J. ELDER 2 Two-Way ANOVA “Two-Way” means groups are defined by 2 independent variables. These IVs are typically.
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.
Copyright © Cengage Learning. All rights reserved. 11 Multifactor Analysis of Variance.
Copyright © Cengage Learning. All rights reserved. 11 Multifactor Analysis of Variance.
The Mixed Effects Model - Introduction In many situations, one of the factors of interest will have its levels chosen because they are of specific interest.
ANOVA TABLE Factorial Experiment Completely Randomized Design.
ANOVA Overview of Major Designs. Between or Within Subjects Between-subjects (completely randomized) designs –Subjects are nested within treatment conditions.
Factorial Experiments Analysis of Variance Experimental Design.
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 Experimental Statistics - week 8 Chapter 17: Mixed Models Chapter 18: Repeated Measures.
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 3 Analysis of Variance (ANOVA) PART 3 = TWO-WAY ANOVA WITH REPLICATION (FACTORIAL EXPERIMENT)
Chapter 11 Analysis of Variance
Statistics for Managers Using Microsoft Excel 3rd Edition
Two-Way Analysis of Variance Chapter 11.
Factorial Experiments
Applied Business Statistics, 7th ed. by Ken Black
Chapter 10: Analysis of Variance: Comparing More Than Two Means
Chapter 11 Analysis of Variance
Factorial Experiments
Factorial ANOVA 2 or More IVs.
One way Analysis of Variance (ANOVA)
Presentation transcript:

Common Design Problems 1.Masking factor effects 2.Uncontrolled factors 3.One-factor-at-a-time testing

Masking factor effects if variation in test results is on the same order of magnitude as the factor effects, the latter may go undetected. if variation in test results is on the same order of magnitude as the factor effects, the latter may go undetected. This can be addressed through appropriate choice of sample size. This can be addressed through appropriate choice of sample size. unmeasured covariates (e.g., the effect of time passing, as an instrument degrades) can also lead to variation that masks factor effects unmeasured covariates (e.g., the effect of time passing, as an instrument degrades) can also lead to variation that masks factor effects

Uncontrolled factors it’s pretty obvious that all variables of interest should be included as factors it’s pretty obvious that all variables of interest should be included as factors sometimes, though, it can be tricky to choose the appropriate level of model granularity. sometimes, though, it can be tricky to choose the appropriate level of model granularity. Sometimes a “high-level feature” (i.e., some function of the levels of many factors) could be chosen in place of the many factors that influence it Sometimes a “high-level feature” (i.e., some function of the levels of many factors) could be chosen in place of the many factors that influence it this can make it difficult to vary the factor appropriately, and can limit analysis of the experimental results. this can make it difficult to vary the factor appropriately, and can limit analysis of the experimental results.

it can be tempting to vary each factor value independently, holding the others constant. However, this does not explore the factor space very effectively. it can be tempting to vary each factor value independently, holding the others constant. However, this does not explore the factor space very effectively. It would be a terrible local search strategy! It would be a terrible local search strategy! Looking at the same point in another way, it neglects the possibility that interactions between factors could be important Looking at the same point in another way, it neglects the possibility that interactions between factors could be important One-factor-at-a-time testing

Factorial Design

Definition A Study design in which responses are measured at different combinations of level of one or more experimental factors A Study design in which responses are measured at different combinations of level of one or more experimental factors A study design in which treatment consists of two or more factors or independent A study design in which treatment consists of two or more factors or independent variables A Study in which ll combinations of levels of two or more independent variables (factors) are measured A Study design when the combined effects of two or more factors are investigated concurrently A Study design when the combined effects of two or more factors are investigated concurrently Two or more ANOVA factors are combined in a single study Two or more ANOVA factors are combined in a single study

Factors A variable upon which the experimenter believes that one or more response variables may depend, and which the experimenter can control A variable upon which the experimenter believes that one or more response variables may depend, and which the experimenter can control the design of the experiment will largely consist of a policy for determining how to set the factors in each experimental trial the design of the experiment will largely consist of a policy for determining how to set the factors in each experimental trial They are denoted as capital letters They are denoted as capital letters Possible values of a factor are called levels. Possible values of a factor are called levels. in other literature, the word “version” is used for a qualitative (not quantitative) level in other literature, the word “version” is used for a qualitative (not quantitative) level They are denoted as lowercase level They are denoted as lowercase level

Treatments They represent a particular combination of factors level They are denoted by the same combination of the lowercase letters that represent the corresponding levels With 3 factors A, B, C, the treatment corresponding to the combination of level a 1 of A, b 3 of B, and C 2 of C is denoted by a 1 b 3 c 2

Complete Factorial Experiment An experiment in which responses are measured at all combination of levels of the factors A complete factorial experiment in which there are a levels of A, b levels of factor B and so on is called a x b x … factorial experiment Total number of treatments in an a x b x c … complete factorial experiment is t = abc…

The Use of Factorial Design Identify factors with significant effects on the response Identify factors with significant effects on the response Identify interactions among factors Identify interactions among factors Identify which factors have the most important effects on the response Identify which factors have the most important effects on the response Decide whether further investigation of a factor’s effect is justified Decide whether further investigation of a factor’s effect is justified Investigate the functional dependence of a response on multiple factors simultaneously (if and only if you test many levels of each factor) Investigate the functional dependence of a response on multiple factors simultaneously (if and only if you test many levels of each factor)

Advantages of Factorial Designs 1. 1.Saves Time & Effort e.g., Could Use Separate Completely Randomized Designs for Each Variable 2.Controls Confounding Effects by Putting Other Variables into Model 3.Can Explore Interaction Between Variables

Advantages of Factorial Designs 1. 1.Saves Time & Effort e.g., Could Use Separate Completely Randomized Designs for Each Variable 2.Controls Confounding Effects by Putting Other Variables into Model 3.Can Explore Interaction Between Variables

ANOVA Null Hypotheses 1.No Difference in Means Due to Factor A H 0 :  1.. =  2.. =... =  a.. 2.No Difference in Means Due to Factor B H 0 : .1. = .2. =... = .b. 3.No Interaction of Factors A & B H 0 : AB ij = 0

Total Variation ANOVA Total Variation Partitioning Variation Due to Treatment Variation Due to Random Sampling Variation Due to Interaction SSE SS (Treatment) SS(AB) SS(Total) Variation Due to Factor B SSB Variation Due to Factor A SSA

Factorial Patterns Simple Effect Simple Effect the effect of one factor on only one level of another factor the effect of one factor on only one level of another factor Effect of changing the level of one factor while holding the level of the other factor fixed Effect of changing the level of one factor while holding the level of the other factor fixed If the simple effects differ, there is an interaction

Factorial Patterns Main Effect Main Effect Effect of variation in a single variable, averaged across all levels of all other variables Effect of variation in a single variable, averaged across all levels of all other variables An outcome that is a consistent difference between levels of a factor. An outcome that is a consistent difference between levels of a factor. Main Effect of One variable, no effect of the other Main Effect of One variable, no effect of the other Main Effect of All Variables Main Effect of All Variables

Factorial Patterns Interaction Interaction   Effect of variation in a single variable depends on the specific levels of at least one other variable   It exists when differences on one factor depend on the level you are on another factor   The effects of one factor change depending on the level of another factor  The effect of one factor depends on the level of the other factor

Interaction effect How do we know if there is an interaction in a factorial design? How do we know if there is an interaction in a factorial design?  Statistical analysis will report all main effects and interactions.  If you can not talk about effect on one factor without mentioning the other factor  Spot an interaction in the graphs – whenever there are lines that are not parallel there is an interaction present!

Interaction Effect 1.Occurs When Effects of One Factor Vary According to Levels of Other Factor 2.When Significant, Interpretation of Main Effects (A & B) Is Complicated 3.Can Be Detected In Data Table, Pattern of Cell Means in One Row Differs From Another Row In Graph of Cell Means, Lines Cross

Interaction Effect Diverging trends, from little difference to larger difference Diverging trends, from little difference to larger difference Converging trends, from large difference to smaller difference. Converging trends, from large difference to smaller difference. Cross-over interactions, with decrease in one variable while the other stays constant or increases. Cross-over interactions, with decrease in one variable while the other stays constant or increases.

Interaction effect: Interaction effect: difference in magnitude of response

Interaction effect: Interaction effect: difference in direction of response

Graphs of Interaction Effects of Motivation (High or Low) & Training Method (A, B, C) on Mean Learning Time InteractionNo Interaction Average Response ABC High Low Average Response ABC High Low

Assumption of Factorial Design Interval/ratio data Normal distribution or N at least 30 Independent observations Homogeneity of variance Proportional or equal cell sizes

Strategy for factorial analysis 1. 1.A test is performed to see if there is an interaction between the factors 2. 2.If statistically significant interaction is indicated, the simple effect of the factors are examined separately 3. 3.If there is no demonstrable interaction, then inferences are made about each of the main effect

Test first the higher order interactions. If an interaction is present there is no need to test lower order interactions or main effects involving those factors. All factors in the interaction affect the response and they interact The testing continues with for lower order interactions and main effects for factors which have not yet been determined to affect the response. Statistical test in factorial experiment

2-way ANOVA Example: Study aids for exam Example: Study aids for exam A: workbook or not A: workbook or not B: 1 cup of coffee or not B: 1 cup of coffee or not Workbook (Factor A) Caffeine (Factor B) NoYes Yes Caffeine only Both No Neither (Control) Workbook only

Effects of Study Aids for Exams N=30 per cell Workbook (Factor A) Row Means Caffeine (Factor B) No (a1) Yes (a2) Yes (b1) Caffee =80 =80Both =85 = No (b2) Control =75 =75Book =80 = Col Means

Factorial patterns Simple Effect Simple Effect Simple effect of workbook factor at no caffeine (μ[Ab1]) μ[Ab1]= 85 – 80= 5 Simple effect of workbook factor at with caffeine (μ[Ab2]) μ[Ab2]= 80 – 75= 5 Simple effect of caffeine factor at no workbook (μ[a1B]) μ[a1B]= 75 – 80= - 5 Simple effect of caffeine factor at with workbook (μ[a2B]) μ[a2B]= 80 – 85= - 5

Factorial patterns Main Effect Main Effect The average of two simple effects 1. Main effect of factor A (μ[A]) μ[A]= {μ[Ab1]+ μ[Ab2]}/2 = ( 5 + 5)/2= 5 = ( 5 + 5)/2= 5 2. Main effect of factor B ((μ[B]) μ[B]= {μ[a1B]+ μ[a2B]}/2 = { -5 +(-5)}/2= - 5 = { -5 +(-5)}/2= - 5

Factorial patterns Interaction effect (μ[AB]) Interaction effect (μ[AB]) μ[AB]= {μ[Ab1] - μ[Ab2]}/2 = ( 5 - 5)/2= 0 = ( 5 - 5)/2= 0 μ[BA]= {μ[a1B]- μ[a2B]}/2 = { -5 -(-5)}/2= 0 = { -5 -(-5)}/2= 0 No Interaction between Factor Caffeine (B) and workbook (A)

Main Effects and Interactions Main effects seen by row and column means; Slopes and breaks. Interactions seen by lack of parallel lines.

Single Main Effect for B (Coffee only)

Single Main Effect for A (Workbook only)

Two Main Effects; Both A & B Both workbook and coffee

Interaction (1) Interactions take many forms; all show lack of parallel lines. Coffee has no effect without the workbook.

Interaction (2) People with workbook do better without coffee; people without workbook do better with coffee.

Interaction (3) Coffee always helps, but it helps more if you use workbook.

Factorial designs Factor B Factor A b1b1b1b1 b2b2b2b2 b3b3b3b3 b4b4b4b4Average a1a1a1a1 y 11 y 12 y 13 y 14 a2a2a2a2 y 21 y 22 y 23 y 24 a3a3a3a3 y 31 y 32 y 33 y 34 Average Effect of A Effect of B No interaction between A and B

Factorial experiment with no interaction

Factorial experiment with interaction

Factorial designs Factor B Factor A b1b1 b2b2 b3b3 b4b4 Average A1A1 y 11 y 12 y 13 y 14 A2A2A2A2 y 21 y 22 y 23 y 24 A3A3 y 31 y 32 y 33 y 34 Average Effect of AEffect of B Interactions between A and B

Source Degrees of freedom Factor A Factor B Interactions between A and B Residuals a-1 = 2 b - 1 = 3 (a-1)(b-1) = 6 Ab- 1- (a-1) – (b-1)- (a-1)(b-1) = 0 Total ab-1 = 11 ab-1 = 11 with interaction, but without replication Two-way factorial design with interaction, but without replication A= 3B= 4

Source Degrees of freedom Factor A Factor B Residuals a-1 = 2 b - 1 = 3 (a-1) (b-1) = 6 Total ab - 1= 11 Two-way factorial design without replication Without replication it is necessary to assume no interaction between factors!

SourceDegrees of freedom Factor A Factor B Interactions between A and B Residuals a-1 = 2 b – 1 = 3 (a-1)(b-1) = 6 ab( r-1) = 12 Totalrab – 1 = 23 Two-way factorial design with interaction (r = 2) A= 3B= 4 r= 2

Linear Models for factorial Experiments Single Factor: A – a levels y ij =  +  i +  ij i = 1,2,...,a; j = 1,2,...,r Random error – Normal, mean 0, standard-deviation  Overall meanEffect on y of factor A when A = i

y 11 y 12 y 13 y 1n y 21 y 22 y 23 y 2n y 31 y 32 y 33 y 3n y a1 y a2 y a3 y an Levels of A 123 a observations Normal distribution Mean of observations 11 22 33 aa  +  1  +  2  +  3  +  a Definitions

Two Factor: A (a levels), B (b levels y ijk =  +  i +  j + (  ) ij +  ijk i = 1,2,...,a ; j = 1,2,...,b ; k = 1,2,...,r i = 1,2,...,a ; j = 1,2,...,b ; k = 1,2,...,r Overall mean Main effect of AMain effect of B Interaction effect of A and B

Table of Effects Overall mean, Main, Interaction Effects

Linear Model of factorial design (2 factors)  = population mean for populations of all subjects, (grand mean), α j = effect of group j in factor A (Greek letter alpha), β k = effect of group j in factor B (Greek letter beta), αβ j k = effect of the combination of group j in factor A and group k in factor B, factor B, e ijk = individual subject k’s variation not accounted for by any of the effects above effects above

SourceDegrees of freedom Factor A Factor B Interactions between A and B Residuals a-1 b - 1 (a-1)(b-1) ab( r-1) Totalrab - 1 Two-way factorial design with replications

Analysis of Variance (ANOVA) Table Entries (Two factors – A and B)

Example: Factorial Design Effects of fatigue and alcohol consumption on driving performance Fatigue   Rested (8 hrs sleep then awake 4 hrs)   Fatigued (24 hrs no sleep) Alcohol consumption   None (control)   2 beers   Blood alcohol.08 % Indicator Variable: Performance errors on closed driving course rated by driving instructor.

Experimental Research Data Alcohol (Factor A) Orthogonal design; n=2 Fatigue (Factor B) None (J=1) 2 beers (J=2).08 % (J=3) Tired(K=1) Rested(K=2)

Factorial Example Results Main Effects? Interactions? Both main effects and the interaction appear significant

Data A (Alcohol consumption) B (fatiged) CellPerson Driving error Mean10

Person Mean Different (D)= X ij -μ D² Total728 SS total

SS Error PersonCell Driving error Treatment mean ε ij ε²ε²ε²ε² Total012

SS A – Effects of Alcohol Personμ Level (A) μAμAμAμA αjαjαjαj α²j Total0512

SS B – Effects of Fatigue PersonμLevel (B) μBμB βkβkβk²βk² Total108

Summary Table SourceSS Total728 Among716 A512 B108 Within12 Check: SSTotal=SSWithin+SSAmong 728 = SSInteraction = SSAmong – (SSA+SSB). SSInteraction = 716-( ) = 96.SourceSSdfMSFA B AxB Error1262

Random Effects and Fixed Effects Factors

FIXED VS. RANDOM Fixed Factor: only the levels of interest are selected for the factor, and there is no intent to generalize to other levels all population levels are present in the design (eg. Gender, treatment condition, ethnicity, size of community) Random Factor: the levels are selected at random from the possible levels, and there is an intent to generalize to other levels the levels present in the design are a sample of the population to be generalized to (eg. Classrooms, subjects, teacher, school district, clinic)

Example - Fixed Effects Source of Protein, Level of Protein, Weight Gain Dependent Weight Gain Weight GainIndependent Source of Protein, Source of Protein, Beef Beef Cereal Cereal Pork Pork Level of Protein, Level of Protein, High High Low Low

Example - Random Effects In this Example a Taxi company is interested in comparing the effects of three brands of tires (A, B and C) on mileage (mpg). Mileage will also be effected by driver. The company selects b = 4 drivers at random from its collection of drivers. Each driver has n = 3 opportunities to use each brand of tire in which mileage is measured. Dependent Mileage MileageIndependent Tire brand (A, B, C), Tire brand (A, B, C), Fixed Effect Factor Fixed Effect Factor Driver (1, 2, 3, 4), Driver (1, 2, 3, 4), Random Effects factor Random Effects factor

The Model for the fixed effects experiment where ,  1,  2,  3,  1,  2, (  ) 11, (  ) 21, (  ) 31, (  ) 12, (  ) 22, (  ) 32, are fixed unknown constants And  ijk is random, normally distributed with mean 0 and variance  2. Note:

The Model for the case when factor B is a random effects factor where ,  1,  2,  3, are fixed unknown constants And  ijk is random, normally distributed with mean 0 and variance  2.  j is normal with mean 0 and variance  j is normal with mean 0 and varianceand (  ) ij is normal with mean 0 and variance Note: This model is called a variance components model

1.The EMS for Error is  2. 2.The EMS for each ANOVA term contains two or more terms the first of which is  2. 3.All other terms in each EMS contain both coefficients and subscripts (the total number of letters being one more than the number of factors) 4.  2 in the last term of each EMS is the same as the treatment designation. 4.The subscript of  2 in the last term of each EMS is the same as the treatment designation. Rules for determining Expected Mean Squares (EMS) in an Anova Table

EXPECTED MEAN SQUARES E(MS) expected average value for a mean square computed in an ANOVA based on sampling theory Two conditions: null hypothesis E(MS) and alternative hypothesis E(MS) null hypothesis condition gives us the basis to test the alternative hypothesis contribution (effect of factor or interaction)

EXPECTED MEAN SQUARES → 1 Factor design: Source E(MS) Treatment A  2 e + n  2 A error  2 e (sampling variation) Thus F=MS(A)/MS(e) tests to see if Treatment A adds variation to what might be expected from usual sampling variability of subjects. If the F is large,  2 A  0.

EXPECTED MEAN SQUARES → Factorial design (AxB): Source E(MS) Treatment A  2 e + (1-b/B)n  2 AB + nb  2 A error  2 e (sampling variation) Thus F=MS(A)/MS(e) does not test to see if Treatment A adds variation to what might be expected from usual sampling variability of subjects unless b=B or  2 AB = 0. If b (number of levels in study) = B (number in the population, factor is FIXED; else RANDOM

EXPECTED MEAN SQUARES → Factorial design (AxB): Source E(MS) Treatment A  2 e + (1-b/B)n  2 AB + nb  2 A AxB  2 e + (1-b/B)n  2 AB AxB  2 e + (1-b/B)n  2 AB error  2 e (sampling variation) If  2 AB = 0, and B is random, then F = MS(A) / MS(AB) gives the correct test of the A effect.

EXPECTED MEAN SQUARES → Factorial design (AxB): Source E(MS) Treatment A  2 e + (1-b/B)n  2 AB + nb  2 A AB  2 e + (1-b/B)n  2 AB AB  2 e + (1-b/B)n  2 AB error  2 e (sampling variation) If instead we test F = MS(AB)/MS(e) and it is non significant, then  2 AB = 0 and it can be tested F = MS(A) / MS(e) F = MS(A) / MS(e) *** More power since df= a-1, df(error) instead of df = a-1, (a-1)*(b-1)

SourcedfExpected mean square A (fixed)I-1  2 e + n  2 AB + nJ  2 A B (random)J-1  2 e + nI  2 B AB (I-1)(J-1)  2 e + n  2 AB error N-IJK  2 e Table 10.5: Expected mean square table for I x J mixed model factorial design

Mixed and Random Design Tests General principle: look for denominator E(MS) with same form as numerator E(MS) without the effect of interest: General principle: look for denominator E(MS) with same form as numerator E(MS) without the effect of interest: F =  2 effect + other variances /other variances F =  2 effect + other variances /other variances Try to eliminate interactions not important to the study, test with MS(error) if possible Try to eliminate interactions not important to the study, test with MS(error) if possible

The Anova table for the two factor model SourceSSdfMSA SS A a -1 SS A /(a – 1) B SS A b - 1 SS B /(a – 1) AB SS AB (a -1)(b -1) SS AB /(a – 1) (a – 1) Error SS Error ab(n – 1) SS Error /ab(n – 1)

The Anova table for the two factor model (A, B – fixed) SourceSSdfMSEMSFA SS A a -1 MS A MS A /MS Error B SS A b - 1 MS B MS B /MS Error AB SS AB (a -1)(b -1) MS AB MS AB /MS Error Error SS Error ab(n – 1) MS Error EMS = Expected Mean Square

The Anova table for the two factor model (A – fixed, B - random) SourceSSDfMSEMSFA SS A a -1 MS A MS A /MS AB B SS A b - 1 MS B MS B /MS Error AB SS AB (a -1)(b -1) MS AB MS AB /MS Error Error SS Error ab(n – 1) MS Error Note: The divisor for testing the main effects of A is no longer MS Error but MS AB.

Factor BFactor C Three-way factorial design Factor A 10 Main effects 31 Two-way interactions 30 Three-way interactions

Three Factor: A (a levels), B (b levels), C (c levels) y ijkl =  +  i +  j +  ij +  k + (  ) ik + (  ) jk +  ijk +  ijkl =  +  i +  j +  k +  ij + (  ik + (  jk +  ijk +  ijkl i = 1,2,...,a ; j = 1,2,...,b ; k = 1,2,...,c; l = 1,2,...,r Main effects Two factor Interactions Three factor Interaction Random error

 ijk = the mean of y when A = i, B = j, C = k =  +  i +  j +  k +  ij + (  ik + (  jk +  ijk i = 1,2,...,a ; j = 1,2,...,b ; k = 1,2,...,c; l = 1,2,...,r Main effects Two factor Interactions Three factor Interaction Overall mean

Anova table for 3 factor Experiment SourceSSdfMSF p -value A SS A a - 1 MS A MS A /MS Error B SS B b - 1 MS B MS B /MS Error C SS C c - 1 MS C MS C /MS Error AB SS AB (a - 1)(b - 1) MS AB MS AB /MS Error AC SS AC (a - 1)(c - 1) MS AC MS AC /MS Error BC SS BC (b - 1)(c - 1) MS BC MS BC /MS Error ABC SS ABC (a - 1)(b - 1)(c - 1) MS ABC MS ABC /MS Error Error SS Error abc(r - 1) MS Error

Sum of squares entries Similar expressions for SS B, and SS C. Similar expressions for SS BC, and SS AC.

Sum of squares entries Finally

Analysis of Variance (ANOVA) Table Entries ( 3 factors – A, B and C)

The statistical model for 3 factor Experiment

SourceDegrees of freedom Factor A Factor B Factor C Interactions between A and B Interactions between A and C Interactions between B and C Interactions between A, B and C Residuals a-1 = 2 b – 1 = 5 c-1 = 3 (a-1)(b-1) = 10 (a-1)(c-1) = 6 (b-1)(c-1) = 15 (a-1)(b-1)(c-1) = 30 abc( r -1) = 72 Totaln = rabc - 1= 143 Three-way factorial design

Four Factorial Design

Four Factor: y ijklm =  +   +  j + (  ) ij +  k + (  ) ik + (  ) jk + (  ) ijk +  l + (  ) il + (  ) jl + (  ) ijl + (  ) kl + (  ) ikl + (  ) jkl + (  ) ijkl +  ijklm =  =  +  i +  j +  k +  l + (  ) ij + (  ) ik + (  ) jk + (  ) il + (  ) jl + (  ) kl +(  ) ijk + (  ) ijl + (  ) ikl + (  ) jkl + (  ) ijkl +  ijklm i = 1,2,...,a ; j = 1,2,...,b ; k = 1,2,...,c; l = 1,2,...,d; m = 1,2,...,r where0 =  i =  j =  (  ) ij   k =  (  ) ik =  (  ) jk =  (  ) ijk =   l =  (  ) il =  (  ) jl =  (  ) ijl =  (  ) kl =  (  ) ikl =  (  ) jkl =  (  ) ijkl and  denotes the summation over any of the subscripts. and  denotes the summation over any of the subscripts. Main effects Two factor Interactions Three factor Interactions Overall mean Four factor InteractionRandom error

Estimation of Main Effects and Interactions Estimator of Main effect of a Factor Estimator of Main effect of a Factor Estimator of k-factor interaction effect at a combination of levels of the k factors = Mean at level i of the factor - Overall Mean

Example: The main effect of factor B at level j in a four factor (A,B,C and D) experiment is estimated by: The main effect of factor B at level j in a four factor (A,B,C and D) experiment is estimated by: The two-factor interaction effect between factors B and C when B is at level j and C is at level k is estimated by:

The three-factor interaction effect between factors B, C and D when B is at level j, C is at level k and D is at level l is estimated by: The three-factor interaction effect between factors B, C and D when B is at level j, C is at level k and D is at level l is estimated by: Finally the four-factor interaction effect between factors A,B, C and when A is at level i, B is at level j, C is at level k and D is at level l is estimated by:

The Completely Randomized Design is called balanced If the number of observations per treatment combination is unequal the design is called unbalanced. If for some of the treatment combinations there are no observations the design is called incomplete. Remarks

Why should more than two levels of a factor be used in a factorial design?

Two-levels of a factor

factor qualitative Three-levels factor qualitative Low Medium High

Three-levels factor quantitative

Why should not many levels of each factor be used in a factorial design?

Because each level of each factor increases the number of experimental units to be used For example, a five factor experiment with four levels per factor yields 4 5 = 1024 different combinations If not all combinations are applied in an experiment, the design is partially factorial

Full and fractional factorial design Full factorial design Full factorial design Study all combinations Study all combinations Can find effect of all factors Can find effect of all factors Fractional (incomplete) factorial design Fractional (incomplete) factorial design Leave some treatment groups empty Leave some treatment groups empty Less information Less information May not get all interactions May not get all interactions No problem if interaction is negligible No problem if interaction is negligible

Fractional factorial design Large number of factors Large number of factors Large number of experiments Large number of experiments Full factorial design too expensive Full factorial design too expensive Use a fractional factorial design Use a fractional factorial design 2 k-p design allows analyzing k factors with only 2 k-p experiments. 2 k-p design allows analyzing k factors with only 2 k-p experiments. 2 k-1 design requires only half as many experiments 2 k-1 design requires only half as many experiments 2 k-2 design requires only one quarter of the experiments 2 k-2 design requires only one quarter of the experiments