1. randomized block design 2. factorial design
TRANSCRIPT
Prepared by: Mr. R A Khan 1
Analysis of Variance 1. Randomized Block Design
2. Factorial Design
Prepared by: Mr. R A Khan 2
Analysis of Variance
Randomized Block
Design
Prepared by: Mr. R A Khan 3
Randomized Block Design
1.Experimental Units (Subjects) Are Assigned
Randomly within Blocks
Blocks are Assumed Homogeneous
2.One Factor or Independent Variable of
Interest
2 or More Treatment Levels or Classifications
3. One Blocking Factor
Prepared by: Mr. R A Khan 4
Randomized Block Design
Factor Levels:
(Treatments) A, B, C, D
Experimental Units
Treatments are randomly
assigned within blocks
Block 1 A C D B
Block 2 C D B A
Block 3 B A D C.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Block b D C A B
Prepared by: Mr. R A Khan 5
Randomized Block F-Test
1.Tests the Equality of 2 or More (p) Population Means
2.Variables
One Nominal Independent Variable
One Nominal Blocking Variable
One Continuous Dependent Variable
Prepared by: Mr. R A Khan 6
Randomized Block F-Test
Assumptions
1.Normality
Probability Distribution of each Block-
Treatment combination is Normal
2.Homogeneity of Variance
Probability Distributions of all Block-
Treatment combinations have Equal
Variances
Prepared by: Mr. R A Khan 7
Randomized Block F-Test
Hypotheses
H0: 1 = 2 = 3 = ... = p
All Population Means are
Equal
No Treatment Effect
Ha: Not All j Are Equal
At Least 1 Pop. Mean is
Different
Treatment Effect
1 2 ... p Is wrong
Prepared by: Mr. R A Khan 8
Randomized Block F-Test
Hypotheses
H0: 1 = 2 = ... = p
All Population
Means are Equal
No Treatment Effect
Ha: Not All j Are
Equal
At Least 1 Pop.
Mean is Different
Treatment Effect
1 2 ... p Is
wrong
X
f(X)
1 = 2 = 3
X
f(X)
1 = 2 3
The F Ratio for Randomized
Block Designs
SS=SSE+SSB+SST
/ 1MST
MSE / 1 1 1
/ 1
/ 1
SST pF
SSE n p b
SST p
SSE n p b
9Prepared by: Mr. R A Khan
Prepared by: Mr. R A Khan 10
Randomized Block F-Test
Test Statistic
1. Test Statistic
F = MST / MSE
• MST Is Mean Square for Treatment
• MSE Is Mean Square for Error
2. Degrees of Freedom
1 = p -1
2 = n – b – p +1
• p = # Treatments, b = # Blocks, n = Total Sample
Size
Prepared by: Mr. R A Khan 11
Randomized Block F-Test
Critical Value
If means are equal,
F = MST / MSE 1.
Only reject large F!
Always One-Tail!
Fa p n p( , ) 1
0
Reject H0
Do Not
Reject H0
F
Prepared by: Mr. R A Khan 12
Randomized Block F-Test
Example You wish to determine which of four brands of tires has
the longest tread life. You randomly assign one of each
brand (A, B, C, and D) to a tire location on each of 5
cars. At the .05 level, is there a difference in mean
tread life?Tire Location
Block Left Front Right Front Left Rear Right Rear
Car 1 A: 42,000 C: 58,000 B: 38,000 D: 44,000
Car 2 B: 40,000 D: 48,000 A: 39,000 C: 50,000
Car 3 C: 48,000 D: 39,000 B: 36,000 A: 39,000
Car 4 A: 41,000 B: 38,000 D: 42,000 C: 43,000
Car 5 D: 51,000 A: 44,000 C: 52,000 B: 35,000
Prepared by: Mr. R A Khan 13
F0 3.49
Randomized Block F-Test
Solution H0: 1 = 2 = 3= 4
Ha: Not All Equal
= .05
1 = 3 2 = 12
Critical Value(s):
Test Statistic:
Decision:
Conclusion:
Reject at = .05
There Is Evidence Pop.
Means Are Different
= .05
F = 11.9933
Prepared by: Mr. R A Khan 14
Factorial Experiments
Prepared by: Mr. R A Khan 15
Factorial Design
1. Experimental Units (Subjects) Are
Assigned Randomly to Treatments
Subjects are Assumed Homogeneous
2. Two or More Factors or Independent
Variables
Each Has 2 or More Treatments (Levels)
3. Analyzed by Two-Way ANOVA
Prepared by: Mr. R A Khan 16
Advantages
of Factorial Designs
1.Saves Time & Effort
e.g., Could Use Separate Completely
Randomized Designs for Each Variable
2.Controls Confounding Effects by Putting
Other Variables into Model
3.Can Explore Interaction Between Variables
Prepared by: Mr. R A Khan 17
Two-Way ANOVA
1. Tests the Equality of 2 or More
Population Means When Several
Independent Variables Are Used
2. Same Results as Separate One-Way
ANOVA on Each Variable
- But Interaction Can Be Tested
Prepared by: Mr. R A Khan 18
Two-Way ANOVA
Assumptions
1.Normality
Populations are Normally Distributed
2.Homogeneity of Variance
Populations have Equal Variances
3.Independence of Errors
Independent Random Samples are Drawn
Prepared by: Mr. R A Khan 19
Two-Way ANOVA
Data Table
Yijk
Level i
Factor
A
Level j
Factor
B
Observation k
Factor Factor B
A 1 2 ... b
1 Y111 Y121 ... Y1b1
Y112 Y122 ... Y1b2
2 Y211 Y221 ... Y2b1
Y212 Y222 ... YX2b2
: : : : :
a Ya11 Ya21 ... Yab1
Ya12 Ya22 ... Yab2
Prepared by: Mr. R A Khan 20
Two-Way ANOVA
Null Hypotheses
1.No Difference in Means Due to Factor A
H0: 1. = 2. =... = a.
2.No Difference in Means Due to Factor B
H0: .1 = .2 =... = .b
3.No Interaction of Factors A & B
H0: ABij = 0
Prepared by: Mr. R A Khan 21
Total Variation
Two-Way ANOVA
Total Variation Partitioning
Variation Due to
Treatment A
Variation Due to
Random Sampling
Variation Due to
Interaction
SSE
SSA
SS(AB)
SS(Total)
Variation Due to
Treatment B
SSB
Prepared by: Mr. R A Khan 22
Source ofVariation
Degrees ofFreedom
Sum ofSquares
MeanSquare
F
A(Row)
a - 1 SS(A) MS(A) MS(A)MSE
B(Column)
b - 1 SS(B) MS(B) MS(B)MSE
AB(Interaction)
(a-1)(b-1) SS(AB) MS(AB) MS(AB)MSE
Error n - ab SSE MSE
Total n - 1 SS(Total)
Two-Way ANOVA
Summary Table
Same as
Other
Designs
Prepared by: Mr. R A Khan 23
Interaction
1.Occurs When Effects of One Factor
Vary According to Levels of Other Factor
2.When Significant, Interpretation of Main
Effects (A & B) Is Complicated
3.Can Be Detected
In Data Table, Pattern of Cell Means in One
Row Differs From Another Row
In Graph of Cell Means, Lines Cross
Prepared by: Mr. R A Khan 24
Graphs of Interaction
Effects of Gender (male or female) & dietary
group (sv, lv, nor) on systolic blood pressure
Interaction No Interaction
AverageResponse
sv lv nor
male
female
AverageResponse
sv lv nor
male
female