Use when a product, growth, or operations team wants to test a change rigorously.
Sample Size Calculator AI Prompt
This prompt helps design, size, analyze, or govern experiments in a structured way. It is useful when a team wants to make product or process decisions based on evidence instead of opinion. The output should balance statistical rigor with practical business judgment so stakeholders can act confidently. It estimates how much traffic and time an experiment needs before the results can be trusted.
Calculate the required sample size for this A/B test.
Inputs:
- Primary metric type: {{metric_type}} (conversion rate / continuous metric)
- Baseline value: {{baseline}} (e.g. current conversion rate of 5%, or mean revenue of $42)
- Minimum detectable effect (MDE): {{mde}} (e.g. 10% relative lift, or absolute +0.5%)
- Significance level α: 0.05 (two-tailed)
- Statistical power: 80%
- Number of variants: {{variants}} (e.g. 2 = one control + one treatment)
Calculate and return:
1. Required sample size per variant
2. Total sample size across all variants
3. Required test duration given daily traffic of {{daily_traffic}} users/sessions
4. Sensitivity table: how does sample size change as MDE varies?
- MDE at 50%, 75%, 100%, 125%, 150% of the specified MDE
5. Power curve: plot statistical power vs sample size for the specified MDE
6. Flag if the required duration exceeds 4 weeks — longer tests are vulnerable to seasonality and novelty effects
Return: sample size calculation, duration estimate, sensitivity table, and power curve.When to use this prompt
Use before launch to design an experiment or after launch to interpret results.
Use when you need to calculate sample size, validate significance, or diagnose weak tests.
Use when a decision depends on evidence rather than intuition or stakeholder opinion.
What the AI should return
The AI should return a decision-ready experiment output with the requested calculations, assumptions, and interpretation clearly labeled. Statistical reasoning should be explained in plain language, and the response should distinguish significance, practical impact, risks, and next steps. Any recommendation should be explicit, defensible, and tied to the evidence provided.
How to use this prompt
Open your data context
Load your dataset, notebook, or working environment so the AI can operate on the actual project context.
Copy the prompt text
Use the copy button above and paste the prompt into the AI assistant or prompt input area.
Review the output critically
Check whether the result matches your data, assumptions, and desired format before moving on.
Chain into the next prompt
Once you have the first result, continue deeper with related prompts in AB Testing and Experimentation.
Frequently asked questions
What does the Sample Size Calculator prompt do?+
It gives you a structured ab testing and experimentation starting point for business analyst work and helps you move faster without starting from a blank page.
Who is this prompt for?+
It is designed for business analyst workflows and marked as beginner, so it works well as a guided starting point for that level of experience.
What type of prompt is this?+
Sample Size Calculator is a single prompt. You can copy it as-is, adapt it, or use it as one step inside a larger workflow.
Can I use this outside MLJAR Studio?+
Yes. The prompt text works in other AI tools too, but MLJAR Studio is the best fit when you want local execution, visible Python code, and reusable notebooks.
What should I open next?+
Natural next steps from here are A/B Test Design Brief, A/B Test Results Analysis, Experiment Roadmap Builder.