Exact null distribution of a rank sum
ID: exact-null-distribution-of-a-rank-sum
Under the continuous common-distribution null of the Wilcoxon rank sum test, pooled labels are exchangeable. The product records every choice of ranks: choosing assigns rank to the first sample. Its indicated coefficient counts subsets of size and rank sum . Divide by and sum the lower tail for the one-sided P-value. Equivalently the counts satisfy with , allowing an exact integer computation.
New to topics? Read the docs here!