






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Garrett Dancik http://www.public.iastate.edu/~gdancik/stat430 [email protected]
Last Updated: October 29, 2007
A designed experiment is a controlled study in which one or more treatments are applied to experimental units. The experimenter then observes the effect of varying these treatments on a response variable. The response variable is the variable of interest, and can be quantitative or qualitative. Response variables are also referred to as dependent variables. Designed experiments should be contrasted with observational stud- ies, where a researcher measures characteristics of a population without manipulating or influencing any variables of interest. It is important to realize that observational studies do not allow a researcher to claim causation (although many people make this mistake), because they do not control for lurking or extraneous variables.
Key features of all experiments include (at least the first three):
An experimental design specifies how we assign treatments to experimental units. What are good properties of an experimental design? Before selecting an experimental design, it is important to have a clear picture of the purpose of the experiment, and of what we hope to obtain from our statistical model.
Before continuing, it will be useful to introduce the idea of an interaction effect. When the effect that a parameter has on a response depends on the value(s) of one (or more) other parameters, we say that there exists an interaction effect between the parameters.
Suppose were are interested in the relationship between the weight and height of students in a class (note that this is not a designed experiment!). Since we expect that males and females that are the same height do not have equal weights (on average), we might include gender as a (coded) variable in our model.
yi = β 0 + β 1 x 1 i + β 2 x 2 i + ij , where ij ∼ independent N (0, σ^2 )
where yi is the weight of individual i, x 1 i is the height of individual i, and x 2 i is equal to +1 if invidual i is male and −1 if individual i is female. We will not concern ourselves with fitting such a model, but note that this can be done using the lm function in R.
However, let’s look at the implications of such a model.
E[yi|male, x 1 i] = (β 0 + β 2 ) + β 1 x 1 i, and E[yi|f emale, x 1 i] = (β 0 − β 2 ) + β 1 x 1 i.
Note that if we were to graph the expectations, we end up with two parallel lines (the only difference in the lines being the y-intercept). Importantly, this formulation of the model assumes that the linear relationships between height and weight (the slopes of the lines) are the same for both males and females. In other words, the model assumes that there is no interaction between height and gender.
But what if we did not want to make such an assumption? In that case we add what is known as an interaction term to the model (specifically a height by gender interaction term).
yi = β 0 + β 1 x 1 i + β 2 x 2 i + β 12 x 1 ix 2 i + ij
What are the implications of this model?
E[yi|x 1 i, male] = (β 0 + β 2 ) + (β 1 + β 12 )x 1 ,i, and E[yi|x 1 i, female] = (β 0 − β 2 ) + (β 1 − β 12 )x 1 ,i.
With this model, the linear relationship between height and weight depends on the gender of the individual, and graphing the two expectation functions will not result in parallel lines. Graphs of the two above models are provided in the attached handout.
A completely randomized design (CRD) is a design where treatments are assigned to experimental units completely at random, subject to the number of observations / treatment.
Recall the model for the One-way ANOVA:
yij = θi + ij , i = 1,... a, j = 1... ri, (r for replicates), N =
∑^ a
i=
ri
which can be reparameterized as
yij = μ + αi + ij , i = 1,... a, j = 1... ri, N =
∑^ a
i
ri.
Blocking allows us to decrease our experimental error (σ^2 ) because within each block, our experimental units are more similar. Blocking is one mechanism for producing smaller confidence intervals and more powerful tests. However, experimental units must be blocked in such a way that blocks are not confounded with any factors of interest.
Blocking in conjunction with a one-way ANOVA gives us the following model:
yijk = μ + αi + βj + ijk,
where i = 1,... , a, k = 1,... , ri, and βj corresponds to the effect of being in block j. The assumptions on the ′s are the same as above.
How do we choose to assign a particular treatment a particular individual, given that they are in block j?
Consider the following (silly) experimental design.
Response Block Treatment y 111 1 1 y 112 1 1 y 221 2 2 y 222 2 2
The design above is a faulty design because we cannot make inference on any contrast of the θi’s. Can you think of a design that would allow us to make inference on all contrasts?
A randomized complete block design (RCBD) is a design that involves blocking of the experimental units, and implementing a CRD within each block. A RCBD, as we will see, allows us to make inference on any contrast of the θi’s.
Now consider the model
yij = μ + αi + βj + ij , where i = 1,... , a, j = 1,... , b.
There is a small but very important distinction between this model and the model in section 4.1. The current model along with the description i = 1,... , a, j = 1,... , b implies that observations exist for all combinations of i and j. In other words, every treatment appears in every block, which is a necessary (though not sufficient) requirement in a RCBD.
We will assume that there is no replication so that N = ab, which allows us to fairly compare RCBDs with CRDs when the number of blocks in the RCBD is equal to the total number of replicates in the CRD (if
b =
∑^ a
i=
ri ri = r = b for all i, then N is the same in both designs).
Let us verify that with a RCBD, we can make inference on all contrasts of the θ′ is:
[ (^) a ∑
i=
ciyij
∑^ a
i=
ci(μ + αi + βj ) =
∑^ a
i=
ci(θi + βj )
[ (^) a ∑
i=
ciyi.
∑^ a
i=
ci(θi + β) =
∑^ a
i=
ci(θi) if c = (c 1 ,... ca) is a contrast.
Now, similar to the one-way ANOVA, a (1 − α)% CI for
∑^ a
i=
ciθi is
∑^ a
i=
ciyi. ± tN −a−b+1, 1 −α/ 2 s
∑a
i=
c^2 i /ri,
where s =
M SE from the ANOVA table below.
Recall the suggestion that blocking allows us to increase the strength of the signal relative to the noise. Let’s
see how this plays out for the construction of confidence intervals of the form
i
ciθi.
The length of the intervals are (assuming
∑^ a
i=
ri = r = b ri = r = b for all i, so the comparison is more clear):
CRD: 2tn−a, 1 −α/ 2 sCRD
∑^ a
i=
c^2 i /r
RCBD: 2tn−a−b+1, 1 −α/ 2 sRCBD
∑^ a
i=
c^2 i /r
Factorial designs are used to study the joint effects of multiple factors on a response. For example, a factorial design would be used to analyze the effect of temperature, humidity, and growth medium on the growth rate of bacteria (or similarly, the effect of temperature and humidity on the lifespan of a battery). In a factorial design, the experimenter considers a fixed number of levels for each factor, and runs an experiment which looks at all combinations of the factors. If the experiment includes replication, all treatment combinations are replicated. Therefore, if there are a levels of factor A, b levels of factor B, and c levels of factor C, there will be abc treatment combinations. Factors can be quantitative, such as temperature and humidity, or qualitative, such as two different machines, operators, or the presence or absence of a factor.
When there are k factors that each occur at two levels, there are 2k^ treatment combinations. A factorial design that looks at all 2k^ treatment combinations is known as the 2k^ factorial design, and is the most common class of factorial designs. In this section, we will cover the 2^2 factorial design in detail, and provide results for the 2^3 factorial design.
4.3.1 22 factorial design
The factorial effects model for the 2^2 factorial design is
yijk = μ + αi + βj + (αβ)ij + ijk,
where i = 1, 2 , j = 1, 2 , and k = 1,... , r. The total number of observations is N = 4r. For convenience, we will refer to the two levels of each factor as the ”low (-)” and ”high (+)” levels of that factor.
This model is very similar to the RCBD model in section (4.1), where we treated the block as the factor. However, now we include the interaction effect (αβ)ij.
Of interest is how the response changes as one or more factors are changed. Specifically, the main effect of a factor is the difference between the average response at the high level of that factor and the average response at the low level of that factor.
For example, the main effect of factor A is
(average response at A+) − (average response at A−) =
j=
∑^ r
k=
y 2 jk
j=
∑^ r
k=
y 1 jk
Recalling our discussion about interaction effects, we know that the effect that factor A has on the response might be different for different levels of B. The AB interaction effect measures this, and is defined as the average difference between the main effect of A at B+^ and the main effect of A at B−^ (or equivalently the average difference between the main effect of B at the two levels of A).
Let’s look at an example from a 2^2 design with no replicates.
Suppose that we observed y 111 = 20, y 121 = 30, y 211 = 40, y 221 = 52, from the following design:
yijk μ α β (αβ)ij y 111 +1 − 1 − 1 + y 121 +1 − 1 +1 − 1 y 211 +1 +1 − 1 − 1 y 221 +1 +1 +1 +
Let us calculate and visualize the main effects for A and B, as well as the AB interaction effect...
In the design notation above, define xe to be a vector of the elements in the column corresponding to effect e. For example, xα = (− 1 , − 1 , +1, +1). Also define xα,ijk to be the element of xα corresponding to observation yijk. Note that the column corresponding to (αβ)ij is the element by element product of xα and xβ.
Using this design notation, it is straightforward to calculate the A and B main effects and the AB interaction effect:
i,j,k
xα,ijk × yijk
N/ 2 B^ =
i,j,k
xβ,ijk × yijk
N/ 2 AB^ =
i,j,k
x(αβ),ijk × yijk
N/ 2
4.3.2 23 factorial design
The full factorial effects model for the 2^3 factorial design is
yijkl = μ + αi + βj + γk + (αβ)ij + (αγ)ik + (βγ)jk + (αβγ)ijk + ijkl,
where i = 1, 2 , j = 1, 2 , k = 1, 2 , and l = 1,... , r. The total number of observations is N = 2kr = 8r.
Main effects and interaction effects are calculated in a similar manner as for the 2^2 factorial model. Using the same coding scheme we used in (4.3.1), estimates for any parameter in the 2^3 model can also be found using equation (1).
Notions of optimality apply to both regression and factorial models. For example, models of the form
What was the purpose of the original experiment? What do we hope to learn from our statistical model?
Optimality criteria:
Finding an optimal design typically depends on the model, the sample size, and the experimental region. However, there are some common designs that have been shown to have optimality properties. For example, the 2^2 factorial model without an interaction term is A,D, and G-optimal.