Tutorials › Multivariate Statistics (Graduate) › Robust Tests of Location Across Multiple Groups

Robust Multivariate Inference · Tutorial 735 of 975

Robust Tests of Location Across Multiple Groups

Build an omnibus Wald test for equal robust multivariate locations across independent groups, and interpret what its rejection and degrees of freedom establish.

Advanced 11 min read

What You'll Learn

  • Define the omnibus null as equality of a specified robust location functional across groups.
  • Construct reference-group contrasts and their covariance from independent group estimates.
  • Derive the Wald statistic and its asymptotic chi-square degrees of freedom.
  • Work through equal- and unequal-precision examples.
  • Distinguish omnibus evidence from conclusions about particular group pairs.
  • Recognize when multiplicity adjustment is needed for follow-up comparisons.

Why an Omnibus Test Is Needed

With several independent groups and a multivariate outcome, the question is often whether the groups share the same location. Testing every pair separately does not directly answer that single omnibus question, and a collection of unadjusted pairwise tests can also make false positives more likely. A robust Wald test addresses the omnibus question by combining the group location estimates into one vector of contrasts and accounting for their uncertainty.

The target must be specified carefully. Let \(F_g\) be the distribution of the \(p\)-dimensional outcome in group \(g\), and let \(T(F_g)\in\mathbb{R}^p\) be the chosen robust location functional. Write \(\theta_g=T(F_g)\). The test concerns equality of these functionals, not equality of the full group distributions. In particular, differences in scatter do not by themselves violate the null.

Definition: For \(k\) independent groups, the omnibus null hypothesis of equal robust multivariate locations is $$ H_0:\theta_1=\theta_2=\cdots=\theta_k, $$ against the alternative that at least one group location functional differs. The functional \(T\) must be defined in the same way for every group.

Each group has its own sample size \(n_g\), robust estimate \(\hat{\theta}_g\), and estimated asymptotic covariance. The group estimates may use the robust location procedures developed earlier in the course. The test combines their uncertainty rather than assuming that all groups have the same scatter or the same precision.

Contrasts and the Wald Statistic

Stack the group estimates in the order of their group labels:

$$ \hat{\theta}=(\hat{\theta}_1^\mathsf{T},\ldots,\hat{\theta}_k^\mathsf{T})^\mathsf{T}. $$

A convenient way to express the null is to compare every group with group 1. Define \(C\) as the \(p(k-1)\)-by-\(pk\) matrix whose block row for group \(g\), \(g=2,\ldots,k\), has \(-I_p\) in the group 1 block, \(I_p\) in the group \(g\) block, and zeros elsewhere. Then \(C\theta=0\) exactly when all \(k\) location vectors agree, and \(C\hat{\theta}\) stacks the estimated differences \(\hat{\theta}_g-\hat{\theta}_1\).

Assume the groups are independent. For group \(g\), let \(\Omega_g\) denote the asymptotic covariance of \(\sqrt{n_g}(\hat{\theta}_g-\theta_g)\), and let \(\hat{\Omega}_g\) consistently estimate it. Thus the estimated covariance of \(\hat{\theta}_g\) is \(\hat{\Omega}_g/n_g\). Independence makes the covariance of the stacked estimates block diagonal. In particular, the estimated covariance of the contrast vector is

$$ \hat{S}=C\operatorname{blockdiag}\left( \frac{\hat{\Omega}_1}{n_1},\ldots,\frac{\hat{\Omega}_k}{n_k} \right)C^\mathsf{T}. $$

The Wald statistic is the squared length of the estimated contrast after scaling by its estimated covariance:

$$ W=(C\hat{\theta})^\mathsf{T}\hat{S}^{-1}(C\hat{\theta}). $$

This expression requires \(\hat{S}\) to be nonsingular. In practice, this requires enough information to estimate the relevant covariance matrices and enough observations for each group. The reference-group contrasts are not independent of one another: each contains the group 1 estimate. The off-diagonal blocks of \(\hat{S}\) account for that dependence.

Worked Example: Three Groups and Two Outcomes

Suppose there are \(k=3\) independent groups and \(p=2\) outcomes. The estimated robust locations are \(\hat{\theta}_1=(0,0)^\mathsf{T}\), \(\hat{\theta}_2=(1,0)^\mathsf{T}\), and \(\hat{\theta}_3=(0,1)^\mathsf{T}\). Suppose each estimated location has covariance \(0.25I_2\).

