Professional Documents
Culture Documents
Randomized Design
Completely Randomized Design
A
Cage positions
Completely randomized design
(3 treatments x 3 replications)
A B
Cage positions
Completely randomized design
(3 treatments x 3 replications)
A B B
Cage positions
Completely randomized design
(3 treatments x 3 replications)
A B B
Cage positions
Completely randomized design
(3 treatments x 3 replications)
A B B
C
Cage positions
Completely randomized design
(3 treatments x 3 replications)
A B B
C A
Cage positions
Completely randomized design
(3 treatments x 3 replications)
A B B
C A C
Cage positions
Completely randomized design
(3 treatments x 3 replications)
A B B
C A C
B
Cage positions
Completely randomized design
(3 treatments x 3 replications)
A B B
C A C
B C
Cage positions
Completely randomized design
(3 treatments x 3 replications)
A B B
C A C
B C A
The Linier Model
X =μ + t +ε
ij i ij
i = 1,2,…, t j = 1,2,…, r
Xij = the observation in ith treatment and the jth
replication
m = overall mean
t = the effect of the ith treatment
i
H0: m1 = m2 = m3 = ... = mt
H0: m1 = m2 = m3 = ... = mt
• All Population Means are f(X)
Equal
• No Treatment Effect
X
m1 = m2 = m3
Ha: Not All mi Are Equal
• At Least 1 Pop. Mean is
Different f(X)
• Treatment Effect
NOT m1 m2 ... mt X
m1 = m 2 m 3
One-Way ANOVA
Basic Idea
Total variation
One-Way ANOVA
Partitions Total Variation
Total variation
Variation due to
treatment
One-Way ANOVA
Partitions Total Variation
Total variation
Total variation
Total variation
SS Total X 11 X X 21 X X ij X
2 2 2
Response, X
X
2 2
SST n X X n X X n X X
1 1 2 2 t t
2
Response, X
X3
X
X2
X1
SSE X11 X1 X 21 X1 X tj X t
2 2 2
Response, X
X3
X2
X1
SS X ij X ..
n1 ni
i 1 j 1
X ij X i. X i. X ..
n1 ni 2
i 1 j 1
n1 ni n ni
X ij X i. X i. X ..
2 1 2
i 1 j 1 i 1 j 1
2 X ij X i. X i. X ..
n1 ni
i 1 j 1
But
X ij X i. X i. X ..
n1 ni
i 1 j 1
X i. X .. X ij X i.
n1 ni
i 1 j 1
n1
X i. X .. n X i. n X i.
i 1
0
Thus, SStotal=SSE+SST
SS X ij X i. X i. X ..
n1 ni 2 n1 ni 2
i 1 j 1 i 1 j 1
X ij X i. ni X i. X ..
n1 ni 2 n1 2
i 1 j 1 i 1
SSE SST
One-Way ANOVA F-Test
Test Statistic
1. Test Statistic
• F = MST / MSE
2. Degrees of Freedom
1 = t -1
2 = tr - t
t = # Populations, Groups, or Levels
Total SSTot tr - 1
The F distribution
Two parameters
• increasing either one decreases F-alpha (except for
v2<3)
• I.e., the distribution gets smashed to the left
0 F
F ( v1 , v2 )
One-Way ANOVA F-Test Critical
Value
If means are equal, F =
MST / MSE 1. Only
reject large F! Reject H0
Do Not
Reject H 0
0 F
F ( t 1, tr -t)
Always One-Tail!
© 1984-1994 T/Maker Co.
Example: Protein sources
source
(Treatments)
Experimental
units
Dependent 4 9 14
variable 5 7 18
(Response) 3 14 16
Example: Protein source
Observation Catfish Tilapia Tuna
1 4 9 14
2 5 7 18
3 3 14 16
Sample Mean 4 10 16
Sample Variance 1 13 4
Example: Protein sources
Hypotheses
H0: m1 = m2 = m3
Ha: Not all the means are equal
where:
m1 = mean number of catfish
m2 = mean number of tilapia
m3 = mean number of tuna
Example: Protein sources
Mean Square among Treatments
Since the
_ sample
_ _ sizes are all equal:
μ (grand mean)= (4 + 10 + 16)/3 = 10
SSTR= 3(4–10)2+ 3(10–10)2+ 3(16–10)2= 216
MSTR = 216/(3 - 1) = 108
Mean Square Error
SSE = 2(1) + 2(13) + 2(4) = 36
MSE = 36/(9 - 3) = 6
Example: Protein sources
Rejection Rule
Using test statistic: Reject H0 if Ftable > 5.14
Test Statistic
Fcalc. = MST/MSE = 108/6= 18.00
Conclusion
Since Fcalc. = 18.00 > F.05 = 5.14, we reject H0.
There is sufficient evidence to conclude that the
weight of harvested catfish are affected by protein
source.
Example: protein source
ANOVA Table
Source of Sum of Degrees of Mean
Variation Squares Freedom Squares Fcalc.
10 SUMMARY
11 Groups Count Sum Average Variance
12 Observation 9 90 10 31,5
13 Catfish 3 12 4 1
14 Tilapia 3 30 10 13
15 Tuna 3 48 16 4
Using Excel’s ANOVA:
Single Factor Tool
Value Worksheet (bottom portion)
12 Catfish 3 12 4 1
13 Tilapia 3 30 10 13
14 Tuna 3 48 16 4
15
16 ANOVA
17 Source of Variation SS df MS Fcalculate Ftable
18 Among Groups 216 2 108 18 5,14
19 Within Groups 36 6 6
20
21 Total 252 8
RCBD
(Randomized Complete Block Design)
Randomized Complete Block
Design
An experimental design in which there is one independent
variable, and a second variable known as a blocking
variable, that is used to control for confounding or
concomitant variables.
It is used when the experimental unit or material are
heterogeneous
There is a way to block the experimental units or materials
to keep the variability among within a block as small as
possible and to maximize differences among block
The block (group) should consists units or materials which
are as uniform as possible
Randomized Complete Block Design
0,75 x 0,75
1,00 x 1,00
1,25 x 1,25
Class positions
Randomized Complete Block Design
(3 treatments x 3 Blocks)
A 0,75 x 0,75
1,00 x 1,00
1,25 x 1,25
Class positions
Randomized Complete Block Design
(3 treatments x 3 Blocks)
A C 0,75 x 0,75
1,00 x 1,00
1,25 x 1,25
Class positions
Randomized Complete Block Design
(3 treatments x 3 Blocks)
A C B 0,75 x 0,75
1,00 x 1,00
1,25 x 1,25
Class positions
Randomized Complete Block Design
(3 treatments x 3 Blocks)
A C B 0,75 x 0,75
B 1,00 x 1,00
1,25 x 1,25
Class positions
Randomized Complete Block Design
(3 treatments x 3 Blocks)
A C B 0,75 x 0,75
B A 1,00 x 1,00
1,25 x 1,25
Class positions
Randomized Complete Block Design
(3 treatments x 3 Blocks)
A C B 0,75 x 0,75
B A C 1,00 x 1,00
1,25 x 1,25
Class positions
Randomized Complete Block Design
(3 treatments x 3 Blocks)
A C B 0,75 x 0,75
B A C 1,00 x 1,00
C 1,25 x 1,25
Class positions
Randomized Complete Block Design
(3 treatments x 3 Blocks)
A C B 0,75 x 0,75
B A C 1,00 x 1,00
C A 1,25 x 1,25
Class positions
Randomized Complete Block Design
(3 treatments x 3 Blocks)
A C B 0,75 x 0,75
B A C 1,00 x 1,00
C A B 1,25 x 1,25
Partitioning the Total Sum of Squares
in the Randomized Block Design
SStotal
(total sum of squares)
SSE
(error sum of squares)
.
MST
MSE Individual
.
observations
Blocking
Variable .
. . . .
. . . . .
. . . .
.
The Linier Model
y μ τ ρ ε
ij i j ij
i = 1,2,…, t j = 1,2,…,r
yij = the observation in ith treatment in the jth block
m = overall mean
ti = the effect of the ith treatment
No interaction
rj = the effect of the jth block between blocks
and treatments
eij = random error
Extension of the ANOVA to the RCBD
t r t r
(yij y.. ) (yi. y.. ) (y.j y.. ) (yij yi. y.j y.. )
2 2
i 1 j1 i 1 j1
t r t r
r (yi. y.. ) t (y.j y.. ) (y ij yi. y.j y.. ) 2
2 2
i 1 j1 i 1 j1
Total SSTot tr - 1
Example: Protein sources
Treatment
Means 4 10 16 10
Example: Protein sources
Mean Square Due to Treatments
The overall sample mean is 10. Thus,
SSTreatment = 3[(4-10)2+ (10-10)2+ (16-10)2]= 216.00
MSTreatment = 216/(3 - 1) = 108
Mean Square Due to Blocks
SSBlock = 3[(9-10)2 + (10-10)² + (11-10)2] = 6
MSBlock= 6/(3 - 1) = 2
Mean Square Due to Error
CF = (90)2 /(3x3) = 900
SStotal = (4)2+ …+ (3)2 – 900 = 252
SSE = 252 - 216 – 6 = 30
MSE = 30 /[(3 - 1)(3- 1)] = 7.5
Example: protein source
ANOVA Table
Source of Sum of Degrees of Mean
Variation Squares Freedom Squares Fcalc.
Classes 6 2 3 0.03
Treatments 216 2 108 14.40
Error 30 4 7.5
Total 252 8
Example: Protein sources
Rejection Rule
Using test statistic: Reject H0 if Ftable > 6.94
Value
9
10
Class
Worksheet
Count
(middle portion)
Sum Average
11 0,75 x 0,75 3 27 9
12 1,00 x 1,00 3 30 10
13 1,25 x 1,25 3 33 11
16
17 Catfish 3 12 4
18 Tilapia 3 30 10
19 Tuna 3 48 16
20
21
22
23
Using Excel’s Anova
A B C D E G
8 ANOVA
9 Variation SS df MS Fcalc F table
10 Classes 6 2 3 0,02778 6,94
11 Protein source 216 2 108 14,4 6,94
12 Error 30 4 7,5
13
14 Total 252 8
Using Excel’s Anova:
Two-Factor Without Replication Tool
ABCD
BCDA
CDAB
DABC
The Latin Square Design
This design is used to simultaneously control (or eliminate) two
sources of nuisance variability (confounding variables)
It is called “Latin” because we usually specify the treatment by the
Latin letters
“Square” because it always has the same number of levels (t) for the
row and column nuisance factors
A significant assumption is that the three factors (treatments and two
nuisance factors) do not interact
More restrictive than the RCBD
Each treatment appears once and only once in each row and column
If you can block on two (perpendicular) sources of variation
A B (rowsC xD
columns) you can reduce experimental error when comparedB C to D theA
RCBD
C D A B
D A B C
Useful in Animal Nutrition
Studies
Suppose you had four feeds you wanted to test on dairy
cows. The feeds would be tested over time during the
lactation period
This experiment would require 4 animals (think of
these as the rows)
There would be 4 feeding periods at even intervals
during the lactation period beginning early in lactation
(these would be the columns)
The treatments would be the four feeds. Each animal
receives each treatment one time only.
The “Latin Square” Cow
Mid Mid
Early Late
Early Late
Uses in Field Experiments
When two sources of variation must be controlled
• Slope and fertility
• Furrow irrigation and shading
• If you must plant your plots perpendicular to a linear
gradient
‘Row’
1 2 3 4
A B C D B C D A C D A B D A B C
1 2 3 4
‘Column’
5x5 6x6
ABCDE ABCDEF
BAECD BFDCAE
CDAEB CDEFBA
DEBAC DAFECB
ECDBA FEBADC
Randomization
Selected Latin Square
A B C
B C A
C A B
Randomization
Randomize the order of rows: 2
B C A
Randomization
Randomize the order of rows: 1
B C A
A B C
Randomization
Randomize the order of rows: 3
B C A
A B C
C A B
Randomization
Randomize the order of columns: 3
A
B
Randomization
Randomize the order of columns: 1
A B
C A
B C
Randomization
Randomize the order of columns: 2
A B C
C A B
B C A
Latin Square Designs
There are three factors:
Treatments (t) (letters A, B, C, …)
Rows (t)
Columns (t)
Advantage:
• Allows the experimenter to control two sources of variation
Disadvantages:
• Error degree of freedom (df) is small if there are only a few
treatments
• The experiment becomes very large if the number of
treatments is large
• The statistical analysis is complicated by missing plots and
mis-assigned treatments
Analysis
Set up a two-way table and compute the row and column
totals
Compute a table of treatment totals and means
Set up an ANOVA table divided into sources of variation
• Rows
• Columns
• Treatments
• Error
Significance tests
• FT tests difference among treatment means
• FR and FC test if row and column groupings are effective
The Linier Model
yij k m t k r i j e ij k
i = 1,2,…, t j = 1,2,…, t k = 1,2,…, t
yij(k) = the observation in ith row and the jth column
receiving the kth treatment
m = overall mean
tk = the effect of the kth treatment
No interaction
ri = the effect of the i row
th
between rows,
j = the effect of the jth column columns and
treatments
eij(k) = random error
Latin Square
Treatment:
A: Catfish
B: Tilapia
C: Tuna
Protein sources
_
3-4 5-6 7-8 Xi. Xi
0,75 x 0,75 A (4) B(9) C(14) 27 9
1x1 C(18) A(5) B(7) 30 10
1,25 x 1,25 B(14) C(16) A(3) 33 11
Xj 36 30 24 90
_
Xj 12 10 8 10
A= 12 B=
_
30 C=48
_
Ā= 4 B= 10 C= 12
Final Exam Notes
i = 1,2,…, t j = 1,2,…, t
k = 1,2,…, t l = 1,2,…, t
yij(kl) = the observation in ith row and the jth column receiving the
kth Latin treatment and the lth Greek treatment
m = overall mean
tk = the effect of the kth Latin treatment
l = the effect of the lth Greek treatment
ri = the effect of the ith row