Statistical power simulator
Explore how sample size, effect size, variability, and significance level determine a study's power — the probability of detecting a real effect.
In a two-sample z-test comparing n observations per group, the test statistic is z = (XT − XC) / (σ√(2/n)).
Under H0 (no effect), z is centered at zero. Under the alternative (true effect δ), the distribution shifts by λ = (δ/σ)√(n/2).
This is the normal approximation to the corresponding two-sample t-test. With at least 50 observations per group, it is an acceptable simplification for illustrating statistical power.
Power is the green area: the probability that the shifted distribution lands beyond the critical value. The larger λ, the less the two curves overlap, and the more likely the test detects the effect.