mindstair

Home / Courses / Statistics 2 / Unit 9

Statistics 2 Unit 9: Experimental Design and Two-Way ANOVA

Good design decides what a study can conclude. This unit covers the principles of experiments, blocking, factorial designs with interactions, and the two-way ANOVA used to analyze them.

Covers: Principles of experimental design, Completely randomized and randomized block designs, Factorial designs and main effects, Interaction and interaction plots, Two-way ANOVA table and F tests, Placebos, blinding and confounding

Study guide

An experiment deliberately imposes treatments on experimental units and measures the response. Three principles make it trustworthy. Control means comparing treatments, including a control or placebo group, while holding other conditions as steady as possible. Randomization uses chance to assign units to treatments, which balances unmeasured variables on average and justifies causal conclusions. Replication means using enough units that chance variation can be estimated. Without random assignment, a confounding variable such as motivation in a volunteer study can explain the difference. With only one classroom or field per treatment, the treatment is confounded with that unit.

A completely randomized design assigns all units to treatments at random. When units differ in a way that strongly affects the response, such as starting weight, school, or field fertility, a randomized block design does better: group similar units into blocks and randomize treatments within each block. The analysis separates block-to-block variation from error, so MSE shrinks and the treatment F grows. With t treatments and b blocks, df are t − 1 for treatments, b − 1 for blocks, and (t − 1)(b − 1) for error. Matched pairs and crossover designs, in which each subject receives every treatment, are blocking with blocks of size 2 or one block per subject.

A factorial design studies two or more factors at once by running every combination of their levels; with a and b levels there are ab cells. Factorials are efficient, because each observation informs every factor, and they reveal interactions that one-factor-at-a-time studies miss. A main effect is the change in mean response across a factor's levels, averaged over the other factor. An interaction exists when the effect of one factor depends on the level of the other. On an interaction plot, parallel lines mean no interaction; non-parallel or crossing lines indicate interaction.

Two-way ANOVA with replication splits the total variation into SS_A, SS_B, SS_AB and SSE. With a and b levels and n replicates per cell, the df are a − 1, b − 1, (a − 1)(b − 1) and ab(n − 1). Each mean square is SS/df, and each F statistic is that mean square divided by MSE. Test the interaction first. If it is significant, main effects can mislead, because they average effects that differ; describe simple effects (the effect of one factor at each level of the other) instead. A crossing interaction can make both main effects look null even though each factor matters. Without replication, interaction and error cannot be separated.

Human studies need extra controls. A placebo lets the control group share the expectation of treatment, and blinding (single or double) keeps subjects' and evaluators' beliefs from shaping results. Identify the experimental unit, the thing actually randomized, and analyze at that level: assigning whole classrooms and then counting individual students as independent observations is pseudoreplication and overstates the evidence. Finally, design for power. Interaction tests often need more replication than main effects, so a non-significant interaction from a small study is inconclusive rather than proof that the factors act independently.

Key ideas

Formulas and rules

Factorial cells = product of the numbers of levels
Two-way df: A: a − 1; B: b − 1; AB: (a − 1)(b − 1); error: ab(n − 1); total: abn − 1
F = MS_effect/MSE, with MS = SS/df
Block design df: treatments t − 1, blocks b − 1, error (t − 1)(b − 1)
Main effect of A = (mean at A2) − (mean at A1), averaged over B
Interaction contrast (2 × 2) = (effect of A at B2) − (effect of A at B1)

Common mistakes

Before the test, make sure you can

Words to know

Experimental unit
The object to which a treatment is randomly assigned.
Factor
An explanatory variable manipulated in an experiment.
Level
A specific value or category of a factor.
Treatment
A specific combination of factor levels applied to units.
Randomization
Using chance to assign units to treatments, balancing other variables on average.
Replication
Applying each treatment to several units so chance variation can be estimated.
Confounding
When the effects of two variables on the response cannot be separated.
Block
A group of similar units within which treatments are randomly assigned.
Randomized block design
A design that randomizes treatments separately within each block.
Factorial design
A design that includes every combination of the levels of two or more factors.
Main effect
The average effect of one factor across the levels of the others.
Interaction
When the effect of one factor depends on the level of another.
Simple effect
The effect of one factor at a single level of another factor.
Interaction plot
A plot of cell means showing one line per level of a factor; non-parallel lines indicate interaction.
Placebo
An inactive treatment given to the control group so expectations are equal.
Double-blind
Neither subjects nor evaluators know who receives which treatment.
Pseudoreplication
Treating non-independent measurements as independent replicates.

Sample practice questions

30 more questions like these, from level 1 to 5, are in the practice set.

Question 1 (level 1)

The three basic principles of experimental design are:

  1. Sampling, surveying and stratifying
  2. Control, randomization and replication
  3. Blinding, matching and pooling
  4. Observation, correlation and regression
Show the answer and steps

Answer: B) Control, randomization and replication

  1. Control: compare treatments and hold other conditions steady.
  2. Randomization: use chance to assign units to treatments.
  3. Replication: use enough units so chance variation can be measured.
Question 2 (level 1)

In a randomized block design, units are grouped into blocks so that:

  1. Blocks are formed after the results are known
  2. Each block receives only one treatment
  3. Units in different blocks are made as similar to each other as possible
  4. Similar units share a block, and treatments are randomized within it
Show the answer and steps

Answer: D) Similar units share a block, and treatments are randomized within it

  1. Blocks collect units that share a characteristic linked to the response.
  2. Every treatment is randomly assigned within each block.
  3. Comparing treatments within blocks removes block-to-block variation from the error.
Question 3 (level 3)

A two-way ANOVA (A: 2 levels, B: 3 levels, n = 4 per cell) has SS_A = 60, SS_B = 120, SS_AB = 48 and SSE = 180. What are the three F statistics?

  1. F_A = 3.0, F_B = 3.0, F_AB = 1.2
  2. F_A = 6.0, F_B = 6.0, F_AB = 2.4
  3. F_A = 6.0, F_B = 12.0, F_AB = 4.8
  4. F_A = 0.33, F_B = 0.67, F_AB = 0.27
Show the answer and steps

Answer: B) F_A = 6.0, F_B = 6.0, F_AB = 2.4

  1. MSE = 180/18 = 10.
  2. MS_A = 60/1 = 60; MS_B = 120/2 = 60; MS_AB = 48/2 = 24.
  3. F_A = 6.0, F_B = 6.0, F_AB = 2.4; dividing SS by MSE without df gives 6, 12, 4.8.