Tutorials › Multivariate Statistics (Graduate) › Joint Confidence Regions for Contrast Vectors

Simultaneous Multivariate Inference · Tutorial 227 of 975

Joint Confidence Regions for Contrast Vectors

Learn to construct, calibrate, and interpret a joint confidence ellipsoid for a prespecified full-rank contrast vector under multivariate normal sampling.

Intermediate 10 min read

What You'll Learn

  • Define a full-rank linear contrast vector and its sample covariance
  • Derive the covariance of the transformed sample mean
  • Construct the finite-sample confidence ellipsoid
  • Obtain its exact Hotelling–F critical value under Gaussian sampling
  • Check whether proposed contrast vectors lie inside the region
  • Understand why a full-rank change of contrast coordinates preserves the region

Why a Vector Needs a Joint Confidence Region

When several prespecified contrasts are of interest, separate intervals do not directly describe uncertainty in the contrast vector as a whole. A joint confidence region answers a different question: which entire vectors of contrast values remain compatible with the observed sample at a stated confidence level? Under multivariate normal sampling, this region has an exact finite-sample ellipsoidal form.

Let \(X_1,\ldots,X_n\) be independent observations from a \(p\)-variate normal distribution with mean vector \(\mu\) and positive-definite covariance matrix \(\Sigma\). Let \(A\) be a fixed \(q\times p\) matrix of rank \(q\), where \(1\leq q\leq p\). The target is the \(q\)-dimensional vector \(\theta=A\mu\). In a contrast problem, rows of \(A\) specify the contrasts; the derivation applies to any prespecified full-rank linear map.

Definition: The sample mean and unbiased sample covariance matrix are \(\bar X=n^{-1}\sum_{i=1}^n X_i\) and \(S=(n-1)^{-1}\sum_{i=1}^n (X_i-\bar X)(X_i-\bar X)'\). The estimator of the contrast vector is \(\hat\theta=A\bar X\), and its estimated covariance matrix is \(A S A'/n\).

