Something went wrong!
Hang in there while we get back on track
Power Analysis Sample Size Calculator
Calculate required sample sizes and statistical power for research studies and A/B tests. Supports t-tests, ANOVA, regression, proportions, and correlations with sensitivity analysis and plain-language explanations.
What You Get
Prevent underpowered studies and wasted data collection by calculating exact sample sizes before research begins, with sensitivity analysis showing tradeoffs.
The Problem
The Solution
How It Works
- 1 Identify study design (proportion, t-test, ANOVA, regression, or correlation) and gather parameters
- 2 Run power_calculator.py script with study-specific arguments to compute sample size or power
- 3 Review sensitivity analysis showing sample size requirements across different effect sizes and power levels
- 4 Interpret results with plain-language explanation of statistical concepts and practical recommendations
- 5 For A/B tests, calculate test duration based on daily traffic and emphasize proper stopping rules
What You'll Need
- Python 3 with statsmodels, numpy, and scipy libraries
- Study design specification (proportion test, t-test, ANOVA, regression, or correlation)
- Effect size estimate from literature, pilot data, or domain expertise
- For A/B tests: baseline conversion rate and minimum detectable relative effect
- Optional: daily traffic for duration estimates or existing sample size for post-hoc analysis
Get This Skill
Requires Pro subscription ($9/month)
Have Feedback?
Help us improve this skill by sharing your ideas and suggestions.
Request ImprovementsExamples
A/B Test Sample Size for Signup Conversion
Calculate required sample size and test duration for an A/B test on a signup page with 4.2% baseline conversion, targeting a 15% relative improvement with 750 daily visitors per variant.
Sample Size for Clinical Intervention Grant Proposal
Calculate sample size for a clinical intervention study with medium effect size (d=0.5), 80% power for grant proposal, accounting for 20% participant attrition with ready-to-use methodology language.
Post-Hoc Power Analysis for Underpowered Study
Diagnose whether a completed study with p=0.08 was underpowered by calculating achieved power from sample sizes and means, with recommendations for reporting and follow-up.