Track 1 · Statistical Thinking · Lesson 5 of 10

Observational studies and experiments

Distinguish observational studies from randomised experiments, identify explanatory and response variables, and explain why random assignment supports causal conclusions.

30 minFoundation8 graded exercisesFree

Employees who attend a voluntary stress-management course report fewer sick days the following year. Did the course cause that — or were the people who signed up already healthier and more motivated? Whether you can answer depends entirely on how the study was designed.

Most studies ask whether one variable affects another. The explanatory variable (or treatment, factor) is the one we think does the influencing; the response variable (or outcome) is the one we think is influenced. In “does the course reduce sick days?”, course attendance is explanatory and sick days are the response.

There are two fundamentally different ways to collect data on such a question.

Observational studyExperiment
Who decides the treatment?The subjects themselves, or circumstancesThe researcher
ExampleCompare sick days of employees who chose to attend the course with those who did notRandomly assign half of the volunteers to the course now and half to a later course
Can it show causation?Only with strong extra assumptionsYes, if well designed and randomised
Main threatConfounding: groups differ in other waysPoor control, lack of blinding, dropout

In an observational study the groups form themselves. People who choose a course, a diet or a product usually differ in many other ways — age, motivation, income, health — and any of those differences could explain the outcome.

In an experiment the researcher imposes the treatment. The key ingredient is random assignment: using chance (a random number generator, not judgement) to decide who gets which treatment. Randomisation makes the groups alike, on average, in every characteristic — including ones nobody measured. If the groups then differ in outcome by more than chance would explain, the treatment is the plausible cause.

Ingredients of a well-designed experiment

  1. Comparison: a control group that receives no treatment, a placebo or the current standard — so you can see what would have happened anyway.
  2. Random assignment of subjects to groups, so the groups are comparable.
  3. Blinding where possible: participants (single-blind) and also the people measuring outcomes (double-blind) do not know who got what, so expectations cannot shape the results. A placebo — a dummy treatment that looks identical — makes blinding possible.
  4. Replication: enough subjects that chance differences between groups are small.

Worked example

A blood-pressure trial (fictional)

The bp_trial dataset is a simulated double-blind trial: 200 adults with raised systolic blood pressure were randomly assigned, 100 to a new tablet and 100 to a placebo. Did randomisation produce comparable groups, and what happened to blood pressure?

  1. Comparable at the start. Mean baseline systolic pressure was 153.6 mmHg in the treatment arm and 153.9 mmHg in the placebo arm; the arms also had similar ages (56.7 vs 57.5 years) and numbers of women (47 vs 46). Randomisation did its job.

  2. Change after 8 weeks (among the 91 and 90 participants who completed): the treatment arm fell by 10.98 mmHg on average, the placebo arm by 1.49 mmHg.

  3. The comparison. The placebo arm also improved a little — through the placebo effect and regression to the mean (people were enrolled because a single reading was high, and such readings tend to come down). Only the difference between arms, about −10.98−(−1.49)=−9.5-10.98 - (-1.49) = -9.5 mmHg, estimates the effect of the tablet.

  4. A caution about dropouts. Nine treatment and ten placebo participants did not finish. Randomisation balanced the arms as allocated; if people left one arm for reasons linked to their blood pressure (side effects, say), the completers might no longer be comparable. Here dropout was similar in both arms, but a full trial report would also analyse everyone as randomised (called intention to treat), so that the comparison keeps the balance randomisation created.

  5. Is 9.5 mmHg a lot? Whether an effect of that size matters for patients is judged by clinicians against guidelines for the condition, not by the statistics alone.

The groups were balanced by randomisation; among completers, the tablet's estimated effect is about 9.5 mmHg more reduction than placebo.

