ANOVA TABLE Factorial Experiment Completely Randomized Design.

Slides:



Advertisements
Similar presentations
Latin Square Designs. Selected Latin Squares 3 x 34 x 4 A B CA B C DA B C DA B C DA B C D B C AB A D CB C D AB D A CB A D C C A BC D B AC D A BC A D BC.
Advertisements

1-Way Analysis of Variance
Incomplete Block Designs. Randomized Block Design We want to compare t treatments Group the N = bt experimental units into b homogeneous blocks of size.
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
Multifactor Experiments November 26, 2013 Gui Citovsky, Julie Heymann, Jessica Sopp, Jin Lee, Qi Fan, Hyunhwan Lee, Jinzhu Yu, Lenny Horowitz, Shuvro Biswas.
Comparing k Populations Means – One way Analysis of Variance (ANOVA)
Dr George Sandamas Room TG60
© 2010 Pearson Prentice Hall. All rights reserved Single Factor ANOVA.
Design of Engineering Experiments - Experiments with Random Factors
Lesson #23 Analysis of Variance. In Analysis of Variance (ANOVA), we have: H 0 :  1 =  2 =  3 = … =  k H 1 : at least one  i does not equal the others.
Every achievement originates from the seed of determination. 1Random Effect.
Common Design Problems 1.Masking factor effects 2.Uncontrolled factors 3.One-factor-at-a-time testing.
Analysis of variance (3). Normality Check Frequency histogram (Skewness & Kurtosis) Probability plot, K-S test Normality Check Frequency histogram (Skewness.
k r Factorial Designs with Replications r replications of 2 k Experiments –2 k r observations. –Allows estimation of experimental errors Model:
Chapter 13: Inference in Regression
Factorial Experiments
Latin Square Designs. Selected Latin Squares 3 x 34 x 4 A B CA B C DA B C DA B C DA B C D B C AB A D CB C D AB D A CB A D C C A BC D B AC D A BC A D BC.
Factorial Design Two Way ANOVAs
The Randomized Block Design. Suppose a researcher is interested in how several treatments affect a continuous response variable (Y). The treatments may.
1 Experimental Statistics - week 7 Chapter 15: Factorial Models (15.5) Chapter 17: Random Effects Models.
Chapter 13Design & Analysis of Experiments 8E 2012 Montgomery 1.
The Randomized Block Design. Suppose a researcher is interested in how several treatments affect a continuous response variable (Y). The treatments may.
MANOVA Multivariate Analysis of Variance. One way Analysis of Variance (ANOVA) Comparing k Populations.
Applications The General Linear Model. Transformations.
Factorial Experiments Analysis of Variance (ANOVA) Experimental Design.
MANOVA Multivariate Analysis of Variance. One way Analysis of Variance (ANOVA) Comparing k Populations.
1 Review of ANOVA & Inferences About The Pearson Correlation Coefficient Heibatollah Baghi, and Mastee Badii.
Repeated Measures Designs. In a Repeated Measures Design We have experimental units that may be grouped according to one or several factors (the grouping.
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.
DOX 6E Montgomery1 Design of Engineering Experiments Part 9 – Experiments with Random Factors Text reference, Chapter 13, Pg. 484 Previous chapters have.
Orthogonal Linear Contrasts This is a technique for partitioning ANOVA sum of squares into individual degrees of freedom.
Design Of Experiments With Several Factors
1 Nested (Hierarchical) Designs In certain experiments the levels of one factor (eg. Factor B) are similar but not identical for different levels of another.
1 Every achievement originates from the seed of determination.
1 Always be contented, be grateful, be understanding and be compassionate.
1 The Two-Factor Mixed Model Two factors, factorial experiment, factor A fixed, factor B random (Section 13-3, pg. 495) The model parameters are NID random.
Chapter Seventeen. Figure 17.1 Relationship of Hypothesis Testing Related to Differences to the Previous Chapter and the Marketing Research Process Focus.
Comparing k Populations Means – One way Analysis of Variance (ANOVA)
ETM U 1 Analysis of Variance (ANOVA) Suppose we want to compare more than two means? For example, suppose a manufacturer of paper used for grocery.
Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture 18 Random Effects.
1 Experiments with Random Factors Previous chapters have considered fixed factors –A specific set of factor levels is chosen for the experiment –Inference.
Chapter 13 Design of Experiments. Introduction “Listening” or passive statistical tools: control charts. “Conversational” or active tools: Experimental.
Three or More Factors: Latin Squares
Orthogonal Linear Contrasts A technique for partitioning ANOVA sum of squares into individual degrees of freedom.
IE241: Introduction to Design of Experiments. Last term we talked about testing the difference between two independent means. For means from a normal.
Other experimental designs Randomized Block design Repeated Measures designs.
Chapter 9 More Complicated Experimental Designs. Randomized Block Design (RBD) t > 2 Treatments (groups) to be compared b Blocks of homogeneous units.
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.
The Analysis of Covariance ANACOVA. Multiple Regression 1.Dependent variable Y (continuous) 2.Continuous independent variables X 1, X 2, …, X p The continuous.
Summary of the Statistics used in Multiple Regression.
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.
Two-Factor Study with Random Effects In some experiments the levels of both factors A & B are chosen at random from a larger set of possible factor levels.
1 Statistical Analysis Professor Lynne Stokes Department of Statistical Science Lecture #10 Testing the Statistical Significance of Factor Effects.
Factorial BG ANOVA Psy 420 Ainsworth. Topics in Factorial Designs Factorial? Crossing and Nesting Assumptions Analysis Traditional and Regression Approaches.
Psychology 202a Advanced Psychological Statistics October 27, 2015.
INTRODUCTION TO MULTIPLE REGRESSION MULTIPLE REGRESSION MODEL 11.2 MULTIPLE COEFFICIENT OF DETERMINATION 11.3 MODEL ASSUMPTIONS 11.4 TEST OF SIGNIFICANCE.
Comparing k Populations Means – One way Analysis of Variance (ANOVA)
Nested Designs Ex 1--Compare 4 states’ low-level radioactive hospital waste A: State B: Hospital Rep: Daily waste.
Statistical Quality Control, 7th Edition by Douglas C. Montgomery.
Two way ANOVA with replication
Two way ANOVA with replication
Statistics for the Social Sciences
Comparing k Populations
Hypothesis testing and Estimation
Factorial Experiments
Latin Square Designs.
One way Analysis of Variance (ANOVA)
Presentation transcript:

ANOVA TABLE Factorial Experiment Completely Randomized Design

Anova table for the 3 factor Experiment SourceSSdfMSFp -value ASS A a - 1MS A MS A /MS Error BSS B b - 1MS B MS B /MS Error CSS C c - 1MS C MS C /MS Error ABSS AB (a - 1)(b - 1)MS AB MS AB /MS Error ACSS AC (a - 1)(c - 1)MS AC MS AC /MS Error BCSS BC (b - 1)(c - 1)MS BC MS BC /MS Error ABCSS ABC (a - 1)(b - 1)(c - 1)MS ABC MS ABC /MS Error ErrorSS Error abc(n - 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

The statistical model for the 3 factor Experiment

Anova table for the 3 factor Experiment SourceSSdfMSFp -value ASS A a - 1MS A MS A /MS Error BSS B b - 1MS B MS B /MS Error CSS C c - 1MS C MS C /MS Error ABSS AB (a - 1)(b - 1)MS AB MS AB /MS Error ACSS AC (a - 1)(c - 1)MS AC MS AC /MS Error BCSS BC (b - 1)(c - 1)MS BC MS BC /MS Error ABCSS ABC (a - 1)(b - 1)(c - 1)MS ABC MS ABC /MS Error ErrorSS Error abc(n - 1)MS Error

The testing in factorial experiments 1.Test first the higher order interactions. 2.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 3.The testing continues with lower order interactions and main effects for factors which have not yet been determined to affect the response.

Random Effects and Fixed Effects Factors

So far the factors that we have considered are fixed effects factors This is the case if the levels of the factor are a fixed set of levels and the conclusions of any analysis is in relationship to these levels. If the levels have been selected at random from a population of levels the factor is called a random effects factor The conclusions of the analysis will be directed at the population of levels and not only the levels selected for the experiment

Example - Fixed Effects Source of Protein, Level of Protein, Weight Gain Dependent –Weight Gain Independent –Source of Protein, Beef Cereal Pork –Level of Protein, High 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 Independent –Tire brand (A, B, C), Fixed Effect Factor –Driver (1, 2, 3, 4), 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 and (  ) ij is normal with mean 0 and variance Note: This model is called a variance components model

The Anova table for the two factor model SourceSSdfMS ASS A a -1 SS A /(a – 1) BSS A b - 1 SS B /(a – 1) ABSS AB (a -1)(b -1) SS AB /(a – 1) (a – 1) ErrorSS Error ab(n – 1) SS Error /ab(n – 1)

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

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

Rules for determining Expected Mean Squares (EMS) in an Anova Table 1.Schultz E. F., Jr. “Rules of Thumb for Determining Expectations of Mean Squares in Analysis of Variance,”Biometrics, Vol 11, 1955, Both fixed and random effects Formulated by Schultz [1]

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) (if number of factors is k = 3, then the number of letters is 4) 4.The subscript of  2 in the last term of each EMS is the same as the treatment designation.

5.The subscripts of all  2 other than the first contain the treatment designation. These are written with the combination involving the most letters written first and ending with the treatment designation. 6.When a capital letter is omitted from a subscript, the corresponding small letter appears in the coefficient. 7.For each EMS in the table ignore the letter or letters that designate the effect. If any of the remaining letters designate a fixed effect, delete that term from the EMS.

8.Replace  2 whose subscripts are composed entirely of fixed effects by the appropriate sum.

Example: 3 factors A, B, C – all are random effects SourceEMSF A B C AB AC BC ABC Error

Example: 3 factors A fixed, B, C random SourceEMSF A B C AB AC BC ABC Error

Example: 3 factors A, B fixed, C random SourceEMSF A B C AB AC BC ABC Error

Example: 3 factors A, B and C fixed SourceEMSF A B C AB AC BC ABC Error

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 at random 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 Independent –Tire brand (A, B, C), Fixed Effect Factor –Driver (1, 2, 3, 4), Random Effects factor

The Data

Asking SPSS to perform Univariate ANOVA

Select the dependent variable, fixed factors, random factors

The Output The divisor for both the fixed and the random main effect is MS AB This is contrary to the advice of some texts

The Anova table for the two factor model (A – fixed, B - random) SourceSSdfMSEMSF ASS A a -1MS A MS A /MS AB BSS A b - 1MS B MS B /MS Error ABSS AB (a -1)(b -1)MS AB MS AB /MS Error ErrorSS Error ab(n – 1)MS Error Note: The divisor for testing the main effects of A is no longer MS Error but MS AB. References Guenther, W. C. “Analysis of Variance” Prentice Hall, 1964

The Anova table for the two factor model (A – fixed, B - random) SourceSSdfMSEMSF ASS A a -1MS A MS A /MS AB BSS A b - 1MS B MS B /MS AB ABSS AB (a -1)(b -1)MS AB MS AB /MS Error ErrorSS Error ab(n – 1)MS Error Note: In this case the divisor for testing the main effects of A is MS AB. This is the approach used by SPSS. References Searle “Linear Models” John Wiley, 1964

Crossed and Nested Factors

The factors A, B are called crossed if every level of A appears with every level of B in the treatment combinations. Levels of B Levels of A

Factor B is said to be nested within factor A if the levels of B differ for each level of A. Levels of B Levels of A

Example: A company has a = 4 plants for producing paper. Each plant has 6 machines for producing the paper. The company is interested in how paper strength (Y) differs from plant to plant and from machine to machine within plant Plants Machines

Machines (B) are nested within plants (A) The model for a two factor experiment with B nested within A.

The ANOVA table SourceSSdfMSFp - value ASS A a - 1MS A MS A /MS Error B(A)B(A)SS B(A) a(b – 1)MS B(A) MS B(A) /MS Error ErrorSS Error ab(n – 1)MS Error Note: SS B(A ) = SS B + SS AB and a(b – 1) = (b – 1) + (a - 1)(b – 1)

Example: A company has a = 4 plants for producing paper. Each plant has 6 machines for producing the paper. The company is interested in how paper strength (Y) differs from plant to plant and from machine to machine within plant. Also we have n = 5 measurements of paper strength for each of the 24 machines

The Data

Anova Table Treating Factors (Plant, Machine) as crossed

Anova Table: Two factor experiment B(machine) nested in A (plant)

Graph Paper Strength