Tutorials › Multivariate Statistics (Graduate) › Confidence Ellipsoids with Known Covariance

Inference on Mean Vectors · Tutorial 192 of 975

Confidence Ellipsoids with Known Covariance

Learn how to invert the exact chi-square pivot to obtain and interpret a confidence ellipsoid for a mean vector with known covariance.

Intermediate 9 min read

What You'll Learn

  • State the model and conditions required for an exact known-covariance mean ellipsoid.
  • Derive the chi-square pivot for the sample mean.
  • Invert the pivot using the appropriate chi-square quantile.
  • Prove that the resulting confidence region has finite-sample coverage one minus alpha.
  • Calculate ellipsoids and check candidate mean vectors in diagonal and correlated examples.
  • Distinguish an exact confidence procedure from an approximate region or a probability distribution for the parameter.

From an Exact Pivot to a Confidence Region

When observations are multivariate, uncertainty about a mean vector concerns several coordinates at once. Separate intervals for each coordinate do not, in general, provide the stated joint confidence level. With a known covariance matrix and a Gaussian sampling model, there is a direct solution: a quadratic form in the sample mean has an exact chi-square distribution. Inverting that pivot gives a confidence ellipsoid with finite-sample coverage, not merely an approximation for large samples.

Suppose \(X_1,\ldots,X_n\) are independent and identically distributed \(p\)-dimensional random vectors with distribution \(N_p(\mu,\Sigma)\). Here \(\mu\) is the unknown mean vector, and \(\Sigma\) is a known, positive-definite covariance matrix for each observation. Write \(\bar X=n^{-1}\sum_{i=1}^n X_i\). Positive definiteness ensures that \(\Sigma^{-1}\) exists and that the quadratic form used below is well defined.

Definition: For \(0<\alpha<1\), let \(q_{p,1-\alpha}\) be the \(1-\alpha\) quantile of a chi-square distribution with \(p\) degrees of freedom: \(P(\chi^2_p\leq q_{p,1-\alpha})=1-\alpha\). A \(100(1-\alpha)\%\) confidence ellipsoid for \(\mu\) is the random set $$ \mathcal C_{1-\alpha}= \left\{\mu_0\in\mathbb R^p: n(\bar X-\mu_0)^\mathsf{T}\Sigma^{-1}(\bar X-\mu_0) \leq q_{p,1-\alpha} \right\}. $$

The symbol \(\mu_0\) inside the set ranges over possible values of the unknown mean. The center of the set is the observed sample mean \(\bar X\); the factor \(n\) reflects the fact that the covariance matrix of \(\bar X\) is \(\Sigma/n\). The cutoff depends on the dimension \(p\), the desired confidence level, and not on an asymptotic approximation.

Why the Pivot Has a Chi-Square Distribution

The exact result follows from the sampling distribution of the mean. Under the stated model, \(\bar X\) has distribution \(N_p(\mu,\Sigma/n)\). Let \(\Sigma^{-1/2}\) denote the symmetric inverse square root of the positive-definite matrix \(\Sigma\). Standardizing the mean gives a vector with independent standard normal coordinates.

Theorem: If \(X_1,\ldots,X_n\) are independent \(N_p(\mu,\Sigma)\) observations and \(\Sigma\) is known and positive definite, then $$ n(\bar X-\mu)^\mathsf{T}\Sigma^{-1}(\bar X-\mu)\sim\chi^2_p. $$

Proof. Independence and Gaussianity imply that the sample mean is Gaussian. Its expectation is \(E[\bar X]=\mu\), and independence gives $$ \operatorname{Cov}(\bar X) =\frac{1}{n^2}\sum_{i=1}^n\operatorname{Cov}(X_i) =\frac{\Sigma}{n}. $$ Therefore $$ Z=\sqrt n\,\Sigma^{-1/2}(\bar X-\mu) $$ is multivariate normal with mean zero and covariance $$ \operatorname{Cov}(Z) =n\Sigma^{-1/2}\frac{\Sigma}{n}\Sigma^{-1/2}=I_p. $$ Thus the \(p\) coordinates of \(Z\) are independent \(N(0,1)\) random variables. By definition, the sum of their squares has a chi-square distribution with \(p\) degrees of freedom. Finally, $$ Z^\mathsf{T}Z =n(\bar X-\mu)^\mathsf{T}\Sigma^{-1/2}\Sigma^{-1/2}(\bar X-\mu) =n(\bar X-\mu)^\mathsf{T}\Sigma^{-1}(\bar X-\mu), $$ which proves the result. \(\square\)

