Tutorials › Multivariate Statistics (Graduate) › Spatial Rank Score Tests for Location

Ranks and Nonparametric Methods · Tutorial 760 of 975

Spatial Rank Score Tests for Location

Learn how to build spatial rank score statistics for a hypothesized multivariate location and when their quadratic forms have an asymptotic chi-square distribution.

Advanced 9 min read

What You'll Learn

  • Define radial ranks and spatial rank score vectors relative to a hypothesized location
  • Construct a quadratic test statistic and identify its finite-sample covariance normalization
  • Prove the asymptotic chi-square null distribution under spherical symmetry
  • Calculate tests using linear and bounded score functions
  • Recognize why translation-invariant pairwise spatial ranks alone cannot test location

Why Score Directions to Test Location?

A location test asks whether a specified point is the center of a multivariate distribution. In one dimension, a signed-rank statistic combines the sign of each residual with a score determined by its rank in absolute value. A spatial rank score test uses the same broad ingredients in several dimensions: the direction of each residual and a score based on its radial rank. The resulting vector sum records whether the observations’ directions and radial ranks are collectively unbalanced around the proposed center.

The construction matters. Pairwise empirical spatial ranks, based only on comparisons such as \(U(X_i-X_j)\), are unchanged by translating every observation by the same vector. They therefore cannot by themselves test a location parameter. Here, ranks are instead formed from distances to the hypothesized location. We derive the null calibration under a spherical model, where the directions have a particularly simple geometry.

Radial Ranks and Scored Spatial Directions

Definition: To test \(H_0:\theta=\theta_0\), set \(Y_i=X_i-\theta_0\), \(r_i=\|Y_i\|\), and \(U(y)=y/\|y\|\) for \(y\ne 0\), with \(U(0)=0\). If the radii are distinct, let \(K_i\) be the rank of \(r_i\) among \(r_1,\ldots,r_n\), from smallest to largest, and define the scaled radial rank \(\hat r_i=K_i/(n+1)\). For a score function \(J:(0,1)\to\mathbb R\), the spatial rank score vector is \(q_i=J(\hat r_i)U(Y_i)\), and its sum is \(S_n=\sum_{i=1}^n q_i\).

The factor \(n+1\) keeps the scaled ranks strictly between zero and one. If radii tie, a tie-handling rule must be specified; the results below assume ties occur with probability zero. Two scores used below are the linear score \(J(u)=u\) and the bounded score \(J(u)=u/(u+c)\), where \(c>0\). For either choice, a large score magnitude is assigned to a large radial rank, while the direction retains the orientation of the residual from \(\theta_0\).

A quadratic test compares the observed score sum with its null covariance. Write \(I_p\) for the \(p\)-dimensional identity matrix and set

$$ A_n=\frac{1}{p}\left(\sum_{k=1}^n J\left(\frac{k}{n+1}\right)^2\right) I_p, \qquad Q_n=S_n^\top A_n^{-1}S_n. $$

When at least one score is nonzero, \(A_n\) is positive definite. Equivalently, with \(\bar q_n=S_n/n\), \(Q_n=n\bar q_n^\top(A_n/n)^{-1}\bar q_n\). The scaling is important: \(A_n\) is the covariance of the sum, not the covariance of the average.

Worked Example: Linear Scores in Two Dimensions

Let \(p=2\), \(n=3\), and suppose the residuals from the proposed location are \(Y_1=(1,0)\), \(Y_2=(0,2)\), and \(Y_3=(-3,0)\). Their radii are \(1,2,3\), so their scaled radial ranks are \(1/4,1/2,3/4\). The directions are \(e_1=(1,0)\), \(e_2=(0,1)\), and \(-e_1\), respectively.

For \(J(u)=u\), the score vectors are \(q_1=(1/4,0)\), \(q_2=(0,1/2)\), and \(q_3=(-3/4,0)\). Thus \(S_3=(-1/2,1/2)\), and \(\sum_k J(k/4)^2=1/16+1/4+9/16=14/16=7/8\).

