Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9:...

38
Lec 9: Blocking and Confounding for 2 k Factorial Design Ying Li December 2, 2011 Ying Li Lec 9: Blocking and Confounding for 2 k Factorial Design

Transcript of Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9:...

Page 1: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Lec 9: Blocking and Confounding for 2k FactorialDesign

Ying Li

December 2, 2011

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 2: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

2k factorial design

Special case of the general factorial design; k factors, all attwo levels

The two levels are usually called low and high (they could beeither quantitative or qualitative)

Very widely used in industrial experimentation

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 3: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Example

Consider an investigation into the effect of the concentration ofthe reactant and the amount of the catalyst on the conversion in achemical process.

A: reactant concentration, 2 levels

B: catalyst, 2 levels

3 replicates, 12 runs in total

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 4: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

A B

− − (1) = 28 + 25 + 27 = 80+ − a = 36 + 32 + 32 = 100− + b = 18 + 19 + 23 = 60+ + ab = 31 + 30 + 29 = 90

A =1

2n{[ab − b] + [a− (1)]}

B =1

2n{[ab − a] + [b − (1)]}

AB =1

2n{[ab − b]− [a− (1)]}

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 5: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Manual Calculation

A =1

2n{[ab − b] + [a− (1)]}

ContrastA = ab + a− b − (1)

SSA =ContrastA

4n

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 6: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Regression Model

For 22 × 1 experiment

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 7: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Regression Model

The least square estimates:

The regression coefficient estimates are exactly half of the “usual”effect estimates

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 8: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Analysis Procedure for a Factorial Design

Estimate factor effects.

Formulate model

Statistical testing (ANOVA).

Refine the model

Analyze residuals (graphical)

Interpret results

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 9: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Unreplicated 2k Design

Lack of replication causes potential problems in statisticaltesting

Replication admits an estimate of pure error (a better phrase isan internal estimate of error)With no replication, fitting the full model results in zerodegrees of freedom for error

Potential solutions to this problem

Pooling high-order interactions to estimate errorNormal probability plotting of effects

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 10: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

If the factors are spaced too closely, it increases the chancesthat the noise will overwhelm the signal in the data.

More aggressive spacing is usually best.

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 11: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Why blocks?

For example, because of

Different batches of raw material.

Restrictions caused by equipment and instruments.

Time.

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 12: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Factorial design with replicates as blocks

Example

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 13: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Analysis result

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 14: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

A special situation:

only 1 replicate

a batch of raw material is only large enough for 2combinations.

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 15: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

A special situation:

only 1 replicate

a batch of raw material is only large enough for 2combinations.

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 16: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

The main effect of A, B and AB:

A =1

2[ab + a− b − (1)]

B =1

2[ab + b − a− (1)]

AB =1

2[ab + (1)− a− b]

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 17: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

AB is confounded with blocks.

Confounding

a design technique for arranging a complete factorialexperiment in blocks.

the technique causes information about certain treatmenteffects (usually higher-order interaction) to beindistinguishable form, or confounded with, blocks.

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 18: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 19: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

This approach can be used to confound any 2k design in twoblocks.

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 20: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

The 23 design in two blocks with ABC confounded:

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 21: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Use defining contrast for constructing the blocks

A defining contrast

L = α1x1 + α2x2 + ...+ αkxk

xi ; the level of ith factor

αi is exponent appearing on the ith factor in the effect to tobe confounded.

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 22: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Example

Consider a 23 design with ABC confounded with blocks. Thedefining contrast corresponding to ABC is

L = x1 + x2 + x3

(1): L = 0 + 0 + 0 = 0ab: L = 1 + 1 + 0 = 2ac: L = 1 + 0 + 1 = 2bc: L = 0 + 1 + 1 = 2a: L = 1 + 0 + 0 = 1b: L = 0 + 1 + 0 = 1c: L = 0 + 0 + 1 = 1abc: L = 1 + 1 + 1 = 3

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 23: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Use the principal block for constructing the blocks

The block containing (1) iscalled the principal block.

Any element in the principalblock may be generated bymultiplying two other elementsin the principal block modulus 2.

Treatment combinations in theother block may be generated bymultiplying one element in thenew block by each element inthe principal block modulus 2.

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 24: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Four blocks in a 25

Select two defining interactions

Say ADE and BCE, the two defining contrasts are

L1 = x1 + x4 + x5

L2 = x2 + x3 + x5

So (L1, L2) = (0, 0), (0, 1), (1, 0), or(1, 1)

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 25: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Four blocks in a 25

Select two defining interactions

Say ADE and BCE, the two defining contrasts are

L1 = x1 + x4 + x5

L2 = x2 + x3 + x5

So (L1, L2) = (0, 0), (0, 1), (1, 0), or(1, 1)

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 26: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 27: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Generalized interaction

It is defined as the product of ADE and BCE modulus 2.

(ADE )(BCE ) = ABCDE 2 = ABCD

ADE, BCE and ABCD are confounded with blocks in this design

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 28: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Question

Which alternative is better:

1 ADE and BCE or

2 ABCDE and ABD??

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 29: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 30: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Example

A chemical product is produced in a pressure vessel. A factorialexperiment is carried out in the pilot plant to study the factorsthought to influence the filtration rate of this product.The four factors are all present at two levels. They are:

A: temperature

B: pressure

C: concentration of formaldehyde

D: stirring rate

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 31: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 32: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 33: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 34: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 35: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 36: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Partial confounding

Different confounding in different replicates.

Instead of this...

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 37: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

... we can do this

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design

Page 38: Lec 9: Blocking and Confounding for 2k Factorial Designgauss.stat.su.se/gu/ep/lec9.pdf · Lec 9: Blocking and Confounding for 2k Factorial Design Ying Li December 2, 2011 Ying Li

Recommended problems

7.2

7.18

7.19

7.20

Ying Li Lec 9: Blocking and Confounding for 2k Factorial Design