This paper uses a generalized Stolarsky’s invariance principle to approximate the permutation $p$-value for two-sample linear test statistics. Along the way we discovered a simple probabilistic proof of Stolarsky’s invariance principle.
A simple probabilistic proof of Stolarsky’s invariance principle.