Tutorials › Multivariate Statistics (Graduate) › Formulating High-Dimensional Mean Tests

High-Dimensional Mean Testing · Tutorial 803 of 975

Formulating High-Dimensional Mean Tests

Learn to state multivariate mean hypotheses precisely and identify when dimension and sampling assumptions affect the validity of a test.

Advanced 12 min read

What You'll Learn

  • Write one-sample and independent two-sample hypotheses for a vector mean.
  • Distinguish omnibus mean hypotheses from hypotheses about linear contrasts.
  • Reformulate a paired comparison as a one-sample test on differences.
  • Classify dimension-to-sample-size regimes without assuming one universal cutoff.
  • State sampling, moment, and covariance conditions relevant to test validity.
  • Prove when the centered sample covariance is necessarily singular.

What a Multivariate Mean Test Asks

A multivariate mean test concerns a vector of population means, not a collection of unrelated univariate questions. For a \(p\)-dimensional random vector \(X\), its mean is \(\mu=E[X]\), when the component expectations exist. A basic one-sample question is whether this vector equals a specified target \(\mu_0\). In a high-dimensional setting, the formulation remains simple, but the relationship between the dimension \(p\) and the available sample size can change which testing procedures are feasible and how their calibration must be justified.

The hypothesis specifies the scientific question; it does not, by itself, specify a valid test statistic or guarantee a particular null distribution. Validity also depends on the sampling model and on the assumptions used to calibrate the chosen procedure. Keeping these pieces separate prevents a common error: treating the ability to write down a mean hypothesis as evidence that a familiar low-dimensional test remains justified.

Definition: A one-sample mean hypothesis for \(X\in\mathbb{R}^p\) is commonly written \(H_0:\mu=\mu_0\) against \(H_1:\mu\ne\mu_0\), where \(\mu_0\in\mathbb{R}^p\) is specified. The null asserts equality in every coordinate. The alternative is omnibus: at least one coordinate differs. A directional or structured alternative must be stated separately.

For a sample \(X_1,\ldots,X_n\), the usual basic model assumes independent, identically distributed observations with \(E[X_i]=\mu\). To define a population covariance matrix \(\Sigma=\operatorname{Cov}(X_i)\), finite second moments are required. These conditions describe the sampling framework, but they are not a universal recipe for test calibration: a particular test may require stronger conditions, such as Gaussianity, moment bounds, or restrictions on dependence among coordinates.

Worked Example: A One-Sample Clinical Profile

Suppose \(X_i\) records three standardized biomarkers for patient \(i\), and the target profile is \(\mu_0=(0,0,0)^\mathsf{T}\). Assume patients are independently sampled from a population with \(X_i\sim N(\mu,\Sigma)\), where \(\Sigma=\operatorname{diag}(1,4,9)\). The mean hypothesis is

$$ H_0:\begin{pmatrix}\mu_1\\\mu_2\\\mu_3\end{pmatrix} =\begin{pmatrix}0\\0\\0\end{pmatrix}, \qquad H_1:\begin{pmatrix}\mu_1\\\mu_2\\\mu_3\end{pmatrix} \ne\begin{pmatrix}0\\0\\0\end{pmatrix}. $$

The covariance matrix is positive definite because its diagonal entries \(1,4,9\) are all positive. The null is nevertheless about the mean only: it does not assert that the biomarkers are independent in general, nor does it assert that their variances equal one another. Here the specified diagonal covariance happens to imply independence under the stated multivariate normal model. That is an additional model feature, not part of the mean null.

Two Independent Samples and Paired Data

For two independent populations, let \(X_1,\ldots,X_{n_1}\) be independent and identically distributed with mean \(\mu_1\) and covariance \(\Sigma_1\), and let \(Y_1,\ldots,Y_{n_2}\) be independent and identically distributed with mean \(\mu_2\) and covariance \(\Sigma_2\). Assume also that the two samples are independent of one another. The common equality question is \(H_0:\mu_1=\mu_2\). Equality of means does not imply equality of covariance matrices, so whether \(\Sigma_1=\Sigma_2\) is an assumption must be stated independently.

Definition: The two-sample mean hypothesis is \(H_0:\mu_1-\mu_2=0\) against \(H_1:\mu_1-\mu_2\ne0\), for \(\mu_1,\mu_2\in\mathbb{R}^p\). Its alternative says that the mean vectors differ in at least one coordinate. It does not require, or imply, equal sample sizes or equal population covariances.

For independent samples with finite covariance matrices, the covariance of the difference in sample means is

