prompt

Sample Size Calculator Brief

Calculate required sample size for {{experiment_type}} with power, effect size, and timeline estimates.

Updated June 2026
The prompt
Calculate sample size for {{experiment_type}}:

Inputs:
- Baseline metric value: {{baseline}}
- Minimum detectable effect (MDE): {{mde}}%
- Statistical power: 80% (α = 0.05, two-tailed)
- Metric type: {{metric_type}} (binary/continuous)

Outputs:
1. Required sample size per variant
2. Total duration (days) assuming {{daily_traffic}} {{traffic_unit}} per day
3. Sensitivity analysis: how sample size changes with different MDE targets
4. Power curve: probability of detecting effect at different true effect sizes

Interpretation:
- Is the timeline acceptable?
- Should we run test longer to detect smaller effects?
- Any trade-offs between precision and speed?

Format as summary table + recommendation sentence.
Did it work? Rate this prompt

Variables

Experiment description (e.g. 'pricing test: $99 vs $129 plans')
Current metric value (e.g. '25%' for conversion rate)
Relative lift to detect (e.g. '5' for 5% improvement)
Metric type (e.g. 'binary: conversion', 'continuous: revenue')
Eligible users/events per day
Unit (users, sessions, events, etc.)

Details

Author

AI Khazna

License

Security

Type

prompt

Related assets

More curated picks in Data & Analytics.

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Data & Analytics