KernStat {USP}R Documentation

Test statistic calculated from two kernel matrices

Description

Calculate the U-statistic measure of dependence given two kernel matrices J and K, as described in Section 7.1 of (Berrett et al. 2021). For the featured examples considered these matrices can be calculated using FourierKernel or InfKern. Alternatively, if a different basis is to be used, then the kernels can be entered separately.

Usage

KernStat(J, K)

Arguments

J

n \times n kernel matrix corresponding to first sample.

K

n \times n kernel matrix corresponding to second sample.

Value

Test statistic measure the strength of dependence between the two samples.

References

Berrett TB, Kontoyiannis I, Samworth RJ (2021). “Optimal rates for independence testing via U-statistic permutation tests.” Annals of Statistics, to appear.

Examples

x=runif(100); y=runif(100); M=3
J=FourierKernel(x,M); K=FourierKernel(y,M)
KernStat(J,K)

[Package USP version 0.1.2 Index]