Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (SciPy) expand_more
SciPy / Statistics

Mann–Whitney U test

Learn Mann–Whitney U test in SciPy with a dedicated explanation, a concept-specific example, practical cautions, and a mastery check.

12 min read • Intermediate
scipy-020.py
python
from scipy.stats import mannwhitneyu
a=[1,2,2,3,5]; b=[4,5,6,7,8]
print(mannwhitneyu(a,b,alternative='two-sided'))
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content