SJS SDI_81 Design of Statistical Investigations Stephen Senn 8 Factorial Designs.

Slides:



Advertisements
Similar presentations
Information Technology The modern organisation in the digital economy Week 8 Evening Session By: Dr. Alan Mustafa
Advertisements

Ch. 5b Linear Models & Matrix Algebra
Analysis by design Statistics is involved in the analysis of data generated from an experiment. It is essential to spend time and effort in advance to.
SJS SDI_71 Design of Statistical Investigations Stephen Senn 7. Orthogonal Designs Two (plus) Blocking Factors.
SJS SDI_101 Design of Statistical Investigations Stephen Senn 10 Random Effects.
SJS SDI_31 Design of Statistical Investigations Stephen Senn 3. Design of Experiments 1 Some Basic Ideas.
SJS SDI_111 Design of Statistical Investigations Stephen Senn 11 Nested Factors.
SJS SDI_51 Design of Statistical Investigations Stephen Senn 5. Orthogonal Designs Randomised Blocks.
SJS SDI_21 Design of Statistical Investigations Stephen Senn 2 Background Stats.
Rae §2.1, B&J §3.1, B&M § An equation for the matter waves: the time-dependent Schrődinger equation*** Classical wave equation (in one dimension):
Session 81 Comparative Emergency Management Session 8 Slide Deck.
God’s Spirit Is In My Heart
9/19/2013PHY 113 C Fall Lecture 81 PHY 113 C General Physics I 11 AM-12:15 PM MWF Olin 101 Plan for Lecture 8: Chapter 8 -- Conservation of energy.

Structural Barriers to Disaster Resilience: Social Class II Session 8.
NSF North Mississippi GK-81 The Electromagnetic Spectrum Different wavelengths of EM waves. These wavelengths of light and others make up a spectrum.
AVL Trees CSE 373 Data Structures Lecture 8. 12/26/03AVL Trees - Lecture 82 Readings Reading ›Section 4.4,
BPS - 5th Ed. Chapter 81 Producing Data: Sampling.
Parallel Coordinates Representation of multi-dimensional data Discovery Process xmdv Visualization Tool Ganesh K. Panchanathan Christa M. Chewar.
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
i) Two way ANOVA without replication
Introduction to One way and Two Way analysis of Variance......
Chapter 16.  The time taken for the disappearance of the reactant or the appearance of the product. Rate is a ratio as the amount of reactant disappeared.
Section 2.8—Speeding Up A Reaction
Chapter 7 Blocking and Confounding in the 2k Factorial Design
Stat Today: Greco-Latin Squares, some examples Assignment 2: –2.8, –2.15 (2-way ANOVA only) –2.16 –2.20 (use only transformations discussed in class)
1 Chapter 7 Blocking and Confounding in the 2 k Factorial Design.
Identify and Investigate the role of enzymes.
Introduction to the design (and analysis) of experiments James M. Curran Department of Statistics, University of Auckland
Some Notes on the Design and Analysis of Experiments.
Statistical Techniques I EXST7005 Factorial Treatments & Interactions.
Experimental Design Tutorial Presented By Michael W. Totaro Wireless Research Group Center for Advanced Computer Studies University of Louisiana at Lafayette.
MANOVA Multivariate Analysis of Variance. One way Analysis of Variance (ANOVA) Comparing k Populations.
Types of Reactions and Reaction Rates
Dr. Gary Blau, Sean HanMonday, Aug 13, 2007 Statistical Design of Experiments SECTION IV FACTORIAL EXPERIMENTATION.
Chemical Reactions. Signs of a Chemical Change 1. Heat and/or light is given off 2. A gas is produced (often seen as bubbles) 3.A precipitate is formed.
Design of Engineering Experiments Part 5 – The 2k Factorial Design
14-1 Introduction An experiment is a test or series of tests. The design of an experiment plays a major role in the eventual solution of the problem.
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.
ANALYSIS OF VARIANCE (ANOVA) BCT 2053 CHAPTER 5. CONTENT 5.1 Introduction to ANOVA 5.2 One-Way ANOVA 5.3 Two-Way ANOVA.
CHAPTER 4 Analysis of Variance One-way ANOVA
The Essentials of 2-Level Design of Experiments Part I: The Essentials of Full Factorial Designs The Essentials of 2-Level Design of Experiments Part I:
1 Simulation Scenarios. 2 Computer Based Experiments Systematically planning and conducting scientific studies that change experimental variables together.
© Use your knowledge about chemical reactions to answer the questions. 1.
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.
CHEMICAL REACTIONS CHAPTER 11. WHAT ARE THE PARTS OF A CHEMICAL REACTION? 1.REACTANTS 2.PRODUCTS 3.  YIELD; SEPARATES THE REACTANTS FROM THE PRODUCTS.
Chemical Reactions Factors that affect Reaction Rates.
Engineering Statistics Design of Engineering Experiments.
Diploma in Statistics Design and Analysis of Experiments Lecture 2.21 © 2010 Michael Stuart Design and Analysis of Experiments Lecture Review of.
i) Two way ANOVA without replication
Chemical Reactions and Collision Theory
Chapter 7 Blocking and Confounding in the 2k Factorial Design
Confounding the 2k Factorial Design in Four Blocks
C5 Monitoring and Controlling Chemical Reactions
Identify and Investigate the role of enzymes.
Analysis of Variance (ANOVA)
What things affect the rate of reactions?
Controlling Reactions
ENM 310 Design of Experiments and Regression Analysis Chapter 3
Chemical Reactions and Collision Theory
Identify and Investigate the role of enzymes.
Introduction to the design (and analysis) of experiments
DESIGN OF EXPERIMENTS by R. C. Baker
Chemical Reactions and Collision Theory
Analysis of Variance (ANOVA)
14 Design of Experiments with Several Factors CHAPTER OUTLINE
FACTORIAL EXPERIMENTATION JMP EXAMPLE
This is an endothermic reaction
DOE Terminologies IE-432.
Presentation transcript:

