Worked Example: Worked Mathematical Example: Mann-Whitney U Test
Compute Mann-Whitney U, Z-statistic, Common Language Effect Size (CLES), and Rank-Biserial r.
- Specify the function parameters, matrix entries, or confusion matrix counts.
- Apply the closed-form or iterative formula: U₁ = n₁n₂ + n₁(n₁+1)/2 − R₁; μ_U = n₁n₂ / 2; σ_U = √[ n₁n₂(n₁ + n₂ + 1) / 12 ]; Z = (U₁ − μ_U) / σ_U.
- Examine the primary result, error bounds, and 3 interactive SVG plots.
Result: Computes Mann-Whitney U Test via U₁ = n₁n₂ + n₁(n₁+1)/2 − R₁; μ_U = n₁n₂ / 2; σ_U = √[ n₁n₂(n₁ + n₂ + 1) / 12 ]; Z = (U₁ − μ_U) / σ_U.
Mathematics & Statistics · Non-Parametric & Hypothesis Testing
Mann-Whitney U / Wilcoxon Rank-Sum Non-Parametric Z-Test & Rank-Biserial r Calculator: inputs, method, and how to read the result
Compute Mann-Whitney U, Z-statistic, Common Language Effect Size (CLES), and Rank-Biserial r.
Choose inputs for the case you are checking
The defaults are illustrative. Replace them with values for your case and keep the units shown beside each field.
- Sample Size Group1 N1: Sample size of Group 1 (n₁).
- Sample Size Group2 N2: Sample size of Group 2 (n₂).
- Rank Sum Group1 R1: Observed sum of pooled ranks for Group 1 (R₁).
What the calculation includes
With the default values shown, Mann-Whitney U Statistic is 65 U (Z = -1.97). The calculation follows Mann-Whitney U Test Formula; the formula and variable definitions above show how the inputs combine.
One-input check: With the other defaults held constant, changing Sample Size Group1 N1 from 15 n₁ to 17 n₁ changes Mann-Whitney U Statistic from 65 U (Z = -1.97) to 127 U (Z = 0.02). This is a comparison inside the calculator's stated model, not a prediction.
Where to use caution
- Uses exact analytical or standard numerical analysis formulations from NIST DLMF.
- Double-precision floating-point arithmetic has ~15–17 significant decimal digits of precision.
Scope: Global Mathematical & Statistical Standard Check the assumptions and limitations against your situation before relying on the estimate.
More in Mathematics & Statistics: Scientific Calculator, Statistics & Standard Deviation Calculator, Permutations, Combinations, Probability, Sample Size & P-Value Calculator.