name: design-an-experiment-with-a-control-group
description: Design a controlled experiment with explicit hypotheses, assignment, metrics, and stopping rules. Use when the user wants to test a treatment using a control group.
domain: data-analysis
tags: [experiment-design, control-group, randomization]
triggers: ["experiment with control group", "design a controlled experiment", "plan treatment and control"]
Design a controlled experiment with explicit hypotheses, assignment, metrics, and stopping rules
Purpose
Design a controlled experiment with explicit hypotheses, assignment, metrics, and stopping rules.
When to use
Use when the user wants to test a treatment using a control group.
When NOT to use
Do not use this for building a production pipeline; use data-engineering instead.
Inputs required
- The dataset and its provenance
- The question to answer and the decision it informs
- The acceptable uncertainty
Procedure
- Define the treatment, control, population, and primary outcome.
- Specify the minimum effect, power, sample size, and allocation ratio.
- Randomise assignment and prevent treatment contamination.
- Predefine the analysis plan, guardrails, and data-quality checks.
- Set the run duration, stopping rule, and interpretation criteria.
Output contract
An answer with the method, the numbers, the caveats and the recommendation that follows.
Validation checklist
Safety notes
Never present a correlation as a cause, and never include personal data in an output that leaves the approved boundary.
Related skills
test-a-hypothesis-with-a-significance-test
analyse-a-survey-result
analyse-a-text-corpus
1---2name: design-an-experiment-with-a-control-group3description: Design a controlled experiment with explicit hypotheses, assignment, metrics, and stopping rules. Use when the user wants to test a treatment using a control gr4---5---6name: design-an-experiment-with-a-control-group7description: Design a controlled experiment with explicit hypotheses, assignment, metrics, and stopping rules. Use when the user wants to test a treatment using a control group.8domain: data-analysis9tags: [experiment-design, control-group, randomization]10triggers: ["experiment with control group", "design a controlled experiment", "plan treatment and control"]11---1213# Design a controlled experiment with explicit hypotheses, assignment, metrics, and stopping rules1415## Purpose1617Design a controlled experiment with explicit hypotheses, assignment, metrics, and stopping rules.1819## When to use2021Use when the user wants to test a treatment using a control group.2223## When NOT to use2425Do not use this for building a production pipeline; use data-engineering instead.2627## Inputs required2829- The dataset and its provenance30- The question to answer and the decision it informs31- The acceptable uncertainty3233## Procedure34351. Define the treatment, control, population, and primary outcome.362. Specify the minimum effect, power, sample size, and allocation ratio.373. Randomise assignment and prevent treatment contamination.384. Predefine the analysis plan, guardrails, and data-quality checks.395. Set the run duration, stopping rule, and interpretation criteria.4041## Output contract4243An answer with the method, the numbers, the caveats and the recommendation that follows.4445## Validation checklist4647- [ ] The data was profiled before it was analysed48- [ ] The conclusion is separated from the assumption49- [ ] Edge cases and outliers are addressed5051## Safety notes5253Never present a correlation as a cause, and never include personal data in an output that leaves the approved boundary.5455## Related skills5657- `test-a-hypothesis-with-a-significance-test`58- `analyse-a-survey-result`59- `analyse-a-text-corpus`