Академический Документы
Профессиональный Документы
Культура Документы
17 18
Factor Factor B
A 1 2 ... b Observation k
in each cell
1 X111 X121 ... X1b1
X11n X12n ... X1bn Xijk
2 X211 X221 ... X2b1
X21n X22n ... X2bn Level i Level j
: : : : : Factor Factor
a Xa11 Xa21 ... Xab1 A B
i = 1,…,a
Xa1n Xa2n ... Xabn j = 1,…,b
k = 1,…,n
There are a X b treatment combinations
19 20
ANOVA Procedure
• The ANOVA procedure for the two-factor factorial
experiment is similar to the completely randomized
experiment and the randomized block experiment.
• We again partition the sum of squares total (SST)
into its sources.
SST = SSA + SSB + SSAB + SSE
21 22
1
Two-Factor Factorial Experiment Two-Factor Factorial Experiment
Source of Sum of Degrees of Mean p- Step 1 Compute the total sum of squares
Variation Squares Freedom Square F Value a b r
SSA MSA
SST = ( x ijk x )2
Factor A SSA a-1 MSA i 1 j 1 k 1
a-1 MSE
SSB MSB Step 2 Compute the sum of squares for factor A
Factor B SSB b-1 MSB
b -1 MSE a
SSA = br ( xi . x )2
SSAB MSAB
Interaction SSAB (a – 1)(b – 1) MSAB i 1
( a 1)(b 1) MSE
SSE Step 3 Compute the sum of squares for factor B
Error SSE ab (r – 1) MSE
ab(r 1) b
SSB = ar ( x . j x )2
Total SST nT - 1 j 1
23 24
Step 4 Compute the sum of squares for interaction Example: State of Ohio Wage Survey
a b A survey was conducted of hourly wages for a
SSAB = r ( xij xi . x. j x )2 sample of workers in two industries at three locations
i 1 j 1
in Ohio. Part of the purpose of the survey was to
Step 5 Compute the sum of squares due to error determine if differences exist in both industry type
and location. The sample data are shown on the next
SSE = SST – SSA – SSB - SSAB slide.
25 26
27 28
2
Two-Factor Factorial Experiment Two-Factor Factorial Experiment
Total 3.42 17
29 30
31 32
Example:
Questions of Interest
Capsule Dissolve Time
Suppose we are looking at two capsule types
(C or V) & two digestive fluids (Gastric or Duodenal)
1. What effect does capsule type
Randomly assign 5
have on the time to dissolve?
capsules of each type to
each of type of digestive 2. What effect does fluid type have
juice and
dissolve time.
observe
on the time to dissolve?
Xijk = measured dissolve
time for capsule k in 3. Do both capsule types dissolve in
digestive juice i and
capsule type j. the same manner in the two
i = 1 or 2 (i.e. G and D)
j = 1 or 2 (i.e. C and V)
different fluid types?
k = 1,2,3,4,5
33 34
3
Plotting the Results ~ Capsule Effect Plotting the Results ~ Fluid Effect
X 1 mean time for type C capsules to dissolve 43.05 seconds X 1 mean time for capsules to dissolve in gastric juice 45.7 seconds
X 2 mean time for type V capsules to dissolve 42.85 seconds X 2 mean time for capsules to dissolve in duodenal juice 40.2 seconds
There appears to be very little difference between the capsule Capsules take 5.5 seconds longer on average to dissolve in
types in terms of the time it takes them to dissolve. gastric juice compared to duodenal juice.
35 36
Interactions
Interactions can “Mask” main effects
Type C capsules dissolve
faster than Type V in
duodenal juice, where
opposite is true when
gastric juice is used to
dissolve the capsules.
The capsule study is an example of situation where there is The apparent lack of
an interaction between the two factors being studied in a capsule effect is
terms of their effect on the numeric response. caused by the
interaction of capsule
An interaction occurs when the effect of one factor depends We say the interaction masks type and fluid type.
on the level of another factor. Here the effect of capsule
depends on the type of digestive juice used to dissolve it
the main effect of capsule
and vise versa. type.
39 40
4
Types of Interactions and Interpreting Types of Interactions and Interpreting
Interaction Plots Interaction Plots
41 42
43 44
Always construct an interaction plot to The data are shown for each of the eight categories of gender
and education. Can we infer that differences exist between
visualize the interaction or lack thereof ! genders and educational levels?
45 46
5
Data
Solution
47 48
There are small (not significant) differences between males and females in
factor Gender. There are significant differences between men and women
with different educational backgrounds. Finally, there is no interaction.
49 50
Question
Interaction Plot
data
51 52