Nonparametric Test
Wilcoxon rank sum test (also called Mann–Whitney–Wilcoxon test) is based on ranks—the rank 1 is assigned to the smallest measurement in both groups, and 2 to the second smallest, and so on. The validity of t-test is based on the “normality of population distributions,” and it requires that either sample distributions are approximately normal, or the sample sizes are appropriately large (
Data must be arranged either (i) in two columns each of which contains data for the respective groups, or (ii) in a form of grouped data. Here the first column specifies (i) Group 1 data or (ii) the whole data, and the second column specifies (i) Group 2 data or (ii) the column of two categorical values by which Group 1 and 2 are identified.
Here we identify Group 1 and Group 2 as and . It is assumed that the distribution of Group 1 and that of Group 2 share the same shape with possible shift, but not necessarily normally distributed. Then the null hypothesis is stated as “the distributions from two groups are identical,” and the test will determine whether it is rejected in favor of the following alternative hypothesis.

It produces the estimated “Shift” and
the confidence interval
“(Lower, Upper)”
for the shift (the difference of locations)
with
confidence interval.
The value p_value
indicates the significance of the test:
If p-value < , it suggest evidence against the null hypothesis
in favor of the alternative hypothesis.
Here “Shift” is calculated from the sample median of
the difference
between
in Group 1
and
in Group 2.
It is called the Hodges-Lehmann estimator.
© TTU Mathematics