iron retention (log) high Fe2+ medium Fe2+ high Fe3+ medium Fe3+ low Fe2+ low Fe3+ 2 Two-way ANOVA

Similar documents
Theorem A: Expectations of Sums of Squares Under the two-way ANOVA model, E(X i X) 2 = (µ i µ) 2 + n 1 n σ2

Chapter 12. Analysis of variance

Outline Topic 21 - Two Factor ANOVA

Two-Way Analysis of Variance - no interaction

STAT 135 Lab 10 Two-Way ANOVA, Randomized Block Design and Friedman s Test

Factorial ANOVA. Psychology 3256

MAT3378 ANOVA Summary

STAT 705 Chapter 16: One-way ANOVA

Stat 579: Generalized Linear Models and Extensions

Two-factor studies. STAT 525 Chapter 19 and 20. Professor Olga Vitek

STAT 430 (Fall 2017): Tutorial 8

Statistics 512: Applied Linear Models. Topic 7

Chapter 8: Hypothesis Testing Lecture 9: Likelihood ratio tests

Unit 7: Random Effects, Subsampling, Nested and Crossed Factor Designs

Analysis of Variance

Ch. 5 Two-way ANOVA: Fixed effect model Equal sample sizes

Two-Way Factorial Designs

Research Methods II MICHAEL BERNSTEIN CS 376

20. REML Estimation of Variance Components. Copyright c 2018 (Iowa State University) 20. Statistics / 36

3. Factorial Experiments (Ch.5. Factorial Experiments)

TWO OR MORE RANDOM EFFECTS. The two-way complete model for two random effects:

STAT 705 Chapter 19: Two-way ANOVA

Two or more categorical predictors. 2.1 Two fixed effects

STAT22200 Spring 2014 Chapter 8A

I i=1 1 I(J 1) j=1 (Y ij Ȳi ) 2. j=1 (Y j Ȳ )2 ] = 2n( is the two-sample t-test statistic.

1 One-way analysis of variance

Lecture 15. Hypothesis testing in the linear model

2017 Financial Mathematics Orientation - Statistics

Statistical Hypothesis Testing

STAT 705 Chapter 19: Two-way ANOVA

Fractional Factorial Designs

where x and ȳ are the sample means of x 1,, x n

22s:152 Applied Linear Regression. Take random samples from each of m populations.

3. Design Experiments and Variance Analysis

Analysis of Variance and Design of Experiments-I

Factorial and Unbalanced Analysis of Variance

22s:152 Applied Linear Regression. There are a couple commonly used models for a one-way ANOVA with m groups. Chapter 8: ANOVA

STAT Final Practice Problems

Statistics 210 Part 3 Statistical Methods Hal S. Stern Department of Statistics University of California, Irvine

20.1. Balanced One-Way Classification Cell means parametrization: ε 1. ε I. + ˆɛ 2 ij =

One-way ANOVA (Single-Factor CRD)

Lecture 34: Properties of the LSE

Nested Designs & Random Effects

Chapter 11 - Lecture 1 Single Factor ANOVA

BIOS 2083: Linear Models

Stat 511 HW#10 Spring 2003 (corrected)

Section 4.6 Simple Linear Regression

Summary of Chapter 7 (Sections ) and Chapter 8 (Section 8.1)

Formal Statement of Simple Linear Regression Model

Residual Analysis for two-way ANOVA The twoway model with K replicates, including interaction,

STAT 350: Geometry of Least Squares

Ch 2: Simple Linear Regression

STAT 263/363: Experimental Design Winter 2016/17. Lecture 1 January 9. Why perform Design of Experiments (DOE)? There are at least two reasons:

Analysis of Variance

Central Limit Theorem ( 5.3)

ANOVA Randomized Block Design

Problems. Suppose both models are fitted to the same data. Show that SS Res, A SS Res, B

Multiple Sample Numerical Data

Ph.D. Qualifying Exam Friday Saturday, January 6 7, 2017

Practice Final Exam. December 14, 2009

Ph.D. Qualifying Exam Friday Saturday, January 3 4, 2014

Unbalanced Designs Mechanics. Estimate of σ 2 becomes weighted average of treatment combination sample variances.

Topic 17 - Single Factor Analysis of Variance. Outline. One-way ANOVA. The Data / Notation. One way ANOVA Cell means model Factor effects model

STAT 135: Anova. Joan Bruna. April 10, Department of Statistics UC, Berkeley

Unit 8: 2 k Factorial Designs, Single or Unequal Replications in Factorial Designs, and Incomplete Block Designs

n i n T Note: You can use the fact that t(.975; 10) = 2.228, t(.95; 10) = 1.813, t(.975; 12) = 2.179, t(.95; 12) =

QUEEN MARY, UNIVERSITY OF LONDON

STAT 525 Fall Final exam. Tuesday December 14, 2010

Simple Linear Regression

Homework 3 - Solution

Stat 217 Final Exam. Name: May 1, 2002

Lecture 6: Linear models and Gauss-Markov theorem

HT Introduction. P(X i = x i ) = e λ λ x i

Maximum Likelihood Estimation

Much of the material we will be covering for a while has to do with designing an experimental study that concerns some phenomenon of interest.

Linear Regression. Junhui Qian. October 27, 2014

Statistics for Managers Using Microsoft Excel Chapter 10 ANOVA and Other C-Sample Tests With Numerical Data

ANOVA: Analysis of Variance - Part I

CHAPTER 4 Analysis of Variance. One-way ANOVA Two-way ANOVA i) Two way ANOVA without replication ii) Two way ANOVA with replication

