TriaLab Power Studio · Method

Mann–Whitney U / Wilcoxon rank-sum test

Means & continuous Validated Free 8 published examples

Sizes a two-arm parallel trial analysed by the Mann–Whitney U (Wilcoxon rank-sum) test, by the efficiency adjustment of the two-sample t-test (what PASS computes) or by Noether’s formula on the probability that a treated observation exceeds a control one. The effect can be entered as a difference, a standardised difference, or that probability, under an assumed shape of the population; unequal allocation is admitted.

Also known as: Mann-Whitney, Wilcoxon rank-sum, WMW, rank-sum test, nonparametric two-sample test, probability of superiority, Noether, asymptotic relative efficiency, skewed outcome.

Maturity

Validated: 8 published examples from 2 independent publications (Machin, Campbell, Tan & Tan 2018; PASS) reproduce on every build (ADR-0001 §58).

What it solves for

  • Sample size: offered.
  • Power: offered.
  • Detectable effect: offered.
  • Precision: not offered — A confidence interval for the Hodges–Lehmann shift or for P(Y > X) is well defined, but no source on disk sizes to its width, so it is not offered rather than offered unchecked.
  • Assurance: not offered — No source on disk states a prior on this design’s effect, so the assurance modifier is not admitted here.
  • Duration: not offered — This design has no time axis: participants are assessed at a fixed follow-up, so calendar time does not enter the power function.

Size axes:

  • Participants per arm (control arm; the treatment arm follows the allocation ratio) (participants_per_arm), Count

Inputs

Every field as the form shows it, with its help. A field marked advanced sits behind Expert mode.

Common to every method

  • Significance level (alpha) (alpha): a number, above 0 and below 1; default 0.05; typically 0.01 to 0.05 (0.05 in most trials; 0.01 for confirmatory claims); entered as proportion (0-1) or percent The type I error rate. Interpreted as two-sided when testing plain equality and one-sided when a margin frame is active, following the usual convention.
  • Target power (power_target): a number, above 0 and below 1; default 0.8; typically 0.8 to 0.9 (0.80 is conventional; 0.90 for definitive trials); entered as proportion (0-1) or percent The chance of a significant result if the assumed effect is real. Used when solving for sample size or detectable effect; ignored when solving for power.

The method’s own

  • Route (method): a choice; default noether Which published sizing method to use. Both are approximations — there is no exact closed form for a rank test’s power at a finite size — and the cross-check log records how far each sits from a simulation of the actual test (ADR-0001 §22). Noether’s formula, the default, was never optimistic in that simulation: it sat within 0.02 of the true power at the sizes trials run and up to 0.07 below it under fifty participants. The efficiency adjustment is what PASS computes; it is accurate under the normal and optimistic under the other shapes — by up to 0.17 in power for the signed-rank test under the double exponential at small sizes.
    • noether Noether’s formula: Noether (1987): N = (z_alpha + z_beta)^2 / (12 c (1 − c) (P − 1/2)^2) on the probability P that a treated observation exceeds a control one, with c the treatment fraction; equality frame only.
    • efficiency Efficiency adjustment: The pooled two-sample t-test’s power at the adjusted sizes n1/W and n2/W, following Al-Sunduqchi & Guenther (1990); takes every frame the t-test takes.
  • Assumed shape of the population (family): a choice; default normal The distribution the observations are assumed to follow, standardised to the standard deviation entered. It sets two things: the efficiency factor W of the efficiency route — 1 for the uniform, 1.047 for the normal, 0.912 for the logistic, 0.667 for the double exponential — and the translation between a shift in outcome units and the probability that one observation exceeds another. If the shape is unknown, the normal is the conventional assumption and the one PASS’s examples use.
    • normal Normal: The rank test needs 4.7% more participants than the t-test (W = π/3).
    • uniform Uniform: Short tails; the rank test and the t-test need the same size (W = 1).
    • logistic Logistic: Slightly heavy tails; the rank test needs 8.8% fewer (W = 9/π²).
    • double_exponential Double exponential (Laplace): Heavy tails; the rank test needs a third fewer (W = 2/3).
  • Standard deviation within a group (sd): a number, above 0; default 1 The anticipated standard deviation of the outcome, assumed common to both groups. The assumed population shape is scaled to it.
  • Difference between the group centres (difference): a number, any finite number; default 0.5 The anticipated true difference between the treatment and control centres (treatment minus control; positive favours treatment), in the units of the outcome. Under a margin frame this is the assumed true difference, which is often zero.
  • Standardised difference (standardised_difference): a number, any finite number; typically 0.2 to 0.8 (Cohen’s small / medium / large) The difference between the group centres divided by the within-group standard deviation.
  • Probability that a treated observation exceeds a control one (p_exceed): a number, above 0 and below 1; entered as proportion (0-1) or percent P(Y > X) for a random treated observation Y and control observation X — the probability of superiority, which the Mann–Whitney U statistic estimates directly. One half means no effect. Translated to a difference under the assumed population shape: under the normal, 0.726 is a standardised difference of 0.85 (Machin’s Table 5.3).

Sizes entered when another axis is solved for

  • Participants per arm (control arm; the treatment arm follows the allocation ratio) (participants_per_arm): a whole number, at least 1 Participants per arm (control arm; the treatment arm follows the allocation ratio). Required when solving for power or detectable effect; produced by the solver when solving for sample size.

