Experiment Design
Designs a controlled test of one change so that its result can settle a decision, and fixes how that result will be read before any data exists to tempt anyone into reading it differently.
Deliverable
One Markdown document, experiment-plan.md, in the structure set out under Output below. It answers a question that Research Plan Design has framed as one of cause and effect, and it gives Data Analysis Brief the analysis and the decision rule to apply once the data arrives.
Required inputs
- The change to be tested — what will differ between the groups, described precisely enough that two people would implement it identically.
- The decision that depends on the result — what will be done differently depending on what is found, and by whom.
- The population it applies to — who or what the change would reach if adopted.
- The measures the requester cares about — named, with what a better result means for each.
If the change, the decision or the population is absent, stop and report it. If no result could alter the decision, stop too and say so: a test whose outcome changes nothing is not run.
Optional inputs
- Baseline data for the measures, with its period and provenance
- How many units — users, sessions, orders, devices — are available and how fast they arrive
- Constraints on who may be exposed to the change, and on how long it may run
- Earlier experiments on the same or a related change, with their results
- What tooling is available to assign units to groups and to record outcomes
Absent optional inputs do not stop the plan. Each becomes a line saying what could not be checked and who holds the material that would check it.
Execution
1 — State the decision and what would change it. Write down each possible result and what would follow from it. A result that changes nothing gets no test.
2 — Write the hypothesis. The change, the direction of the effect expected, the measure it is expected to move and the population. It must be possible for the result to show it false.
3 — Isolate the change. One change between the groups. List everything else that differs or will change during the run — a release, a campaign, a season — and how each will be kept out of the comparison or recorded.
4 — Define the groups and the assignment. The unit that is assigned, how units are put in a group, what could let one group affect another, and what the comparison group receives. Where assignment cannot be random, state how it is made and the bias that route introduces.
5 — Define the measures. One primary measure, which the decision rule will use. Secondary measures, which explain but do not decide. Guardrail measures, which must not get worse. For each: its exact definition, where it is recorded and when.
6 — State what sizing needs. The variability of the primary measure, the smallest effect worth acting on and the error rates the owners will accept. Each is demanded from the requester. Where any is missing, record it as unknown and do not size the test; a sample size built on invented parameters is a guess with a number attached.
7 — Fix the decision rule before collection. For each outcome — effect in the expected direction, no detectable effect, effect in the wrong direction, a guardrail breached, an inconclusive result — what is done. The rule is written before data exists and is not changed afterwards.
8 — Plan the run. The conditions for starting, for stopping and for extending. Stopping early on a result that looks good is permitted only if the rule allowed for it in advance.
9 — List the threats to validity. Novelty and learning effects, seasonality, selection, interference between units, changes in how a measure is recorded, and users seeing both versions. For each: how it is mitigated, or that it is not.
Output
experiment-plan.md, in this order:
- 1. Decision — each possible result and what follows from it
- 2. Hypothesis — change, direction, measure and population
- 3. The change and what else varies — the single change, and everything else recorded or controlled
- 4. Groups and assignment — unit, method, contamination risk, what the comparison group receives
- 5. Measures — primary, secondary and guardrail, each defined, sourced and timed
- 6. Sizing — the parameters as supplied, or
unknown, and whether the test can be sized
- 7. Decision rule — per outcome, what is done, fixed before collection
- 8. Run plan — start, stop and extension conditions
- 9. Threats to validity — each one and its mitigation or the lack of one
- 10. What could not be checked — missing inputs and who holds them
Validation
The plan is ready when all of these hold:
- Section 1 shows at least two results that lead to different actions
- The hypothesis in section 2 can be shown false
- Section 3 lists exactly one change
- Exactly one primary measure exists, and section 7 uses it
- Every outcome in section 7 has an action, including the inconclusive one
- No sample size, duration, variability or error rate appears that no input supplied
Fail the run if a parameter is invented to size the test, or if the decision rule refers to a measure other than the primary one without saying why.
Failure handling
- No decision depends on the result — stop. Report that the test would change nothing, and name the decision that would have to exist for it to be worth running.
- The change cannot be isolated — record each confounding change in section 3, state that the result will show an effect of the bundle and not of the change, and ask whether that still answers the decision.
- Sizing parameters missing — deliver every other section, mark section 6
NOT SIZED — pending <parameter>, and list exactly what the requester must supply.
- Groups cannot be separated — state the interference in section 9 and propose a design that assigns at a coarser unit, or record that no valid comparison can be built.
- Partial material — design what the material supports, mark the rest
NOT DESIGNED — pending <material>, and deliver.