$$ \operatorname{Cov}(\bar X-\bar Y) =\frac{\Sigma_1}{n_1}+\frac{\Sigma_2}{n_2}, \qquad \bar X=\frac{1}{n_1}\sum_{i=1}^{n_1}X_i,\quad \bar Y=\frac{1}{n_2}\sum_{j=1}^{n_2}Y_j. $$

To derive this, independence within each sample gives \(\operatorname{Cov}(\bar X)=\Sigma_1/n_1\) and \(\operatorname{Cov}(\bar Y)=\Sigma_2/n_2\). Independence between the samples makes their cross-covariance zero. Expanding the covariance of the difference therefore gives the stated sum. This calculation explains why an equal-covariance assumption cannot be silently inserted into a two-sample problem.

Paired observations have a different sampling structure. If \(X_i\) and \(Y_i\) are measurements on the same unit, define the difference \(D_i=X_i-Y_i\). The target of a paired mean comparison is \(E[D_i]=\mu_X-\mu_Y\), when the paired observations have the same marginal means. The analysis can then be formulated as a one-sample mean problem for the \(D_i\)'s. Treating the two measurements as independent samples would discard their within-unit association and generally misstate the variability.

Worked Example: Two Treatments With Unequal Covariances

Two independent groups receive different treatments, and each subject has \(p=2\) outcomes. Suppose the population means are \(\mu_1=(2,5)^\mathsf{T}\) and \(\mu_2=(1,5)^\mathsf{T}\), with \(n_1=30\) and \(n_2=24\). Suppose also that \(\Sigma_1=\begin{pmatrix}1&0\\0&4\end{pmatrix}\) and \(\Sigma_2=\begin{pmatrix}4&0\\0&1\end{pmatrix}\).

The equality hypothesis is \(H_0:(\mu_{11},\mu_{12})^\mathsf{T}=(\mu_{21},\mu_{22})^\mathsf{T}\), against inequality of the vectors. Under the displayed population values, \(\mu_1-\mu_2=(1,0)^\mathsf{T}\), so the specified means satisfy the alternative. The covariance matrices differ: for example, their first diagonal entries are \(1\) and \(4\). Thus any formulation or procedure that assumes equal covariances would impose an extra condition not supported by this model.

The covariance of the sample mean difference, using the independent-sample derivation, is

$$ \frac{1}{30}\begin{pmatrix}1&0\\0&4\end{pmatrix} +\frac{1}{24}\begin{pmatrix}4&0\\0&1\end{pmatrix} = \begin{pmatrix}1/30+1/6&0\\0&2/15+1/24\end{pmatrix} = \begin{pmatrix}1/5&0\\0&7/40\end{pmatrix}. $$

This is a covariance calculation, not a test decision. A test decision would additionally require a specified statistic and justified calibration.

Worked Example: Turning Paired Measurements Into Differences

A study measures a response before and after treatment on each patient. Let \(D_i=\text{after}_i-\text{before}_i\), and suppose the patients are independently sampled, with \(D_i\) having mean \(\delta\in\mathbb{R}^2\) and covariance \(\Omega=\begin{pmatrix}2&1\\1&3\end{pmatrix}\). The question is whether the treatment produces zero average change in both outcomes.

The hypothesis is \(H_0:\delta=(0,0)^\mathsf{T}\) against \(H_1:\delta\ne(0,0)^\mathsf{T}\). For each coordinate, subtraction of the before measurement from the after measurement gives its change; taking expectations yields \(E[D_i]=\mu_{\text{after}}-\mu_{\text{before}}\). The covariance \(\Omega\) includes the variability of the paired differences and their cross-outcome covariance. It is not generally obtained by pretending that before and after measurements are independent.

Contrasts and Structured Mean Questions

Not every scientific question asks whether the entire mean vector equals one fixed vector. A linear contrast tests a specified transformation of the mean. For a matrix \(C\in\mathbb{R}^{q\times p}\) and vector \(c\in\mathbb{R}^q\), the hypothesis is \(H_0:C\mu=c\) against \(H_1:C\mu\ne c\). This can encode selected coordinate differences or other prespecified linear summaries. The rows of \(C\) determine which aspects of the mean are being tested; conclusions do not automatically extend to components outside those summaries.

Result: If \(C=I_p\) and \(c=\mu_0\), then \(C\mu=c\) is exactly the one-sample null \(\mu=\mu_0\). More generally, the contrast null holds precisely when every row of \(C\) has the specified inner product with \(\mu\): the \(r\)-th equation is \(\sum_{k=1}^p C_{rk}\mu_k=c_r\). This follows directly from the definition of matrix multiplication.

Worked Example: Testing Equality of Three Mean Components