The contrast vector, ordered as group 2 minus group 1 followed by group 3 minus group 1, is \(C\hat{\theta}=(1,0,0,1)^\mathsf{T}\). For either outcome, the covariance matrix of its two contrasts is

$$ \begin{pmatrix}0.50&0.25\\0.25&0.50\end{pmatrix}, $$

because each difference has variance \(0.25+0.25=0.50\), and the two differences share the group 1 estimate, giving covariance \(0.25\). The inverse of this matrix is

$$ \begin{pmatrix}0.50&0.25\\0.25&0.50\end{pmatrix}^{-1} = \begin{pmatrix}8/3&-4/3\\-4/3&8/3\end{pmatrix}. $$

For the first outcome, the contrast vector is \((1,0)^\mathsf{T}\), giving a contribution \(8/3\) to \(W\). For the second outcome, the contrast vector is \((0,1)^\mathsf{T}\), also giving \(8/3\). Therefore \(W=16/3\). The reference distribution has \(p(k-1)=2(2)=4\) degrees of freedom, provided the asymptotic conditions described below hold.

Degrees of Freedom and Justification

The number of degrees of freedom is the number of independent scalar restrictions in the omnibus null. There are \(p\) location coordinates for each of \(k-1\) group differences, so the contrast matrix has rank \(q=p(k-1)\). Under regularity conditions, the statistic has an approximate chi-square distribution with \(q\) degrees of freedom.

Theorem: Suppose \(k\) and \(p\) are fixed, the group samples are independent, and \(n_g/N\to\pi_g>0\) as \(N=\sum_{g=1}^k n_g\to\infty\). Suppose also that, for every group, $$ \sqrt{n_g}(\hat{\theta}_g-\theta_g)\xrightarrow{d}N(0,\Omega_g), $$ where each \(\Omega_g\) is finite and positive definite, and that \(\hat{\Omega}_g\xrightarrow{p}\Omega_g\). If \(H_0\) holds, then \(W\xrightarrow{d}\chi^2_{p(k-1)}\).

Proof. Put \(\Gamma=\operatorname{blockdiag}(\Omega_1/\pi_1,\ldots,\Omega_k/\pi_k)\). Independence of the groups and the assumed groupwise limits imply

$$ \sqrt{N}(\hat{\theta}-\theta)\xrightarrow{d}N(0,\Gamma). $$

Under \(H_0\), \(C\theta=0\), so \(Z_N=\sqrt{N}C\hat{\theta}\) converges in distribution to a mean-zero normal vector with covariance \(A=C\Gamma C^\mathsf{T}\). The rows of \(C\) are linearly independent, and \(\Gamma\) is positive definite, so \(A\) is positive definite. Also, consistency of the group covariance estimates and \(n_g/N\to\pi_g\) give

$$ \hat{A}_N =C\operatorname{blockdiag}\left( \frac{N\hat{\Omega}_1}{n_1},\ldots, \frac{N\hat{\Omega}_k}{n_k} \right)C^\mathsf{T} \xrightarrow{p}A. $$

The statistic can be written \(W=Z_N^\mathsf{T}\hat{A}_N^{-1}Z_N\). By continuity of matrix inversion at the positive definite matrix \(A\), \(\hat{A}_N^{-1}\xrightarrow{p}A^{-1}\). Slutsky's theorem therefore gives the limit \(Z^\mathsf{T}A^{-1}Z\), where \(Z\sim N(0,A)\). The vector \(A^{-1/2}Z\) has \(p(k-1)\) independent standard normal coordinates, so its squared Euclidean length is \(\chi^2_{p(k-1)}\). This proves the result. \(\square\)

The chi-square reference distribution is asymptotic, not a general finite-sample identity. Its quality depends on the group sample sizes, the reliability of the robust covariance estimates, and the validity of the assumed asymptotic approximations. A test with more groups or outcomes also has more degrees of freedom, even when the total sample size is unchanged.

Worked Example: Unequal Precision Across Three Groups

Consider one-dimensional robust locations with estimates \(\hat{\theta}_1=0\), \(\hat{\theta}_2=1\), and \(\hat{\theta}_3=3\). Suppose the estimated covariances of these estimates are \(0.25\), \(0.50\), and \(1.00\), respectively. These unequal values may reflect different sample sizes or different group-specific uncertainty.

The reference contrasts are \(d=(1,3)^\mathsf{T}\). Since both contrasts contain \(-\hat{\theta}_1\), their covariance matrix is

