Tutorials › Multivariate Statistics (Graduate) › U-Statistic Limits for Distance Covariance

Multivariate Dependence Testing · Tutorial 440 of 975

U-Statistic Limits for Distance Covariance

Learn how independence makes the distance-covariance kernel degenerate, and how its spectrum determines the centered chi-squared terms in the U-statistic limit.

Advanced 12 min read

What You'll Learn

  • Define the population-centered distance kernel and the associated order-two U-statistic.
  • Verify the kernel’s degeneracy under independence.
  • Derive the weighted, centered chi-squared limit from its spectral expansion.
  • Calculate the limiting weights for binary and three-category distributions.
  • Distinguish the null limits of unbiased U-statistics and biased V-statistics.

Why the Null Limit Is Not Usually a Normal Distribution

Distance covariance detects dependence that ordinary covariance can miss. Its null behavior also differs from the familiar pattern in which a suitably scaled statistic approaches a normal distribution. Under independence, the distance-covariance kernel is degenerate: its conditional expectation given one observation is zero. That removes the usual first-order fluctuation and makes the second-order structure, encoded by eigenvalues, determine the limit.

We will study a population-centered order-two U-statistic, which isolates that structure. It is unbiased for squared population distance covariance. Its null limit is generally a weighted sum of centered chi-squared variables. The weights are determined by the distance kernels and the marginal distributions, so the limit is not generally a single, distribution-free chi-squared law.

The Centered-Distance Kernel and Its U-Statistic

Let \((X,Y)\) be a random vector in \(\mathbb{R}^{p}\times\mathbb{R}^{q}\), and let \((X',Y')\) be an independent copy. Assume \(E\|X\|^2<\infty\) and \(E\|Y\|^2<\infty\). Define the population-centered distance kernels

