AP · Statistics · Observational Studies and Experiments

Designing Experiments

13 min readUpdated November 30, 2026FreeAP Statistics, Collecting Data

An experiment imposes treatments on experimental units and measures their response, so a well-designed one can show cause and effect. Good design compares treatments, assigns them at random, uses enough units and holds other variables fixed; blocking and matched pairs group similar units before randomizing.

Quick check

  1. Why can an experiment show cause and effect when an observational study cannot?Show answerHide answer

    Random assignment tends to balance other variables across the groups, so a large difference in the response can be put down to the treatments. The note on Observational Studies, Experiments and Scope of Inference covers this.

  2. An experiment tests 3 amounts of fertilizer, each with 2 watering schedules. How many treatments are there?Show answerHide answer

    3×2=63 \times 2 = 6, because every amount is combined with every schedule.

Know these already? Jump to the practice questions

What you'll be able to do

  • Identify the units, factors, levels, treatments and response variable.
  • Explain the roles of a control group, a placebo and blinding.
  • Describe a random assignment someone else could carry out.
  • Choose a completely randomized, block or matched pairs design, and explain how blocking helps.

Key terms

Experimental units

The individuals that receive the treatments; people are called subjects.

In plain English
What the experiment is done to.
Don't write
"a random sample"; units are often volunteers.

Factor, level and treatment

A factor is a variable the experimenter sets; a level is one value of it; a treatment is one level, or one combination of levels.

In plain English
What you change, its settings, and each group's recipe.
Don't write
"two factors with 3 levels each give 6 treatments"; multiply to get 9.

Random assignment

Using chance to decide which units receive which treatment.

In plain English
Chance, not people, picks the groups.
Don't write
"random sampling"; that picks who is studied.

Block

A group of units alike in a way that affects the response, formed before treatments are assigned.

In plain English
Sort similar units together, then randomize inside each group.
Don't write
"blocks are formed at random".

What are the parts of an experiment?

In a hypothetical study, each of 36 tomato plants gets one of three fertilizer amounts (none, 10 g, 20 g) and one of two watering schedules (daily, every other day). The response is the weight of tomatoes, in grams.

PartIn this study
Experimental unitsthe 36 plants
Factors and levelsfertilizer (3 amounts); watering (2 schedules)
Treatments3×2=63 \times 2 = 6 combinations, such as "10 g, daily"

Multiply the numbers of levels to count treatments; a balanced design gives each one 36÷6=636 \div 6 = 6 plants. The no-fertilizer plants form a control group: a baseline to compare against.

Check yourself

An experiment tests 4 rising times and 3 oven temperatures on bread dough, with 5 loaves per treatment. How many loaves are needed?
Show answerHide answer

There are 4×3=124 \times 3 = 12 treatments, so 12×5=6012 \times 5 = 60 loaves.

What makes an experiment well designed?

  • Comparison: at least two groups, so responses can be compared.
  • Random assignment: chance tends to balance variables you did not measure, so the groups start alike and a large later difference can be blamed on the treatments.
  • Control: hold other variables (soil, pots, light) fixed for every group, so they cannot be confounded with the treatments and add less variability.
  • Replication: use enough units per treatment that chance differences between groups even out.

Examiner's eye

Marks are lost when "control" is vague: name the variables held constant and say this reduces variability or prevents confounding.

Check yourself

A teacher tries a homework app with her first-period class and compares their scores with her second-period class. Which principle is missing?
Show answerHide answer

Random assignment. The classes were not formed by chance, so differences such as prior achievement are confounded with the app.

Why use placebos and blinding?

People who believe they are being treated often improve anyway: the placebo effect. A placebo is a dummy treatment that looks like the real one, so both groups share the same expectations and the effect cancels out.

Subjects who know their treatment may report symptoms differently, and researchers who know it may judge responses differently. In a double-blind experiment neither the subjects nor the people measuring the response know who got which treatment. If subjects cannot be blinded (yoga versus running), blind whoever measures the response.

Check yourself

In a hypothetical pain-cream trial, a nurse who knows the assignments records pain scores. What is the problem?
Show answerHide answer

The nurse may record pain differently for the two groups without meaning to. Coded tubes labeled by a third party would make the trial double-blind.

How do you describe a random assignment?

A stranger should be able to follow it exactly:

  1. Label each unit with a different number.
  2. Generate random numbers with a named tool: a random number generator, a random digit table, or identical slips in a container.
  3. Ignore repeats and numbers that are not labels.
  4. Stop when the first group is full, and say what the rest receive.

