Skip to main content

mann_whitney_u

Function mann_whitney_u 

Source
pub fn mann_whitney_u(
    x: &[f64],
    y: &[f64],
    alternative: Alternative,
) -> Result<TestResult, ErrorsJSL>
Expand description

The Mann-Whitney U test (Wilcoxon rank-sum) for a location shift between two samples. The statistic is U of the first sample; the p-value uses the normal approximation with tie and continuity corrections (adequate for samples above about 10 each).