A/B Test & Experiment Designer

Design rigorous experiments with hypothesis, sample size, and analysis plan

analysisPopularintermediateHypothesis TestingStatistical AnalysisExperimentation1200-1600 words
Customize Your Prompt
Fill in the variables to generate your personalized prompt
Preview
See how your prompt will look with the current variables
You are a Senior Product Manager designing a rigorous A/B test for [Feature or Change to Test] measuring [Primary Success Metric].

Structure your experiment design:

## 1. HYPOTHESIS FORMATION

### Primary Hypothesis
**If** [specific change]
**Then** [expected outcome with specific metric movement]
**Because** [underlying behavioral/psychological reasoning]

### Null Hypothesis
State what you're testing against (no effect or current state)

### Success Criteria
- Minimum detectable effect: [X% improvement needed]
- Statistical significance: [typically 95% confidence]
- Practical significance: [Business impact threshold]

## 2. EXPERIMENT DESIGN

### Test Architecture
- **Control (A)**: [Current experience description]
- **Variant(s) (B, C...)**: [Changed experience description]
- **Key differences**: [Bullet list of what's different]

### Target Audience
- **Inclusion criteria**: [Who's eligible]
- **Exclusion criteria**: [Who to exclude and why]
- **Segmentation plans**: [Subgroups to analyze separately]

### Randomization Strategy
- Method: [User ID hash, session-based, etc.]
- Split: [50/50, 80/20, etc. with justification]
- Stratification: [If needed for balance]

## 3. SAMPLE SIZE & DURATION

### Statistical Power Calculation
- Baseline rate: [Current metric value]
- Minimum detectable effect: [Smallest meaningful change]
- Power: [Typically 80%]
- Significance level: [Typically 5%]
- **Required sample size**: [N per variant]
- **Estimated duration**: [Days/weeks based on traffic]

### Duration Considerations
- Weekly/seasonal patterns to account for
- Minimum runtime to avoid novelty effects
- Maximum runtime to avoid opportunity cost

## 4. METRICS FRAMEWORK

### Primary Metrics
- **Decision metric**: [The one metric that determines success]
- **Target movement**: [X% with confidence interval]

### Secondary Metrics
- Supporting metrics: [Related positive indicators]
- Counter metrics: [What might get worse]
- Guardrail metrics: [What must not degrade]

### Leading Indicators
- Early signals: [Metrics that move first]
- Diagnostic metrics: [Help explain why]

## 5. RISK MITIGATION

### Potential Risks
- **Technical risks**: [Performance, bugs, edge cases]
- **User experience risks**: [Confusion, frustration]
- **Business risks**: [Revenue impact, brand perception]

### Mitigation Strategies
- Ramp plan: [Start with X% of traffic]
- Kill criteria: [When to stop early]
- Rollback plan: [How to revert quickly]
- Communication plan: [If issues arise]

## 6. ANALYSIS PLAN

### Pre-Test Analysis
- A/A test validation: [Ensure randomization works]
- Power analysis confirmation
- Baseline metric stability check

### During Test Monitoring
- Daily health checks: [What to monitor]
- Peeking strategy: [When/how to check results]
- SRM (Sample Ratio Mismatch) detection

### Post-Test Analysis
- Primary analysis: [ITT, per-protocol, etc.]
- Segment analysis: [User cohorts to examine]
- Novelty effect assessment
- Long-term impact projection

## 7. DECISION FRAMEWORK

### Success Scenario
- Ship criteria: [Specific conditions]
- Rollout plan: [Phased or full]
- Follow-up experiments: [What to test next]

### Failure Scenario
- Learning extraction: [What we learned]
- Alternative approaches: [Other solutions to try]
- Hypothesis refinement: [How to adjust]

### Inconclusive Scenario
- Extension criteria: [Only under a valid preplanned or adjusted design; do not extend a fixed-sample test merely to seek significance]
- Additional data needs: [What would help decide]
- Default decision: [Ship or don't ship]

## 8. IMPLEMENTATION CHECKLIST

Pre-Launch:
- [ ] Hypothesis documented and reviewed
- [ ] Sample size calculation verified
- [ ] Tracking implementation tested
- [ ] Randomization validated with A/A test
- [ ] Rollback plan documented

During Test:
- [ ] Daily monitoring dashboard live
- [ ] SRM checks automated
- [ ] Stakeholder updates scheduled

Post-Test:
- [ ] Results analysis peer-reviewed
- [ ] Learnings documented
- [ ] Next steps communicated

Include specific numbers, clear success criteria, and confidence levels throughout.

## Web research, when available
- Search for facts relevant to this task, such as current prices, product capabilities, market data, or applicable requirements.
- Prefer primary sources. Cite the source title, direct URL, and publication or data date near each factual claim.
- Match source recency to the claim. Check current prices and capabilities; retain older research when it remains relevant and label its date.
- Explain material differences in definitions, samples, and time periods before comparing benchmarks. Report conflicting evidence and access limits.
- Keep sourced findings separate from assumptions and recommendations. Public research cannot establish private company metrics, customer quotes, or internal commitments.
- If browsing is unavailable or a fact cannot be verified, say so. Do not invent sources or imply a search was completed.

## Evidence and accuracy
- Use supplied facts and verified sources. Do not invent metrics, quotes, people, company details, commitments, or personal experience.
- Mark assumptions [ASSUMPTION], estimates [ESTIMATE: method], and unresolved questions [UNCERTAIN: reason]. Leave unavailable values unfilled rather than guessing.
- Explain confidence as high, medium, or low using the evidence available. These labels are judgments, not calibrated probabilities. Give numerical probabilities only when a stated method supports them.
- Treat preset weights, scores, timelines, and targets in this template as starting examples. Adapt them to the task and explain changes; they are not universal benchmarks or approved commitments.
- Define score scales and directions before calculating totals. Keep units, denominators, and time periods consistent. Do not average away a critical blocker.
- Use only exact supplied or verified quotes with attribution. Label requested fictional examples as illustrative. Distinguish observed behavior from inferred motives or causes.
- Use only the sections and rows the task needs. Write plainly, preserve necessary technical terms, and avoid unsupported benefits or forced specificity.
- Identify missing information needed for a decision. Recommendations remain proposals until reviewed by the responsible team.

## Evidence and accuracy
- Use supplied facts and verified sources. Do not invent metrics, quotes, people, company details, commitments, or personal experience.
- Mark assumptions [ASSUMPTION], estimates [ESTIMATE: method], and unresolved questions [UNCERTAIN: reason]. Leave unavailable values unfilled rather than guessing.
- Explain confidence as high, medium, or low using the evidence available. These labels are judgments, not calibrated probabilities. Give numerical probabilities only when a stated method supports them.
- Treat preset weights, scores, timelines, and targets in this template as starting examples. Adapt them to the task and explain changes; they are not universal benchmarks or approved commitments.
- Define score scales and directions before calculating totals. Keep units, denominators, and time periods consistent. Do not average away a critical blocker.
- Use only exact supplied or verified quotes with attribution. Label requested fictional examples as illustrative. Distinguish observed behavior from inferred motives or causes.
- Use only the sections and rows the task needs. Write plainly, preserve necessary technical terms, and avoid unsupported benefits or forced specificity.
- Identify missing information needed for a decision. Recommendations remain proposals until reviewed by the responsible team.
What Makes a Good Experiment Design
  • • Hypothesis written If/Then/Because with the behavior theory you're testing.
  • • One decision metric, stated MDE, and power-based sample size and duration.
  • • Randomization plan, SRM checks, and guardrails to avoid breaking things.
  • • Ramp, stop, and rollback criteria agreed before launch, with a tested rollback process.
  • • Pre-agreed analysis: peeking rules, segments, and how you decide ship/hold.
Common Experiment Design Mistakes
  • • Tests with too little data to reliably detect the planned effect.
  • • Peeking daily and pivoting mid‑run; novelty and regression bite later.
  • • Mixed variants (too many changes) so you can't tell what worked.
  • • No SRM or bot filters—your split is 55/45 and nobody notices.
  • • Measuring the wrong thing: clicks up, revenue down. Guardrails would help.
Questions PMs Actually Ask (Experiment Design)

How do I write a hypothesis that isn't fluff?

If [we remove one step from onboarding], then [activation rate increases by 12%] because [drop‑offs cluster at the second form and users say it feels like paperwork]. If/Then/Because forces you to show your reasoning, not just hope.

What's a reasonable minimum detectable effect (MDE)?

Tie MDE to business impact and available traffic. If a 1% lift matters but traffic only supports detecting 6%, consider a longer test, another surface, or a different research method.

Can I peek at results?

Monitor health during the test. For a fixed-sample analysis, follow the planned sample and duration; a scheduled interim check still needs a method that permits early decisions.

How do I avoid SRM and other traps?

Automate SRM checks, filter bots, and hash randomize on a stable key (user, not session). Also: pause overlapping experiments on the same surface unless you have an interaction design.

My exec wants to ramp early because it "looks good". Help?

Pre‑commit to kill and ship criteria. Put the table in the doc before launch. When pressure hits, point to the rules we all signed. It saves relationships—and your data.

What if results are flat?

Check exposure and measurement, then report the effect estimate and uncertainty. Treat unplanned segment findings as exploratory and verify them in follow-up work.

Which metrics should be guardrails vs. secondary?

Guardrails track unacceptable harm, such as errors or refunds. Secondary metrics help explain the result. Define the response to guardrail changes before launch.

How long should we run an experiment?

At least one full business cycle (weekly patterns matter) and until your powered sample size is reached. Stop‑early rules must be defined a priori; “feels done” is not a rule.

Do I need an A/A test?

An A/A test can help check assignment and measurement after changes. A significant result can occur by chance, so investigate rather than treating it as proof of a bug.

How do I make the decision obvious at the end?

Document criteria for shipping, rejecting, or running a follow-up. An inconclusive result does not justify extending a fixed-sample test until it becomes significant.

How to use this prompt

When to use it

Feature validation and optimization

Before you use the output

  • •Fill in the variables with the facts and constraints you have.
  • •Check the output against your source material and revise any mistakes.
  • •Enable web search where available and check the dates and sources it returns.

Expected output

Comprehensive experiment design document

Quick Info
Categoryanalysis
Output Length1200-1600 words
Web SearchSupported
Frameworks
Hypothesis TestingStatistical AnalysisExperimentation
Related Guides
Try PM Toolkit Calculators

Use the calculators to check the numbers behind a proposed product decision.