CS478 Permutation Test Details
To compare the performance of models M1 and M2 using a permutation test:
- Obtain a set of k estimates of accuracy A = {a1, ..., ak} for M1 and B
= {b1, ..., bk} for M2
- Calculate the average
accuracies, μA = (a1 + ... + ak)/k
and μB = (b1 + ... + bk)/k
- Calculate dAB = |μA - μB|
- let p = 0
- Repeat n times
- let S={
a1, ..., ak, b1, ..., bk} (statistically best if partitions not
repeated)
- randomly partition S into two equal sized sets, R and T
- Calculate the average accuracies, μR and μT
- Calculate dRT = |μR - μT|
- if dRT ≥ dAB then p = p+1
- p-value
= p/n (Report p, n,
and p-value)