SJS SDI_81 Design of Statistical Investigations Stephen Senn 8 Factorial Designs

SJS SDI_82 Introduction So far we have been looking at complications with blocking structure However, we now introduce complications in treatment structure We now look at factorial designs These are designs in which there are two or more dimensions to the treatments

SJS SDI_83 Exp_8 (From Clarke and Kempson) The yield of a chemical reaction is presumed to depend on two things A: The amount (low or high) in the mixture of a certain chemical B: The presence or absence of a catalyst An experiment is run to determine the importance of these in affecting yield.

SJS SDI_84 Treatments in Terms of Factors

SJS SDI_85 Terminology A and B are factors low and high are levels of the factor A absence and presence are levels of the factor B An experiment studying combinations of factors is called a factorial experiment If all four combinations are studied, then this is a 2 x 2 or 2 2 factorial.

SJS SDI_86 Usual Notation for 2 2 Factorials A and B are the factors a and b are the higher levels ab = the combination of both factors at higher level a = A at higher level B at lower level b = A at lower level B at higher level (1) = both factors at lower level

SJS SDI_87 Main Effects and Interactions The Main Effect of a factor is the average response (averaged over all levels of the other factors) to a change in the level of that factor. Thus the main effect of A is the average of the difference between a and (1) and the difference between ab and b. The interaction between two factors A and B is the difference between the effect of A at the higher level of B (ab - b) and the difference at the lower level of B (a- (1)). Sometimes, by convention, this double difference is divided by 2.

SJS SDI_ Factorials Definition of Effects

SJS SDI_89 Exp_9 (Clarke and Kempson) Factor S: source of supply of a particular material –Two sources s when first is used Factor M: the speed of running a machine –Two speeds m whenever higher is used Experiment run on five days Response: Average number of defectives per batch

SJS SDI_810 Exp_9 (Clarke and Kempson) The days determine the block structure of the experiment The treatment structure is that of a 2 2 factorial –S M –(1), s, m, sm

SJS SDI_811 Exp_9 Data

SJS SDI_812 Exp_9 Analysis

SJS SDI_813 Exp_9 Analysis Continued

SJS SDI_814 Treatment Structure The above analysis uses a one dimensional treatment structure –Single factor with four unordered levels We wish, however, to distinguish between constituent factors This can be done as follows

SJS SDI_815 Factorial Analysis

SJS SDI_816 ANOVA (Factorial)

SJS SDI_817 Exp_9 SPlus #Input data Block<-factor(rep(c(seq(1:5)),4)) Supply<-factor(rep(c(1,2),each=10)) Machine<-factor(rep(rep(c(1,2),each=5),2)) #Create new factor treatment with 4 levels Treat<-ifelse((Supply==1 & Machine==1),1,0) Treat<-ifelse((Supply==1 & Machine==2),2,Treat) Treat<-ifelse((Supply==2 & Machine==1),3,Treat) Treat<-ifelse((Supply==2 & Machine==2),4,Treat) Treat<-factor(Treat) Y<-c(5.3,5.7,5.1,5.3,5.6,11.8,13,12.6,12.1,11.5, 20,19,20.3,19.5,20.2,26.7,24.1,25.7,26,25.5)

SJS SDI_818 Exp_9 SPlus: Treatment as Factor with 4 Levels fit1 <- aov(Y ~ Block + Treat) > summary(fit1) Df Sum of Sq Mean Sq F Value Pr(F) Block Treat Residuals

