Skip to main content
Module

x/simplestatistics/src/wilcoxon_rank_sum.js

simple statistics for node & browser javascript
Latest
import * as simplestatistics from "https://deno.land/x/simplestatistics@v7.8.3/src/wilcoxon_rank_sum.js";

Functions

This function calculates the Wilcoxon rank sum statistic for the first sample with respect to the second. The Wilcoxon rank sum test is a non-parametric alternative to the t-test which is equivalent to the Mann-Whitney U test. The statistic is calculated by pooling all the observations together, ranking them, and then summing the ranks associated with one of the samples. If this rank sum is sufficiently large or small we reject the hypothesis that the two samples come from the same distribution in favor of the alternative that one is shifted with respect to the other.