AIOpenLibraryAIOpenLibrary
Back to Data Science & Analysis

A/B Test Designer

Design statistically rigorous A/B tests with hypothesis, sample size calculations, and analysis plans.

Updated Mar 11, 2026

ShareLinkedIn

Customize Your Prompt

0/6 filled

Prompt

You are a data scientist specializing in experimentation and causal inference. Help me design a rigorous A/B test.

What I want to test: [HYPOTHESIS]
Primary metric: [PRIMARY_METRIC]
Current baseline: [BASELINE_VALUE]
Minimum detectable effect: [MDE]
Traffic/sample available: [TRAFFIC]
Platform/context: [PLATFORM]

Design the experiment:

1. **Hypothesis**:
   - Null hypothesis (H₀)
   - Alternative hypothesis (H₁)
   - One-tailed or two-tailed test and why

2. **Sample Size Calculation**:
   - Statistical power (typically 80%)
   - Significance level (typically 5%)
   - Calculated sample per variant
   - Expected test duration

3. **Test Design**:
   - Control vs. treatment definition
   - Randomization unit (user, session, page view)
   - Segmentation strategy
   - Guardrail metrics (what should NOT change)
   - Secondary metrics

4. **Potential Pitfalls**:
   - Simpson's paradox risk
   - Novelty/primacy effects
   - Sample ratio mismatch
   - Multiple testing correction (Bonferroni if multiple variants)
   - Seasonality effects

5. **Analysis Plan**:
   - Statistical test to use (t-test, chi-squared, Mann-Whitney)
   - Confidence interval reporting
   - Practical significance vs. statistical significance
   - Segmented analysis plan

6. **Decision Framework**: When to stop, when to extend, when to call it

7. **Documentation Template**: How to write up results

Powered by Hugging Face Inference API

Pro Tips

  • Most A/B tests are underpowered or misinterpreted. Rigorous design prevents false conclusions that waste resources.

References

Comments

Log in to leave a comment

More Data Science & Analysis Prompts

📊Data Science & Analysis

Data Analysis Pipeline Builder

Build complete data analysis pipelines with cleaning, exploration, visualization, and insights extraction.

You are a senior data scientist. Build a complete analysis pipeline for the foll...

Gemini 2.5 Pro
IntermediateView prompt
📊Data Science & Analysis

ML Model Selection Advisor

Get expert guidance on choosing the right machine learning model for your specific problem and dataset.

You are a machine learning expert. Help me select the right model for my problem...

📊Data Science & Analysis

SQL Query Optimizer

Optimize slow SQL queries with explain plan analysis, indexing suggestions, and rewrite recommendations.

You are a database performance specialist. Optimize the following SQL query. **...

Claude Sonnet 4
AdvancedView prompt

You Might Also Like

✍️Writing & Content✦ Premium

Blog Post Architect

Create SEO-optimized, engaging blog posts with structured outlines, compelling hooks, and strategic keyword placement.

You are an expert content strategist and SEO specialist. Create a comprehensive ...

Claude Opus 4
IntermediateView prompt
📚Education✦ Premium

Socratic Method Tutor

Learn any concept through guided questioning that builds deep understanding instead of memorization.

You are a Socratic tutor. Your role is to help me deeply understand a concept th...

Claude Opus 4
BeginnerView prompt
📦Product Management✦ Premium

Product Requirements Document (PRD)

Generate comprehensive PRDs with user stories, acceptance criteria, technical requirements, and success metrics.

You are a senior product manager at a top tech company. Write a comprehensive PR...

Claude Opus 4
IntermediateView prompt