designing experiments 1 / 31 november 15, 2011st571-1/12-design-1.pdf · designing experiments 1 /...

31
Principles of Experimental Design Bret Hanlon and Bret Larget Department of Statistics University of Wisconsin—Madison November 15, 2011 Designing Experiments 1 / 31

Upload: habao

Post on 14-Apr-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Principles of Experimental Design

Bret Hanlon and Bret Larget

Department of StatisticsUniversity of Wisconsin—Madison

November 15, 2011

Designing Experiments 1 / 31

Page 2: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Experimental Design

Many interesting questions in biology involve relationships betweenresponse variables and one or more explanatory variables.

Biology is complex, and typically, many potential variables, both thosemeasured and included in an analysis and those not measured, mayinfluence the response variable of interest.

A statistical analysis may reveal an association between anexplanatory variable and the response variable.

It is very difficult to attribute causal effects to observational variables,because the true causal influence may affect both the response andexplanatory variable.

However, properly designed experiments can reveal causes ofstatistical associations.

The key idea is to reduce the potential effects of other variables bydesigning methods to gather data that reduce bias and samplingvariation.

Designing Experiments The Big Picture 2 / 31

Page 3: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Case Studies

We will introduce aspects of experimental design on the basis of these casestudies:

An education example;

An Arabidopsis fruit length example;

A starling song length example;

A dairy cow nutrition study;

A weight loss study.

Designing Experiments Case Studies 3 / 31

Page 4: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Biology Education

Case Study

A researcher interested in biology education considers two differentcurricula for high school biology.

Students in one school follow a standard curriculum with lectures andassignments all from a textbook.

Students in a second school have the same lectures and assignments,but spend one day each week participating in small groups in aninquiry-based research activity.

Students from both schools are given the same exam.

Students with the standard curriculum score an average of 81.2 andthe group of students with the extra research score an average of88.6; hypothesis tests (both a permutation test and atwo-independent-sample t-test) have very small p-values indicatinghigher mean scores for the extra research group.

Designing Experiments Case Studies Education Example 4 / 31

Page 5: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Arabidopsis Example

Case Study

A researcher conducts an experiment on the plant Arabidopsis thaliana thatexamines fruit length.

a gene from a related plant is introduced into the genomes of fourseparate Arabidopsis plants;

each of these plants is the progenitor of a transgenetic line.

an additional Arabidopsis plant is included in the experiment, butdoes not have the trans-gene introduced;

these five plants represent the T1 generation;

each T1 plant is grown, self-fertilized, and seed is collected;

a sample of 25 seeds from each plant are potted individually, grown,and self-fertilized;

these plants are the T2 generation;

the length of a sample of ten fruit is measured for each T2 plant.

Designing Experiments Case Studies Arabidopsis Example 5 / 31

Page 6: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Arabidopsis Genotypes

Case Study

The gene (call it R) is inserted into one locus for each T1 transgenicplant;

The sister chromosome will not have the transgenic insertion;

After self-fertilization, we would expect:I about 25% of the T2 plants to have 0 copies of the transgenic element;

— this is genotype SSI about 50% of the T2 plants to have 1 copy of the transgenic element;

— this is genotype RSI about 25% of the T2 plants to have 2 copies of the transgenic element;

— this is genotype RR

The genotype of each T2 plant is inferred by collecting and growing asample of its seeds.

All wild type offspring have geneotype SS.

Designing Experiments Case Studies Arabidopsis Example 6 / 31

Page 7: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Arabidopsis Experiment

Wild Type

TransgeneIndividual 1

TransgeneIndividual 2

TransgeneIndividual 3

TransgeneIndividual 4

Self-fertilize, grow, plant individual seeds, grow

Wild type offspring

Transgene 1Offspring

genotype SS

Transgene 1Offspring

genotype RS

Transgene 1Offspring

genotype RR

Transgene 2Offspring

genotype RS

Transgene 2Offspring

genotype SS

Transgene 2Offspring

genotype RRTransgene 3Offspring

genotype RS

Transgene 3Offspring

genotype SS

Transgene 3Offspring

genotype RR

Transgene 4Offspring

genotype RS

Transgene 4Offspring

genotype SS

Transgene 4Offspring

genotype RR

Designing Experiments Case Studies Arabidopsis Example 7 / 31