SJS SDI_819 Exp_9 SPlus: Two equivalent statements using two factors with interactions > fit2 <- aov(Y ~ Block + Supply * Machine) summary(fit2) Df Sum of Sq Mean Sq F Value Pr(F) Block Supply Machine Supply:Machine Residuals > fit3 <- aov(Y ~ Block + Supply + Machine + Supply:Machine) > summary(fit3) Df Sum of Sq Mean Sq F Value Pr(F) Block Supply Machine Supply:Machine Residuals

SJS SDI_820 Exp_9 SPlus: Two equivalent statements using two factors without interactions > fit4 <- aov(Y ~ Block + Supply + Machine) > summary(fit4) Df Sum of Sq Mean Sq F Value Pr(F) Block Supply Machine Residuals > fit5 <- aov(Y ~ Block + Supply * Machine - Supply:Machine) > summary(fit5) Df Sum of Sq Mean Sq F Value Pr(F) Block Supply Machine Residuals

SJS SDI_821 Wilkinson and Roger Notation This is a common notation A = main effect of factor A, B = main effect of factor B A:B = interaction of A and B, A:B:C = three factor interaction of A, B and C + sign used to add effects - used to subtract them A*B = A + B+ A:B = main effects of A and B and their interactions A*B*C = A + B + C +A:B + A:C + B:C + A:B:C NB In their original paper Applied Statistics,1973,22, , W&R used instead of : as used in SPlus

SJS SDI_822 Exp_9 Design Notes The two factors and their interaction are orthogonal –consequence of treatment combinations chosen They are also orthogonal to the blocks –This is a consequence of how they were applied Each combination in each day of the week –This increases efficiency Effectively treatments are compared within blocks

SJS SDI_823 Exp_10 (Senn Example 7.1) Cross-over comparing two formulations at two doses –Solution and Suspension –12 g and 24 g per puff Four periods Four sequences in a Latin Square used 16 Patients allocated at random –4 to each sequence

SJS SDI_824 Treatment Combinations Sequences Patients ABDC 3,5,12,13 BCAD 4,6,10,16 CDBA 2,8,9,14 DACB 1,7,11,15

SJS SDI_825 Exp_10 Design Notes Two dimensional block structure –16 Patients x 4 periods Treatment structure factorial –Formulations x doses Treatments allocated in way that is orthogonal to block structure Latin square (replicated 4 times) –Actually the patient changes

SJS SDI_826 Exp_10 Splus Data Entry #Input data patient<-factor(rep(c(3, 5, 12, 13, 4, 6, 10, 16, 2, 8, 9, 14, 1,7, 11, 15),4)) treat<-factor(rep(c("sus12","sus24","sol12","sol24"),each=16)) form<-factor(rep(c("sus","sol"),each=32)) dose<-factor(rep(c(12,24,12,24),each=16)) period<-factor(rep(c(1,3,4,2,2,1,3,4,4,2,1,3,3,4,2,1),each=4)) fev1<-c(2.7, 2.5, 2.6, 2, 3.7, 0.9, 2.5, 2, 1.3, 2.2, 1.8, 1.9, 1.7, 2.2, 3.3, 2.2, 1.7, 2.4, 2.5, 2.2,3.6, 1.4, 2.6, 2.5, 1.3, 2.2, 1.9, 2.2, 1.7, 1.9, 3.7, 2.3, 2.2, 2.4, 2.4, 2.6, 3.7, 2.4, 2.6,2.2, 1.4, 2.3, 1, 2.2, 1.6, 1.8, 3.6, 2.4, 2.6, 2.4, 2.5, 2.6, 3.6, 1.1, 2.4, 2.7, 1.3, 2.3,2.7, 2.1, 2, 2.6, 3.3, 2.5)

SJS SDI_827 Exp_10 SPlus Analysis #fit treat as a factor fit1<-aov(fev1~patient+period+treat) summary(fit1) model.tables(fit1, type="effects", se=T, cterms="treat") #use the factorial approach with dose and form fit2<-aov(fev1~patient+period+form*dose) summary(fit2) model.tables(fit2, type="effects", se=T, cterms=c("form","dose","form:dose"))

SJS SDI_828 SPlus Results 1 summary(fit1) Df Sum of Sq Mean Sq F Value Pr(F) patient period treat Residuals Tables of effects treat sol12 sol24 sus12 sus Standard errors of effects treat replic

SJS SDI_829 SPlus Results 2 Df Sum of Sq Mean Sq F Value Pr(F) patient period form dose form:dose Residuals

SJS SDI_830 form sol sus dose form:dose Dim 1 : form Dim 2 : dose sol sus Standard errors of effects form dose form:dose replic

SJS SDI_831 Questions To what extent do you think that the model for analysis is appropriate? What sort of distribution might number of defectives have? How else might one analyse the data –If one knew the batch sizes? –If one did not? What further problems might there be? According to C&K in Exp_9 the response is mean faulty items per batch based on ten batches