Tutorials › Statistical Theory III - Theories of Inference, Multivariate Methods, and Contingency Tables › Choosing the Inferential Target: Parameter, Mean, or Future Outcome

Confidence and Prediction Regions · Tutorial 270 of 972

Choosing the Inferential Target: Parameter, Mean, or Future Outcome

Learn to identify what a linear-model question targets and choose the variance and interval that match it.

Intermediate 10 min read

What You'll Learn

  • Distinguish a coefficient contrast from a regression mean and a future response
  • Identify the assumptions needed for exact normal-theory inference
  • Derive the variance and t pivot for a coefficient contrast
  • Compare mean-response and future-response variances
  • Construct the matching interval and recognize target-selection errors

Start by Naming the Target

A linear-model question can ask about an unknown feature of the fitted mean structure, or about an outcome that has not yet been observed. Those are different inferential targets. Even when both are evaluated at the same design point, a regression mean and a future response have different variances and require different intervals. The first step is therefore not to look up a critical value; it is to state precisely what quantity is being estimated.

Consider the fixed-design normal linear model \(Y=X\beta+\varepsilon\), where \(Y\) is an \(n\)-vector, \(X\) is a known \(n\times p\) matrix of rank \(p\), \(\beta\) is an unknown \(p\)-vector, and \(\varepsilon\sim N_n(0,\sigma^2 I_n)\), with \(n>p\). Write \(\hat\beta=(X^{\mathsf T}X)^{-1}X^{\mathsf T}Y\), \(s^2=\mathrm{SSE}/(n-p)\), and \(\mathrm{SSE}=(Y-X\hat\beta)^{\mathsf T}(Y-X\hat\beta)\). All exact statements below are conditional on the fixed design matrix \(X\).

Definition: A coefficient contrast is a specified linear combination \(c^{\mathsf T}\beta\), where \(c\) is a known \(p\)-vector. A regression mean at a specified design vector \(x_0\) is \(x_0^{\mathsf T}\beta\). A future response at that design vector is \(Y_0=x_0^{\mathsf T}\beta+\varepsilon_0\), where \(\varepsilon_0\) is the new observation's error.

A regression mean is the expected response at the specified design point; it does not include the new observation's random error. In this tutorial, an exact prediction interval for \(Y_0\) assumes, in addition, that \(\varepsilon_0\sim N(0,\sigma^2)\) and that \(\varepsilon_0\) is independent of the original sample errors. That independence assumption matters: without it, the prediction pivot derived below need not have the stated distribution.

Match the Target to Its Variance

The least-squares estimator has covariance matrix \(\sigma^2(X^{\mathsf T}X)^{-1}\). Consequently, for any specified contrast \(c^{\mathsf T}\beta\), its estimator \(c^{\mathsf T}\hat\beta\) has variance \(\sigma^2 c^{\mathsf T}(X^{\mathsf T}X)^{-1}c\). For a mean at \(x_0\), use \(c=x_0\), giving variance \(\sigma^2 h_0\), where \(h_0=x_0^{\mathsf T}(X^{\mathsf T}X)^{-1}x_0\). A future response adds a new error with variance \(\sigma^2\), so its prediction-error variance is \(\sigma^2(1+h_0)\).

Key result: Under the stated normal-model assumptions, the exact two-sided \(100(1-\alpha)\%\) intervals are
$$ c^{\mathsf T}\hat\beta \ \pm\ t_{n-p,\,1-\alpha/2}\,s\sqrt{c^{\mathsf T}(X^{\mathsf T}X)^{-1}c} $$
for a coefficient contrast,
$$ x_0^{\mathsf T}\hat\beta \ \pm\ t_{n-p,\,1-\alpha/2}\,s\sqrt{h_0} $$
for the regression mean, and
$$ x_0^{\mathsf T}\hat\beta \ \pm\ t_{n-p,\,1-\alpha/2}\,s\sqrt{1+h_0} $$
for one future response. Here \(t_{\nu,\,q}\) is the \(q\)-quantile of the \(t\) distribution with \(\nu\) degrees of freedom.

The coefficient contrast and the regression mean have the same mathematical form when the mean is written as the contrast \(x_0^{\mathsf T}\beta\). The distinction is one of the question being asked: a contrast may compare coefficients or combine them in a scientifically specified way, while a regression mean refers to an expected response at a design point. The future-response interval is different even when its center is the same as the mean interval.

