Inferensys

Glossary

Power Analysis

A statistical calculation performed before an experiment launches to determine the required sample size needed to detect a specified minimum effect size with a given level of confidence and statistical power.
Research scientist tracking AI experiments on laptop, experiment results visible, casual lab environment.
EXPERIMENTAL DESIGN

What is Power Analysis?

A statistical calculation performed before an experiment launches to determine the required sample size needed to detect a specified minimum effect size with a given level of confidence and statistical power.

Power analysis is a pre-experiment statistical calculation that determines the minimum sample size required to reliably detect a true effect of a specified magnitude, should one exist. It balances four interconnected parameters: statistical power (typically 0.80), the significance level (alpha, typically 0.05), the minimum detectable effect (MDE), and the sample size. Fixing any three mathematically constrains the fourth, preventing underpowered experiments that waste resources on inconclusive results.

In A/B testing infrastructure, power analysis directly dictates experiment duration and traffic allocation, ensuring that a Type II error (a false negative) is controlled. For online controlled experiments, analysts use power analysis to avoid the peeking problem by pre-committing to a fixed sample size. Without it, teams risk concluding that a genuinely superior personalization model has no impact simply because insufficient data was collected to overcome the inherent variance in metrics like click-through rate or revenue per user.

Experimental Design

Core Parameters of Power Analysis

Power analysis is a pre-experiment calculation that determines the minimum sample size required to reliably detect a meaningful effect. It balances statistical rigor with business constraints to prevent wasted resources on underpowered tests.

01

Statistical Power (1 - β)

The probability that an experiment will correctly reject the null hypothesis when a true effect exists. It represents the test's sensitivity to detect real differences.

  • Standard target: 0.80 (80%) is the conventional minimum in most experimentation platforms
  • Interpretation: An 80% power means there is a 20% chance of a Type II Error (false negative)
  • Trade-off: Higher power requires larger sample sizes, increasing experiment duration and cost
  • Business impact: Underpowered tests waste engineering resources by failing to detect genuine improvements in personalization models

Setting power too low risks missing revenue-positive model updates; setting it too high may make experimentation infeasible for low-traffic segments.

80%
Industry Standard Minimum
02

Significance Level (α)

The probability threshold for committing a Type I Error—rejecting the null hypothesis when it is actually true. This is the experimenter's tolerance for false positives.

  • Standard value: 0.05 (5%) is the conventional cutoff in online controlled experiments
  • One-tailed vs. two-tailed: A two-tailed test allocates α/2 to each tail, requiring more data but detecting effects in either direction
  • Relationship to p-value: If the calculated p-value falls below α, the result is declared statistically significant
  • Multiple testing: When monitoring multiple metrics, α must be adjusted using corrections like Bonferroni or False Discovery Rate control

A lower α reduces false positives but demands larger sample sizes, directly impacting the feasibility of rapid iteration on AI models.

0.05
Conventional Alpha
03

Minimum Detectable Effect (MDE)

The smallest effect size that the experiment is designed to reliably detect. This is the practical significance threshold—the improvement that justifies shipping a change.

  • Expression: Often stated as a relative percentage change (e.g., 2% lift in conversion rate)
  • Business calibration: MDE should reflect the smallest improvement that delivers meaningful return on investment
  • Inverse relationship: Smaller MDEs require exponentially larger sample sizes
  • Example: Detecting a 0.5% click-through rate improvement requires roughly 4x the sample size of detecting a 1% improvement

Setting the MDE requires collaboration between data scientists and product managers to align statistical requirements with business objectives. An overly ambitious MDE can make experiments practically impossible to run.

Inverse Square
MDE-to-Sample Size Relationship
04

Sample Size Calculation

The mathematical derivation of the number of experimental units required per variant, computed from power, significance level, MDE, and the baseline variance of the target metric.

  • Key inputs: α (significance), 1-β (power), MDE, and the standard deviation of the metric
  • Binary metrics: For conversion rates, variance is a function of the baseline rate itself: σ² = p(1-p)
  • Continuous metrics: For revenue or latency, historical variance must be estimated from production data
  • Duration estimation: Sample size divided by daily eligible traffic determines experiment runtime

Formula for two-sample proportion test:

code
n = (Z_α/2 + Z_β)² × (p₁(1-p₁) + p₂(1-p₂)) / (p₂ - p₁)²

Online calculators and libraries like statsmodels in Python automate this computation, but understanding the inputs ensures correct parameterization.

4 Parameters
Required Inputs
05

Baseline Conversion Rate

The current performance level of the control group metric, which directly influences the required sample size through its effect on variance.

  • Variance peak: Binary metrics exhibit maximum variance at a 50% baseline rate, requiring the largest samples
  • Low baselines: Rare events (e.g., 0.1% purchase rate) require massive sample sizes because the absolute effect is tiny
  • Stability requirement: Baseline estimates must come from a stable historical period, not a volatile launch window
  • Seasonality adjustment: Baselines should account for day-of-week and holiday effects to avoid misestimating variance

Accurate baseline measurement is critical—an underestimated variance leads to underpowered experiments that fail to detect real effects from personalization model improvements.

50%
Maximum Variance Point
06

Power Curve Analysis

A visualization plotting the relationship between sample size and statistical power for a fixed MDE and significance level. It reveals the diminishing returns of additional data collection.

  • Shape: The curve rises steeply initially, then asymptotically approaches 1.0
  • Saturation point: Beyond 90-95% power, massive sample size increases yield negligible gains
  • Practical use: Helps stakeholders understand the cost of increasing power from 80% to 90% or 95%
  • Inverse analysis: Can also plot detectable effect size against sample size at fixed power to determine what effect sizes are discoverable given traffic constraints

Power curves are essential communication tools for aligning engineering, product, and data science teams on realistic experiment expectations and timelines.

Diminishing Returns
Beyond 90% Power
POWER ANALYSIS

Frequently Asked Questions

Clear answers to the most common questions about statistical power analysis for A/B testing and AI experimentation, covering sample size, effect size, and practical implementation.

Power analysis is a statistical calculation performed before an experiment launches to determine the required sample size needed to detect a specified minimum detectable effect (MDE) with a given level of confidence and statistical power. It works by balancing four interconnected parameters: sample size, effect size, significance level (alpha), and power (1 - beta). By fixing three of these values, you can solve for the fourth. In practice, experimenters typically set alpha to 0.05, power to 0.80, and the MDE to the smallest improvement that is practically meaningful for the business, then calculate the required sample size. This ensures the experiment is neither underpowered—risking a Type II error where a real improvement is missed—nor overpowered, which wastes traffic and exposes users to unnecessary risk.

EXPERIMENTAL DESIGN FRAMEWORK

Power Analysis vs. Related Statistical Concepts

How power analysis compares to other critical statistical concepts in A/B testing infrastructure for AI-driven personalization.

ConceptPower AnalysisP-ValueConfidence Interval

Primary Purpose

Pre-experiment planning to determine required sample size

Post-experiment decision rule for rejecting null hypothesis

Post-experiment estimation of effect size precision

Timing in Experiment Lifecycle

Before experiment launch

After experiment concludes

After experiment concludes

Key Input Required

Minimum Detectable Effect, desired power (1-β), significance level (α)

Observed test statistic from collected data

Sample mean, standard error, and confidence level

Controls Type II Error (False Negative)

Controls Type I Error (False Positive)

Provides Effect Magnitude Estimate

Typical Threshold Value

80% power (β = 0.20)

p < 0.05

95% CI

Relationship to Sample Size

Directly calculates required N

Influenced by N but does not determine it

Width narrows as N increases

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.