To construct the region, use the theorem with the true mean replaced by a candidate value \(\mu_0\). For any fixed candidate, the event that its quadratic form is no greater than the cutoff is the event that the pivot falls below its \(1-\alpha\) quantile. This gives the coverage statement directly.

Theorem: Under the model and conditions above, the confidence ellipsoid \(\mathcal C_{1-\alpha}\) satisfies $$ P_\mu(\mu\in\mathcal C_{1-\alpha})=1-\alpha $$ for every \(\mu\in\mathbb R^p\).

Proof. By the definition of \(\mathcal C_{1-\alpha}\), the event that the true parameter belongs to the random set is $$ \{\mu\in\mathcal C_{1-\alpha}\} = \left\{ n(\bar X-\mu)^\mathsf{T}\Sigma^{-1}(\bar X-\mu) \leq q_{p,1-\alpha} \right\}. $$ The pivot theorem shows that the random quantity on the left side of this inequality has distribution \(\chi^2_p\). Hence $$ P_\mu(\mu\in\mathcal C_{1-\alpha}) =P(\chi^2_p\leq q_{p,1-\alpha})=1-\alpha, $$ by the definition of the quantile. The equality holds for every value of \(\mu\), so the coverage is exact and finite-sample. \(\square\)

Worked Calculations

Worked Example: A Two-Dimensional Ellipsoid with Diagonal Covariance

Suppose \(n=16\), \(p=2\), the known covariance is \(\Sigma=\begin{pmatrix}4&0\\0&1\end{pmatrix}\), and the observed sample mean is \(\bar x=(10,5)^\mathsf{T}\). Construct a 95% confidence ellipsoid and determine whether \(\mu_0=(10.5,5.25)^\mathsf{T}\) is in it.

For two degrees of freedom, \(q_{2,.95}\approx5.991\), and \(\Sigma^{-1}=\begin{pmatrix}1/4&0\\0&1\end{pmatrix}\). Substitution into the definition gives $$ 16\left\{\frac{(\mu_1-10)^2}{4}+(\mu_2-5)^2\right\}\leq5.991. $$ For the candidate value, the squared differences are \((0.5)^2=0.25\) and \((0.25)^2=0.0625\). Its quadratic-form value is $$ 16\left(\frac{0.25}{4}+0.0625\right) =16(0.0625+0.0625)=2. $$ Since \(2\leq5.991\), this candidate mean belongs to the confidence ellipsoid. As a check on the boundary rule, the candidate \((11.5,5)^\mathsf{T}\) gives \(16(1.5^2/4)=9\), which exceeds \(5.991\) and is not included.

Worked Example: A Three-Dimensional Mean

Let \(n=10\), \(p=3\), \(\bar x=(1,0,2)^\mathsf{T}\), and \(\Sigma=\operatorname{diag}(1,4,9)\). Find the 95% confidence ellipsoid and check \(\mu_0=(1.5,1,2)^\mathsf{T}\).

The 95th percentile of \(\chi^2_3\) is approximately \(7.815\). The inverse covariance matrix is \(\operatorname{diag}(1,1/4,1/9)\), so the region is $$ 10\left\{(\mu_1-1)^2+\frac{\mu_2^2}{4} +\frac{(\mu_3-2)^2}{9}\right\}\leq7.815. $$ At the candidate, the three contributions inside braces are \(0.5^2=0.25\), \(1^2/4=0.25\), and \(0^2/9=0\). Thus the quadratic form equals \(10(0.25+0.25+0)=5\). Since \(5\leq7.815\), the candidate is included. For comparison, \((2,0,2)^\mathsf{T}\) gives \(10(1^2)=10\), so it is excluded.

