Transformation between different coefficients in Sobolev statistics
Given a Sobolev statistic [REMOVE_ME]Sn,p=∑i,j=1nψ(cos−1(Xi′Xj)),Sn,p=∑i,j=1nψ(cos−1(Xi′Xj)),[REMOVEME2]
for a sample c("X1,ldots,XninSp−1:=\n", "xinRp:∣∣x∣∣=1"), p≥2, three important sequences are related to Sn,p.
- Gegenbauer coefficients {bk,p} of ψp (see, e.g., the projected-ecdf statistics ), given by [REMOVE_ME]bk,p:=ck,p1∫0πψp(θ)Ckp/2−1(cosθ)dθ.bk,p:=ck,p1∫0πψp(θ)Ck(p/2−1)(cosθ)dθ.[REMOVEME2]
- Weights {vk,p2} of the asymptotic distribution of the Sobolev statistic, ∑k=1∞vk2χdp,k2, given by [REMOVE_ME]vk,p2=(1+p−22k)−1bk,p,p≥3.vk,p2=(1+2k/(p−2))−1bk,p,p≥3.[REMOVEME2]
- Gegenbauer coefficients {uk,p} of the local projected alternative associated to Sn,p, given by [REMOVE_ME]uk,p=(1+p−22k)vk,p,p≥3.uk,p=(1+2k/(p−2))bk,p,p≥3.[REMOVEME2]
For p=2, the factor (1+2k/(p−2)) is replaced by 2.
bk_to_vk2(bk, p, log = FALSE)
bk_to_uk(bk, p, signs = 1)
vk2_to_bk(vk2, p, log = FALSE)
vk2_to_uk(vk2, p, signs = 1)
uk_to_vk2(uk, p)
uk_to_bk(uk, p)
Arguments
bk
: coefficients bk,p associated to the indexes 1:length(bk)
, a vector.
p
: integer giving the dimension of the ambient space Rp that contains Sp−1.
log
: do operations in log scale (log-in, log-out)? Defaults to FALSE
.
signs
: signs of the coefficients uk,p, a vector of the same size as vk2
or bk
, or a scalar. Defaults to 1
.
vk2
: squared coefficients vk,p2 associated to the indexes 1:length(vk2)
, a vector.
uk
: coefficients uk,p associated to the indexes 1:length(uk)
, a vector.
Returns
The corresponding vectors of coefficients vk2
, bk
, or uk
, depending on the call.
Description
Given a Sobolev statistic
Sn,p=i,j=1∑nψ(cos−1(Xi′Xj)),Sn,p=i,j=1∑nψ(cos−1(Xi′Xj)),
for a sample c("X1,ldots,XninSp−1:=\n", "xinRp:∣∣x∣∣=1"), p≥2, three important sequences are related to Sn,p.
- Gegenbauer coefficients {bk,p} of ψp (see, e.g., the projected-ecdf statistics ), given by
bk,p:=ck,p1∫0πψp(θ)Ckp/2−1(cosθ)dθ.bk,p:=ck,p1∫0πψp(θ)Ck(p/2−1)(cosθ)dθ.
- Weights {vk,p2} of the asymptotic distribution of the Sobolev statistic, ∑k=1∞vk2χdp,k2, given by
vk,p2=(1+p−22k)−1bk,p,p≥3.vk,p2=(1+2k/(p−2))−1bk,p,p≥3.
- Gegenbauer coefficients {uk,p} of the local projected alternative associated to Sn,p, given by
uk,p=(1+p−22k)vk,p,p≥3.uk,p=(1+2k/(p−2))bk,p,p≥3.
For p=2, the factor (1+2k/(p−2)) is replaced by 2.
Details
See more details in Prentice (1978) and García-Portugués et al. (2023). The adequate signs of uk
for the "PRt"
Rothman test
can be retrieved with akx
and sqr = TRUE
, see the examples.
Examples
# bk, vk2, and uk for the PCvM test in p = 3
(bk <- Gegen_coefs_Pn(k = 1:5, type = "PCvM", p = 3))
(vk2 <- bk_to_vk2(bk = bk, p = 3))
(uk <- bk_to_uk(bk = bk, p = 3))
# vk2 is the same as
weights_dfs_Sobolev(K_max = 10, thre = 0, p = 3, type = "PCvM")$weights
# bk and uk for the Rothman test in p = 3, with adequate signs
t <- 1 / 3
(bk <- Gegen_coefs_Pn(k = 1:5, type = "PRt", p = 3, Rothman_t = t))
(ak <- akx(x = drop(q_proj_unif(t, p = 3)), p = 3, k = 1:5, sqr = TRUE))
(uk <- bk_to_uk(bk = bk, p = 3, signs = ak))
References
García-Portugués, E., Navarro-Esteban, P., Cuesta-Albertos, J. A. (2023) On a projection-based class of uniformity tests on the hypersphere. Bernoulli, 29(1):181--204. tools:::Rd_expr_doi("10.3150/21-BEJ1454") .
Prentice, M. J. (1978). On invariant tests of uniformity for directions and orientations. The Annals of Statistics, 6(1):169--176. tools:::Rd_expr_doi("10.1214/aos/1176344075")