Draw thousands of virtual studies with the planned sample from the chosen population, run both tests on each, and count how often they reach p < α. Under H₁ that rate is the power; under H₀ (no effect) it should stay near α.
Method and formulas
Parametric tests. Power is computed exactly from the noncentral F distribution (a t-test is the case F = t² with one numerator df). Power = P(F′(df₁, df₂, λ) > Fcrit), with Fcrit the 1 − α quantile of the central F.
| Design | Effect | df | Noncentrality λ |
|---|---|---|---|
| 2 independent groups | d = (μ₂ − μ₁) / σ | n₁ + n₂ − 2 | d² · n₁n₂ / (n₁ + n₂) |
| 2 paired measurements | dz = μD / σD = d / √(2(1 − r)) | n − 1 | n · dz² |
| k independent groups | f = σμ / σ | k − 1, N − k | f² · N |
| k repeated measures | f = σμ / σ | (k − 1)ε, (n − 1)(k − 1)ε | f² · n · k · ε / (1 − ρ) |
σμ is the standard deviation of the population means around their grand mean (divide by k, not k − 1). The repeated-measures formula matches G*Power's "within factors" option.
Mean score against a benchmark. The one-sample t-test compares the mean with a fixed value (for example a SUS score of 80). It uses the paired-design formulas with d = (expected mean − benchmark) / SD; the rank-based counterpart is the one-sample Wilcoxon signed-rank test.
Percentage against a benchmark. Power of the one-proportion z-test (normal approximation to the binomial test) for a benchmark p₀ and expected proportion p₁: Φ((|p₁ − p₀|·√n − z·√(p₀q₀)) / √(p₁q₁)), with z the critical value and q = 1 − p. The effect size is Cohen's h = 2·asin√p₁ − 2·asin√p₀ (0.2 / 0.5 / 0.8 for small / medium / large). The simulation also runs the exact binomial test, which is slightly conservative with small samples.
Comparing two proportions. Power of the two-proportion z-test with group sizes n₁ and n₂ = r·n₁: Φ((|p₂ − p₁|·√n₁ − z·√(p̄q̄(1 + 1/r))) / √(p₁q₁ + p₂q₂/r)), with p̄ = (p₁ + r·p₂)/(1 + r) (Fleiss, without continuity correction; the formula ClinCalc uses). The simulation also runs Fisher's exact test, which is conservative.
One-sided t-tests use the exact noncentral t distribution.
Rank-based tests. Mann–Whitney U, Wilcoxon signed-rank and Kruskal–Wallis are planned with the asymptotic relative efficiency (ARE): the rank test with n participants behaves like the parametric test with ARE · n. The tool scales λ by the ARE, as G*Power does. ARE = 12σ²(∫f²)² depends on the population shape. For the Friedman test the ARE is multiplied by k / (k + 1), so Friedman loses more power with few conditions. The ARE is a large-sample result: with small samples the real power of a rank test can be a few points lower, which the simulation shows.
| Population shape | ARE rank vs. parametric |
|---|---|
| Normal | 3/π = 0.955 |
| Uniform | 1.000 |
| Logistic | π²/9 = 1.097 |
| Laplace | 1.500 |
| Lognormal (σ = 0.5) | 1.578 |
| Lower bound for any shape | 0.864 |
Simulation. Each virtual study draws standardized data (mean 0, SD 1) from the chosen shape and shifts the groups by the effect. Repeated measures use a normal participant effect with correlation ρ and assume sphericity. Mann–Whitney and Wilcoxon use the normal approximation with continuity correction; Kruskal–Wallis and Friedman use the χ² approximation. With a skewed distribution of paired differences the signed-rank test targets the pseudo-median instead of the mean, so its rejection rate under H₀ can drift away from α.
Effect size benchmarks (Cohen, 1988): d = 0.2 / 0.5 / 0.8 and f = 0.10 / 0.25 / 0.40 for small / medium / large. Use them only when no pilot data or literature exist.
References. Cohen, J. (1988). Statistical power analysis for the behavioral sciences (2nd ed.). Faul, F., Erdfelder, E., Lang, A.-G., & Buchner, A. (2007). G*Power 3. Behavior Research Methods, 39, 175–191. Lehmann, E. L. (1975). Nonparametrics: Statistical methods based on ranks.