Why Some Mean-Response Intervals Are Wider
A fitted regression surface does not estimate its mean response equally precisely at every design point. Even when the same residual standard deviation and confidence level are used, some pointwise intervals are wider than others. The geometric quantity responsible is the quadratic form \(x_0^{\mathsf T}(X^{\mathsf T}X)^{-1}x_0\): it is the variance factor for estimating the mean response at \(x_0\).
At a row of the design matrix, this quantity is the usual diagonal leverage of that observation. A larger value means that the fitted mean at that point has greater sampling variance, and therefore a wider pointwise confidence interval when the other ingredients are held fixed. The comparison is about the uncertainty in a mean response, not about the variability of an individual future outcome.
Model, Leverage, and Interval Width
Assume the fixed-design normal linear model \(Y=X\beta+\varepsilon\), where \(X\) is an \(n\times p\) matrix of fixed, known design values with rank \(p\), \(n>p\), and \(\varepsilon\sim N_n(0,\sigma^2I_n)\), with \(\sigma^2>0\). The least-squares estimator is \(\hat\beta=(X^{\mathsf T}X)^{-1}X^{\mathsf T}Y\). For a specified vector \(x_0\in\mathbb R^p\), the mean response is \(\mu_0=x_0^{\mathsf T}\beta\), estimated by \(\hat\mu_0=x_0^{\mathsf T}\hat\beta\). Let \(s^2=\operatorname{SSE}/(n-p)\), where \(\operatorname{SSE}=(Y-X\hat\beta)^{\mathsf T}(Y-X\hat\beta)\).
The inverse \( (X^{\mathsf T}X)^{-1}\) is positive definite because \(X\) has full column rank. Consequently \(q_0>0\) for every nonzero \(x_0\), and \(q_0=0\) exactly when \(x_0=0\). The interval width follows from the variance of \(\hat\mu_0\) and the exact \(t\) calibration.
Why the Variance Factor Controls Width
First, write \(\hat\beta-\beta=(X^{\mathsf T}X)^{-1}X^{\mathsf T}\varepsilon\). Since the error covariance matrix is \(\sigma^2I_n\), this gives \(\operatorname{Cov}(\hat\beta)=\sigma^2(X^{\mathsf T}X)^{-1}\). Multiplying by \(x_0^{\mathsf T}\) and \(x_0\) gives the variance of the fitted mean.
For completeness, the exact calibration uses the residual variance estimate as well as this variance factor. Define \(A=(X^{\mathsf T}X)^{-1}X^{\mathsf T}\), so \(\hat\beta-\beta=A\varepsilon\), and let \(M=I_n-H\). The residual vector is \(MY\), because \(MX=0\), and \(\operatorname{SSE}=\varepsilon^{\mathsf T}M\varepsilon\). The matrix \(M\) is symmetric and idempotent, with rank \(n-p\). Thus the normal projection result gives \(\operatorname{SSE}/\sigma^2\sim\chi^2_{n-p}\).
The estimator \(A\varepsilon\) and the residual vector \(M\varepsilon\) are jointly normal. They are independent because their cross-covariance is zero: \(A(\sigma^2I_n)M=\sigma^2AM=0\), as \(AM=(X^{\mathsf T}X)^{-1}X^{\mathsf T}(I_n-H)=0\). When \(q_0>0\), it follows that \((\hat\mu_0-\mu_0)/(\sigma\sqrt{q_0})\sim N(0,1)\), independently of \((n-p)s^2/\sigma^2\sim\chi^2_{n-p}\). Dividing the first quantity by the square root of the second divided by its degrees of freedom yields the \(t_{n-p}\) pivot.
The central \(t\) quantile therefore puts probability \(1-\alpha\) between its two signed critical values. Solving those two inequalities for \(\mu_0\) gives the stated interval. Its endpoints differ by \(2t_{n-p,\,1-\alpha/2}s\sqrt{q_0}\), proving the width formula. If \(q_0=0\), positive definiteness implies \(x_0=0\), so the target is identically zero and the pivot division is not defined; this is why that case must be treated separately. \(\square\)
Leverage Across the Design
At an observed design point \(x_i^{\mathsf T}\), the interval width is \(2t_{n-p,\,1-\alpha/2}s\sqrt{h_{ii}}\). Thus, for two observed points \(i\) and \(j\), within the same fitted model and at the same confidence level, their widths have ratio \(\sqrt{h_{ii}/h_{jj}}\), provided both leverages are positive. The square root matters: doubling leverage multiplies width by \(\sqrt{2}\), not by 2.
The diagonal leverages also have a useful global constraint. Since \(H\) is an idempotent projection of rank \(p\), its trace is \(p\). The trace is the sum of its diagonal elements, so the average observed-point leverage is \(p/n\).
To verify the result, use the trace identity \(\operatorname{tr}(BC)=\operatorname{tr}(CB)\) for conformable matrices:
Dividing by \(n\) proves the average claim. \(\square\)
Worked Example: Comparing the Center and an Endpoint
Consider a simple linear regression with an intercept and design values \(x=-2,-1,0,1,2\). In the column order intercept, slope, the rows of \(X\) are \((1,x)\), so \(X^{\mathsf T}X=\begin{pmatrix}5&0\\0&10\end{pmatrix}\) and \((X^{\mathsf T}X)^{-1}=\begin{pmatrix}1/5&0\\0&1/10\end{pmatrix}\). At a design value \(z\), use \(x_0=(1,z)^{\mathsf T}\). Then \(q(z)=1/5+z^2/10\).
For \(z=0\), \(q(0)=1/5\). For the observed endpoint \(z=2\), \(q(2)=1/5+4/10=3/5\). The endpoint has three times the variance factor of the center, so its interval is \(\sqrt{3}\) times as wide if the same \(s\) and critical value are used.
For a fully numerical check, take observed responses \(y=10+x+r\), where the residual vector in the order \(x=-2,-1,0,1,2\) is \(r=(\sqrt{2},0,-2\sqrt{2},0,\sqrt{2})^{\mathsf T}\). Its entries sum to zero, and their products with the \(x\)-values sum to \(-2\sqrt{2}+2\sqrt{2}=0\), so it is orthogonal to both columns of \(X\). Its squared length is \(2+8+2=12\). Therefore \(\hat\beta=(10,1)^{\mathsf T}\), \(\operatorname{SSE}=12\), and \(s^2=12/(5-2)=4\), so \(s=2\).
At 95% confidence, \(t_{3,0.975}\approx3.182\). The center interval has width \(2(3.182)(2)\sqrt{1/5}\approx5.69\). The endpoint interval has width \(2(3.182)(2)\sqrt{3/5}\approx9.86\). The ratio \(9.86/5.69\approx1.73\) agrees with \(\sqrt{3}\approx1.732\). The fitted centers are \(10\) and \(12\), respectively, so the intervals are approximately \([7.15,12.85]\) and \([7.07,16.93]\).
Worked Example: Checking the Average Leverage
In the same five-point intercept-and-slope design, the leverage at \(x\) is \(h(x)=1/5+x^2/10\). The values at \(x=-2,-1,0,1,2\) are \(3/5,3/10,1/5,3/10,3/5\).
Their sum is \(3/5+3/10+1/5+3/10+3/5=2\), which equals the number of columns \(p=2\). Their average is \(2/5\), matching \(p/n=2/5\). The endpoint leverage \(3/5\) is larger than the average, while the center leverage \(1/5\) is smaller. The result constrains the total; it does not force equal widths or equal leverage at every point.
Worked Example: Leverage in a Noncentered Design
Let the simple-regression design values be \(0,1,2\), again with an intercept. Now \(X^{\mathsf T}X=\begin{pmatrix}3&3\\3&5\end{pmatrix}\). Its determinant is \(15-9=6\), so \((X^{\mathsf T}X)^{-1}=\frac{1}{6}\begin{pmatrix}5&-3\\-3&3\end{pmatrix}\). For \(x_0=(1,z)^{\mathsf T}\), direct multiplication gives \(q(z)=(5-6z+3z^2)/6\).
At the observed middle point \(z=1\), \(q(1)=(5-6+3)/6=1/3\). At the observed endpoint \(z=2\), \(q(2)=(5-12+12)/6=5/6\). Thus, with the same residual estimate and critical value, the endpoint interval is \(\sqrt{(5/6)/(1/3)}=\sqrt{5/2}\approx1.58\) times as wide as the middle-point interval. As a check, the average of the three observed leverages is \((q(0)+q(1)+q(2))/3=(5/6+1/3+5/6)/3=2/3=p/n\).
Reading Width Comparisons Carefully
The formula isolates the geometric contribution to precision: \(q_0\) enters the half-width through \(\sqrt{q_0}\). Comparisons across points in the same design hold the degrees of freedom and critical value fixed, as well as the common residual estimate \(s\). If comparing separately fitted models, those other quantities may differ too, so the quadratic form alone need not determine which interval is wider.
A common mistake is to say that an interval at a point with twice the leverage must be twice as wide. The half-width is proportional to the square root of leverage, so the multiplier is \(\sqrt{2}\). Another mistake is to apply the exact \(1-\alpha\) coverage statement to \(x_0=0\): there the target is known to equal zero and the degenerate interval covers with probability 1. Finally, the exact interval here concerns the mean response. An interval for a future individual outcome has a different variance calculation and is not obtained merely by relabeling this mean-response interval.
Check Your Understanding
Use the definitions and results above to answer the following questions.
- For two points in the same design, the variance factors are \(0.2\) and \(0.8\). What is the ratio of their pointwise interval widths?
- Why does the exact \(t\)-pivot derivation require \(q_0>0\)? What is the coverage of the degenerate interval when \(q_0=0\)?
- A full-rank design has \(n=12\) observations and \(p=3\) columns. What is the sum and average of its diagonal leverages?
- At an observed design point, the leverage is four times that at another point. By what factor do their interval widths differ when the model, confidence level, and \(s\) are the same?
- Explain why the mean-response interval width formula should not be used as the interval width for a future individual outcome.