Rank test (source code)

= Rank test

A <ranks of observations>[rank] test is a <hypothesis test> whose statistic is a <function> of the <ranks of observations>, possibly together with fixed <statistical sample>[sample] labels. Under <independent> observations from a common continuous <probability distribution>, exchangeable <ranks of observations>[rank] allocations give its exact null law without specifying that distribution. The <Wilcoxon rank sum test> is an example. Invariance under common increasing transformations follows because <ranks of observations>[ranks] do not change.