Why the Exact t Intervals Work

The relevant exact result follows from normality and the orthogonality of fitted and residual components. Let \(P=X(X^{\mathsf T}X)^{-1}X^{\mathsf T}\) be the projection onto the column space of \(X\), and let \(M=I_n-P\) be the residual projection. The least-squares estimation error is \((X^{\mathsf T}X)^{-1}X^{\mathsf T}\varepsilon\), while the residual vector is \(M\varepsilon\).

Theorem: For any fixed \(c\) with \(c^{\mathsf T}(X^{\mathsf T}X)^{-1}c>0\),
$$ \frac{c^{\mathsf T}\hat\beta-c^{\mathsf T}\beta} {s\sqrt{c^{\mathsf T}(X^{\mathsf T}X)^{-1}c}} \sim t_{n-p}. $$

Proof. Since \(\hat\beta-\beta=(X^{\mathsf T}X)^{-1}X^{\mathsf T}\varepsilon\), normality gives \(c^{\mathsf T}(\hat\beta-\beta)\sim N(0,\sigma^2 q)\), where \(q=c^{\mathsf T}(X^{\mathsf T}X)^{-1}c>0\). Also, \(\mathrm{SSE}=\varepsilon^{\mathsf T}M\varepsilon\). The two normal vectors \((X^{\mathsf T}X)^{-1}X^{\mathsf T}\varepsilon\) and \(M\varepsilon\) have zero cross-covariance because \(X^{\mathsf T}M=0\). Joint normality therefore makes them independent. The matrix \(M\) is an idempotent projection of rank \(n-p\), so \(\mathrm{SSE}/\sigma^2\sim\chi^2_{n-p}\); it is independent of the contrast estimator. Thus \(Z=[c^{\mathsf T}\hat\beta-c^{\mathsf T}\beta]/(\sigma\sqrt q)\sim N(0,1)\) is independent of \(U=\mathrm{SSE}/\sigma^2\sim\chi^2_{n-p}\). Since \(s^2=\sigma^2 U/(n-p)\), the displayed ratio is \(Z/\sqrt{U/(n-p)}\), which has a \(t_{n-p}\) distribution. \(\square\)

The theorem also gives the mean interval by taking \(c=x_0\), provided \(x_0\ne 0\). For the future response, the additional independent error changes the numerator, so it is useful to state and derive that result separately.

Theorem: Suppose, in addition to the fixed-design normal model, that \(\varepsilon_0\sim N(0,\sigma^2)\) and \(\varepsilon_0\) is independent of the original sample. If \(h_0=x_0^{\mathsf T}(X^{\mathsf T}X)^{-1}x_0\), then
$$ \frac{Y_0-x_0^{\mathsf T}\hat\beta}{s\sqrt{1+h_0}}\sim t_{n-p}. $$

Proof. The prediction error is \(Y_0-x_0^{\mathsf T}\hat\beta=\varepsilon_0-x_0^{\mathsf T}(\hat\beta-\beta)\). The two terms on the right are independent centered normal variables: the first is independent of the original sample by assumption, and the second is a linear function of the original normal errors. Their variances are \(\sigma^2\) and \(\sigma^2h_0\), respectively. Hence their difference is normal with variance \(\sigma^2(1+h_0)\). The residual sum of squares, and therefore \(s^2\), depends only on the original sample residuals. The original sample's least-squares estimation error is independent of those residuals by the orthogonality argument in the preceding proof, and \(\varepsilon_0\) is independent of the entire original sample. Thus the prediction error is independent of \(s^2\). Dividing its standardized normal form by the independent square root of \((\mathrm{SSE}/\sigma^2)/(n-p)\), a scaled \(\chi^2_{n-p}\) variable, gives a \(t_{n-p}\) variable. \(\square\)

Worked Examples

Worked Example: A Slope Contrast

Suppose a simple linear regression has \(n=10\), \(p=2\), and \(X^{\mathsf T}X=\begin{pmatrix}10&0\\0&10\end{pmatrix}\). The fitted coefficients are \(\hat\beta=(5,1.2)^{\mathsf T}\), and \(\mathrm{SSE}=18\). Find a 95% confidence interval for the slope \(\beta_1\).