Let \(\mu=(\mu_1,\mu_2,\mu_3)^\mathsf{T}\). To ask whether all three component means are equal, choose \(C=\begin{pmatrix}1&-1&0\\0&1&-1\end{pmatrix}\) and \(c=(0,0)^\mathsf{T}\). Then

$$ C\mu-c = \begin{pmatrix} \mu_1-\mu_2\\ \mu_2-\mu_3 \end{pmatrix}. $$

Thus \(C\mu=c\) requires \(\mu_1-\mu_2=0\) and \(\mu_2-\mu_3=0\). The first equation gives \(\mu_1=\mu_2\); the second gives \(\mu_2=\mu_3\); together these imply \(\mu_1=\mu_2=\mu_3\). Conversely, if the three means are equal, both differences are zero. The contrast test therefore expresses the intended equality question without testing whether their common value is zero.

Dimension, Sample Size, and Test Validity

The phrase high-dimensional describes a relationship between \(p\) and the sample size, rather than a universal numerical threshold. In a fixed-dimensional asymptotic regime, \(p\) is held fixed while \(n\) grows. In a growing-dimensional regime, \(p=p_n\) increases with \(n\). The ratio \(p/n\) can tend to zero, approach a positive constant, or grow without bound. These regimes can have different consequences for estimation and for the null calibration of tests, so a statement about validity must identify the regime and the assumptions used.

A basic constraint appears in the centered sample covariance. For \(n>1\), define \(S=(n-1)^{-1}\sum_{i=1}^n(X_i-\bar X)(X_i-\bar X)^\mathsf{T}\). Its rank is at most \(\min(p,n-1)\). To prove this, form the \(p\times n\) data matrix \(A\) whose columns are \(X_i\), and let \(H=I_n-\mathbf{1}\mathbf{1}^\mathsf{T}/n\), where \(\mathbf{1}\) is the \(n\)-vector of ones. Centering the columns gives \(AH\). The matrix \(H\) is a projection onto the subspace perpendicular to \(\mathbf{1}\), so \(\operatorname{rank}(H)=n-1\). Hence \(\operatorname{rank}(AH)\le\min(p,n-1)\). Since \(S=(n-1)^{-1}(AH)(AH)^\mathsf{T}\), its rank is at most the rank of \(AH\), proving the claim. In particular, when \(p\ge n\), \(S\) is singular. The condition \(n>1\) is necessary here because the displayed definition has denominator \(n-1\).

This rank fact is a structural statement about the sample covariance, not a statement that the population covariance must be singular. For example, a population covariance can be positive definite even when \(p\ge n\). In that setting, procedures that require an inverse of the ordinary sample covariance cannot use that inverse as defined. This motivates careful choices of methods, but the specific construction and calibration of high-dimensional tests require their own analysis.

Definition: A test of level \(\alpha\) has rejection probability at most \(\alpha\) for every parameter value satisfying the null. A sequence of tests is asymptotically level \(\alpha\) if the limit superior of its largest null rejection probability is at most \(\alpha\). The assumptions establishing either guarantee—such as independence, moment conditions, distributional form, and a specified dimension regime—belong to the test, not merely to the hypothesis statement.

Common Mistake: Treating the Null as a Complete Model

A frequent error is to write \(H_0:\mu_1=\mu_2\) and then silently assume \(\Sigma_1=\Sigma_2\), independent coordinates, or a particular distribution. None of those restrictions follows from equality of mean vectors. Another error is to say that a test is valid because it is familiar in fixed dimension, without checking whether its calibration continues to hold when \(p\) grows or exceeds \(n\). The correction is to state the mean hypothesis, the sampling design, and any covariance or distributional assumptions separately, then justify the proposed calibration under those conditions.

Before choosing a method, specify whether the data are one-sample, independent two-sample, or paired; name the exact vector or contrast being tested; and state how \(p\) behaves relative to the relevant sample sizes. This formulation makes clear what a rejection would mean and which additional mathematical claims still need justification.

Check Your Understanding

For each question, identify the hypothesis or assumption being discussed.

  1. For \(X\in\mathbb{R}^p\), what does \(H_0:\mu=\mu_0\) assert about the coordinates?
  2. Why does \(H_0:\mu_1=\mu_2\) not imply equal covariance matrices in a two-sample problem?
  3. How can a paired before-and-after comparison be expressed as a one-sample mean problem?
  4. If \(p\) grows with \(n\), name three possible limiting behaviors of \(p/n\).
  5. Why is the centered sample covariance singular when \(p\ge n\), and what condition on \(n\) is needed for its usual definition?
Clinical Biostats