UnivariateMannWhitneyTest Method |
Tests whether one sample median is compatible with another sample median.
Namespace:
Meta.Numerics.Statistics
Assembly:
Meta.Numerics (in Meta.Numerics.dll) Version: 4.1.4
Syntax public static TestResult MannWhitneyTest(
IReadOnlyList<double> a,
IReadOnlyList<double> b
)
Public Shared Function MannWhitneyTest (
a As IReadOnlyList(Of Double),
b As IReadOnlyList(Of Double)
) As TestResult
public:
static TestResult^ MannWhitneyTest(
IReadOnlyList<double>^ a,
IReadOnlyList<double>^ b
)
static member MannWhitneyTest :
a : IReadOnlyList<float> *
b : IReadOnlyList<float> -> TestResult
Parameters
- a
- Type: System.Collections.GenericIReadOnlyListDouble
The first sample. - b
- Type: System.Collections.GenericIReadOnlyListDouble
The second sample.
Return Value
Type:
TestResultThe result of the test. The statistic is the Mann-Whitney U value and the probability
is the chance of obtaining such an extreme value of U if the two samples are drawn from the
same distribution.
Exceptions Remarks The Mann-Whitney test is a non-parametric alternative to Student's t-test
(StudentTTest(IReadOnlyCollectionDouble, IReadOnlyCollectionDouble)).
Essentially, it supposes that the medians of the two samples are equal and tests
the likelihood of this null hypothesis. Unlike the t-test, it does not assume that the sample distributions are normal.
See Also