Math 3330: Solution to midterm Exam

SSR = The sum of squared errors measures how much Y varies around the regression line n. It happily turns out that SSR + SSE = SSTO.

Lecture 1: Linear Models and Applications

Analysis of Variance. Read Chapter 14 and Sections to review one-way ANOVA.

Chapter 4: Asymptotic Properties of the MLE (Part 2)

STAT 506: Randomized complete block designs

Orthogonal contrasts for a 2x2 factorial design Example p130

Statistics 512: Applied Linear Models. Topic 9

Topic 32: Two-Way Mixed Effects Model

Simple Linear Regression

Need for Several Predictor Variables

Statistics and Econometrics I

Section 7.3 Nested Design for Models with Fixed Effects, Mixed Effects and Random Effects

BIOS 2083 Linear Models c Abdus S. Wahed

[y i α βx i ] 2 (2) Q = i=1

Chapter 3. Diagnostics and Remedial Measures

Contents. TAMS38 - Lecture 6 Factorial design, Latin Square Design. Lecturer: Zhenxia Liu. Factorial design 3. Complete three factor design 4

Final Exam. 1. (6 points) True/False. Please read the statements carefully, as no partial credit will be given.

Design & Analysis of Experiments 7E 2009 Montgomery

The factors in higher-way ANOVAs can again be considered fixed or random, depending on the context of the study. For each factor:

Lec 1: An Introduction to ANOVA

Transcription:

iron retention (log) 0 1 2 3 high Fe2+ high Fe3+ low Fe2+ low Fe3+ medium Fe2+ medium Fe3+ 2 Two-way ANOVA In the one-way design there is only one factor. What if there are several factors? Often, we are interested to know the simultaneous effects of multiple factors, e.g, gender and smoking on hypertension. The statistical approach to analyze data from a two-way design is two-way ANOVA. Iron retention. An experiment was performed to determine the factors that affect iron retention. The experiment was done on 108 mice, which were randomly divided into 6 groups of 18 each. These groups consist of the six combinations of two forms of iron and three concentrations. The table below shows the mean logged retention percentage. 15

Form low medium high Fe3+ 2.28 (Ȳ11.) 1.90 (Ȳ12.) 1.16 (Ȳ13.) Fe2+ 2.40 (Ȳ21.) 2.09 (Ȳ22.) 1.68 (Ȳ23.) The figure below shows the mean retention levels (log). Several scientific questions: (1) Are the means different by iron form? (2) Are the means different by dosage? (3) Does difference in the means between the two iron forms change as a function of dosage? The first two questions can be answered by one-way ANOVA. Here we use the two-way anova to answer all the questions simultaneously. 16

2.1 The two-way layout A two-way layout is an experiment design involving two factors, each at two or more levels. If there are I levels of factor A and J of factor B, there are I by J combinations. We assume that K independent observations are taken for each of the IJ combinations. Let Y ijk denote the kth observation in cell ij. The statistical model is a natural extension of the one-way anova: Y ijk = µ + α i + β j + δ ij + ǫ ijk, with ǫ ijk N(0, σ 2 ) with the constraints α i = 0 β i = 0 δ ij = δ ij = 0 Interpretations of the parameters: µ is the grand mean over all cells α i is the main effect of the ith level of factor A β j is the main effect of the jth level of factor B δ ij is the interaction effect between the ith level of factor A and the jth level of factor B, i.e., it denotes the effect of combining the ith level of factor A and the jth level of factor B. interpretation Under the two-way layout, the mean response in the ith level of factor A is µ + α i the mean response in the jth level of factor B is µ + β j the mean response in the cell ij is µ + α i + β j + δ ij We say the two factors have an interaction effect on response if any of δ ij is not zero. When there is no interaction, the means are 17