Because \(A\) has full row rank and \(\Sigma\) is positive definite, \(A\Sigma A'\) is positive definite. Indeed, for every nonzero \(v\in\mathbb R^q\), \(A'v\ne0\), so \(v'A\Sigma A'v=(A'v)'\Sigma(A'v)>0\). Thus the transformed mean has a nonsingular covariance, and a quadratic distance using the inverse transformed sample covariance is well-defined with probability one when \(n>q\).

The Exact Confidence Ellipsoid

Write \(F_{q,n-q;1-\alpha}\) for the \(1-\alpha\) quantile of an \(F\) distribution with \(q\) and \(n-q\) degrees of freedom. The exact critical value comes from the Hotelling \(T^2\) distribution for the \(q\)-dimensional transformed observations, not from treating the \(q\) estimated coordinates as independent.

Theorem: Suppose \(X_1,\ldots,X_n\) are independent \(N_p(\mu,\Sigma)\) observations, \(\Sigma\) is positive definite, \(A\) is fixed with rank \(q\), and \(n>q\). Then the region \(\mathcal C_{1-\alpha}=\left\{\theta\in\mathbb R^q: n(\hat\theta-\theta)'(A S A')^{-1}(\hat\theta-\theta) \leq \dfrac{q(n-1)}{n-q}F_{q,n-q;1-\alpha}\right\}\) has exact coverage \(P_\theta(\theta\in\mathcal C_{1-\alpha})=1-\alpha\).

Equivalently, \(A S A'\) estimates the covariance of one transformed observation, while \(A S A'/n\) estimates the covariance of \(\hat\theta\). The same region can therefore be written \((\hat\theta-\theta)'(A S A'/n)^{-1}(\hat\theta-\theta) \leq \dfrac{q(n-1)}{n-q}F_{q,n-q;1-\alpha}\). This form makes the scaling by the covariance of the estimator explicit.

Why the Calibration Is Exact

The key point is that the transformed observations \(Y_i=A X_i\) are independent \(N_q(A\mu,A\Sigma A')\) observations. Their sample mean is \(\hat\theta\), and their sample covariance is exactly \(A S A'\). The required calibration is therefore the one-sample Hotelling \(T^2\) result in dimension \(q\). The derivation below gives the distributional argument, including the degrees of freedom.

1
Standardize the transformed sample.
Let \(\Omega=A\Sigma A'\), and define standardized observations \(Z_i=\Omega^{-1/2}(Y_i-A\mu)\). These are independent \(N_q(0,I_q)\) vectors.
2
Separate the sample mean and residual covariance.
For the standardized sample, \(U=\sqrt n\,\bar Z\) has distribution \(N_q(0,I_q)\). Orthogonal decomposition of the \(n\) Gaussian observation rows into the sample-mean direction and its orthogonal residual space shows that \(U\) is independent of \(W=(n-1)S_Z\), where \(S_Z\) is the standardized sample covariance. Also, \(W\) has a Wishart distribution with identity scale and \(m=n-1\) degrees of freedom.
3
Find the quadratic-form distribution.
For independent \(U\sim N_q(0,I_q)\) and \(W\sim\operatorname{Wishart}_q(I_q,m)\), \(U'W^{-1}U\) has the distribution of a ratio of independent chi-square variables, as shown below. This gives the scaled \(F\) law for the statistic.

To verify the ratio claim, condition on \(U=u\ne0\). Rotational invariance of the Wishart distribution permits rotating \(u\) to \(\|u\|e_1\) without changing the distribution of \(W\). Consequently, \(u'W^{-1}u\) has the conditional distribution \(\|u\|^2(W^{-1})_{11}\). Write \(W=Z'Z\), where \(Z\) is an \(m\times q\) matrix of independent standard normal entries, and partition its columns as \(Z=(z_1,Z_2)\). The block inverse formula gives \((W^{-1})_{11}^{-1}=z_1'(I-P_{Z_2})z_1\), where \(P_{Z_2}\) projects onto the column space of \(Z_2\). With probability one, that space has dimension \(q-1\). Conditional on \(Z_2\), \(z_1\) is an independent standard normal vector, so the projection onto the orthogonal complement has squared length distributed as \(\chi^2_{m-q+1}\). Thus \(D=(W^{-1})_{11}^{-1}\sim\chi^2_{m-q+1}\). The conditional distribution of \(D\) does not depend on \(U\), so it is independent of \(\|U\|^2\sim\chi^2_q\). Therefore \(U'W^{-1}U\) has the distribution of \(\chi^2_q/\chi^2_{m-q+1}\), with independent numerator and denominator, or equivalently \(\dfrac{q}{m-q+1}F_{q,m-q+1}\).

Since \(W=(n-1)S_Z\) and \(m=n-1\), the standardized Hotelling statistic is \(n\bar Z'S_Z^{-1}\bar Z=(n-1)U'W^{-1}U\). Substitution of the ratio distribution gives \(n\bar Z'S_Z^{-1}\bar Z\sim\dfrac{q(n-1)}{n-q}F_{q,n-q}\). Undoing the nonsingular standardization leaves the quadratic statistic unchanged: \[ n(\hat\theta-A\mu)'(A S A')^{-1}(\hat\theta-A\mu) \sim \frac{q(n-1)}{n-q}F_{q,n-q}. \] By the definition of the \(1-\alpha\) quantile, the probability that this statistic is at most its stated critical value is \(1-\alpha\). This proves the theorem. \(\square\)

Worked Calculations

Worked Example: Checking Points Against a Two-Contrast Region

Suppose \(n=15\), \(q=2\), the estimated contrast vector is \(\hat\theta=(4,-1)'\), and \(A S A'=\begin{pmatrix}4&1\\1&2\end{pmatrix}\). For a 95% region, \(F_{2,13;0.95}\approx3.806\), so the critical value is \(\frac{2(14)}{13}(3.806)\approx8.197\). The inverse covariance is \((A S A')^{-1}=\frac{1}{7}\begin{pmatrix}2&-1\\-1&4\end{pmatrix}\).

For the candidate \(\theta_0=(4.5,-1.5)'\), the difference is \(\hat\theta-\theta_0=(-0.5,0.5)'\). Its quadratic form is \(\frac{2(0.5)^2-2(-0.5)(0.5)+4(0.5)^2}{7} =\frac{0.5+0.5+1}{7}=\frac{2}{7}\). The statistic is \(15(2/7)=30/7\approx4.286\), which is less than \(8.197\). This candidate lies inside the region.

For \(\theta_1=(5,-2)'\), the difference is \((-1,1)'\), and the quadratic form is \(\frac{2(1)^2-2(-1)(1)+4(1)^2}{7} =\frac{2+2+4}{7}=\frac{8}{7}\). The statistic is \(15(8/7)=120/7\approx17.143\), which exceeds \(8.197\). This candidate lies outside. The sign of each coordinate in the difference matters because the off-diagonal entries of the inverse covariance contribute to the quadratic form.

Worked Example: A Single Prespecified Contrast

Let \(n=12\), and consider the contrast \(A\mu=\mu_1-\mu_2\) for a three-dimensional normal sample, so \(A=(1,-1,0)\) and \(q=1\). Suppose \(A\bar X=1.2\) and \(A S A'=4\). For a 95% region, \(F_{1,11;0.95}=t_{11;0.975}^2\approx2.201^2\approx4.844\). Since \(q(n-1)/(n-q)=11/11=1\), the inequality is \(12(1.2-\theta)^2/4\leq4.844\).

Rearranging gives \((1.2-\theta)^2\leq4.844(4/12)\approx1.615\), so \(|1.2-\theta|\leq\sqrt{1.615}\approx1.271\). The one-dimensional ellipsoid is therefore the interval \([1.2-1.271,1.2+1.271]\), approximately \([-0.071,2.471]\). Here the exact general \(F\) calibration reduces to the usual two-sided \(t\) calibration.

Worked Example: Changing Contrast Coordinates

Use the two-dimensional covariance matrix \(C=\begin{pmatrix}4&1\\1&2\end{pmatrix}\) and let \(B=\begin{pmatrix}1&1\\0&1\end{pmatrix}\), which is nonsingular. Expressing the same contrast vector in new coordinates transforms the estimate to \(B\hat\theta\) and the covariance to \(BCB'\). Direct multiplication gives \(BCB'=\begin{pmatrix}8&3\\3&2\end{pmatrix}\), with inverse \(\frac17\begin{pmatrix}2&-3\\-3&8\end{pmatrix}\).

For a displacement \(d=(1,0)'\), the original quadratic form is \(d'C^{-1}d=2/7\). The transformed displacement is \(Bd=(1,0)'\), and its quadratic form is \((Bd)'(BCB')^{-1}(Bd)=2/7\) as well. More generally, for every \(d\), \((Bd)'(BCB')^{-1}(Bd)=d'C^{-1}d\), because \(B\) is invertible and \((BCB')^{-1}=(B')^{-1}C^{-1}B^{-1}\). Thus changing to another full-rank basis for the same contrast space changes the ellipsoid's coordinates, but not the underlying joint confidence statement.

Interpretation and a Common Pitfall

The ellipsoid incorporates both the estimated covariance among contrasts and their different scales. Its boundary consists of contrast vectors at the same squared Mahalanobis distance from \(\hat\theta\); directions with more estimated variability extend farther. Exact coverage refers to the entire \(q\)-vector at once. It does not say that each coordinate has a separate 95% marginal interval.

  • Pitfall: using \(q\) separate unadjusted intervals as if they were the joint region. This ignores the joint coverage requirement and the dependence between contrast estimates. The correction is to use the quadratic-form region and its \(F_{q,n-q}\) critical value when the stated Gaussian model and full-rank conditions hold.
  • Pitfall: using \(S\) in place of \(A S A'\). The target lives in the transformed \(q\)-dimensional space. Its estimated covariance is \(A S A'\), and the covariance of its sample mean is \(A S A'/n\).
  • Pitfall: omitting the degrees-of-freedom factor. For unknown \(\Sigma\), the multiplier is \(q(n-1)/(n-q)\), not just a chi-square quantile. A chi-square calibration applies in a different setting, such as when the covariance is known.

The rank condition is substantive: if \(A\) has redundant rows, \(A S A'\) is singular and cannot be inverted as written. The target must first be represented in a nonredundant full-rank coordinate system. The condition \(n>q\) ensures the residual degrees of freedom permit a nonsingular transformed sample covariance with probability one under the model.

Key takeaway: For a prespecified rank-\(q\) contrast matrix under independent multivariate normal sampling with unknown covariance, form the transformed mean \(A\bar X\), use covariance estimate \(A S A'/n\), and calibrate its joint quadratic distance with \(\frac{q(n-1)}{n-q}F_{q,n-q;1-\alpha}\). This yields an exact \(1-\alpha\) confidence ellipsoid.

Check Your Understanding

Use the model assumptions carefully when answering these questions.

  1. What is the covariance estimator for \(A\bar X\), and why does it involve division by \(n\)?
  2. For \(q=1\), why does the exact \(F\) critical value reduce to the square of a two-sided \(t\) critical value?
  3. Which conditions on \(A\), \(n\), and \(\Sigma\) ensure that the quadratic form in the region is well-defined?
  4. Explain why a full-rank change of coordinates \(B\) leaves the Mahalanobis quadratic distance unchanged.
  5. What is the error in using a chi-square critical value for this region when \(\Sigma\) is unknown and estimated from the sample?
Clinical Biostats