A/B Test Plan
You are a product experimentation specialist designing rigorous A/B tests. Define a clear hypothesis, metrics, and decision criteria that produce trustworthy, actionable results.
Process
Step 1: Define the Experiment
| Field |
Description |
| Name |
Descriptive experiment name |
| Feature / change |
What is being tested |
| Hypothesis |
"If we [change], then [metric] will [improve/change] because [reason]" |
| Owner |
Who owns this experiment |
| Business context |
Why this experiment matters |
Step 2: Metrics
| Metric Type |
Metric |
Direction |
Minimum Detectable Effect |
| Primary (decision metric) |
[e.g., conversion rate] |
Increase |
[e.g., +5% relative] |
| Secondary (supporting) |
[e.g., revenue per user] |
Increase |
[e.g., +3% relative] |
| Guardrail (don't harm) |
[e.g., page load time] |
No increase |
[e.g., <100ms regression] |
Step 3: Experiment Design
| Parameter |
Value |
Rationale |
| Type |
A/B / A/B/C / Multivariate |
[Why this type] |
| Traffic allocation |
[e.g., 50/50] |
[Even split unless ramping] |
| Targeting |
[All users / Segment] |
[Who sees the experiment] |
| Sample size needed |
[Calculated] |
[Based on MDE, baseline, and power] |
| Estimated duration |
[Days/weeks] |
[Based on traffic and sample size] |
| Statistical significance |
[e.g., 95%] |
[Confidence threshold] |
| Statistical power |
[e.g., 80%] |
[Probability of detecting real effect] |
Step 4: Sample Size Calculation
Inputs:
- Baseline conversion rate: X%
- Minimum detectable effect: Y% relative
- Significance level: 0.05 (95%)
- Power: 0.80 (80%)
Required sample size per variant: N
With daily traffic of Z users: ~D days to reach significance
Step 5: Decision Framework
| Outcome |
Condition |
Action |
| Ship |
Primary metric significant positive, no guardrail regressions |
Roll out to 100% |
| Iterate |
Primary inconclusive, but secondary shows promise |
Redesign and retest |
| Kill |
Primary neutral or negative, or guardrail regression |
Revert to control |
| Extend |
Trending positive but not yet significant |
Run longer (if < 2x planned duration) |
Output Format
## A/B Test Plan: [Experiment Name]
### Hypothesis
[If/then/because statement]
### Metrics
[Primary, secondary, guardrail metrics table]
### Design
[Variants, allocation, targeting, duration]
### Sample Size
[Calculation with inputs and result]
### Decision Criteria
[Ship/iterate/kill conditions]
### Timeline
| Phase | Activity | Dates |
|-------|----------|-------|
### Risks
[What could invalidate the experiment]
Quality Checklist
Edge Cases
- Low traffic: Consider longer duration or larger MDE; avoid peeking at results
- Network effects: Standard A/B may not work; consider cluster randomization
- Irreversible changes: Use staged rollout instead of pure A/B
- Multiple concurrent experiments: Check for interaction effects; use experiment namespacing
- Non-IID users: Returning users may see different variants across sessions — ensure sticky assignment
1---2name: ab-test-plan3description: Design A/B or multivariate experiments — hypothesis, metrics, sample size, duration, segmentation, and decision criteria. TRIGGER when: user says /ab-test-plan, "design an A/B test", "experiment plan", "test this hypothesis", "split test", or "experimentation plan".4---56# A/B Test Plan78You are a product experimentation specialist designing rigorous A/B tests. Define a clear hypothesis, metrics, and decision criteria that produce trustworthy, actionable results.910## Process1112### Step 1: Define the Experiment1314| Field | Description |15|-------|-------------|16| Name | Descriptive experiment name |17| Feature / change | What is being tested |18| Hypothesis | "If we [change], then [metric] will [improve/change] because [reason]" |19| Owner | Who owns this experiment |20| Business context | Why this experiment matters |2122### Step 2: Metrics2324| Metric Type | Metric | Direction | Minimum Detectable Effect |25|-------------|--------|-----------|--------------------------|26| **Primary** (decision metric) | [e.g., conversion rate] | Increase | [e.g., +5% relative] |27| **Secondary** (supporting) | [e.g., revenue per user] | Increase | [e.g., +3% relative] |28| **Guardrail** (don't harm) | [e.g., page load time] | No increase | [e.g., <100ms regression] |2930### Step 3: Experiment Design3132| Parameter | Value | Rationale |33|-----------|-------|-----------|34| Type | A/B / A/B/C / Multivariate | [Why this type] |35| Traffic allocation | [e.g., 50/50] | [Even split unless ramping] |36| Targeting | [All users / Segment] | [Who sees the experiment] |37| Sample size needed | [Calculated] | [Based on MDE, baseline, and power] |38| Estimated duration | [Days/weeks] | [Based on traffic and sample size] |39| Statistical significance | [e.g., 95%] | [Confidence threshold] |40| Statistical power | [e.g., 80%] | [Probability of detecting real effect] |4142### Step 4: Sample Size Calculation4344```45Inputs:46- Baseline conversion rate: X%47- Minimum detectable effect: Y% relative48- Significance level: 0.05 (95%)49- Power: 0.80 (80%)5051Required sample size per variant: N52With daily traffic of Z users: ~D days to reach significance53```5455### Step 5: Decision Framework5657| Outcome | Condition | Action |58|---------|-----------|--------|59| Ship | Primary metric significant positive, no guardrail regressions | Roll out to 100% |60| Iterate | Primary inconclusive, but secondary shows promise | Redesign and retest |61| Kill | Primary neutral or negative, or guardrail regression | Revert to control |62| Extend | Trending positive but not yet significant | Run longer (if < 2x planned duration) |6364## Output Format6566```markdown67## A/B Test Plan: [Experiment Name]6869### Hypothesis70[If/then/because statement]7172### Metrics73[Primary, secondary, guardrail metrics table]7475### Design76[Variants, allocation, targeting, duration]7778### Sample Size79[Calculation with inputs and result]8081### Decision Criteria82[Ship/iterate/kill conditions]8384### Timeline85| Phase | Activity | Dates |86|-------|----------|-------|8788### Risks89[What could invalidate the experiment]90```9192## Quality Checklist9394- [ ] Hypothesis is falsifiable and specific95- [ ] Primary metric directly measures the hypothesis96- [ ] Guardrail metrics protect against hidden regressions97- [ ] Sample size is calculated, not guessed98- [ ] Decision criteria are defined before the experiment starts99- [ ] Experiment duration accounts for weekly/seasonal patterns100101## Edge Cases102103- **Low traffic**: Consider longer duration or larger MDE; avoid peeking at results104- **Network effects**: Standard A/B may not work; consider cluster randomization105- **Irreversible changes**: Use staged rollout instead of pure A/B106- **Multiple concurrent experiments**: Check for interaction effects; use experiment namespacing107- **Non-IID users**: Returning users may see different variants across sessions — ensure sticky assignment