Worked Example: Accounting for Correlation

Suppose \(n=25\), \(\bar x=(2,-1)^\mathsf{T}\), and $$ \Sigma=\begin{pmatrix}4&1\\1&1\end{pmatrix}. $$ Construct a 90% confidence ellipsoid and check \(\mu_0=(2.2,-0.8)^\mathsf{T}\).

The determinant of \(\Sigma\) is \(4(1)-1(1)=3>0\), and its first diagonal entry is positive, so this symmetric matrix is positive definite. Its inverse is $$ \Sigma^{-1}=\frac{1}{3}\begin{pmatrix}1&-1\\-1&4\end{pmatrix}. $$ The 90th percentile of \(\chi^2_2\) is approximately \(4.605\). Writing \(d_1=\mu_1-2\) and \(d_2=\mu_2+1\), the region is $$ \frac{25}{3}\left(d_1^2-2d_1d_2+4d_2^2\right)\leq4.605. $$ For \((2.2,-0.8)^\mathsf{T}\), \(d_1=d_2=0.2\). The expression in parentheses is \(0.04-2(0.04)+4(0.04)=0.12\). The quadratic form is therefore \((25/3)(0.12)=1\), which is below \(4.605\); the candidate is included. This calculation uses the off-diagonal entries of \(\Sigma^{-1}\). Dropping them would change the statistic and would not give the stated confidence procedure.

Interpreting and Using the Result

The confidence level describes the long-run performance of the procedure: if the same sampling process and construction were repeated, the resulting random set would contain the fixed true mean in \(100(1-\alpha)\%\) of repetitions. In this known-covariance Gaussian model, that statement is exact for each sample size \(n\). It is not a claim that the fixed parameter has probability \(1-\alpha\) of lying in this particular observed set.

The covariance matrix enters through its inverse, so the calculation accounts for both the scale of each coordinate and dependence among coordinates. The number of degrees of freedom in the cutoff is the number of mean coordinates, \(p\). The sample size multiplies the quadratic form because averaging \(n\) independent observations reduces the covariance from \(\Sigma\) to \(\Sigma/n\). These pieces must be used together: changing the cutoff, the scaling, or the covariance matrix changes the coverage calibration.

This construction requires a known positive-definite covariance matrix and independent Gaussian observations with a common mean and covariance. If the covariance is estimated from the data, the pivot is no longer the chi-square pivot established here; a different exact calibration is needed. Likewise, under a non-Gaussian sampling model, the same quadratic form need not have an exact chi-square distribution.

Common Mistake

A frequent error is to use a one-dimensional normal cutoff for each coordinate and then call the resulting collection a joint \(100(1-\alpha)\%\) region. That procedure does not generally have the claimed joint coverage: the coordinates can be dependent, and even independent coordinate intervals each having a specified coverage do not automatically have that same coverage simultaneously. The correction is to use the single \(p\)-degree-of-freedom chi-square cutoff for the full quadratic form. Another common error is to omit the factor \(n\); doing so ignores the covariance reduction in the sample mean and gives the wrong region.

Key takeaway: With independent Gaussian observations and known positive-definite covariance, the statistic \(n(\bar X-\mu)^\mathsf{T}\Sigma^{-1}(\bar X-\mu)\) is exactly \(\chi^2_p\). Comparing it with \(q_{p,1-\alpha}\) produces a confidence ellipsoid whose coverage is exactly \(1-\alpha\).

Check Your Understanding

Use the pivot and its conditions to answer these questions.

  1. Which assumptions make the quadratic form in the mean have an exact chi-square distribution?
  2. For a \(p\)-dimensional mean, how many degrees of freedom are used for the confidence cutoff, and why?
  3. Explain why the confidence-region inequality contains a factor of \(n\).
  4. Suppose a candidate mean gives a quadratic-form value of \(6.2\), while the relevant chi-square cutoff is \(5.99\). Is that candidate included?
  5. Why does exact coverage not mean that the fixed true mean has probability \(1-\alpha\) of lying in one observed ellipsoid?
Clinical Biostats