Ways to express an input

Effect size — How far apart the two group centres are. Three spellings of one quantity under the assumed population shape.

  • Difference between centres, the form’s default: The clinical quantity, in the units of the outcome. (fields difference)
  • Standardised difference: The difference over the within-group SD. (fields standardised_difference)
  • Probability of superiority P(Y > X): Noether’s probability, translated under the assumed population shape. (fields p_exceed)

Modifiers admitted

  • frame: Hypothesis frame
  • multiplicity: Multiplicity (a family of tests)
  • fdr: False-discovery rate (many features tested at once)
  • allocation: Allocation
  • dropout: Dropout

Published examples it reproduces (8)

Each is a worked example: the inputs as a user enters them, and the number the source prints, which the engine reproduces within the tolerance on every build (the Validation screen runs them on your machine).

Source Example Solves for Inputs Published
PASS 2026 chapter 257, Example 1 (printed p. 257-4) P(Y > X) = 0.58, equal groups, two-sided alpha 0.05, power 0.90 => 274 per group (achieved 0.90038) Sample size alpha = 0.05; method = noether; p_exceed = 0.58; power_target = 0.9; sd = 1; effect expressed as exceedance participants_per_arm = 274 ± 0
PASS 2026 chapter 257, Example 1 (printed p. 257-4) P(Y > X) = 0.64, equal groups, two-sided alpha 0.05, power 0.90 => 90 per group (achieved 0.90205) Sample size alpha = 0.05; method = noether; p_exceed = 0.64; power_target = 0.9; sd = 1; effect expressed as exceedance participants_per_arm = 90 ± 0
Machin, Campbell, Tan & Tan 2018 p. 75, via PASS 2026 chapter 257 Example 2 (printed p. 257-7) P = 0.726 with the second group two thirds the size of the first, two-sided alpha 0.05, power 0.90 => 43 in the first group (and 29 in the second, 72 in all) Sample size allocation_ratio = 0.666667; alpha = 0.05; method = noether; p_exceed = 0.726; power_target = 0.9; sd = 1; effect expressed as exceedance (with allocation) participants_per_arm = 43 ± 0
PASS 2026 chapter 503, Example 1 (printed p. 503-7) Difference 3, SD 1, logistic population, two-sided alpha 0.05, power 0.90 => 4 per group Sample size alpha = 0.05; difference = 3; family = logistic; method = efficiency; power_target = 0.9; sd = 1 participants_per_arm = 4 ± 0
PASS 2026 chapter 503, Example 1 (printed p. 503-7) Difference 3, SD 2, logistic population, two-sided alpha 0.01, power 0.90 => 14 per group Sample size alpha = 0.01; difference = 3; family = logistic; method = efficiency; power_target = 0.9; sd = 2 participants_per_arm = 14 ± 0
PASS 2026 chapter 503, Example 1 (printed p. 503-7), a truncation cell Difference 3, SD 4, logistic population, two-sided alpha 0.01, power 0.90: PASS truncates the adjusted size and prints 51; the fractional adjustment gives 50 Sample size alpha = 0.01; difference = 3; family = logistic; method = efficiency; power_target = 0.9; sd = 4 participants_per_arm = 50.5 ± 0.5
PASS 2026 chapter 503, Example 3 (printed p. 503-12), after Chow 2017 §3.2 Chow’s two-sample t design (difference 0.05, SD 0.1, two-sided alpha 0.05, power 0.80 => 64) under the normal: 64 × π/3 = 67.02. PASS prints 68; the fractional adjustment gives 67 Sample size alpha = 0.05; difference = 0.05; family = normal; method = efficiency; power_target = 0.8; sd = 0.1 participants_per_arm = 67.5 ± 0.5
Machin, Campbell, Tan & Tan 2018, Example 5.6 (printed p. 75) Photo-aged skin: P = 0.726 (standardised difference 0.85 under the normal, Table 5.3), allocation 2:3, two-sided alpha 0.05, power 0.90 => N = 71.43 by Machin’s equation 5.9, which on the control-arm axis at ratio 1.5 is 29 (N = 72.5) Sample size allocation_ratio = 1.5; alpha = 0.05; method = noether; p_exceed = 0.726; power_target = 0.9; sd = 1; effect expressed as exceedance (with allocation) participants_per_arm = 29 ± 0

Sources

  1. Noether GE. Sample size determination for some common nonparametric tests. J Am Stat Assoc. 1987;82(398):645-647.
  2. Al-Sunduqchi MS. Determining the appropriate sample size for inferences based on the Wilcoxon statistics [PhD dissertation]. Laramie (WY): University of Wyoming; 1990.
  3. Zhao YD, Rahardja D, Qu Y. Sample size calculation for the Wilcoxon-Mann-Whitney test adjusting for ties. Stat Med. 2008;27(3):462-468.
  4. Machin D, Campbell MJ, Tan SB, Tan SH. Sample Sizes for Clinical, Laboratory and Epidemiology Studies. 4th ed. Chichester: Wiley; 2018. §5.5, pp. 70-75.

This page was generated from TriaLab Power Studio 2.0.1's engine, as the method is built, and is published in English only. All methods →