Presentation is loading. Please wait.

Presentation is loading. Please wait.

7-2 Factorial Experiments

Similar presentations


Presentation on theme: "7-2 Factorial Experiments"β€” Presentation transcript:

1

2 7-2 Factorial Experiments

3 7-2 Factorial Experiments
A significant interaction mask the significance of main effects. Consequently, when interaction is present, the main effects of the factors involved in the interaction may not have much meaning.

4 7-7 Factorial Experiments with More than
Two Levels

5 7-7 Factorial Experiments with More than Two Levels
Two-Way Factorial Model π‘Œ π‘–π‘—π‘˜ =πœ‡+ 𝛼 𝑖 + 𝛽 𝑗 + (𝛼𝛽) 𝑖𝑗 + πœ€ π‘–π‘—π‘˜ = πœ‡ 𝑖𝑗 + πœ€ π‘–π‘—π‘˜ where πœ‡= 𝑖=1 π‘Ž 𝑗=1 𝑏 πœ‡ 𝑖𝑗 π‘Žπ‘ =π‘œπ‘£π‘’π‘Ÿπ‘Žπ‘™π‘™ π‘šπ‘’π‘Žπ‘› 𝛼 𝑖 = πœ‡ π‘–βˆ™ βˆ’πœ‡ = A main effect, i = 1, βˆ™βˆ™βˆ™βˆ™, π‘Ž 𝛽 𝑗 = πœ‡ βˆ™π‘— βˆ’πœ‡ = B main effect, i = 1, βˆ™βˆ™βˆ™βˆ™, 𝑏 (𝛼𝛽) 𝑖𝑗 = πœ‡ 𝑖𝑗 βˆ’ πœ‡ π‘–βˆ™ βˆ’ πœ‡ βˆ™π‘— +πœ‡ = Interaction effect πœ€ π‘–π‘—π‘˜ = Error term, which is assumed to be normally distributed with constant variance Hypothesis A main Effect Hypothesis: 𝐻 0 : πœ‡ 1βˆ™ = πœ‡ 2βˆ™ =βˆ™βˆ™βˆ™= πœ‡ π‘Žβˆ™ π‘œπ‘Ÿ 𝐻 0 : 𝛼 1 = 𝛼 2 =βˆ™βˆ™βˆ™= 𝛼 π‘Ž =0 B main Effect Hypothesis: 𝐻 0 : πœ‡ βˆ™1 = πœ‡ βˆ™2 =βˆ™βˆ™βˆ™= πœ‡ βˆ™π‘ π‘œπ‘Ÿ 𝐻 0 : 𝛽 1 = 𝛽 2 =βˆ™βˆ™βˆ™= 𝛽 𝑏 =0

6 7-7 Factorial Experiments with More than Two Levels
Interaction Notice that the main effects are in terms of marginal means (means average over the other factor). It makes sense to do this only if the relationship between the means of one factor are the same for all levels of the other factor. If this is true, the factors are said not to interact. Before we can interpret the main effect tests, we must verify that the factors do not interact. That is test Two-way Interaction test: 𝐻 0 : (𝛼𝛽) 11 = (𝛼𝛽) 12 =βˆ™βˆ™βˆ™= 𝛼𝛽 π‘Žπ‘ =0 A graphical means of assessing interaction is to make an interaction (profile) plot. This consists plotting one of the factors along the horizontal axis and the 𝑋 𝑖𝑗 the vertical axis. The points corresponding to the same level of the other factor are connected by a line. No interaction implies that the lines will be parallel.

7 7-7 Factorial Experiments with More than
Two Levels

8 7-7 Factorial Experiments with More than Two Levels
Sum of Squares partition: Degrees of freedom partition:

9 7-7 Factorial Experiments with More than Two Levels
Mean Squares:

10 7-7 Factorial Experiments with More than Two Levels
𝑆𝑆𝑀𝑂𝐷=𝑆𝑆𝐴+𝑆𝑆𝐡+𝑆𝑆𝐴𝐡 π‘€π‘–π‘‘β„Ž 𝑑𝑓=π‘Žπ‘βˆ’1

