multifactor experiments

72
Multifactor Experiments November 26, 2013 Gui Citovsky, Julie Heymann, Jessica Sopp, Jin Lee, Qi Fan, Hyunhwan Lee, Jinzhu Yu, Lenny Horowitz, Shuvro Biswas

Upload: van

Post on 22-Feb-2016

55 views

Category:

Documents


0 download

DESCRIPTION

Multifactor Experiments. November 26, 2013 Gui Citovsky, Julie Heymann, Jessica Sopp , Jin Lee, Qi Fan, Hyunhwan Lee, Jinzhu Yu, Lenny Horowitz, Shuvro Biswas. Outline. Two-Factor Experiments with Fixed Crossed Factors 2 k Factorial Experiments - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Multifactor Experiments

Multifactor Experiments

November 26, 2013Gui Citovsky, Julie Heymann, Jessica Sopp, Jin Lee, Qi Fan, Hyunhwan Lee,

Jinzhu Yu, Lenny Horowitz, Shuvro Biswas

Page 2: Multifactor Experiments

Outline

• Two-Factor Experiments with Fixed Crossed Factors

• 2k Factorial Experiments

• Other Selected Types of Two-Factor Experiments

Page 3: Multifactor Experiments

Two-Factor Experiments with

Fixed Crossed Factors

Page 4: Multifactor Experiments

First, single factor

• Comparison of two or more treatments (groups)• Single treatment factor• Example: A study to compare the average flight

distances for three types of golf balls differing in the shape of dimples on them: circular, fat elliptical, thin elliptical• Treatments circular, fat elliptical, thin elliptical• Treatment factor type of ball

Page 5: Multifactor Experiments

Single factor continued

Page 6: Multifactor Experiments

Two-Factor Experiments With Fixed Crossed Factors

• Two fixed factors, A with a ≥ 2 levels and B with b ≥ 2 levels

• ab treatment combinations• If there are n observations obtained under

each treatment combination (n replicates), then there is a total of abn experimental units

Page 7: Multifactor Experiments

Two-Factor Experiments With Fixed Crossed Factors

• Example: Heat treatment experiment to evaluate the effects of a quenching medium (two levels: oil and water) and quenching temperature (three levels: low, medium, high) on the surface hardness of steel

• 2 x 3 = 6 treatment combinations• If 3 steel samples are treated for each

combination, we have N = 18 observations

Page 8: Multifactor Experiments

Model and Estimates of its Parameters

Let yijk=kth observation on the (i,j)th treatment combination, i=1,2,…,a , j=1,2,…,b, and k=1,2,…,n.

Let random variable Yijk correspond to observed outcome yijk.

Basic Model: and independent

where

Page 9: Multifactor Experiments

Table format

Page 10: Multifactor Experiments

Parameters

Grand Mean: ith Row Average:

jth Column Average:

(i,j)th Row Column Interaction

ith Row Main Effect:jth Column Main Effect:

Page 11: Multifactor Experiments

Least Squares Estimates

Page 12: Multifactor Experiments

Variance

• Sample variance for (i, j)th cell is:

• Pooled estimate for σ2:

Page 13: Multifactor Experiments

Example• Experiment to study how mechanical bonding strength of

capacitors depends on the type of substrate (factor A) and bonding material (factor B).

• 3 substrates: Al2O3 with bracket, Al2O3 no bracket, BeO no bracket

• 4 types of bonding material: Epoxy I, Epoxy II, Solder I and Solder II

• Four capacitors were tested at each factor level combination

Page 14: Multifactor Experiments

Example continued

Pooled sample variance:

Page 15: Multifactor Experiments

Example continued: Sample Means

Page 16: Multifactor Experiments

Example continued: Other Model Parameters

Page 17: Multifactor Experiments

Two- Way Analysis of VarianceWe define the following sum of squares:

Page 18: Multifactor Experiments

Analysis of Variance

• Degrees of Freedom:• SST: N – 1• SSA: a – 1 • SSB: b – 1 • SSAB: (a – 1)(b – 1)• SSE: N – ab

• SST = SSA + SSB + SSAB + SSE.• Similarly, the degrees of freedom also follow

this identity, i.e.

Page 19: Multifactor Experiments

Analysis of Variance

• Mean squares =

Page 20: Multifactor Experiments

Hypothesis Test

