An experiment prompt should name the product hypothesis, control behavior, treatment behavior, assignment unit, eligibility rule, exposure event, outcome window, and intended decision. Randomizing a user while measuring sessions can produce repeated correlated rows if the analysis forgets the user key. Assignment is not exposure: a person can be assigned but never load the changed surface, or the exposure log can fail. Keep these populations separate and decide the primary analysis rule before examining results. The model can expose missing definitions, but it cannot repair inconsistent assignment IDs by persuasive wording.
Experiment prompts: fix hypothesis, unit, and exposure
Operational case
Aster tests a shorter signup form. The randomization unit is an eligible user at signup entry; the treatment is the shortened form, while control retains the current form. There are 4,800 assigned users per arm. Exposure logs contain only 4,600 control and 4,500 treatment records. The analyst does not switch to logged exposure as the denominator merely to make the treatment look stronger. They investigate logging before accepting an effect claim.
Hypothesis: shorter form may change 24h signup completion
Unit: eligible assigned user at signup entry
Assigned: 4,800 control; 4,800 treatment
Exposure logs: 4,600 and 4,500; reason unknown
Primary unit and window: frozen before analysisPerformance and review cost
Mapping N assignments to exposure and outcome rows is O(N) expected time and O(N) memory. Defining the unit early prevents a more expensive reinterpretation after the result is known. A model can draft a contract checklist, but instrumentation and assignment-service logs must be inspected independently when their populations disagree.
Common Mistakes
- Do not use sessions as independent users without a declared rule.
- Do not equate assignment with confirmed exposure.
- Do not choose the denominator after seeing the outcome.
Connected lessons
- Prompt engineering applications
- Prompt Engineering
- Analytics prompts: define the metric and event contract
- Online prompt experiments: define exposure and stop rules first
- Experiment prompts: investigate assignment and exposure imbalance
- Experiment prompts: freeze the primary metric and guardrails
- Experiment prompts: reconcile missing outcomes by assigned unit
- Experiment prompts: separate effect size from uncertainty
- Experiment prompts: investigate slices and guardrail movement
- Experiment prompts: gate rollout on a reproducible packet
- Project: review Aster's signup experiment
- Product experiment prompt decisions
