Tutorials › Statistical Theory III - Theories of Inference, Multivariate Methods, and Contingency Tables › Linear Transformations of Confidence Regions

Confidence and Prediction Regions · Tutorial 250 of 972

Linear Transformations of Confidence Regions

Map confidence regions through linear transformations, calculate their transformed covariance and shape, and distinguish an image region from a directly calibrated region.

Intermediate 11 min read

What You'll Learn

  • Write the image of a confidence ellipsoid under a linear transformation
  • Calculate the transformed estimate and covariance matrix
  • Identify when the image is a full-dimensional ellipsoid or a degenerate one
  • Distinguish projected coverage from direct exact calibration
  • Recognize common errors involving rank, covariance, and coverage

Why Transform a Confidence Region?

A confidence region for a coefficient vector can answer questions about many derived quantities: sums of coefficients, differences, or a vector of contrasts. A linear transformation carries the original region to a region for those quantities. To interpret that image correctly, it is important to distinguish its geometric shape from a region calibrated directly for the transformed parameter.

We work with the fixed-design normal linear model \(Y=X\beta+\varepsilon\), where \(X\) is an \(n\) by \(p\) matrix of full column rank, \(\varepsilon\sim N(0,\sigma^2 I_n)\), and \(\nu=n-p>0\). Write \(\hat{\beta}\) for the least-squares estimator and \(s^2=\operatorname{SSE}/\nu\). The exact \(1-\alpha\) confidence ellipsoid for \(\beta\), with unknown error variance, is

$$ \mathcal C_\beta = \left\{b: (b-\hat{\beta})'\left[s^2(X'X)^{-1}\right]^{-1}(b-\hat{\beta}) \leq pF_{p,\nu}(1-\alpha) \right\}. $$

