Permutation Test
The permutation test is a non-parametric statistical test used to determine whether two samples come from the same distribution. Given two samples and , the null hypothesis is , and suppose we have a test statistic that measures the agreement of the first with the last elements.
- 📗 An example is .
The permutation test is conducted as follows:
Permutation test
- Input: , .
- For :
- Draw a random permutation ; let .
- Compute .
- Return: .
We can see that the test relies on the property that a larger implies a larger asymmetry between the first and the last elements. Thus, if is large, we get a small p-value and is prone to reject .
The permutation is
-
👍 Good. It is valid for all , , and proper .
-
Neutral. It requires choosing a proper .
-
👎 Bad. The power of the test is not optimal; and it does not give Confidence Intervals for the difference of means.
To see the validity, we require that if for all , then , where , is the set of all permutations of elements. Then, we know that as , and we have , where is the CDF of . That is, is super-uniform.