11 7-7 Factorial Experiments with More than Two Levels
𝑆𝑆𝑇= 𝑖=1 π‘Ž 𝑗=1 𝑏 π‘˜=1 𝑛 ( π‘Œ 𝑖,𝑗,π‘˜ βˆ’ π‘Œ ) 2 = 𝑖=1 π‘Ž 𝑗=1 𝑏 π‘˜=1 𝑛 π‘Œ 𝑖,𝑗,π‘˜ 2 βˆ’ ( 𝑖=1 π‘Ž 𝑗=1 𝑏 π‘˜=1 𝑛 π‘Œ 𝑖,𝑗,π‘˜ ) 2 𝑆𝑆𝐴= 𝑖=1 π‘Ž 𝑛𝑏 ( π‘Œ 𝑖,βˆ™,βˆ™ βˆ’ π‘Œ ) 2 = 𝑖=1 π‘Ž ( 𝑗=1 𝑏 π‘˜=1 𝑛 π‘Œ 𝑖,𝑗,π‘˜ ) 2 βˆ’ ( 𝑖=1 π‘Ž 𝑗=1 𝑏 π‘˜=1 𝑛 π‘Œ 𝑖,𝑗,π‘˜ ) 2 𝑆𝑆𝐡= 𝑖=1 π‘Ž π‘›π‘Ž ( π‘Œ βˆ™,𝑗,βˆ™ βˆ’ π‘Œ ) 2 = 𝑗=1 𝑏 ( 𝑖=1 π‘Ž π‘˜=1 𝑛 π‘Œ 𝑖,𝑗,π‘˜ ) 2 βˆ’ ( 𝑖=1 π‘Ž 𝑗=1 𝑏 π‘˜=1 𝑛 π‘Œ 𝑖,𝑗,π‘˜ ) 2 𝑆𝑆𝐴𝐡=π‘†π‘†π‘€π‘‚π·βˆ’π‘†π‘†π΄βˆ’π‘†π‘†π΅ 𝑆𝑆𝑀𝑂𝐷= 𝑖=1 π‘Ž 𝑗=1 𝑏 𝑛 ( π‘Œ 𝑖,𝑗,βˆ™ βˆ’ π‘Œ ) 2 = 𝑖=1 π‘Ž 𝑗=1 𝑏 ( π‘˜=1 𝑛 π‘Œ 𝑖,𝑗,π‘˜ ) 2 βˆ’ ( 𝑖=1 π‘Ž 𝑗=1 𝑏 π‘˜=1 𝑛 π‘Œ 𝑖,𝑗,π‘˜ ) 2 𝑆𝑆𝐸=π‘†π‘†π‘‡βˆ’π‘†π‘†π΄βˆ’π‘†π‘†π΅βˆ’π‘†π‘†π΄π΅ Multiple comparison and contrasts follow the same formulas as in the one-way ANOVA. The difference is that the comparisons are made on the marginal means for factors A & B. The ni are replaced by the number of observations used in calculating the sample mean. Also, they are only meaningful if there is no interaction.

12 7-7 Factorial Experiments with More than
Two Levels

13 7-7 Factorial Experiments with More than
Two Levels

14 7-7 Factorial Experiments with More than
Two Levels

15 7-7 Factorial Experiments with More than
Two Levels

16 7-7 Factorial Experiments with More than Two Levels
Model Adequacy

17 7-7 Factorial Experiments with More than Two Levels
Model Adequacy

18 7-7 Factorial Experiments with More than Two Levels
Model Adequacy

19 7-7 Factorial Experiments with More than Two Levels
Computer Output

20 7-7 Factorial Experiments with More than Two Levels
Example 7-11 OPTIONS NOOVP NODATE NONUMBER LS=80; DATA ex711; DO obs= 1 to 3; DO type=1 to 3; DO method='Dipping', 'Spraying'; INPUT force OUTPUT; END; END;END; CARDS; ods graphics on; PROC GLM DATA=ex711 plots=all; CLASS type method; MODEL force= type method type*method; MEANS type method type*method/snk; output out=new r=resid; TITLE 'Two-way ANOVA'; PROC PLOT DATA=NEW; PLOT RESID*TYPE; PLOT RESID*METHOD; run; QUIT;

21 7-7 Factorial Experiments with More than
Two Levels

22 7-7 Factorial Experiments with More than
Two Levels

23 7-7 Factorial Experiments with More than
Two Levels

24 7-7 Factorial Experiments with More than
Two Levels

25 7-7 Factorial Experiments with More than
Two Levels

26 7-7 Factorial Experiments with More than
Two Levels

27 7-7 Factorial Experiments with More than
Two Levels

28 7-7 Factorial Experiments with More than
Two Levels

29 7-7 Factorial Experiments with More than
Two Levels

30 7-7 Factorial Experiments with More than
Two Levels

31 7-7 Factorial Experiments with More than Two Levels
Residual Plot resid*type λ„ν‘œ. λ²”λ‘€: A = 1 κ΄€μΈ‘μΉ˜, B = 2 κ΄€μΈ‘μΉ˜, λ“±. resid | 0.35 + | A 0.30 +A A | 0.25 + | A A 0.20 + 0.15 + 0.10 +A A 0.05 + 0.00 + | B A A type Residual Plot resid*method λ„ν‘œ. λ²”λ‘€: A = 1 κ΄€μΈ‘μΉ˜, B = 2 κ΄€μΈ‘μΉ˜, λ“±. resid | 0.35 + | A A A | 0.25 + | A A 0.20 + | A 0.15 + A A 0.05 + 0.00 + | B | A A A A Dipping Sprayin method