Page 8: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Starling Song

Case Study

Starlings are songbirds common in Wisconsin and elsewhere in theUnited States.

Male starlings sing in the spring from a nest area when they attemptboth to attract females as potential mates and to keep other malesaway.

Male starlings sing in the fall when they are in flocks of other malebirds.

It is difficult to categorize a single song as “spring-like” or “fall-like”,but characteristics of song can be different at the two times.

One simple song characteristic is the length of the song.

In an experiment, a researcher randomly assigned 24 starlings into twogroups of 12.

Designing Experiments Case Studies Starling Song Example 8 / 31

Page 9: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Starling Song (cont.)

Case Study

All measurements are taken in animal observation rooms in a researchlaboratory.

The spring group was kept in a spring-like environment with morelight, a nest box, and a nearby female starling.

The male group was kept in a fall-like environment with less light, nonest boxes, and in the proximity of other male birds.

Each bird was observed and recorded for ten hours: birds sangdifferent numbers of songs, and the length of each song wasdetermined.

Each bird sang from between 5 and 60 songs.

(In the actual study, characteristics of the songs beyond their lengthwere of greater importance.)

Designing Experiments Case Studies Starling Song Example 9 / 31

Page 10: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Dairy Cattle Diet Example

Case Study

In a study of dairy cow nutrition, researchers have access to 20 dairycows in a research herd.

Researchers are interested in comparing a standard diet with threeother diets, each with varying amounts of alfalfa and corn.

In the experiment, the cows are randomly assigned to four groups of 5cows each;

Each group of cows receives each of the four diet treatments for aperiod of three weeks; no measurements are taken the first week sothe cow can adjust to the new diet.

The diets are rotated according to a Latin Square design so that eachgroup has a different diet at the same time.

Response variables include milk yield and abundance of nitrogen inthe manure.

Designing Experiments Case Studies Dairy Diet Example 10 / 31

Page 11: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Latin Square Design

Definition

A Latin square design is a design in which three explanatory variables(typically one treatment and two blocking), each of which is categoricalwith the same number of levels (in this example, four), so that each pairof variables has the same number of observations for each possible pair oflevels. Treatments are placed in a square so that each row and columncontains each treatment once.

Diets are named A, B, C, and D. Each group of cows gets all four diets,but in different orders.

Time PeriodGroup First Second Third Fourth

1 A B C D2 C A D B3 B D A C4 D C B A

Designing Experiments Case Studies Dairy Diet Example 11 / 31

Page 12: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Weight-loss Study

Case Study

Researchers in the Department of Nutrition recruited 60 overweightvolunteers to participate in a weight loss study.

Volunteers were randomly divided into two treatment groups.

All subjects received educational information about diet.I one treatment group was instructed to count and record servings of

each of several food types each day;I the other treatment group was instructed to count and record calories

consumed each day.

Subjects were not aware of the instructions given to members of theother group.

Designing Experiments Case Studies Weight Loss Study 12 / 31

Page 13: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Confounding

Definition

A confounding variable is a variable that masks or distorts the relationshipbetween measured variables in a study or experiment. Two variables aresaid to be confounded if their effects on a response variable cannot bedistinguished or separated.

Problem

1 What are possible confounding variables that may explain thedifferences in test scores in the education example?

2 What potential confounding factors are researchers trying to avoidwith the Latin square design for the dairy cow nutrition study?

3 What are potential confounding factors in the weight loss example?

Designing Experiments Key Concepts Confounding 13 / 31

Page 14: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Experimental Artifacts

Definition

A experimental artifact is an aspect of the experiment itself that biasesmeasurements.

Example

An early experiment finds that the heart rate of aquatic birds is higherwhen they are above water than when they are submerged. Researchersattribute this as a physiological response to conserve oxygen. In theexperiment, birds are forcefully submerged to have their heart ratemeasured. A later experiment uses technology that measures heart ratewhen birds voluntarily submerge, and finds no difference in heart ratesbetween submerged and above water groups. This suggests that the stressinduced by forceful submersion rather than submersion itself caused thelowering of heart rate in the birds.

Designing Experiments Key Concepts Experimental Artifacts 14 / 31

Page 15: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Experimental Artifacts

Problem

1 What potential experimental artifacts might be present for thestarling song experiment?

