Compare many means without inverting a noisy covariance matrix. Work through the Chen–Qin raw U statistic and see what is still needed for valid inference.
High-dimensional mean test
A high-dimensional mean test tests a population mean vector when the number of coordinates is large relative to the sample size. For a quant comparing average pricing errors across hundreds of instruments in two periods, the challenge is to distinguish a joint mean shift from sampling noise without relying on an unstable covariance inverse. This article develops the independent two-sample Chen–Qin construction.
With sample sizes n1,n2, the pooled covariance has rank at most n1+n2−2: centring removes one independent row from each group. If p>n1+n2−2, inversion is impossible. For example, 120 observations in one group and 100 in the other can give rank at most 218, insufficient for 500 coordinates. Even before that boundary, nearly redundant coordinates can make inversion sensitive to small data changes.
A pseudoinverse does not restore the classical reference law. It selects a different distance, with its own inference problem.
Estimate the squared mean gap directly
Let X1,…,Xn1 and Y1,…,Yn2 be independent samples, with n1,n2≥2, each i.i.d. within its group, with means μX,μY and finite covariance matrices ΣX,ΣY. Coordinates within a row may be correlated; the two covariance matrices need not be equal. Test
An equivalent identity explains the noise correction. Let SX,SY be the sample covariances with denominators n1−1,n2−1. Then
U=∥Xˉ−Yˉ∥2−n1tr(SX)−n2tr(SY).
The matrix trace adds the coordinate variances. The uncorrected squared sample-mean gap includes both the population gap and the noise in estimating those means. Removing an unbiased estimate of that noise can produce a negativeU; the population squared gap remains nonnegative.
A tiny example, with no p-value attached
Take fictional pricing-error vectors in basis points:
XY:(2,0),(3,1),(1,2),:(0,0),(0,1),(1,0).
Here n1=n2=3, p=2, Xˉ=(2,1)⊤ and Yˉ=(1/3,1/3)⊤. The six ordered off-diagonal dot products in X sum to 26; those in Y sum to zero. The cross-group term is 2Xˉ⊤Yˉ=2. Hence
U=626+0−2=37≈2.3333bp2.
Independently, the squared sample-mean gap is 29/9, while tr(SX)=2 and tr(SY)=2/3. The identity gives 29/9−2/3−2/9=7/3 again.
Fictional two-coordinate data with three observations per group. Squared sample-mean distance 29/9, minus X correction 2/3, minus Y correction 2/9, gives raw U of 7/3 squared basis points. No p-value is calculated.
Sampling noise contributes to the observed squared gap. Subtracting its estimated contribution gives the raw Chen–Qin U statistic; the tiny example demonstrates arithmetic, not high-dimensional inference.
Inference needs a ratio-consistent estimator v^0 and a valid central limit theorem, giving U/v^0⇒N(0,1) under the null. Reject in the upper tail, above the standard-normal (1−α) quantile for asymptotic level α. Chen–Qin uses specifically constructed trace estimators; arbitrary covariance plug-ins are not justified automatically.
Their Theorems 1–2 require growing samples and dimension, balanced sample-size proportions, a linear latent-variable model with moment restrictions, and covariance trace conditions. For equal covariances, a key restriction is
{tr(Σ2)}2tr(Σ4)⟶0.
A dominant covariance direction can violate it. Their local-alternative regime requires, writing δ=μX−μY and N=n1+n2,
The n=3,p=2 example establishes none of those asymptotic conditions. Its 7/3 is a raw estimate with units, not a standardised score or p-value.
What the result would mean on a desk
The target is a joint mean difference, not equality of whole distributions. A rejection does not identify the affected instruments. Subsequent coordinate searches create a multiple-testing problem.
The Euclidean target also makes units consequential: changing one coordinate from basis points to percent changes its weight. Any prespecified rescaling defines a new target and must fit the inference assumptions. Adding unrelated coordinates adds noise; the number of columns is not a measure of usable evidence.
Daily errors can be serially dependent, and running two models on the same dates creates paired observations. Neither design satisfies the independent two-sample setup above. The relevant sampling variance and calibration must match the actual design.