The target is the coefficient contrast \(c^{\mathsf T}\beta\) with \(c=(0,1)^{\mathsf T}\), not a future response. The inverse matrix is \((X^{\mathsf T}X)^{-1}=\begin{pmatrix}0.1&0\\0&0.1\end{pmatrix}\), so \(c^{\mathsf T}(X^{\mathsf T}X)^{-1}c=0.1\). The residual degrees of freedom are \(10-2=8\), and \(s=\sqrt{18/8}=1.5\). Using \(t_{8,0.975}=2.306\), the standard error is \(1.5\sqrt{0.1}=0.4743\), and the margin is \(2.306(0.4743)=1.094\). The interval is \(1.2\pm1.094=(0.106,2.294)\), to three decimal places.

Worked Example: A Regression Mean at a Design Point

Use the same fitted model and let \(x_0=(1,2)^{\mathsf T}\). Find a 95% confidence interval for the mean response at \(x_0\).

The target is the expected response \(x_0^{\mathsf T}\beta\). Its estimate is \(x_0^{\mathsf T}\hat\beta=5+2(1.2)=7.4\). The leverage quantity for this point is \(h_0=x_0^{\mathsf T}(X^{\mathsf T}X)^{-1}x_0=0.1+4(0.1)=0.5\). Thus the standard error is \(s\sqrt{h_0}=1.5\sqrt{0.5}=1.060660\ldots\). With the same \(t\) critical value, the margin is \(2.306(1.5\sqrt{0.5})=2.445882\ldots\approx2.446\), so the confidence interval is approximately \(7.4\pm2.446=(4.954,9.846)\).

Worked Example: One Future Response at the Same Point

At \(x_0=(1,2)^{\mathsf T}\), now find a 95% prediction interval for one future response, assuming the new error is independent of the original sample and is \(N(0,\sigma^2)\).

The predicted center remains \(7.4\), but the target is now a future outcome, not its expectation. The variance factor is \(1+h_0=1.5\), so the standard error is \(s\sqrt{1+h_0}=1.5\sqrt{1.5}=1.837\). The margin is \(2.306(1.837)=4.236\), giving \(7.4\pm4.236=(3.164,11.636)\). The interval is wider than the mean interval because it accounts for both uncertainty in estimating the mean and the variability of the new error. If independence and the stated distribution of that new error are not assumed, this exact \(t\)-prediction claim is not justified.

A Practical Target-Selection Check

Before calculating, translate the question into one of three forms. A question about a slope, intercept, or specified linear combination of coefficients targets \(c^{\mathsf T}\beta\). A question about the expected response at a specified point targets \(x_0^{\mathsf T}\beta\). A question asking where one new observation is likely to fall targets \(Y_0\). The mean and future-response estimates have the same center, but their uncertainty is not the same.

Question asks aboutTargetVariance factor multiplying \(\sigma^2\)
A specified combination of coefficients\(c^{\mathsf T}\beta\)\(c^{\mathsf T}(X^{\mathsf T}X)^{-1}c\)
The expected response at \(x_0\)\(x_0^{\mathsf T}\beta\)\(h_0\)
One future response at \(x_0\)\(Y_0\)\(1+h_0\)

A frequent mistake is to use a prediction interval whenever a problem mentions a particular design point. That reasoning confuses “the mean response at this point” with “a response that will be observed at this point.” The correction is to ask whether the target includes a new random error. If it does, include the \(1\) in \(1+h_0\); if it does not, use \(h_0\). Conversely, using a mean interval to describe a future individual omits the new outcome's variability and produces an interval that is too narrow for that target.

These formulas concern one scalar target at a time. When a question asks for simultaneous coverage of several contrasts or means, a collection of separate 95% intervals does not automatically give 95% joint coverage. That is a different inferential task. For a single target, however, naming the quantity correctly identifies the appropriate standard error and exact \(t\) interval.

Check Your Understanding

For each situation, name the target and identify the correct variance factor.

  1. A researcher wants a confidence interval for the difference between two specified regression coefficients. What target form should be used?
  2. At \(x_0\), what distinguishes the variance factor for a mean interval from the factor for a future-response interval?
  3. Why does a prediction interval need an assumption about the new error \(\varepsilon_0\)? State the needed independence and distribution conditions.
  4. If a question asks for the expected outcome at a patient’s covariate values, should the interval include the additional \(1\) in its variance factor? Explain.
  5. For the slope contrast in the worked example, what are the residual degrees of freedom, and why are they not \(n\)?
Clinical Biostats