$$ \hat{S}= \begin{pmatrix} 0.25+0.50&0.25\\ 0.25&0.25+1.00 \end{pmatrix} = \begin{pmatrix}0.75&0.25\\0.25&1.25\end{pmatrix}. $$

Its determinant is \(0.75(1.25)-0.25^2=0.875=7/8\), so

$$ \hat{S}^{-1}= \begin{pmatrix}10/7&-2/7\\-2/7&6/7\end{pmatrix}. $$

Thus \(\hat{S}^{-1}d=(4/7,16/7)^\mathsf{T}\), and \(W=d^\mathsf{T}\hat{S}^{-1}d=4/7+48/7=52/7\), approximately \(7.43\). Here \(p=1\) and \(k=3\), so the reference distribution has 2 degrees of freedom. Using a pooled covariance in place of the group-specific estimates would change the statistic and would not reflect the uncertainty specified in this example.

What Rejection Does—and Does Not—Establish

A small p-value provides evidence against equality of the specified robust location functionals: at least one group location differs. It does not identify which group differs, establish that every pair differs, or show that the distributions have the same shape or scatter. Nor does it automatically test equality of ordinary means. The conclusion is about the functional \(T\) chosen for the analysis.

If the omnibus test motivates follow-up comparisons, a pairwise comparison uses \(\theta_a-\theta_b\) for a specified pair of groups. Its estimated covariance must include the uncertainty from both group estimates; independence of groups makes that covariance the sum of their estimated location covariances. Testing many pairs separately without accounting for multiplicity can make the overall false-positive probability larger than the nominal level. Follow-up claims should therefore use a suitable multiplicity adjustment or be clearly identified as exploratory. The omnibus result alone is not a license to declare particular pairs different.

Worked Example: An Omnibus Result Does Not Name the Differing Pair

Suppose there are three independent groups with scalar robust location estimates \(0\), \(2\), and \(2\), and suppose each estimate has variance \(1\). Relative to group 1, the contrast vector is \(d=(2,2)^\mathsf{T}\), and its covariance is

$$ S=\begin{pmatrix}2&1\\1&2\end{pmatrix}, \qquad S^{-1}=\frac{1}{3}\begin{pmatrix}2&-1\\-1&2\end{pmatrix}. $$

Multiplication gives \(S^{-1}d=(2/3,2/3)^\mathsf{T}\), and hence \(W=d^\mathsf{T}S^{-1}d=8/3\). The omnibus test has 2 degrees of freedom. The estimated difference between groups 2 and 3 is zero, while the estimated differences between group 1 and each of the other groups are both 2. The omnibus statistic summarizes all contrasts together; it does not turn any one of these estimated differences into a separate, multiplicity-adjusted conclusion.

Common Mistake: Treating Reference Contrasts as Independent

A tempting calculation is to assign the contrast vector a diagonal covariance matrix because the groups are independent. That reasoning is incorrect: although the group estimates are independent, two reference contrasts share the same estimated location from group 1. For distinct groups \(a,b>1\),

$$ \operatorname{Cov}(\hat{\theta}_a-\hat{\theta}_1,\hat{\theta}_b-\hat{\theta}_1) =\operatorname{Var}(\hat{\theta}_1), $$

when the group estimates are independent. The correction is to form the covariance of the contrasts as \(C\hat{V}C^\mathsf{T}\), where \(\hat{V}\) is the block-diagonal covariance of the stacked group estimates. Omitting the off-diagonal blocks generally changes the Wald statistic and its calibration.

Key takeaway: The robust omnibus location test is a Wald test of \(p(k-1)\) independent contrasts. Its chi-square calibration is asymptotic, its covariance must reflect group-specific uncertainty and shared estimates, and rejection indicates that at least one specified robust location differs—not which one.

Check Your Understanding

Check that you can construct the hypothesis and interpret the test before moving to pairwise conclusions.

  1. For \(k=4\) groups and \(p=3\) outcomes, how many degrees of freedom does the omnibus Wald test have, under the theorem's conditions?
  2. Why can two reference contrasts be correlated even when the groups themselves are independent?
  3. What does rejection of equality of robust location functionals establish, and what does it leave unresolved?
  4. Suppose two groups have different scatter but the same value of the specified location functional. Does that difference in scatter alone violate the omnibus null?
  5. Why is it not generally appropriate to treat a set of unadjusted pairwise tests as the automatic interpretation of a significant omnibus test?
Clinical Biostats