$$ A_3=\frac{7}{16}I_2,\qquad Q_3=S_3^\top A_3^{-1}S_3 =\frac{16}{7}\left(\frac14+\frac14\right) =\frac87\approx 1.143. $$

This computes the statistic, not a reliable small-sample chi-square approximation. The asymptotic result below describes its calibration as \(n\) grows.

Null Distribution Under Spherical Symmetry

The assumptions for the calibration can be stated through a radial-direction representation. Under the null, suppose the observations are independent and identically distributed as \(X_i=\theta_0+R_iV_i\), where \(R_i>0\) have a continuous distribution and \(V_i\) are independent and uniform on the unit sphere in \(\mathbb R^p\), independently of the radii. This is the spherical model about \(\theta_0\); its radial distribution need not be specified. Suppose also that \(J\) is Riemann integrable on \((0,1)\) and \(c_J=\int_0^1J(u)^2\,du\) is finite and strictly positive. Bounded, piecewise continuous scores satisfy these score conditions.

Theorem: Under the stated spherical null and score conditions, \(Q_n\xrightarrow{d}\chi^2_p\). Consequently, rejecting \(H_0\) when \(Q_n\) exceeds the \(1-\alpha\) quantile of \(\chi^2_p\) gives an asymptotic level-\(\alpha\) test.

The proof uses the exact covariance of the score sum and a multivariate central limit theorem. Conditional on the radii, the radial ranks—and hence all score magnitudes—are fixed. Ordering observations by radius merely permutes their directions. Since the directions are independent and uniform, the reordered directions remain independent and uniform. A uniform sphere direction \(V\) satisfies \(E[V]=0\) by symmetry and \(E[VV^\top]=I_p/p\): its covariance is invariant under rotations, hence a scalar multiple of \(I_p\), and its trace is \(E[\|V\|^2]=1\).

$$ E[S_n\mid R_1,\ldots,R_n]=0,\qquad \operatorname{Cov}(S_n\mid R_1,\ldots,R_n) =\frac1p\left(\sum_{k=1}^n J\left(\frac{k}{n+1}\right)^2\right)I_p=A_n. $$

Here is the full asymptotic argument. Riemann-sum convergence gives \[ \frac1n\sum_{k=1}^n J\left(\frac{k}{n+1}\right)^2\longrightarrow c_J, \] so \(A_n/n\longrightarrow(c_J/p)I_p\). In particular, the eigenvalues of \(A_n\) grow proportionally to \(n\). The standardized sum \(A_n^{-1/2}S_n\) is a sum of independent, conditionally mean-zero vectors \(A_n^{-1/2}J(k/(n+1))V_k\), where \(V_k\) denotes the direction attached to the \(k\)th radial order. Their conditional covariance matrices sum to \(I_p\).

For bounded \(J\), the norm of every summand is at most \(\sup_u|J(u)|/\sqrt{\lambda_{\min}(A_n)}\), which tends to zero. Thus, for every \(\varepsilon>0\), eventually every summand has norm at most \(\varepsilon\); the conditional Lindeberg condition follows. The multivariate Lindeberg central limit theorem then gives \(A_n^{-1/2}S_n\xrightarrow{d}N_p(0,I_p)\). The same argument applies to unbounded scores if their weighted directions satisfy the corresponding Lindeberg condition. Squaring the Euclidean norm is a continuous operation, so \(Q_n=\|A_n^{-1/2}S_n\|^2\xrightarrow{d}\chi^2_p\), as asserted. \(\square\)

For a Riemann-integrable score with \(c_J>0\), the covariance has the simpler large-sample approximation \(A_n\approx n(c_J/p)I_p\). The finite-\(n\) definition of \(A_n\), however, uses the actual score values assigned to the ranks and avoids replacing their sum by an integral.

Worked Example: Bounded Scores on the Same Observations

