Professional Documents
Culture Documents
Design of Experiments: III. Hasse Diagrams in Designed Experiments
Design of Experiments: III. Hasse Diagrams in Designed Experiments
R. A. Bailey
r.a.bailey@qmul.ac.uk
57a Reunião Anual da RBras, May 2012
1
So we can regard a factor as a partition into lev- Cultivar example
els or classes.
Let Ω = the set of observational units, and let F 0 160 240 160 80 0
be a factor on Ω.
F [[α]] = {ω ∈ Ω : F (ω ) = F (α)}.
80 0 160 240 0 240
For example, if the observational units are plots
in several fields, and F is the factor for ‘fields’ and
240 240 0 80 240 160
α is a plot, then F [[α]] consists of all the plots in the
same field as the plot α.
↑ ↑ ↑ ↑ ↑ ↑
A factor is uniform if all of its classes have the Cropper Melba Melle Melba Cropper Melle
same size.
E = plot ≺ strip ≺ field ≺ U strip ≺ cultivar
Aliasing
We say that F is aliased with G (written F ≡ G) if The Hasse diagram
every F-class is also a G-class. There is one point for each factor.
Some aliasing is just renaming of levels: for ex-
ample, F is days with names Monday, Tuesday, . . . , Write Draw
and G is dates with names 1, 2, . . . . vG
We write F 4 G if F ≺ G or F ≡ G.
2
Cultivar example: Hasse diagram on plot fac- Infimum on the Hasse diagram
tors F ∧ G is the factor whose classes are the non-
empty intersections of F-classes with G-classes.
0 160 240 160 80 0 It is finer than both F and G:
F∧G 4 F and F ∧ G 4 G.
160 80 80 0 160 80
It has the least number of levels subject to this.
cultivar fertilizer
1 vU f3 4 f
@
@
@
2 v field @f
treatment
12
6 v strip
cultivar ∧ fertilizer = treatment
24 v E
Supremum of two factors
1.4 Inf and sup Given two factors F and G, the factor F ∨ G is the
finest factor whose classes are unions of F-classes
Infimum of two factors and unions of G-classes.
Given two factors F and G, the factor F ∧ G is
defined by If you try to fit F and G in a linear model, you
will get into trouble unless you fit F ∨ G first.
( F ∧ G )[[ω ]] = F [[ω ]] ∩ G [[ω ]].
Cultivar example
field ∨ fertilizer = U
strip ∨ treatment = cultivar
Cultivar example
cultivar ∧ fertilizer = treatment
field ∧ cultivar = strip
3
Supremum on the Hasse diagram Hasse diagram for factors on the observational
F ∨ G is the factor which is coarser than both F units
and G:
1 vU
F 4 F∨G and G 4 F ∨ G,
How many of each are there?
and which has the largest number of levels subject
to this. 2 vfield
F∨G
v 24 vE
@
@
@
Hasse diagram for factors on the treatments
F v @v G
1 fU = fertilizer ∨ cultivar
Supremum example with mixed factors
@@
@
cultivar f @ ffertilizer
0 160 240 160 80 0 3 @ 4
@
@
12 fT = fertlizer ∧ cultivar
@
160 80 80 0 160 80
dose type
Z S K M N
240 240 0 80 240 160 √
none
√ √ √ √
↑ ↑ ↑ ↑ ↑ ↑ single
√ √ √ √
Cropper Melba Melle Melba Cropper Melle double
4
Drugs at different stages of development Orthogonality: general case
A pharmaceutical company wants to compare 6 F is orthogonal to G if, within each class of
treatments for a certain disease. There are are F ∨ G separately, F-classes meet G-classes propor-
3 different doses of drug A, that has been under tionately.
development for some time, and 3 different doses
(not comparable with the previous 3) of a new In general, this condition means that, whenever
drug B, that has not been so extensively studied.
( F ∨ G )(α) = ( F ∨ G )( β),
A1 A2 A3 B1 B2 B3 then
U 1 1 1 1 1 1 F [[α]] ∩ G [[ β]] 6= ∅
drug 1 1 1 2 2 2
A 1 2 3 4 4 4 and the following proportionality equation holds:
B 4 4 4 1 2 3
E 1 2 3 4 5 6 |( F ∧ G )[[α]]| |( F ∧ G )[[ β]]|
= .
| F [[α]]| × | G [[α]]| | F [[ β]]| × | G [[ β]]|
1 fU
5
1.6 Structures Factorial treatments plus control
Orthogonal treatment structure dose type
An orthogonal treatment structure is a set G of fac- Z S K M N
tors on the set of treatments such that √
none
√ √ √ √
1. U ∈ G ; single
√ √ √ √
double
2. if F ∈ G and G ∈ G then F ∨ G ∈ G ;
dose ∨ type = fumigant
3. if F ∈ G and G ∈ G then F is orthogonal to G.
A1 A2 A3 B1 B2 B3
Hasse diagram for factors on the treatments U 1 1 1 1 1 1
drug 1 1 1 2 2 2
1, 1 fU = fertilizer ∨ cultivar A 1 2 3 4 4 4
@@ B 4 4 4 1 2 3
@ E 1 2 3 4 5 6
cultivar f @ ffertilizer
3, 2 @ 4, 3
1, 1 fU
@
@
12, 6 fT = fertlizer ∧ cultivar
@
6
Orthogonal plot structure Null analysis of variance
An orthogonal plot structure is a set F of factors The null analysis of variance is a table showing the
on the observational units such that strata and their degrees of freedom.
1. every factor in F is uniform;
2. U ∈ F ;
3. E ∈ F ; 1, 1 vU
4. if F ∈ F and G ∈ F then F ∨ G ∈ F ;
5. if F ∈ F and G ∈ F then F ∧ G ∈ F ; 2, 1 vfield
1, 1 vU plot 18
2, 1 vfield
Orthogonal design
An orthogonal design consists of
6, 4 vstrip
Degrees of freedom calculated by • a set of treatments (which affect expectation)
subtraction having an orthogonal treatment structure
24, 18 vE • a set of plots (which affect covariance) having
an orthogonal plot structure
Covariance matrix
• an allocation of treatments to plots which sat-
Theorem 3. If the observational units have an orthog- isfies
onal plot structure, and the covariance of Yi and Yj
depends only on which factors have the same level on – treatment factors remain orthogonal to
i and j, then the eigenspaces of the covariance matrix each other, even if treatments are not
(that is, the strata) are the spaces WF . equally replicated
– treatment factors are orthogonal to plot
This implies that, if we project the data onto
factors
any one stratum WF , then estimation and testing
within that stratum proceed just as they do when – if F is a plot factor and G is a treatment
the covariance matrix is Iσ2 . factor then F ∨ G is a treatment factor.
7
1.7 Skeleton anova Skeleton analysis of variance for cultivar exam-
ple
Combined Hasse diagram
Draw the combined Hasse diagram using 2 dif-
ferent colours of dot. stratum df source df
iU
v Wine example: combined Hasse diagram
H HH Four wines are tasted and evaluated by each of
H eight judges. A ‘plot’ is one tasting by one judge.
HH
v fcultivar H ffertilizer
H
field
@ 1 i
vU
@ @
@ @ @
@ @ @
v @f
strip T judge v8 @f
@
@ 4 wine
@ @@
@ @
@vE
32 vE
@
8
Calves example: combined Hasse diagram Linear models
The treatments were 4 different feeds for calves. A linear model for variables Y1 , . . . , Yn has the
The calves were not fed individually. They were form
housed in 8 pens, with 10 calves per pen. Each pen E( Y ) ∈ M
was allocated to a certain type of feed. Batches of
this type of feed were put into the pen; calves were and
free to eat as much of this as they liked. Calves Cov(Y) = ∑ σj2 Q j ,
were weighed individually. j
80 vE
Then M consists of all vectors v with the prop-
erty that
1 v
iU Example of a polynomial model
There is a covariate x taking value xi on plot i,
and
area i
vpesticide E(Yi ) = a + bxi + cxi2 .
3
Then M consists of all vectors which are linear
combinations of the three vectors (1, 1, 1, . . . , 1),
9 vE
( x1 , x2 , x3 , . . . , xn ) and ( x12 , x22 , x32 , . . . , xn2 ); and
dim M = 3.
2 II. Models
Part II
9
The Hasse diagram on models 2.2 Orthogonality
There is one point for each model.
Family of models: orthogonality
Write Draw If M1 and M2 are in M then in general they can-
not be orthogonal to each other because they both
v M2
contain M1 ∩ M2 .
M1 < M2
Principle 3. If M1 and M2 are both in M and M0 =
v M1 M1 ∩ M2 then M1 ∩ M0⊥ should be orthogonal to
M2 ∩ M0⊥ .
Convention Write dim M beside the dot for M.
Why? If not, various paradoxes are possible in
Family of models: intersection fitting the data. (Again, in practice, this is often
Let M be the family of expectation models that ignored.)
we are considering fitting to the data.
M1 v v M2
@ 3 x quadratic polynomial
@
x straight line
@
@v 2
M1 ∩ M2
1 x constant
M1 + M2 = {v + w : v ∈ M1 and w ∈ M2 }
Principle 2. If M1 and M2 are both in M then
M1 + M2 must also be in M.
Warning: the best-fitting quadratic polynomial
Why? If not, we might find that v and w are is not usually obtained by taking the best-fitting
allowed vectors of fitted values but v + w is not. cubic polynomial and removing the term in x3 .
(People who fit sparse models do not believe this.)
M1 + M2 Two warnings
v If the models are defined by factors then
@
• the Hasse diagram for the models is the op-
@
@
M1 v @v M2 posite way up from the Hasse diagram for the
factors
Theorem 4.
dim( M1 + M2 ) = dim M1 + dim M2 − dim( M1 ∩ M2 ). • there may be more models than factors.
10
Drugs at different stages of development Factorial treatments plus control
A1 A2 A3 B1 B2 B3 dose type
U 1 1 1 1 1 1 Z S K M N
√
drug 1 1 1 2 2 2 none
√ √ √ √
A 1 2 3 4 4 4 single
√ √ √ √
B 4 4 4 1 2 3 double
tmt 1 2 3 4 5 6
dose ∨ type = fumigant
6 vtreatment
@ 9 vtreatment
@
@
A v @v B
4 @ 4 6 vdose + type
@ @
@ @
2@vdrug dose v
@ type
@v
3 @ 5
@
1 vconstant @
2@vfumigant
Factorial: cultivars and fertilizer
12 treatments are all combinations of:
1 vconstant
factor levels
Cultivar (C) Cropper, Melle, Melba
Fertilizer (F) 0, 80, 160, 240 kg/ha
2.4 Scaled Hasse diagram
ANOVA table
Each line of the ANOVA table corresponds to a
difference between models, showing the difference
between the sums of squares of their fitted values,
12 vtreatment
and the difference between their dimensions.
11
An experiment on biodiversity
A, B, C, D, E, F — six types of freshwater
“shrimp”.
Put 12 shrimps in a jar containing stream water
and alder leaf litter.
Measure how much leaf litter is eaten after 28
days.
Experimental unit = jar.
Richness
Treatment Level
6 A, . . . , F monoculture 12 of type A 1
15 AB, . . . , EF duoculture 6 of A, 6 of B 2
20 ABC, . . . , DEF triculture 4 of A, 4 of B, 4 of C 3
—
41
The Hasse diagram of our family of expectation
The experiment was carried out in 4 blocks of 41 models
jars. (41) t Treatment
12
What the data showed: lengths are mean
squares
Treatment rr Richness ∗ Type
Richness + Type ..r..r Type
Conclusions:
The model Richness does not explain the data.
The model Type explains the data well.
There is no evidence that any larger model does
any better.
Scale:
3 × residual mean square
Further Reading
13