$$ a(x,x')=\|x-x'\|-E\|x-X\|-E\|x'-X\|+E\|X-X'\|, $$

and define \(b(y,y')\) by the same formula with \(Y\) in place of \(X\). The centering is with respect to each marginal distribution, not the joint distribution.

Definition: The squared population distance covariance is \(\mathcal V^2(X,Y)=E[a(X,X')b(Y,Y')]\). For independent observations \(Z_i=(X_i,Y_i)\), \(i=1,\ldots,n\), the associated order-two U-statistic is \[ U_n=\binom{n}{2}^{-1}\sum_{1\leq i<j\leq n}a(X_i,X_j)b(Y_i,Y_j). \] The kernel is \(g((x,y),(x',y'))=a(x,x')b(y,y')\), and \(E[U_n]=\mathcal V^2(X,Y)\).

The expectation identity follows because every summand has the same distribution as \(a(X,X')b(Y,Y')\). Under independence, \(\mathcal V^2(X,Y)=0\). The important additional fact is conditional: for a fixed observation \(z=(x,y)\), independence of \(X'\) and \(Y'\) gives

$$ E[g(z,Z')]=E[a(x,X')]E[b(y,Y')]=0. $$

Each factor is zero by population centering. This is the order-two degeneracy condition under the null. It is not the statement that each observed summand is zero; the summands fluctuate, but their conditional mean given either observation is zero.

From Degeneracy to the Spectral Limit

Let \(P\) denote the distribution of \(Z=(X,Y)\). The kernel \(g\) is symmetric and square-integrable under the stated second-moment assumptions. Its integral operator on \(L^2(P)\) is

$$ (T\varphi)(z)=\int g(z,z')\varphi(z')\,dP(z'). $$

This is a compact self-adjoint operator. Write its nonzero eigenvalues, repeated according to multiplicity, as \(\lambda_1,\lambda_2,\ldots\), with corresponding orthonormal eigenfunctions \(e_1,e_2,\ldots\). Square-integrability ensures \(\sum_r\lambda_r^2<\infty\). Degeneracy means the constant function is in the null space and the nonzero eigenfunctions can be taken to have mean zero.

Theorem: Suppose \(Z_1,Z_2,\ldots\) are independent and identically distributed, \(g\) is a symmetric, square-integrable kernel, and \(E[g(Z,Z')\mid Z]=0\) almost surely for independent \(Z,Z'\). If \(\lambda_r\) are the eigenvalues of its integral operator, then \[ nU_n\xrightarrow{d}\sum_{r\geq1}\lambda_r(\xi_r^2-1), \] where the \(\xi_r\) are independent standard normal random variables. The series on the right converges in mean square.

Proof. First truncate the spectral expansion at a finite \(K\), writing \(g_K(z,z')=\sum_{r=1}^K\lambda_r e_r(z)e_r(z')\). Its U-statistic satisfies the exact identity

$$ nU_{n,K} =\frac{1}{n-1}\sum_{r=1}^{K}\lambda_r \left\{\left(\sum_{i=1}^n e_r(Z_i)\right)^2-\sum_{i=1}^n e_r(Z_i)^2\right\}. $$

For fixed \(K\), the multivariate central limit theorem applies to the vectors \((e_1(Z_i),\ldots,e_K(Z_i))\): their means are zero and their covariance matrix is the identity by orthonormality. Thus the vector of sums divided by \(\sqrt n\) converges in distribution to \(K\) independent standard normals. Also, the law of large numbers gives \(n^{-1}\sum_i e_r(Z_i)^2\xrightarrow{p}1\) for each \(r\leq K\). Slutsky’s theorem therefore yields

$$ nU_{n,K}\xrightarrow{d}\sum_{r=1}^K\lambda_r(\xi_r^2-1). $$

It remains to remove the truncation. The residual kernel \(g-g_K\) is still canonical, meaning its conditional expectation given either argument is zero. For any square-integrable canonical symmetric kernel \(q\), two different unordered-pair summands \(q(Z_i,Z_j)\) and \(q(Z_k,Z_l)\) have zero covariance: disjoint pairs are independent, and for pairs sharing one index the covariance is zero by conditioning on that observation. Consequently,

$$ \operatorname{Var}\left(nU_n(q)\right)=\frac{2n}{n-1}E[q(Z,Z')^2]. $$

Here \(U_n(q)\) denotes the pair average formed from \(q\). Since \(E[(g-g_K)^2]=\sum_{r>K}\lambda_r^2\), the mean-square contribution of the residual is bounded by \(\frac{2n}{n-1}\sum_{r>K}\lambda_r^2\), which tends to zero uniformly for \(n\geq2\) as \(K\) tends to infinity. The limiting series also converges in mean square, since its terms are independent, centered, and have total variance \(2\sum_r\lambda_r^2\). The finite-\(K\) limits therefore extend to the full kernel, proving the result. \(\square\)

Why Distance Covariance Has Nonnegative Weights

For Euclidean distance, the centered distance kernel defines a negative semidefinite integral operator: its eigenvalues are nonpositive. One way to see the relevant property is that Euclidean distance is conditionally negative definite: for any finite points \(x_i\) and real coefficients \(c_i\) summing to zero, \(\sum_{i,j}c_ic_j\|x_i-x_j\|\leq0\). Centering removes the constant component, giving the corresponding nonpositive quadratic form for the operator.

Under independence, the operator for \(g\) is the product of the marginal centered-distance operators. If \(\alpha_r\leq0\) and \(\beta_s\leq0\) are their respective eigenvalues, the product eigenfunctions have eigenvalues \(\lambda_{rs}=\alpha_r\beta_s\geq0\). Thus the distance-covariance null limit has the form \(\sum_{r,s}\lambda_{rs}(\xi_{rs}^2-1)\), with nonnegative weights. There may be many nonzero weights, rather than just one.

Worked Example: Independent Bernoulli Variables

Let \(X\) and \(Y\) be independent Bernoulli variables with \(P(X=1)=p\) and \(P(Y=1)=q\), using ordinary absolute distance. For binary \(x,x'\), \(|x-x'|=x+x'-2xx'\). Centering this expression in both arguments gives

$$ a(x,x')=-2(x-p)(x'-p),\qquad b(y,y')=-2(y-q)(y'-q). $$

Each marginal operator has rank one. Its nonzero eigenvalue is \(-2E[(X-p)^2]=-2p(1-p)\); for \(Y\) it is \(-2q(1-q)\). Therefore the product kernel has the single nonzero eigenvalue \(4p(1-p)q(1-q)\).

For \(p=1/4\) and \(q=2/5\), this weight is \(4(3/16)(6/25)=18/100=0.18\). The null limit is consequently \(0.18(\xi^2-1)\). Its mean is zero, and its lower bound is \(-0.18\), illustrating why an unbiased estimate of a nonnegative population quantity can itself be negative.

Worked Example: Two-Point Symmetric Variables

Let \(X\) and \(Y\) be independent and each take values \(-1\) and \(1\) with probability \(1/2\). For either variable, the mean distance from a fixed support point is \(1\), and the overall mean pairwise distance is \(1\). The centered distance kernel is therefore \(-1\) on the diagonal and \(1\) off the diagonal, or simply \(a(x,x')=-xx'\). The same formula holds for \(b\).

The product kernel is \(g((x,y),(x',y'))=xyx'y'\). Put \(W=XY\). Under independence, \(W\) is equally likely to be \(-1\) or \(1\), so \(g(Z,Z')=WW'\) and the operator has one nonzero eigenvalue, \(E[W^2]=1\). Directly, the statistic is

$$ U_n=\frac{1}{n(n-1)}\sum_{i\ne j}W_iW_j =\frac{(\sum_i W_i)^2-n}{n(n-1)}. $$

The theorem gives \(nU_n\xrightarrow{d}\xi^2-1\). The same result follows from the displayed identity: \(n^{-1/2}\sum_iW_i\xrightarrow{d}\xi\), while \(n^{-1}\sum_iW_i^2=1\) exactly.

Worked Example: Three Equally Likely Points

Suppose \(X\) and \(Y\) are independent, each uniform on \(\{0,1,2\}\), with absolute distance. The centered distance matrix for either margin, with rows and columns ordered \(0,1,2\), is

$$ A= \begin{pmatrix} -10/9&2/9&8/9\\ 2/9&-4/9&2/9\\ 8/9&2/9&-10/9 \end{pmatrix}. $$

The probability of each support point is \(1/3\), so the integral operator acts by multiplying this matrix by \(1/3\). The two contrast vectors \((1,0,-1)\) and \((1,-2,1)\) are eigenvectors of \(A\), both with eigenvalue \(-2\) and \(-2/3\), respectively. The marginal operator eigenvalues are therefore \(-2/3\) and \(-2/9\), with a further zero eigenvalue for constants.

The product operator has four nonzero weights: \((2/3)^2=4/9\), two copies of \((2/3)(2/9)=4/27\), and \((2/9)^2=4/81\). Hence the limit is

$$ \frac49(\xi_1^2-1)+\frac4{27}(\xi_2^2-1) +\frac4{27}(\xi_3^2-1)+\frac4{81}(\xi_4^2-1), $$

with independent standard normal variables. Even this small discrete example produces several weights, so replacing the null law with a single chi-squared distribution would be incorrect.

Unbiased and Biased Statistics: A Crucial Distinction

The U-statistic above uses population centering, so its definition involves unknown marginal expectations. Practical sample distance covariance typically estimates the centering from the data and includes diagonal terms; this is a V-statistic. Under the null, the corresponding scaled V-statistic has an uncentered weighted limit of the form \(\sum_r\lambda_r\xi_r^2\), whereas the canonical unbiased U-statistic has the centered form \(\sum_r\lambda_r(\xi_r^2-1)\). The subtraction of \(1\) reflects the removal of diagonal contributions. These limits are related but not interchangeable.

This distinction explains a useful diagnostic: the population squared distance covariance is nonnegative, but an unbiased finite-sample U-statistic need not be. A negative value is not by itself evidence of an error; it is compatible with unbiased estimation of a nonnegative quantity. It does, however, rule out treating the unbiased statistic as if every finite-sample value were a squared norm.

Common Mistake

  • Wrong reasoning: “Squared distance covariance is nonnegative, so its unbiased estimator must be nonnegative and have a nonnegative chi-squared limit.”
  • Correction: Nonnegativity applies to the population quantity (and to the usual biased squared-distance V-statistic), not necessarily to its unbiased U-statistic estimate. Under independence, degeneracy gives the centered terms \(\lambda_r(\xi_r^2-1)\), which can be negative even when every weight is nonnegative.
Key takeaway: Under independence, population-centering makes the distance-product kernel canonical. Its spectral decomposition turns the scaled order-two U-statistic into a sum of weighted, centered chi-squared variables; the marginal distance spectra determine the weights.

Check Your Understanding

Use the definitions and derivations above to answer the following questions.

  1. Why does independence make \(E[g((x,y),Z')]=0\) for each fixed \((x,y)\)?
  2. What regularity condition ensures the centered distance-product kernel is square-integrable in the result proved here?
  3. For independent Bernoulli margins with probabilities \(p\) and \(q\), what is the single nonzero spectral weight?
  4. Why can an unbiased estimate of squared distance covariance be negative?
  5. How does the centered chi-squared limit for the U-statistic differ from the typical weighted limit for the scaled V-statistic?
Clinical Biostats