For 40 subjects: label them 1 to 40 and generate random integers from 1 to 40, ignoring repeats, until 20 different labels appear. Those 20 get Treatment A; the rest get Treatment B. With a random digit table, use two-digit labels (01 to 40) and read the digits in pairs.

Check yourself

Why does "Randomly split the 40 subjects into two groups" earn little credit?
Show answerHide answer

It gives no labels, no random tool, no rule for repeats and no treatment for each group, so nobody could reproduce it.

When does blocking help?

In a completely randomized design, a variable that strongly affects the response adds variability within every group and can hide a treatment effect. A randomized block design splits the units into blocks of similar units (say, beginners and experienced athletes) and randomly assigns the treatments separately within each block.

Units in a block are alike, so the blocking variable's variability is removed from the comparison and a treatment effect is easier to detect. Blocking never replaces randomizing.

A matched pairs design uses blocks of size 2: pair up similar units and randomly decide which member gets which treatment, or give each subject both treatments in a random order.

Check yourself

Twenty volunteers each get one sunscreen on one arm and another on the other arm, sides chosen by coin flip. Which design is this?
Show answerHide answer

Matched pairs. Each volunteer is compared with themselves, so skin type and sun exposure are the same for both sunscreens.

Worked example 1: Using random digits

Question: A hypothetical gardener will give a new fertilizer to 15 of her 30 plants, labeled 01 to 30. She reads this line of random digits two at a time: 29141 77763 17066 90743. Which are the first four plants chosen?

What tells you the method

A line of random digits.

  1. Step 1: Split the line into pairs.

    The pairs are 29, 14, 17, 77, 63, 17, 06, …

    Why

    Each label has two digits.

  2. Step 2: Keep or skip each pair.

    Keep 29, 14 and 17. Skip 77 and 63 (no such plant) and the second 17 (already chosen). Keep 06.

    Why

    Only labels 01 to 30 exist, and no plant can be chosen twice.

Check it

Four different labels, all from 01 to 30.

Answer

Plants 2929, 1414, 1717 and 66 (labels 29, 14, 17 and 06).

Worked example 2: A randomized block design

Question: A hypothetical school compares vocabulary apps A and B on 20 ninth-graders and 28 tenth-graders. Tenth-graders usually score higher. (a) Why block by grade? (b) How many ninth-graders and tenth-graders use App A?

What tells you the method

A named variable, grade, affects the response.

  1. Step 1: Justify the blocks.

    Comparing the apps within each grade removes grade-to-grade variability, so a difference between the apps is easier to detect.

    Why

    Blocking removes variability from a known source.

  2. Step 2: Randomize within each block.

    Label the ninth-graders 1 to 20; generate random integers from 1 to 20, ignoring repeats, until 10 different labels appear. Those 10 use App A, the rest App B. Repeat for the tenth-graders (1 to 28), stopping at 14.

    Why

    Each block is split evenly between the apps by chance.

Check it

10+10=2010 + 10 = 20 and 14+14=2814 + 14 = 28, so every student is used.

Answer

(a) Grade affects scores, so blocking removes that variability from the comparison. (b) 1010 ninth-graders and 1414 tenth-graders use App A.

Your turn

Question: A hypothetical coach has 12 runners each run a timed mile in shoe X and in shoe Y, on different days. For runners 1 to 12 in order, he reads one random digit each from 453331478932: odd means shoe X first, even means shoe Y first. (a) Which design is this? (b) How many runners wear shoe X first?

  1. Step 1:

    Each runner gets both treatments in a random order, so this is a matched pairs design.

  2. Step 2: Your go: count the odd digits.

Show the full solutionHide the solution

The digits are 4, 5, 3, 3, 3, 1, 4, 7, 8, 9, 3, 2. The odd ones belong to runners 2, 3, 4, 5, 6, 8, 10 and 11; runners 1, 7, 9 and 12 wear shoe Y first.

Answer: (a) It is a matched pairs design. (b) 88 runners wear shoe X first.

Traps

Trap

Thinking that random assignment lets you generalize the results to a whole population.

It seems right because both use chance. But random assignment only balances the groups, which supports cause and effect for the units studied; generalizing needs a random sample.

Check yourself

80 gym volunteers are randomly assigned to two diets, and Diet 1 gives significantly more weight loss. Can you conclude this for all adults?
Show answerHide answer

No. Random assignment supports cause and effect for these volunteers, but they are not a random sample of all adults.

Trap

Thinking that blocking replaces random assignment.

