How to use this calculator
Compare two independent samples by pooled ranks and display U for the first sample plus an asymptotic two-sided p-value.
- Enter First independent sample, Second independent sample. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Mann Whitney U independent samples test explained
Pool and rank the two independent samples to compare their distributions; this implementation reports U for the first sample and an asymptotic two-sided p-value.
How the calculation works
Pooled rank sum minus n1(n1+1)/2
Uses average ranks, tie-corrected normal variance, and continuity correction.
Set up the calculation
a— First independent sample- First independent sample. Use comma-separated values in the stated order.
b— Second independent sample- Second independent sample. Use comma-separated values in the stated order.
Limits of this model
Uses average ranks, tie-corrected normal variance, and continuity correction. The p-value is approximate, particularly for small samples; it is not an exact test.
Check this example
First independent sample = 1, 2, 3; Second independent sample = 4, 5, 6.
- First-sample U: 0
- Approximate two-sided p-value: 0.0808556
U₁=0 because every first-sample value is below every second-sample value. The approximate two-sided p-value is 0.0809, above a 0.05 cutoff.
Frequently asked questions
Is this a paired test?
No, use signed ranks for paired differences.
Does it test only medians?
A location-only interpretation needs similarly shaped distributions.
Are tied observations supported?
Yes, with average ranks and a variance correction.
How do I use the Mann Whitney U independent samples test calculator?
Enter First independent sample, Second independent sample. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Mann Whitney U independent samples test?
First independent sample = 1, 2, 3; Second independent sample = 4, 5, 6. First-sample U: 0 Approximate two-sided p-value: 0.0808556 U₁=0 because every first-sample value is below every second-sample value. The approximate two-sided p-value is 0.0809, above a 0.05 cutoff.
Method reference: SciPy mannwhitneyu definition.
Read our calculation methodology.