Pseudocode C3 Permutation Test. This algorithm uses the random permutation test with random permutations for the p-value, requiring for Mgc. In the real-data experiment, we always set ,. Note that the p-value computation for any other global generalized correlation coefficient follows from the same algorithm by replacing Mgc with the respective test statistic. |
Input: A pair of distance matrices , the number of permutations , and Mgc statistic for the observed data. |
Output: The p-value . |
1: |
function PermutationTest(, , , ) |
|
2: |
for
do
|
|
3: |
|
generate a random permutation of size
|
4: |
|
calculate the permuted Mgc statistic |
5: |
end for
|
|
6: |
|
compute p-value of Mgc
|
7: |
end function |
|