We test three hypotheses:

Not all

Not all

Not all

If all interaction terms are equal to zero, then the effect of one factor on the mean response does not depend on the level of the other factors.

Page 21: Multifactor Experiments

When do we reject H0?

• Use F-statistics to test our hypotheses by taking the ratio of the mean squares to the MSE.

Reject

Reject

Reject

• We test the interaction hypothesis H0AB first.

Page 22: Multifactor Experiments

Summary (Table 13.5)

Source of Variation (Source)

Sum of Squares

(SS)

Degrees of

Freedom (d.f.)

Mean Square (MS)

F

Main Effects A

a – 1

Main Effects B

b – 1

Interaction AB

(a – 1)(b – 1)

Error N – ab

Total N – 1

Page 23: Multifactor Experiments

Example: Bonding Strength of Capacitors

Data Capacitors;input Bonding $ Substrate $ Strength @@;Datalines;Epoxy1 Al203 1.51 Epoxy1 Al203 1.96 Epoxy1 Al203 1.83 Epoxy1 Al203 1.98…;

proc GLM plots=diagnostics data=Capacitors;TITLE "Analysis of Bonding Strength of Capacitors";CLASS Bonding Substrate;Model Strength = Bonding | Substrate; run;

Page 24: Multifactor Experiments

Bonding Strength of Capacitors ANOVA Table

• At α=0.05, we can reject H0B and H0AB but fail to reject H0A.

• The main effect of bonding material and the interaction between the bonding material and the substrate are both significant.

• The main effect of substrate is not significant at our α.

Page 25: Multifactor Experiments

Main Effects Plot

• Definition: A main effects plot is a line plot of the row means of factor and A and the column means of factor B.

Al2O3_x000d_ Al2O3 + Brckt Be00

1

2

3

4

Factor A Effects Plot

Mea

n Re

sons

e

Epoxy I Epoxy II Solder I Solder II0

1

2

3

4

Factor B Main Effects Plot

Mea

n Re

sons

e

Page 26: Multifactor Experiments

Interaction Plot

Page 27: Multifactor Experiments

Model Diagnostics with Residual Plots

• Why do we look at residual plots? • Is our constant variance assumption true?• Is our normality assumption true?

Page 28: Multifactor Experiments

2k Factorial Experiments

Page 29: Multifactor Experiments

2k Factorial Experiments

• 2k factorial experiments is a class of multifactor experiments consists of design in which each factor is studied at 2 levels. • If there are k factors, then we have 2k

treatment combinations

• 2-factor and 3-factor experiments can be generalized to >3-factor experiments

Page 30: Multifactor Experiments

22 experiment• 22 Experiment: experiment with factors A and B,

each at two levels.

ab = (A high, B high) a = (A high, B low)b = (A low, B high) (1) = (A low, B low)

Page 31: Multifactor Experiments

22 experiment cont’d

Yij ~ N(µi, σ2) i = (1), a, b, ab j = 1, 2, … , n

Assume a balanced design with n observations for each treatment combinations, denote these

observations by yij

Page 32: Multifactor Experiments

22 experiment cont’d

• Main effect of factor A (): difference in the mean response between the high level of A and the low level of A, averaged over the levels of B