Here \(F_{p,\nu}(1-\alpha)\) is the \(1-\alpha\) quantile of the \(F\) distribution with \(p\) and \(\nu\) degrees of freedom. The estimated covariance matrix of \(\hat{\beta}\) is \(s^2(X'X)^{-1}\). The earlier material on joint contrast ellipsoids gives the corresponding exact construction for a full-rank contrast vector.

The Image Under a Linear Map

Let \(A\) be a specified \(k\) by \(p\) matrix, and let the target parameter be \(\gamma=A\beta\). The image of a set \(\mathcal C\) under \(A\) means the set of all transformed points \(Ab\) for \(b\in\mathcal C\). The center of the image of \(\mathcal C_\beta\) is \(A\hat{\beta}\). The key question is whether the image has full dimension \(k\).

Definition: If \(A\) has full row rank \(k\), the image of the coefficient ellipsoid is
$$ A\mathcal C_\beta = \left\{\gamma: (\gamma-A\hat{\beta})' \left[A s^2(X'X)^{-1}A'\right]^{-1} (\gamma-A\hat{\beta}) \leq pF_{p,\nu}(1-\alpha) \right\}. $$
The matrix \(A s^2(X'X)^{-1}A'\) is positive definite in this case. It is the estimated covariance matrix of \(A\hat{\beta}\).

For any fixed matrix \(A\), covariance transforms by multiplication on both sides:

$$ \operatorname{Cov}(A\hat{\beta}) =A\operatorname{Cov}(\hat{\beta})A' =\sigma^2 A(X'X)^{-1}A'. $$

Replacing \(\sigma^2\) by \(s^2\) gives the estimated covariance used in the ellipsoid. This is a covariance transformation, not an arbitrary change in the region's scale: the threshold in the displayed image is still the threshold of the original \(p\)-dimensional region.

Why the Image Is an Ellipsoid

Theorem: Let \(V\) be a positive-definite \(p\) by \(p\) matrix, let \(c>0\), and let \[ \mathcal E=\{b:(b-\hat b)'V^{-1}(b-\hat b)\leq c\}. \] If \(A\) is a full-row-rank \(k\) by \(p\) matrix, then \[ A\mathcal E = \{\gamma:(\gamma-A\hat b)'(AVA')^{-1}(\gamma-A\hat b)\leq c\}. \]

To prove the result, write \(x=V^{-1/2}(b-\hat b)\). Then \(\mathcal E\) corresponds to \(\|x\|^2\leq c\), and the displacement in the image is \(d=\gamma-A\hat b=Bx\), where \(B=AV^{1/2}\). Since \(A\) has full row rank, \(BB'=AVA'\) is invertible. For any \(d\), the vector

$$ x_0=B'(BB')^{-1}d $$

satisfies \(Bx_0=d\). Every other solution has the form \(x=x_0+z\), where \(Bz=0\). Also \(x_0'z=d'(BB')^{-1}Bz=0\), so \(\|x\|^2=\|x_0\|^2+\|z\|^2\). Thus \(x_0\) is the solution with smallest squared norm, and

$$ \|x_0\|^2=d'(BB')^{-1}d=d'(AVA')^{-1}d. $$

There is a solution with \(\|x\|^2\leq c\) exactly when this minimum is at most \(c\). This proves the stated description of the image. \(\square\)

This result also explains the rank condition. If \(A\) has full row rank, every displacement in the \(k\)-dimensional target space can be reached, and \(AVA'\) is positive definite. If \(A\) is rank-deficient, the image lies in a lower-dimensional affine subspace. In that case \(AVA'\) is singular, and an inverse-based ellipsoid equation in the whole target space is not valid. The image can instead be described on its affine subspace using a generalized inverse and an explicit range restriction.

Worked Example: Transforming Two Coefficients to a Sum and Difference

Suppose a two-dimensional ellipsoid has center \(\hat{\beta}=(2,1)'\) and estimated covariance matrix \(V=\begin{pmatrix}4&1\\1&2\end{pmatrix}\), with threshold \(c=5\). Transform to the sum and difference using \(A=\begin{pmatrix}1&1\\1&-1\end{pmatrix}\).

The matrix \(A\) is invertible, so the image remains a two-dimensional ellipsoid. Its center is \[ A\hat{\beta}=(2+1,\,2-1)'=(3,1)'. \] The transformed covariance is \[ AVA' = \begin{pmatrix}1&1\\1&-1\end{pmatrix} \begin{pmatrix}4&1\\1&2\end{pmatrix} \begin{pmatrix}1&1\\1&-1\end{pmatrix} = \begin{pmatrix}8&2\\2&4\end{pmatrix}. \] For example, the variance of the sum is \(4+2(1)+2=8\), and the variance of the difference is \(4-2(1)+2=4\). The covariance of the sum and difference is \(4-2=2\). The determinant is \(8(4)-2(2)=28>0\), confirming positive definiteness.

The inverse matrix is \(\frac{1}{28}\begin{pmatrix}4&-2\\-2&8\end{pmatrix}\). Therefore the image region is \[ \left\{(u,v)':\frac{1}{28} \begin{pmatrix}u-3&v-1\end{pmatrix} \begin{pmatrix}4&-2\\-2&8\end{pmatrix} \begin{pmatrix}u-3\\v-1\end{pmatrix} \leq 5 \right\}. \] Because this transformation is invertible, it neither discards directions nor changes the coverage probability of the original region.

Projection, Coverage, and Direct Calibration

When \(A\) has fewer rows than the original parameter vector has components, it projects a higher-dimensional region onto a lower-dimensional target. The image of a \(1-\alpha\) confidence region for \(\beta\) is a confidence region for \(A\beta\): whenever \(\beta\in\mathcal C_\beta\), it follows that \(A\beta\in A\mathcal C_\beta\). Consequently,

$$ P(A\beta\in A\mathcal C_\beta)\geq P(\beta\in\mathcal C_\beta)=1-\alpha. $$

The inequality can be strict because a projected point may belong to the image even when the original parameter vector is outside the original ellipsoid. Thus an image region is not generally an exact \(1-\alpha\) region for the transformed parameter.

For a full-row-rank \(k\) by \(p\) matrix \(A\), a directly calibrated exact region for \(A\beta\) uses the \(k\)-dimensional threshold instead:

$$ \left\{\gamma: (\gamma-A\hat{\beta})' \left[A s^2(X'X)^{-1}A'\right]^{-1} (\gamma-A\hat{\beta}) \leq kF_{k,\nu}(1-\alpha) \right\}. $$

Under the stated normal-model assumptions, this region has exact coverage \(1-\alpha\). Its center and covariance estimate match those of the image, but its threshold is calibrated for dimension \(k\), not \(p\). When \(A\) is square and invertible, \(k=p\) and the image and directly calibrated region coincide. When the map reduces dimension, do not silently replace the image threshold by the direct threshold: that creates a different region.

Worked Example: Mapping a Three-Dimensional Ellipsoid to a Scalar

Consider the region \[ \mathcal E=\{b:(b-\hat b)'V^{-1}(b-\hat b)\leq 12\}, \] where \(\hat b=(1,0,2)'\) and \(V=\operatorname{diag}(1,4,9)\). Find its image under \(A=(1,2,-1)\).

The transformed center is \(A\hat b=1+2(0)-2=-1\). The transformed covariance shape is \[ AVA'=1^2(1)+2^2(4)+(-1)^2(9)=1+16+9=26. \] Since \(A\) has rank one, the image is the interval \[ \{\gamma:(\gamma+1)^2/26\leq 12\} = [-1-\sqrt{312},\,-1+\sqrt{312}]. \]

The same result follows by maximizing the displacement \(A(b-\hat b)\) over the ellipsoid. In whitened coordinates \(x=V^{-1/2}(b-\hat b)\), the constraint is \(\|x\|^2\leq12\) and the displacement is \((AV^{1/2})x\). Its largest absolute value is \(\sqrt{12}\,\|AV^{1/2}\|=\sqrt{12}\sqrt{26}=\sqrt{312}\), by the Cauchy–Schwarz inequality, with equality when \(x\) is proportional to \((AV^{1/2})'\). Hence both interval endpoints are attained.

Worked Example: A Rank-Deficient Map Produces a Degenerate Ellipsoid

Take a three-dimensional ball \(\mathcal E=\{b:\|b-\hat b\|^2\leq4\}\), with \(\hat b=(1,0,0)'\), and map it using \[ A=\begin{pmatrix}1&1&0\\2&2&0\end{pmatrix}. \] The second row is twice the first, so \(A\) has rank one, not two. The image center is \(A\hat b=(1,2)'\). Every image displacement has the form \((t,2t)'\).

Writing \(h=b-\hat b\), the first coordinate of the displacement is \(t=h_1+h_2\). Under \(h_1^2+h_2^2+h_3^2\leq4\), Cauchy–Schwarz gives \[ |t|\leq\sqrt{h_1^2+h_2^2}\sqrt{1^2+1^2}\leq2\sqrt{2}. \] Both bounds are attainable at \(h=(\sqrt{2},\sqrt{2},0)'\) and its negative. The image is therefore the line segment \[ \{(1+t,\,2+2t)': -2\sqrt{2}\leq t\leq2\sqrt{2}\}. \]

The transformed shape matrix is \(AA'=\begin{pmatrix}2&4\\4&8\end{pmatrix}\), whose determinant is \(16-16=0\). It is singular because the image has no variation away from the line with direction \((1,2)'\). Treating this segment as a full two-dimensional ellipse and inverting \(AA'\) would be an error.

Common Mistakes and Practical Use

Linear transformations make it possible to report uncertainty for scientifically meaningful combinations of coefficients without changing the underlying model. The transformed covariance reveals how uncertainty and dependence carry over: even if the original coefficient estimates have nonzero covariance, a particular transformation may increase, decrease, or remove covariance between transformed components. The region's orientation and scale are determined by \(AVA'\), while its dimension is determined by the rank of \(A\).

  • Using \(A'VA\) instead of \(AVA'\). For an \(k\) by \(p\) map, the transformed covariance must be \(AVA'\), which is \(k\) by \(k\).
  • Assuming every image is full-dimensional. Check the rank of \(A\). A rank-deficient map gives a lower-dimensional image and a singular transformed covariance matrix.
  • Calling the image exactly calibrated. The image inherits at least the original region's coverage, but projection can make coverage exceed the nominal level. A directly calibrated region uses the dimension of the transformed parameter.
  • Changing the threshold while claiming to describe the same image. The image retains the original threshold. Replacing it with a dimension-specific threshold produces a different confidence region.
Key takeaway: Transform the center as \(A\hat{\beta}\) and the covariance as \(A\operatorname{Cov}(\hat{\beta})A'\). A full-row-rank map gives an ellipsoid with the original image threshold; a rank-deficient map gives a degenerate image. For exact nominal coverage after reducing dimension, use direct calibration for the transformed parameter.

Check Your Understanding

Use the distinction between an image region and a directly calibrated region to answer these questions.

  1. If a full-row-rank transformation maps a five-dimensional coefficient ellipsoid to a two-dimensional target, what covariance matrix determines the image's shape?
  2. Why does a full-row-rank \(A\) imply that \(AVA'\) is positive definite when \(V\) is positive definite?
  3. What does the image's coverage guarantee say, and why need it not be exact?
  4. What happens to the geometry and covariance matrix when the transformation is rank-deficient?
  5. When does the image of an exact coefficient region coincide with the directly calibrated region for the transformed parameter?
Clinical Biostats