2 In designing an experiment to study the natural behavior of livingorganisms, what trade offs are there between gathering data in natureor in a laboratory setting?

Designing Experiments Key Concepts Experimental Artifacts 15 / 31

Page 16: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Control Groups

Definition

A control group is a group of individuals that do not receive the treatmentof interest, but otherwise experience similar conditions as other individualsin the experiment or study.

Problem

1 What is the control group in the arabidopsis experiment?

2 Which comparison between the control group and another group maybe most informative about the effects of the experiment?

3 Is there a control group in the education example? Discuss.

4 Is there a control group in the starling song example? Discuss.

5 Is there a control group in the dairy cow nutrition example? Discuss.

Designing Experiments Key Concepts Control Groups 16 / 31

Page 17: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Randomization

Definition

Randomization is the random assignment of individuals to differenttreatment groups.

The purpose of randomization is so that the effects of potentialconfounding variables, whether these variables are known or not, arelikely to be divided fairly evenly across treatment groups.

Of course, for any particular variable, the values for individuals ineach sample will not be exactly balanced for each specific assignmentto treatment groups.

Designing Experiments Key Concepts Randomization 17 / 31

Page 18: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Stratified Randomization

Treatment groups can be partially randomized; for example, if in thedairy cow example it was known that there were 8 cows in their firstmilking and 12 cows not in the first milking, the 8 primiparous cowscould be randomly assigned to two to each group and the 12multiparous cows could be randomly assigned three to each group.

This is an example of a stratified random sample.

Stratification may be warranted if a variable is known to affect theresponse variable of interest in order to lessen the amount ofconfounding that might be caused by an unlucky completerandomization.

The trade-off is that other variables may be more likely to beunbalanced in the assigned treatment groups.

Designing Experiments Key Concepts Randomization 18 / 31

Page 19: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Randomization Examples

Problem

Discuss the role of randomization in each of these examples:1 Education example;2 Starling example;3 Dairy cow example;4 Weight-loss example.

When is randomization practical?

How might stratification have been done in each case?

What are the trade offs?

Designing Experiments Key Concepts Randomization 19 / 31

Page 20: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Blinding

Definition

An experiment is blinded if the subjects do not know which treatmentgroup they are in. An experiment is double blind if both the subjects andthe researchers measuring responses are unaware of the treatment groupfor each subject.

Blinding is meant to protect against experimental artifacts that couldbe caused by knowledge of the subjects (or the researchers doing thestudy who may be subconsciously influenced to expect to seesomething consistent with a hypothesis).

Designing Experiments Key Concepts Blinding 20 / 31

Page 21: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Blinding (cont.)

Problem

Discuss the application (actual or possible) of blinding in each example:

1 Education example;

2 Starling example;

3 Arabidopsis example;

4 Dairy example;

5 Weight loss example.

Designing Experiments Key Concepts Blinding 21 / 31

Page 22: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Replication

Definition

Replication is the repetition of each treatment on multiple independentexperimental units.

Replication is necessary for statistical inference, because it allows forvariation between treatment groups (the variation of interest) to becompared to variation within groups.

Inference for a mean requires the ability to estimate the size of atypical deviation (σ) and the mean (µ). If there was only onereplicate, then we could estimate the mean, but not variation aroundthe mean.

Beware of pseudoreplication!

Designing Experiments Key Concepts Replication 22 / 31

Page 23: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Pseudoreplication

Definition

Pseudoreplication (see page 97, Interleaf 2) is when individualmeasurements are not independent, but are treated as if they are.

In the bird song example, there are many songs, but the songs are notindependent, as songs from the same bird may be more similar thansongs from different birds.

In the dairy cow example, their might be daily measurements, but thesampling unit is the cow.

In the Arabidopsis example, there are 1250 different fruits, but theyare not independent as they are grouped according to the T2 plantfrom which they come.

In the education example, the “treatment” is applied to the school, sothere is no replication at all, with only one school per treatmentgroup.

Designing Experiments Key Concepts Replication 23 / 31

Page 24: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Balance

Definition

A design is balanced when each treatment group has the same size.

When population standard deviations are equal, the standard error forthe difference is smallest when both sample sizes are equal. (Whenpopulation standard deviations are not equal, this is not necessarilytrue—with unequal standard deviations, it may be beneficial tosample more individuals from groups with higher variance).

