Statistics

Experimental design

Observational studies vs experiments, the vocabulary, the four principles, and completely randomized, randomized block and matched pairs designs.

Cheat sheet · Intro stats · AP Stats · 7 sections

1Observational study or experiment?

Observational studyExperiment
What happensWe observe and measure; we do not change anythingWe deliberately give treatments
Can show cause?No: only associationYes, if subjects are randomly assigned
ExampleCompare grades of students who do or don't play sportsRandomly assign 40 students to two study methods

2The vocabulary

Experimental units / subjects

Who or what receives the treatments (subjects when they are people).

Example40 volunteers with high blood pressure

Factor and levels

A factor is a variable the experimenter controls; its levels are the values used.

ExampleFactor: dose; levels: 0 mg, 10 mg, 20 mg

Treatments

ExampleDose (3 levels) × timing (morning or evening): treatments

Response variable

The outcome measured.

ExampleChange in blood pressure after 8 weeks

Control group

A group that gets no treatment, a placebo or the current standard, for comparison.

ExamplePatients taking the current drug

Placebo

A fake treatment that looks like the real one; the placebo effect is improvement from believing you are treated.

ExampleA sugar pill shaped like the new drug

Blinding

Single-blind: subjects don't know their treatment. Double-blind: neither subjects nor those measuring the response know.

ExampleNeither patients nor the nurse taking blood pressure know who got the drug

Confounding

Two variables whose effects on the response can't be told apart.

ExampleIf all morning-dose patients also exercise more, dose timing and exercise are confounded

3The four principles

  1. Comparison: use at least two treatment groups, one of which may be a control.
  2. Random assignment: use chance to decide who gets which treatment, so the groups are alike before treatment.
  3. Replication: give each treatment to enough subjects that chance variation can be told apart from a real effect.
  4. Control: keep other variables the same for all groups (same diet advice, same measuring device, same length of study).

4Three designs

40 volunteersRandomassignmentGroup 1 (20)new drugGroup 2 (20)placeboCompareblood pressure
Completely randomized design
40 volunteersBlock 124 womenBlock 216 menRandomRandom12 drug12 placebo8 drug8 placeboComparewomenComparemen
Randomized block design (blocked by sex)
20 pairsmatched by ageCoin flipin each pairOne of the pairnew drugThe otherplaceboAnalyze the 20differences
Matched pairs design
Blocking and pairing group similar subjects first, then randomize within each block or pair.

5Choosing a design

Completely randomized

All subjects are randomly assigned to the treatments.

ExamplePut 40 names in a hat; the first 20 drawn get the drug, the rest the placebo

Randomized block

Split subjects into blocks that are alike in a way that affects the response, then randomize within each block.

ExampleBlock by sex: randomly assign 12 of 24 women and 8 of 16 men to the drug

Matched pairs

Pair up similar subjects (or use each subject twice, in random order) and compare within each pair.

ExampleEach runner tries both shoe types on different days, in an order set by a coin flip

Blocking vs stratifying

Blocking is for experiments; stratifying is for samples. Both group alike units to reduce variability.

ExampleBlock patients by age group; stratify a survey by grade

6Scope of inference

Randomly assignedNot randomly assigned
Randomly sampledCause and effect; generalize to the populationAssociation only; generalize to the population
Not randomly sampledCause and effect; only for these subjectsAssociation only; only for these subjects

Random sampling lets you generalize. Random assignment lets you conclude cause and effect.

7Results

Statistically significant

A difference too big to be explained by chance alone (usually a P-value below 0.05).

ExampleDrug group dropped 12 points vs 3 for placebo, P = 0.004: significant

Lurking variable

A variable not studied that affects the response and may explain an association.

ExampleStudents who sleep more may both play sports and get better grades

Related