A two-sided permutation p-value
You compare two groups of two on the values
where group A got the two lowest, and . The test statistic is the sum of group A, and you want a two-sided p-value (a difference in either direction counts). Enumerate every split of the four values into two groups of two.
What is the two-sided permutation p-value?