City University of Hong Kong · FACULTY OF STATISTICS

BIOS6902 Chap.9 Potential Outcomes, Randomisation and A/B Tests

- one subject, every graph, every model, every mark
7 Chapters3-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 9 of 11 · BIOS6902

Potential Outcomes, Randomisation and A/B Tests

Why eight lectures of estimation were not enough

Frozen-dessert sales and shark bites climb together because both climb when it is hot. Children with larger feet read better because both improve with age. Painkiller users report more headaches because a headache is why the packet was opened.

Each pattern is genuine, correctly measured, with a perfectly valid interval attached, and each would give a disastrous answer to the question of what an intervention would do. Every tool built so far estimates a feature of a distribution; a causal question asks about a different distribution, the one that would hold if a decision were made differently.

The potential-outcomes framework makes the target precise.

For every unit imagine two outcomes: the one that would occur under treatment and the one that would occur under control. The observed outcome is whichever of the two corresponds to the assignment actually received, so exactly one of them is visible for each unit and the individual treatment effect is never observed for anyone.

That is not a limitation of measurement technology; it is a structural feature of the problem, which is why the target shifts to an average.

The average treatment effect, and the quantity it is not

The average treatment effect is the expected difference between the two potential outcomes across units, equivalently the difference of their expectations.

The contrast between the observed outcomes of the treated and the untreated is a different quantity: it compares the people who happened to receive treatment with the people who happened not to. The two coincide only under special conditions, and creating those conditions is what the last three lectures are about.

A chance allocation creates them by design rather than by argument.

Let a coin decide who is treated and allocation becomes independent of both potential outcomes, so knowing which arm a unit landed in reveals nothing about the pair it was carrying. The observable contrast then coincides exactly with the average effect, and what was a comparison of groups becomes a statement about an intervention.

The estimator is the gap between the two arm averages, which for a yes-or-no outcome is a gap between proportions, and the allocation makes it centred on the effect.

Inference, and the discipline that has to come first

Inference can be done with the machinery already built. A difference of independent proportions has a standard error from the two group variances, and an interval follows.

Alternatively, under the sharp null that the treatment changes no unit's outcome, the outcomes are fixed numbers and only the labels are random, so re-randomising the labels many times produces the exact reference distribution of the previous chapter. No normal approximation is required and the argument holds at any sample size, which makes it the natural test for a small experiment.

Design has to precede all of it.

Power rises with the size of the true effect, falls with the variability of the outcome, and rises with the number of units per arm; the lecture's rule of thumb makes the trade explicit and carries a warning inside it, because the target effect appears squared in the denominator. Halving the effect you want to detect multiplies the required sample by four.

Most underpowered experiments are underpowered because someone specified an optimistic effect, not because someone miscounted participants. The five-point checklist that closes the lecture is about exactly this: decide the metric and the rule before the data arrive.

In this chapter

What this chapter covers

  • 01

    Three classic associations that are not causal

  • 02

    Potential outcomes and the outcome that is never observed

  • 03

    The average treatment effect against the observed contrast

  • 04

    How randomisation makes assignment independent of potential outcomes

  • 05

    The difference-in-means estimator and its standard error

  • 06

    Sharp-null re-randomisation as an exact test

  • 07

    Power, sample size and the pre-launch checklist

Worked example · free

A binary experiment from design to the sentence you report

Q [8 marks]. AskSia-authored practice. A conversion experiment randomises a thousand users evenly. Estimate the effect, attach an interval, and write the conclusion for a product team. The weighting shown is a study aid, not a University marking scheme.
Figure 9.2 The same three variables under two designs.Figure 9.2 The same three variables under two designs. Randomisation does not remove the common cause; it removes the arrow from that cause into the assignment.observational comparisonarmoutcomecauserandomised comparisonarmoutcomecausethe coin flip severs the arrow into the treatment arm, and with it the confounding
Figure 9.2 The same three variables under two designs. Randomisation does not remove the common cause; it removes the arrow from that cause into the assignment.
  • 2Write the estimator and compute it from the two observed proportions.
  • 2Compute the standard error of a difference of independent proportions.
  • 2Assemble the interval.
  • 2State the conclusion in terms a decision maker can act on.
With five hundred users per arm, an observed treated rate of fifteen per cent against a control rate of twelve per cent gives an estimated lift of three percentage points. The standard error of the difference is the square root of the sum of each proportion times its complement divided by its own arm size, which comes to about two point two percentage points. A ninety-five per cent interval is therefore the estimate plus or minus about four point two percentage points, running from a small loss to a gain of about seven percentage points. The correct conclusion is that the experiment is consistent with anything from a slight loss to a substantial gain and was not large enough to settle the question, not that the change fails to work.
Sia tip — Compute the required sample size for the lift you care about before launching, and record it. An experiment that ends with an interval straddling zero has usually failed at the design stage rather than at the analysis stage.
Glossary

Key terms

Potential Outcome
The outcome a unit would show under a specified assignment. Each unit has one per arm and only the one matching its actual assignment is observed.
Average Treatment Effect
The expected difference between the two potential outcomes across units, which is the usual causal target because individual effects are unobservable.
Randomisation
Assigning treatment by a chance mechanism, which makes assignment independent of the potential outcomes and turns an observed contrast into a causal one.
Difference in Means
The contrast between the average outcomes of the two arms, unbiased for the causal effect when assignment was randomised.
Sharp Null
The hypothesis that treatment changes no unit's outcome at all, which fixes every outcome and leaves only the labels random.
Primary Metric
The single outcome nominated before launch as the basis for the decision, protecting the analysis from selection among many measured quantities.
FAQ

Potential Outcomes, Randomisation and A/B Tests FAQ

Why can both potential outcomes never be observed for one unit?

Because each unit receives exactly one assignment and the observed outcome is the one attached to it. The other is a counterfactual, a description of a world that did not occur, and no measurement can recover it. That is why the individual effect is not an estimable quantity and why the target is an average, where the two unobservable halves can be estimated from different groups of people.

Does a randomised experiment need any assumptions at all?

Fewer than an observational study, but not none. The randomisation must actually have happened as described, units must not interfere with one another in ways that change each other's outcomes, and the measured outcome must be the one the decision depends on. Those are design assumptions rather than distributional ones, which is why they are checked by reading the protocol rather than by fitting a model.

What should a team conclude from a positive estimate with an interval containing zero?

That the experiment has not yet decided the question. The estimate is the best single guess and the interval says which values remain plausible, and when zero is among them the data do not support acting as though an effect exists. The productive response is to say how much more data would be needed for the effect size that matters, which is a design calculation rather than a further analysis.

Study strategy

Exam move

Practise writing the two-sentence conclusion for an experiment: one sentence with the estimate and its interval, one sentence saying what the design does and does not license. The arithmetic in this chapter is easy and the marks are almost entirely in the second sentence.

Working through Potential Outcomes, Randomisation and A/B Tests in BIOS6902? Sia is AskSia’s AI Statistics tutor — ask any BIOS6902 Potential Outcomes, Randomisation and A/B Tests question and get a clear, step-by-step explanation grounded in how BIOS6902 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 16 of your City University of Hong Kong subjects - and 1,000+ Bibles across every Australian university.
Sia - your BIOS6902 tutor, unlimited, worked the way the exam marks it
The full 3-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works