Two-Factor Study with Random Effects

Download Report

Transcript Two-Factor Study with Random Effects

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. This is a

random effects

model One of the advantages of this type of model is that the conclusions can be generalized to all factor levels.

The form of the statistical model for the random effects case is the same as for the fixed effects case. However, assumptions about the parameters differ from the fixed effects case.

We will assume that the

a

levels of factor A have been selected at random, and that the

b

levels of factor B have been selected at random.

In addition, we assume that a total of

n

=

abr

experimental units are available for study and that

r

will be randomly allocated to each of the

ab

experimental conditions.

STA305 week 6 1

Two-Factor Random Effects Model

• The model that we will use is:

Y ijk

= μ + α

i

+ β

j

+ γ

ij

+

ε ijk

• The parameters have the same meaning as in the fixed effects case.

• The assumptions that we make are different, and they are as follows: 1.

ε ijk

2. α

i

3. β

j

are i.i.d. N(0, σ 2 ) are i.i.d. are i.i.d.

N

 0 , 

N

 0 , 

B

2 2

A

  4. Since the levels of factors A and B are chosen at random, the are i.i.d.

N

 0 ,  2

A

B

ij

STA305 week 6 2

Component of Variance

• The variance of any single response is var  

ijk

 var    

i

 

j

 

ij

 

ijk

  

A

2  

B

2   2

A

B

  2 • The variance due to each of the factors and to the interaction are called the components of variation.

STA305 week 6 3

Sums of Squares

• The observed variation in the data is measure in the same manner as for the fixed effects case.

• In other words, the total variation in the data is measured by

SS T

i

1

j b r a

    1

k

1 

Y ijk

Y

    2 • The sums of squares and the degrees of freedom for the other sources of variation are also the same as in the 2-factor fixed effects model.

• The difference between the fixed effects and the random effects cases are the expected mean squares.

STA305 week 5 4

Expected Mean Squares

• • The expected mean squares can be found using same approach as for the fixed effect model.

Exercise: verify that the following are true:

E E E E

MS

MS

MS

MS

 

A

 

B E A

 

B

       2 2 2   2

r

r

 2

A

B

2

A

B

br

 2

A

 

r

 2

A

B ar

B

2 STA305 week 5 5

Hypothesis Testing

• Comparing the expected means squares to each other provides the rationale for the tests of the main effects and interaction effects.

• The tests for interaction and main effects are derived as follows… STA305 week 6 6

The ANOVA Table

• It is useful to add the expected mean squares to the table in order to remember which ratios to form for the F-tests.

• The ANOVA table is given below: STA305 week 6 7

Estimating the Model Parameters

• • • • • The variance of each of the factors as well as the interaction are often of interest to the researchers.

Recall that an unbiased estimator of σ

E

MS A

B

   2   2

A

  ˆ 2

A

B

MS A

B

MS E r

2 is the

MS E

.

So we can use this to get an unbiased estimate of  2

A

B

.

Similarly, we have unbiased estimates for factors A and B:  ˆ 2

A

 ˆ 2

B

 

MS A

MS A

B MS B br

MS A

B ar

STA305 week 6 8

Example

• • • • • The factors that influence breaking strength of a synthetic fiber are being studied.

It is believed that the machine and that the machine operator both affect breaking strength.

The study is designed by randomly selecting 4 machines from all those available and by randomly selecting 3 operators.

Each operator uses each of the machines twice.

The data are given in the following table: STA305 week 6 9