Use the three residuals in the first example, but now choose \(J(u)=u/(u+1/4)\). At ranks \(1/4,1/2,3/4\), the scores are \(1/2,2/3,3/4\). The score vectors are therefore \(q_1=(1/2,0)\), \(q_2=(0,2/3)\), and \(q_3=(-3/4,0)\), giving \(S_3=(-1/4,2/3)\).

The squared score magnitudes sum to \(1/4+4/9+9/16=(36+64+81)/144=181/144\). Since \(p=2\), \(A_3=(181/288)I_2\). The squared norm of the sum is \(1/16+4/9=73/144\), so the correctly normalized quadratic statistic is

$$ Q_3=\frac{73}{144}\frac{288}{181} =\frac{146}{181}\approx0.807. $$

The bounded score limits the influence of the largest radial ranks compared with the linear score: its largest magnitude here is \(3/4\), rather than \(3/4\) under the linear score, while its middle score is \(2/3\), rather than \(1/2\). The change in the full statistic also reflects the covariance normalization, not only the change in the score sum.

Worked Example: A Four-Observation Linear-Score Calculation

For \(p=2\), take residuals \(Y_1=(1,0)\), \(Y_2=(2,0)\), \(Y_3=(3,0)\), and \(Y_4=(4,0)\). Their radii are already in increasing order, and every direction is \(e_1\). The scaled ranks are \(1/5,2/5,3/5,4/5\). With \(J(u)=u\), their score sum is \(S_4=(2,0)\), because \(1/5+2/5+3/5+4/5=2\).

The squared scores sum to \((1+4+9+16)/25=30/25=6/5\). Thus \(A_4=(3/5)I_2\) and

$$ Q_4=(2,0)\left(\frac53 I_2\right)(2,0)^\top =\frac{20}{3}\approx6.667. $$

For reference, the 95th percentile of \(\chi^2_2\) is about \(5.991\), so this statistic exceeds that asymptotic cutoff. With only four observations, the chi-square approximation should not be treated as accurate; the calculation illustrates the normalization and decision rule, not a finite-sample guarantee.

What the Result Does—and Does Not—Guarantee

Spherical symmetry is the key geometric assumption in the theorem. It makes the directions uniform and independent of the radial ordering, so the score sum has the stated isotropic covariance even though the radial distribution is unknown. The result does not assert the same calibration for every centrally symmetric or elliptically shaped distribution: in those settings, the directions need not be uniform or independent of the radii in the required way.

A frequent mistake is to use pairwise empirical spatial ranks and assume their sum tests location. For example, if each rank is built from \(n^{-1}\sum_j U(X_i-X_j)\), translating all \(X_i\) by \(-\theta_0\) leaves every difference unchanged. Such ranks contain no information about the proposed center. The correction is to rank distances from that center and attach each score to the residual direction, as done here.

A second pitfall is to use \(A_n\) as though it were the covariance of \(\bar q_n\). It is the covariance of \(S_n\); the average has covariance \(A_n/n^2\). Equivalently, the quadratic form for the average must include the factor \(n\): \(Q_n=n\bar q_n^\top(A_n/n)^{-1}\bar q_n\). Omitting that scaling changes the statistic and invalidates the chi-square calibration.

Key takeaway: Under a spherical location null, radial ranks supply score magnitudes and spatial directions supply orientation. Their sum, standardized by its null covariance, yields a quadratic statistic with an asymptotic \(\chi^2_p\) distribution when the score and regularity conditions hold.

Check Your Understanding

Work through these questions using the definitions and assumptions above.

  1. For \(p=2\), \(n=3\), and radii \(2,5,8\), what scaled radial rank is assigned to the observation with radius \(5\)?
  2. Why can pairwise empirical spatial ranks based only on \(X_i-X_j\) not test a common location parameter?
  3. For \(p=2\) and linear scores with \(n=3\), calculate the scalar multiplying \(I_2\) in \(A_n\).
  4. State the geometric property of the null directions used to derive the score-sum covariance.
  5. Why does the theorem require \(c_J>0\), and what role does the Lindeberg condition play in the proof?
Clinical Biostats