mannWhitneyUTest
mannWhitneyUTest
Introduced in: v21.1
Applies the Mann-Whitney rank test to samples from two populations.
Values of both samples are in the sample_data column.
If sample_index equals to 0 then the value in that row belongs to the sample from the first population.
Otherwise it belongs to the sample from the second population.
The null hypothesis is that two populations are stochastically equal.
Also one-sided hypotheses can be tested.
This test does not assume that data have normal distribution.
Syntax
Parameters
alternative— Optional. Alternative hypothesis. 'two-sided' (default): two populations are not stochastically equal. 'greater': values in the first sample are stochastically greater than those in the second sample. 'less': values in the first sample are stochastically less than those in the second sample.Stringcontinuity_correction— Optional. If not 0 then continuity correction in the normal approximation for the p-value is applied. The default value is 1.UInt64
Arguments
Returned value
Returns a tuple with two elements: calculated U-statistic and calculated p-value. Tuple(Float64, Float64)
Examples
Mann-Whitney U test example
See Also