We consider a test procedure based on a weighted U-statistic of order 2, with optimal weights chosen as solution of an extremal problem. We give the asymptotic normality of the test statistic under the null hypothesis for fixed n and p→+∞ and the asymptotic behavior of the type I error probability of our test procedure. We also show that the maximal type II error probability, either tend to 0, or is bounded from above. In the latter case, the upper bound is given using the asymptotic normality of our test statistic under alternatives close to the separation boundary. Our assumptions imply mild conditions: n=o(p2α−1/2) (in the polynomial case), n=o(ep) (in the exponential case).
We prove both rate optimality and sharp optimality of our results, for α>1 in the polynomial case and for any A>0 in the exponential case.
A simulation study illustrates the good behavior of our procedure, in particular for small n, large p.