Form low medium high Fe2+ µ + α 1 + β 1 µ + α 1 + β 2 µ + α 1 + β 3 Fe3+ µ + α 2 + β 1 µ + α 2 + β 2 µ + α 2 + β 3 Difference α 1 α 2 α 1 α 2 α 1 α 2 The graph of the means would look like 2.2 Two-way ANOVA When there is an interaction between iron form and dosage, the means are Form low medium high Fe3+ µ + α 1 + β 1 + δ 11 µ + α 1 + β 2 + δ 12 µ + α 1 + β 3 + δ 13 Fe2+ µ + α 2 + β 1 + δ 12 µ + α 2 + β 2 + δ 22 µ + α 2 + β 3 + δ 23 Difference α 1 α 2 + (δ 11 δ 21 ) α 1 α 2 + (δ 12 δ 22 )) α 1 α 2 + (δ 13 δ 23 ) The graph of the means would look like 2.2.1 Notations Ȳ = Ȳ i = Ȳ j = Ȳ ij = Y ijk /(IJK) k=1 k=1 Y ijk /(JK) Y ijk /(IK) Y ijk /K k=1 18

Y ijk = µ + α i + β j + γ ij + ǫ ij, ǫ ijk iid N(0, σ 2 ), i α i = j β j = i γ ij = j γ ij = 0 Assume that the observations are independent and normally distributed with equal variance, the log likelihood is l = IJK 2 log(2πσ2 ) 1 2σ 2 = IJK IJK log(2π) 2 2 log(σ2 ) 1 2σ 2 (Y ijk µ α i β j δ ij ) 2 (Y ijk µ α i β j δ ij ) 2 The mles are ˆµ = Y ˆα i = Ȳi Ȳ, i = 1,, I ˆβ j = Ȳ j Ȳ, j = 1,, J ˆδ ij = Ȳij Ȳi Ȳ j + Ȳ Similar to the definition used in the one-way ANOVA, the sum of squares of total is defined as SSTO = = (Y ijk Ȳ ) 2 (Y ijk ˆµ) 2 SSTO can be decomposed to SSTO = SSA + SSB + SSAB + SSE where 19

SSA = JK = JK (Ȳi Ȳ ) 2 ˆα 2 i SSB = IK (Ȳ j Ȳ ) 2 = IK ˆβ j 2 SSAB = K (Ȳij Ȳi Ȳ j + Ȳ ) 2 = K ˆδ 2 ij SSE = ijk (Y Ȳij ) 2 = (K 1) i j = (Y ijk (ˆµ + ˆα i + ˆβ j + ˆδ ij )) 2 S 2 ij The proof is also similar to that of one-way ANOVA. Essentially, we need to use the identity Y ijk Ȳ = (Y ijk Ȳij ) + (Ȳi Ȳ ) + (Ȳ j Ȳ ) + (Ȳij Ȳi Ȳ j + Ȳ ) Theorem A: Expectations of Sums of Squares Under the two-way ANOVA model, 20

(1) E(MSE) = E(SSE/[IJ(K 1)]) = σ 2 (2) E(MSA) = E(SSA/(I 1)) = σ 2 + JK I 1 (3) E(MSB) = E(SSB/(J 1)) = σ 2 + IK J 1 (4) E(MSAB) = E(SSAB/[(I 1)(J 1)]) = σ 2 + α 2 i β 2 i K (I 1)(J 1) δ 2 ij Proof: They can be proved by using Lemma A: Let X i, where i = 1,, n be independent random variables with E(X i ) = µ i and V ar(x i ) = σ 2. Then E(X i X) 2 = (µ i µ) 2 + n 1 n σ2 Apply it to (1): E(Y ijk Ȳij.) 2 = (0 0) 2 + (K 1)/Kσ 2, thus E(SSE) = E[ ij (K 1)[S 2 ij] = IJKE[S 2 ij] = IJ(K 1) Apply it (2): Apply it to (3): Notice that Y ijk N(µ + α i + β j + δ ij, σ 2 ) and apply the lemma to SSTO, E(SST O) = E(Y ijk Ȳ ) 2 = [(µ + α i + β j + δ ij µ) 2 + IJK 1 IJK σ2 ] = (IJK 1)σ 2 + (α i + β j + δ ij ) 2 = (IJK 1)σ 2 + JK αi 2 + IK βj 2 + K 21 δ 2 ij