• Main effect of factor B (: difference in the mean response between the high level of B and the low level of B, averaged over the levels of A

• Interaction effect of AB (): difference between the mean effect of A at the high level of B and at the low level of B

= = ( =

Page 33: Multifactor Experiments

22 experiment cont’d

Est. Main Effect A = = Est. Main Effect B = = Est. Interaction AB = =

The least square estimates of the main effects and the interaction effects are obtained by

replacing the treatment means by the corresponding cell sample means.

Page 34: Multifactor Experiments

Contrast Coefficients for Effects in a 22 Experiment

Treatment

combination

EffectI A B AB

(1) + - - +a + + - -b + - + -ab + + + +*Notice that the term-by-term products of

any two contrast vectors equal the third one

22 experiment cont’d

Page 35: Multifactor Experiments

23 experiment

• 23 Experiment: experiment with factors A, B, and C with n observations.

Yij ~ N(µi, σ2),

i = (1), a, b, ab, c, ac, bc, abc j = 1, 2, … , n.

Est. Main Effect A = Est. Main Effect B = Est. Main Effect C =

Page 36: Multifactor Experiments

23 experiment cont’dEst. Interaction Effect AB =

Est. Interaction Effect BC =

Est. Interaction Effect AC =

Est. Interaction Effect ABC =

Page 37: Multifactor Experiments

Contrast coefficients for Effects in a 23 ExperimentTreatment Combinati

on

EffectI A B AB C AC BC ABC

(1) + - - + - + + -a + + - - - - + +b + - + - - + - +ab + + + + - - - -c + - - + + - - +ac + + - - + + - -bc + - + - + - + -abc + + + + + + + +

23 experiment cont’d

Page 38: Multifactor Experiments

23 experiment example

Factors affecting bicycle performance:

Seat height (Factor A): 26" (-), 30" (+)Generator (Factor B): Off (-), On(+) Tire Pressure (Factor C): 40 psi (-), 55

psi (+)

Page 39: Multifactor Experiments

23 experiment example cont’d

Travel times from Bicycle ExperimentFactor Time (Secs.)

A B C Run 1 Run 2 Mean- - - 51 54 52.5+ - - 41 43 42.0- + - 54 60 57.0+ + - 44 43 43.5- - + 50 48 49.0+ - + 39 39 39.0- + + 53 51 52.0+ + + 41 44 42.5

Page 40: Multifactor Experiments

23 experiment example cont’d

A = = -10.875B = = 3.125C = = -3.125AB = = -0.625AC = = 1.125BC = = 0.125ABC = = 0.875

significant

Page 41: Multifactor Experiments

2k experiment

• 2k experiments, where k>3.

• n iid observations yij (j = 1,2,…n) at the ith treatment combination and its sample mean yi (i = 1,2,…, 2k) has the following estimated effect.

Est. Effect =

Page 42: Multifactor Experiments

Statistical Inference for 2k Experiments Basic Notations and Derivations

d.f.

Page 43: Multifactor Experiments

CI and Hypotheses Test with t Test

• Therefore a CI for any population effect is given by

• The t-statistic for testing the significance of any estimated effect is

Page 44: Multifactor Experiments

Hypotheses Test with F Test

• Equivalently, we can use F test to do it

• The estimated effect is significant at level if

Page 45: Multifactor Experiments

Sums of Squares for Effects

The effects are mutually orthogonal contrasts.

Page 46: Multifactor Experiments

Regression Approach to 2k Experiments

• a 22 experiment

• Multiple regression model

Page 47: Multifactor Experiments

Regression Approach to 2k Experiments

• 23 experiment

• If all interactions are dropped from the model, the new fitted model is

Page 48: Multifactor Experiments

Regression Approach to 2k Experiments

• The interpolation formula

Page 49: Multifactor Experiments

Bicycle Example: Main Effects Model

• main effects model

• minimum travel time

A(seat height)= -10.875 B(generator) = 3.125 C(tire pressure) = -3.125 = 47.1875

Page 50: Multifactor Experiments

Bicycle Example: Main Effects Model

= 1.56+5.0625+0.0625+4.1875 = 10.875

d.f. = 4

Pure SSE = 33.5 d.f = 8

pooled SSE = 33.5 + 10.875 d.f. = 12 (total)

MSE = = 3.698

Sums of squares for omitted interactions effects

Page 51: Multifactor Experiments

Bicycle Example: Residual

DiagnosticsTo check model assumptions

proc glm plots=diagnostics data = biker;class A B C;model travel= A|B|C;run;

Residuals

• Normality • Equal error variance

Page 52: Multifactor Experiments

Single Replicated Case

• Unreplicated case: n =1• Problems in statistical testing• 0 degrees of freedom for error, • cannot use formal tests and C.I. to estimate of error and

assess effects

• Potential solutions• Pooling high-order interactions to estimate error• Graphical approach: normal plot against effects

• Estimated effects• Independent, orthogonal, normally distributed, common

variance (

Unusual response?

Noise? Spoiling the

results?

Page 53: Multifactor Experiments

Single Replicated Case

• Effect Sparsity principle• If number of effects is large (e.g. k= 4, 15 effects), a majority

of them are small ~N (0,σ2), few a large and more influential ~ (u≠0, σ2)

• Reduced model• retaining only significant effects, omitting non-significant

ones• Obtain sums of squares for omitted effects => pooled error

sum of squares (SSE) (Error due to ignoring negligible effects)

• Error d.f. = # pooled omitted effects• MSE = SSE/error d.f. • Perform formal statistical inferences

Page 54: Multifactor Experiments

Other Types of Two-Factor Experiments

Section 13.3

Page 55: Multifactor Experiments

Two-Factor Experiments with (Crossed and) Mixed Factors

• A is fixed factor with a levels• B is random factor with b levels• Assume a balanced design with n ≥ 2 obs’s

at each of (a x b) treatment combinations

Page 56: Multifactor Experiments

Example:

• Compare three testing laboratories• Material tested comes in batches• Several samples from each batch tested in each

laboratory• Laboratories represent a fixed factor• Batches represent a random factor• Two factors are crossed, since samples are tested from

each batch in each laboratory• Model?

Page 57: Multifactor Experiments

Mixed Effects Model

• Yijk = µ + τi + ßj + (τß)ij + Єijk

µ,τi are fixed parameters

ßj, (τß)ij are random parameters

Єijk i.i.d. N(0,σ2) random errors

Page 58: Multifactor Experiments

The (Probability) Distribution of the Random Effects

The random βj are the main effects of B, which are assumed to be i.i.d. N(0, σβ

2) where σβ2 is called

the variance component of the B (random factor) main effect. The distribution of βj would therefore be

f βj (x) = exp(-x2/2σβ2 )

Page 59: Multifactor Experiments

• +• Variance Components Model• SST = SSA + SSB +SSAB +SSE

(same as fixed-effects model)

Variance Components Model

Page 60: Multifactor Experiments

Expected Mean Squares

• E(MSA) = σ2 + nσ2AB + nΣi

a τi2

/(a-1)

• E(MSB) = σ2 + nσ2AB + anσ2

B

• E(MSAB) = σ2 + nσ2AB

• E(MSE) = σ2

Page 61: Multifactor Experiments

Unbiased estimators of variance components

• 2 = MSE

• 2AB

= (MSAB - 2 )/n

• 2B

= (MSB - 2 - n 2AB) /an

Page 62: Multifactor Experiments

Common tests

• H0A: τ1 = … =τa = 0 vs. H1A: At least one τi ≠ 0

• H0B: σ2B = 0 vs. H1B: σ2

B > 0

• H0AB: σ2AB = 0 vs. H1AB: σ2

AB > 0

Page 63: Multifactor Experiments

Common tests: results

• Reject H0A if FA = MSA/MSAB > fa-1,(a-1)(b-1),α

• Reject H0B if FB = MSB/MSAB > fb-1,(a-1)(b-1),α

• Reject H0AB if FAB = MSAB/MSE > f(a-1)(b-1),v,α

Page 64: Multifactor Experiments

Two-Factor Experiments w. Nested and Mixed Factors

• Model:• Where,

Page 65: Multifactor Experiments

Two-Factor Experiments w. Nested and Mixed Factors

• Orthogonal Decomposition of Sum of Squares

Page 66: Multifactor Experiments

Two-Factor Experiments w. Nested and Mixed Factors

• ANOVA Table

Page 67: Multifactor Experiments

Illustrative Example

• Consider the Following Experiment:~ A Concentration of Reactant~ B Concentration of Catalyst

Page 68: Multifactor Experiments

Analysis with SAS

• Code

Page 69: Multifactor Experiments

Analysis with SAS• Selected Output

Page 70: Multifactor Experiments

Summary• Two factor experiments with multiple levels

• Model:

• We can decompose the Sum of Squares as:

• And compute test statistics under Ho, as:

Page 71: Multifactor Experiments

Summary• 2^k Factorial Experiments

• k factors, 2 levels each

• Calculate the Sum of Squares due to an effect as

Page 72: Multifactor Experiments

Acknowledgements• Tamhane, Ajit C., and Dorothy D. Dunlop. "Analysis of

Multifactor Experiments." Statistics and Data Analysis: From Elementary to Intermediate. Upper Saddle River, NJ: Prentice Hall, 2000.

• Cody, Ronald P., and Jeffrey K. Smith. "Analysis of Variances: Two Independent Variables." Applied Statistics and the SAS Programming Language. 5th ed. Upper Saddle River, NJ: Prentice Hall, 2006.

• Prof. Wei Zhu

• Previous Presentations