Two box plots of baseline systolic blood pressure, one for the treatment arm and one for the placebo arm, with almost the same spread and the same median of 153 mmHg; values range from 140 to about 190 mmHg in both arms.TreatmentPlaceboBaseline SBP (mmHg)
Baseline systolic blood pressure by randomised arm (synthetic trial). The two boxes are nearly identical: randomisation balanced the groups before treatment began.
Show the data as a table
GroupnLower whiskerQ1MedianQ3Upper whiskerOutliersMean
Treatment100140146.751531591722153.57
Placebo100140145.751531601802153.9

Quick check

Researchers compare the test scores of pupils at schools that chose to adopt a new reading programme with pupils at schools that did not. What kind of study is this?

Exercises

The lesson is complete when every exercise is answered correctly. Hints are free; viewing a worked solution before solving means the exercise won't count towards mastery.

0 of 8 exercises correct (not saved — sign in to keep your progress)

Exercise 1 · Practice, difficulty 1 of 3

Observational or experiment?

Not started

Classify each study.

A retailer randomly shows half of its website visitors a new checkout page and compares purchase rates.
A health authority compares heart-disease rates of people who report eating fish weekly with those who do not.
A ministry compares unemployment in regions that introduced a job-training scheme with regions that did not.
An agronomist assigns fertiliser types to 36 field plots using a random number table and measures the wheat yield.
A gym chain analyses whether members who use its app attend more classes.
A call centre randomly assigns new agents to one of two training programmes and compares their call-resolution rates after a month.

Exercise 2 · Practice, difficulty 1 of 3

The language of experiments

Not started

Match each term to its description.

Explanatory variable
Response variable
Control group
Placebo
Double-blind
Random assignment

Exercise 3 · Application, difficulty 2 of 3

Change in each arm

Not started

Using the bp_trial data, keep only participants who completed the trial (week8_sbp is not missing). For each one compute change = week8_sbp − baseline_sbp. What is the mean change in each arm? Give both to 2 decimal places (a fall is negative).

Data: bp_trial · Open in the lab to explore and calculate.

Exercise 4 · Guided, difficulty 1 of 3

An onboarding experiment

Not started

A banking app randomly assigned new users to the current onboarding flow (A) or a simplified flow (B). In group A, 600 of 1,500 users completed account set-up; in group B, 761 of 1,620 did.

By how many percentage points is B's completion rate higher than A's? Give 1 decimal place.

percentage points

Exercise 5 · Interpretation, difficulty 2 of 3

Gym members and sick days

Not started

An HR department finds that employees who use the company gym took on average 3 fewer sick days last year than those who do not. The HR director wants to announce that “using the gym reduces sick leave by 3 days a year”. What is the best assessment?

Choose one

Exercise 6 · Practice, difficulty 2 of 3

Designing an experiment

Not started

A logistics firm wants to know whether a new route-planning app reduces drivers' delivery times. Put the steps of a sound experiment in order.

Put the steps in order (use the arrows)

  1. 1Run both groups over the same four weeks, with the same type of routes
  2. 2Define the response: mean delivery time per route over four weeks
  3. 3Randomly assign each driver to the new app or to the current system
  4. 4Compare the mean delivery times of the two groups and judge whether the difference exceeds chance variation
  5. 5Recruit the participating drivers and record their recent delivery times

Exercise 7 · Interpretation, difficulty 3 of 3

Generalise or explain?

Not started

A university randomly selects 1,000 of its 30,000 students and asks how many hours they study per week and what their grade average is. Students who study more have higher grades. Which conclusion is justified?

Choose one

Exercise 8 · Interpretation, difficulty 3 of 3

Why did the placebo arm improve?

Not started

In the blood-pressure trial, systolic pressure fell by about 11 mmHg in the treatment arm — but it also fell by about 1.5 mmHg in the placebo arm. In two to four sentences, explain why the placebo arm improved and why the trial needed a randomised placebo group to estimate the tablet's effect.

0 words

What you can now do

  • Identify explanatory and response variables in a study
  • Tell an observational study from a randomised experiment
  • Explain how random assignment, control groups and blinding support causal conclusions
  • Distinguish random sampling (generalisation) from random assignment (causation)