32 Ex. 7-51 (pp. 430) OPTIONS NOOVP NODATE NONUMBER; proc format;
value hc 1='10%' 2='15%' 3='20%'; value ct 1='1.5 hrs' 2='2.0 hrs'; value fn 1='300' 2='500' 3='650'; DATA ex751; infile 'C:\Users\korea\Desktop\Working Folder 2017\imen214-stats\ch07\SAS\ex751.txt'; INPUT hc ct fn strength label hc='Hardwood Concentration' ct='Cooking Time' fn='Freeness'; format hc hc. ct ct. fn fn.; ods graphics on; PROC glm plots=diagnostics; CLASS hc ct fn; MODEL strength=hc | ct | fn; MEANS hc | ct | fn/snk; output out=new r=resid; TITLE 'Three-way ANOVA'; PROC PLOT DATA=NEW; PLOT RESID*hc; PLOT RESID*ct; plot resid*fn; run; quit; 1 96.6 2 97.7 3 99.4 98.4 99.6 100.6 98.5 96 97.5 98.7 95.6 97.4 97.6 97 99.8 98.6 100.4 100.9 97.2 96.9 98.1 99 96.2 97.8

33 7-7 Factorial Experiments with More than
Two Levels

34 7-7 Factorial Experiments with More than
Two Levels

35 7-7 Factorial Experiments with More than
Two Levels

36 7-7 Factorial Experiments with More than
Two Levels

37 7-7 Factorial Experiments with More than
Two Levels

38 7-7 Factorial Experiments with More than
Two Levels

39 7-7 Factorial Experiments with More than
Two Levels

40 7-7 Factorial Experiments with More than
Two Levels

41 7-7 Factorial Experiments with More than
Two Levels

42 7-7 Factorial Experiments with More than
Two Levels

43 7-7 Factorial Experiments with More than
Two Levels

44 The Latin Square Design
The Latin square design is used to eliminate two nuisance sources of variability; that is, it systemically allows blocking two dimensions. Thus, the rows and columns actually represent two restrictions on randomization. In a Latin square design, there are p treatments and p levels of each of the two blocking variables. Each treatment level appears in each row and column once. The arrangement should be randomly selected from all possible arrangement. For instance, there is only 1 3x3, 4 4x4, 56 5x5, and x6 Latin squares.

45 The Latin Square Design

46 The Latin Square Design
Example 5-4

47 The Latin Square Design
OPTIONS NOOVP NODATE NONUMBER LS=80; DATA latin; INPUT operator batch treat$ force CARDS; 1 1 A B C D E -3 2 1 B C D E A 5 3 1 C D E A B -5 4 1 D E A B C 4 5 1 E A B C D 6 ods graphics on; PROC GLM data=latin plots=(diagnostics); CLASS operator batch treat; MODEL force = operator batch treat; MEANS operator batch treat/snk; output out=new p=phat r=resid; TITLE 'Latin Square Design'; proc plot data=new; plot resid*(operator batch treat)/vaxis= -3.5 to 5.0 by 0.5; Title 'Residual plot'; RUN; QUIT;

48 The Latin Square Design

49 The Latin Square Design

50 The Latin Square Design

51 The Latin Square Design

52 The Latin Square Design

53 The Latin Square Design

54 The Latin Square Design

55 The Latin Square Design

56 The Latin Square Design

57 The Latin Square Design
Residual plot resid*treat λ„ν‘œ. λ²”λ‘€: A = 1 κ΄€μΈ‘μΉ˜, B = 2 κ΄€μΈ‘μΉ˜, λ“±. resid | A | A 4.5 + | A 4.0 + | 3.5 + 3.0 + 2.5 + A | A 1.5 + A 0.5 + A B | A A -0.5 + | A A B | A A -1.5 + A -2.5 + | B A | A -3.5 + A B C D E treat Residual plot resid*operator λ„ν‘œ. λ²”λ‘€: A = 1 κ΄€μΈ‘μΉ˜, B = 2 κ΄€μΈ‘μΉ˜, λ“±. resid | A | A 4.5 + | A 4.0 + | 3.5 + 3.0 + | A 2.5 + A 1.5 + A | A 0.5 + A B | A A -0.5 + B A | B -1.5 + A -2.5 + | A A A | A -3.5 + operator Residual plot resid*batch λ„ν‘œ. λ²”λ‘€: A = 1 κ΄€μΈ‘μΉ˜, B = 2 κ΄€μΈ‘μΉ˜, λ“±. resid | A | A 4.5 + | A 4.0 + | 3.5 + 3.0 + | A 2.5 + A | A 1.5 + 1.0 + A | A 0.5 + A A A | B -0.5 + A A A | A A -1.5 + A -2.5 + | A A A -3.5 + batch


Download ppt "7-2 Factorial Experiments"

Similar presentations


Ads by Google