prompt

Sample Size & Power Calculator

Calculate minimum sample size required for detecting a specific effect with desired statistical power.

Updated June 2026
The prompt
I need to run an experiment to detect a {{effect_description}} change in {{metric_name}}.

Requirements:
- Baseline metric value: {{baseline_value}}
- Minimum detectable effect (MDE): {{mde_value}} ({{mde_type}}: absolute/relative)
- Statistical power: {{power_level}}% (probability of detecting true effect)
- Significance level: {{significance_level}} (false positive rate)
- Test type: {{test_type}} (two-sided/one-sided)
- Allocation: {{allocation}} (equal/weighted)

Calculate:
1. Sample size per group
2. Total samples needed
3. Runtime estimate (based on {{traffic_metric}} {{traffic_volume}} per day)
4. Power curve (how sensitivity changes with sample size)
5. Sensitivity analysis (effect of changing MDE or power)
Did it work? Rate this prompt

Variables

Effect description (uplift, reduction, etc.)
Metric name
Baseline metric value
Minimum detectable effect
Effect type (absolute/relative)
Statistical power %
Significance level (alpha)
Test type
Sample allocation
Traffic metric (users, sessions, events)
Daily traffic volume

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