It seems right because the blocks are chosen on purpose. But blocking only groups similar units; within every block the treatments must still be assigned by chance, or other variables could be confounded with them.

Check yourself

Plots are blocked by soil type, and the healthiest-looking plots in each block get a new seed. What is wrong?
Show answerHide answer

Nothing is randomized within the blocks, so plot health is confounded with the seed. The seeds should be assigned by chance within each soil type.

What's examined

Experimental design is tested on the AP® Statistics exam (Collecting data), in multiple-choice and free-response questions: identify the parts of an experiment, explain random assignment, blinding or blocking in context, and describe a random assignment someone else could follow exactly.

Practice questions

  1. Recall What is the main purpose of random assignment in an experiment?
    • A) To generalize to a larger population
    • B) To keep subjects unaware of their treatment
    • C) To create groups that are roughly alike before treatment
    • D) To make the groups exactly equal in size
Show answer

Answer: C) To create groups that are roughly alike before treatment

Marking points:

  • Chance tends to balance other variables, so differences in the response can be put down to the treatments.
  • A describes random sampling, B describes blinding, and D comes from the design, not from chance.
  1. Apply Researchers compare two reading programs on 30 pairs of identical twins. In each pair, a coin flip decides which twin gets Program 1; the other gets Program 2. Which design is this?
    • A) Completely randomized
    • B) Randomized block with two blocks
    • C) Observational study
    • D) Matched pairs
Show answer

Answer: D) Matched pairs

Marking points:

  • Each pair of twins is a block of size 2, randomized within the pair.
  • A ignores the pairing. B confuses 2 programs with 2 blocks; there are 30 blocks. C is wrong because treatments are imposed.
  1. Exam-style Ten of 25 volunteers, labeled 01 to 25, will be randomly assigned to a hypothetical sleep routine. Reading the random digits 24014 72470 04791 10007 two at a time, which five volunteers are chosen first?
Show answer

Answer: Volunteers 2424, 11, 44, 1111 and 77 (labels 24, 01, 04, 11 and 07).

Marking points:

  • The pairs are 24, 01, 47, 24, 70, 04, 79, 11, 00, 07.
  • Skip 47, 70, 79 and 00 (not labels) and the second 24 (repeat).
  1. Recall Which statement describes a double-blind experiment?
    • A) Neither the subjects nor the people measuring the response know who got which treatment.
    • B) Only the people measuring the response know who got which treatment.
    • C) Two different placebos are used.
    • D) The researchers see no results until the end.
Show answer

Answer: A) Neither the subjects nor the people measuring the response know who got which treatment.

Marking points:

  • Double-blind hides the assignments from both groups of people.
  • B is single-blind. C and D have nothing to do with blinding.
  1. Exam-style A hypothetical trial compares 3 wheat varieties on 60 plots: 24 with sandy soil and 36 with clay soil, and soil type affects yield. (a) Which design should be used? (b) If the plots of each soil type are shared equally among the varieties, how many sandy and how many clay plots does each variety get?
Show answer

Answer: (a) A randomized block design, blocking by soil type. (b) Each variety gets 88 sandy plots and 1212 clay plots.

Marking points:

  • Soil affects yield, so blocking by soil removes that variability from the comparison.
  • Randomize within each soil type: 24÷3=824 \div 3 = 8 and 36÷3=1236 \div 3 = 12.
  1. Apply A hypothetical weight-loss study blocks subjects by sex before randomly assigning the program or no program. Why block by sex?
    • A) So the results apply to all adults
    • B) Weight loss may differ by sex, and blocking removes that variability
    • C) Random assignment cannot be used with people
    • D) So no control group is needed
Show answer

Answer: B) Weight loss may differ by sex, and blocking removes that variability

Marking points:

  • Blocks group subjects who are alike on a variable that affects the response.
  • A needs random sampling. C is false, because treatments are still randomized within blocks. D is false, because comparison is still needed.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • Count treatments by multiplying the numbers of levels of the factors.
  • Comparison, random assignment, control and replication let an experiment show cause and effect.
  • A placebo equalizes expectations; double-blind hides the assignments from subjects and evaluators.
  • A usable random assignment names the labels, the random tool, the rule for repeats and each group's treatment.
  • Block on a variable that affects the response and randomize inside each block; matched pairs uses blocks of two.

Keep learning

Explore AP Statistics tutoring →

View the full Statistics syllabus →

More in this unit

Collecting Data

All Observational Studies and Experiments notes

Part of Novark's AP Statistics notes