Data can be analyzed if sample sizes are balanced or not, but somemethods are more accurate when samples are balanced.

In the cow nutrition example, balance is forced because each animalreceives each treatment and is measured during each time period.

Designing Experiments Key Concepts Balance 24 / 31

Page 25: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Blocking

Definition

Blocking is placing sampling units into groups that are similar with respectto one or more covariates. Treatments are assigned at random within theblocks.

The paired design is an extreme form of blocking where each pair ofmeasurements form a block of size two.Blocking on the basis of one factor assures that the one factor is closeto balanced in each treatment group.If you attempt to block on multiple factors, the number of blocksgrows large and there are insufficient individuals to place into eachblock.Blocking is an attempt to directly control for the effects of a factor.Blocking and randomization are two methods to reduce bias fromconfounding factors, but they are in tension with one another; themore blocking that is employed, the less remaining allocation togroups is relegated to randomization.

Designing Experiments Key Concepts Blocking 25 / 31

Page 26: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Examples

Problem

1 In the dairy cow example, each cow is measured for each of fourtreatments. Explain how this is related to blocking.

2 In agricultural and ecological experiments, it is common to selectblocks as regions where conditions are similar, and then split theblocks into smaller plots or subplots which are then placed intotreatment groups.

3 The Arabidopsis experiment resulted in 1250 fruit lengths. How arethese measurements blocked?

4 The starling birdsong experiment resulted in hundreds of differentsongs. How are these songs blocked?

Designing Experiments Key Concepts Blocking 26 / 31

Page 27: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Factors

Definition

A factor is a single categorical variable. The possible values of a factor arecalled levels.

Some studies involve multiple factors.In the dairy cow study, the factor of interest is diet (with four levels,A, B, C, and D), but there are also two nuisance factors (cow groupand time period) that are not of direct interest, but the effects ofwhich need to be controlled.

Definition

In a complete factorial design, there are individuals for all treatmentcombinations.

Problem

1 The Latin square for the cow example is not a complete factorialdesign. Explain why a complete factorial design cannot be used in thissetting.

Designing Experiments Key Concepts Interaction 27 / 31

Page 28: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Interaction

Definition

Two (or more) explanatory variables have an interaction if the effect onehas on a response variable depends on the value of the other variable (orvariables).

It is necessary to make observations at all treatment combinations ofthe corresponding variables to estimate interactions.

Interaction plots are useful informal graphical devices for exploringinteractions in data.

In an interaction plot with two explanatory factors, the levels of onefactor appear on the x axis, the response is on the y axis, and theother explanatory factor is represented with color or a symbol of theplotted points. Lines often connect the means within each group.The further the lines are from being parallel, the stronger theindication of an important interaction.

Designing Experiments Key Concepts Interaction 28 / 31

Page 29: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Interaction Plots

The following plot (data from Example 18-3) shows the response(area of red algae) in an experiment in the intertidal habitat ofcoastal Washington on the basis of two factors.

Experimental location is either just above the low tidal zone ormidway between the low and high tidal zones, and each location iseither accessible to herbivores or not.

The plot indicates that the herbivore treatment has little effect at midtidal zones, but that excluding herbivores results in larger algal growthat low tidal zones.

Formal statistical inferences depend on more than observing the lackof parallelism in the plotted lines.

Designing Experiments Key Concepts Interaction 29 / 31

Page 30: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

Interaction Plot

Herbivore Treatment

squa

re r

oot o

f are

a

0

10

20

30

40

50

60

minus plus

●●

●●

● ●●

● ●

●●

●●

●●

● ●

low mid● ●

Designing Experiments Key Concepts Interaction 30 / 31

Page 31: Designing Experiments 1 / 31 November 15, 2011st571-1/12-design-1.pdf · Designing Experiments 1 / 31. ... Biology is complex, and typically, ... Designing Experiments Key Concepts

What you should know

You should know:

how to define and recognize all of the concepts related toexperimental design in these notes;

how to identify from a description of an experiment possibleconfounding variables;

how to distinguish between experimental and observational variables;

how to recognize pseudoreplication;

how to interpret interaction plots;

when it is appropriate to make causal inferences.

Designing Experiments Summary 31 / 31