scipy.stats.mstats.

mannwhitneyu#

scipy.stats.mstats.mannwhitneyu(x, y, use_continuity=True)[source]#

Computes the Mann-Whitney statistic

Missing values in x and/or y are discarded.

Deprecated since version 2.0.0: scipy.stats.mstats.mannwhitneyu is deprecated as of SciPy 2.0.0 and will be removed, along with the scipy.stats.mstats namespace, in SciPy 2.4.0. For similar functionality, use scipy.stats.mannwhitneyu with MArray(s) instead of NumPy masked array(s).

Parameters:
xsequence

Input

ysequence

Input

use_continuity{True, False}, optional

Whether a continuity correction (1/2.) should be taken into account.

Returns:
statisticfloat

The minimum of the Mann-Whitney statistics

pvaluefloat

Approximate two-sided p-value assuming a normal distribution.

Notes

Array API Standard Support

mannwhitneyu is not in-scope for support of Python Array API Standard compatible backends other than NumPy.

See Support for the array API standard for more information.