Tutorials › Regression Analysis (Undergraduate) › Pointwise Bands Versus Whole-Curve Uncertainty

Choosing and Explaining Nonlinear Forms · Tutorial 488 of 991

Pointwise Bands Versus Whole-Curve Uncertainty

Learn how pointwise intervals differ from simultaneous confidence bands, how to construct each for a regression curve, and what their coverage statements mean.

Advanced 10 min read

What You'll Learn

  • Define pointwise and simultaneous uncertainty for a fitted mean curve.
  • State the regression assumptions underlying the confidence intervals and bands.
  • Calculate a pointwise interval using a t critical value.
  • Construct a Working–Hotelling simultaneous band for a curve linear in its coefficients.
  • Use Bonferroni intervals for simultaneous coverage at a finite set of predictor values.
  • Explain why a collection of 95% pointwise intervals is not automatically a 95% whole-curve band.

Why the Coverage Target Matters

An uncertainty band can look like one continuous ribbon around a fitted curve, but its visual appearance does not determine what its coverage statement means. A band made by calculating a 95% interval separately at each predictor value answers a point-by-point question. A band designed for the whole curve answers a stronger question: whether the entire true mean curve is covered at once.

The distinction matters when interpreting a plot. If a pointwise band is labelled “95%,” that does not mean there is a 95% probability that the whole curve lies inside it. To make a whole-curve statement, the calculation must account for uncertainty across the collection of predictor values, not only at one value at a time.

Definition: A pointwise confidence interval has its stated coverage for the mean response at one fixed predictor value. A simultaneous confidence band is constructed so that, with its stated confidence level (or at least that level), the band covers the mean curve at every predictor value in a specified domain at the same time.

Model and Assumptions

For the formulas below, consider a regression curve that may be nonlinear in the predictor but is linear in its \(p\) coefficients. Write the mean response at predictor value \(x\) as \(m(x)=\mathbf{b}(x)^\mathsf{T}\boldsymbol{\beta}\), where \(\mathbf{b}(x)\) is a specified vector of \(p\) basis terms and \(\boldsymbol{\beta}\) is the coefficient vector. For example, a quadratic curve uses \(\mathbf{b}(x)=(1,x,x^2)^\mathsf{T}\). The observed response is the mean plus an error.

$$ Y_i=\mathbf{b}(x_i)^\mathsf{T}\boldsymbol{\beta}+\varepsilon_i,\qquad i=1,\ldots,n $$

The pointwise t intervals and the simultaneous band derived here rely on the same model conditions: the chosen mean form is correct, the design matrix has full column rank, and the errors are independent with mean zero and common variance \(\sigma^2\). For the exact t and F results, assume also that the errors are normally distributed. In matrix terms, \(\boldsymbol{\varepsilon}\sim N(\mathbf{0},\sigma^2\mathbf{I})\). These conditions describe uncertainty in the fitted mean curve under a fixed model; they do not include uncertainty from choosing the curve form.

Let \(\mathbf{X}\) be the \(n\)-by-\(p\) design matrix whose \(i\)th row is \(\mathbf{b}(x_i)^\mathsf{T}\). The least-squares coefficient estimate is \(\hat{\boldsymbol{\beta}}\), and the estimated mean at \(x\) is \(\hat{m}(x)=\mathbf{b}(x)^\mathsf{T}\hat{\boldsymbol{\beta}}\). The estimated standard error of that mean is

$$ SE\{\hat{m}(x)\} =s\sqrt{\mathbf{b}(x)^\mathsf{T}(\mathbf{X}^\mathsf{T}\mathbf{X})^{-1}\mathbf{b}(x)} $$

Here \(s\) estimates the error standard deviation using the residual sum of squares divided by \(df=n-p\). This standard error is for estimating the mean curve at \(x\), not for predicting the response of a new individual observation.

Pointwise Confidence Intervals

At one predictor value \(x_0\), the estimated mean \(\hat{m}(x_0)\) is compared with its standard error. Under the stated assumptions, the standardized estimation error follows a t distribution with \(n-p\) degrees of freedom. Thus a two-sided pointwise \(100(1-\alpha)\%\) confidence interval is

$$ \hat{m}(x_0)\ \mathbin{\pm}\ t_{1-\alpha/2,\,n-p}\,SE\{\hat{m}(x_0)\} $$

The coverage claim is for the chosen fixed \(x_0\): over repeated samples under the model, this procedure covers \(m(x_0)\) in \(100(1-\alpha)\%\) of samples. If a different predictor value is selected, its interval also has that pointwise coverage. Those separate statements do not ensure that all the intervals cover their respective means in the same sample.

Worked Example: A Pointwise Interval at One Dose

Suppose a hypothetical study records responses at 20 dose levels and fits a quadratic mean curve, so \(p=3\) and \(df=20-3=17\). Assume the model conditions stated above are appropriate for this calculation. The fitted curve is \(\hat{m}(x)=10.2+2.5x-0.1x^2\), where \(x\) is dose in mg/kg and the response is measured in response units. At \(x_0=4\) mg/kg, the fitted mean is 18.6 response units, and the reported standard error is 0.42 response units.

For a 95% pointwise interval, the t critical value with 17 degrees of freedom is approximately 2.110. The margin of error is

$$ 2.110(0.42)=0.8862\text{ response units}. $$

Therefore the interval is

$$ 18.6\pm0.8862=(17.7138,\ 19.4862), $$

or approximately 17.71 to 19.49 response units. This is a 95% pointwise interval for the mean response at 4 mg/kg. It is not, by itself, a 95% statement about the curve over all doses.

Simultaneous Bands for a Whole Curve

A standard simultaneous band for a regression curve linear in its coefficients is the Working–Hotelling band. It uses a larger critical value than the pointwise t interval because its target is simultaneous coverage across predictor values. For a two-sided band with confidence level \(1-\alpha\), the multiplier is \(\sqrt{pF_{p,n-p;1-\alpha}}\), where \(F_{p,n-p;1-\alpha}\) is the \(1-\alpha\) quantile of an F distribution with \(p\) and \(n-p\) degrees of freedom.

$$ \hat{m}(x)\ \mathbin{\pm}\ \sqrt{pF_{p,n-p;1-\alpha}}\, s\sqrt{\mathbf{b}(x)^\mathsf{T}(\mathbf{X}^\mathsf{T}\mathbf{X})^{-1}\mathbf{b}(x)} $$

Under the stated normal linear model, this band covers the mean curve at every \(x\) in the domain simultaneously with probability at least \(1-\alpha\) over repeated samples. The multiplier comes from a confidence region for the entire coefficient vector, rather than from a separate test at each \(x\).

Why the Simultaneous Band Works

The justification begins with the joint uncertainty in \(\hat{\boldsymbol{\beta}}\). Under the model assumptions, the following ellipsoid is a \(100(1-\alpha)\%\) confidence region for the coefficient vector:

$$ (\hat{\boldsymbol{\beta}}-\boldsymbol{\beta})^\mathsf{T} \mathbf{X}^\mathsf{T}\mathbf{X} (\hat{\boldsymbol{\beta}}-\boldsymbol{\beta}) \leq p s^2 F_{p,n-p;1-\alpha} $$

If the true coefficient vector lies in this ellipsoid, then the Cauchy–Schwarz inequality gives, for any predictor value \(x\),

$$ \left|\mathbf{b}(x)^\mathsf{T}(\hat{\boldsymbol{\beta}}-\boldsymbol{\beta})\right| \leq \sqrt{\mathbf{b}(x)^\mathsf{T}(\mathbf{X}^\mathsf{T}\mathbf{X})^{-1}\mathbf{b}(x)} \sqrt{(\hat{\boldsymbol{\beta}}-\boldsymbol{\beta})^\mathsf{T} \mathbf{X}^\mathsf{T}\mathbf{X} (\hat{\boldsymbol{\beta}}-\boldsymbol{\beta})}. $$

The expression on the left is \(|\hat{m}(x)-m(x)|\). Substituting the ellipsoid’s upper bound into the second factor yields

$$ |\hat{m}(x)-m(x)| \leq s\sqrt{\mathbf{b}(x)^\mathsf{T}(\mathbf{X}^\mathsf{T}\mathbf{X})^{-1}\mathbf{b}(x)} \sqrt{pF_{p,n-p;1-\alpha}}. $$

This inequality holds for every \(x\) whenever the coefficient vector is inside the ellipsoid. Since the ellipsoid has the stated confidence level, the resulting band has at least that simultaneous coverage. In contrast, a pointwise interval controls the error for one selected \(\mathbf{b}(x)\) at a time, not for all such vectors together.

Worked Example: A Simultaneous Band at the Same Dose

Continue with the hypothetical quadratic fit above: \(n=20\), \(p=3\), and \(df=17\). For a 95% Working–Hotelling band, suppose the F critical value is \(F_{3,17;0.95}=3.197\). The simultaneous multiplier is

$$ \sqrt{3(3.197)}=\sqrt{9.591}\approx3.097. $$

At \(x=4\) mg/kg, the fitted mean is 18.6 response units and its standard error is 0.42 response units, as before. The simultaneous-band margin is

$$ 3.097(0.42)=1.30074\text{ response units}. $$

Thus the band at this dose runs from

$$ 18.6\pm1.30074=(17.29926,\ 19.90074), $$

or approximately 17.30 to 19.90 response units. This is wider than the pointwise interval because it is designed to cover the whole mean curve simultaneously, not only the mean at 4 mg/kg. The band is interpreted as a whole-curve procedure; its limits at this one dose are not a new pointwise 95% interval.

Simultaneous Coverage at a Finite Set of Values

Sometimes the question concerns a few specified predictor values rather than every point on a continuous curve. One simple option is the Bonferroni method. For \(q\) specified values, make each two-sided interval with confidence level \(1-\alpha/q\). The probability that at least one interval misses is no greater than the sum of the individual miss probabilities, which is at most \(q(\alpha/q)=\alpha\). This guarantees at least \(1-\alpha\) joint coverage for those \(q\) means, without requiring independence among the intervals. It does not guarantee coverage between the selected values.

Worked Example: Bonferroni Intervals at Three Doses

For the same hypothetical model, consider only the three specified doses \(x=2,4,6\) mg/kg. Suppose their fitted means are 14.2, 18.6, and 22.1 response units, and their standard errors are 0.30, 0.42, and 0.65 response units, respectively. With \(q=3\), Bonferroni intervals for at least 95% joint coverage use a two-sided t critical value at \(1-\alpha/(2q)=1-0.05/6\), approximately 2.65 for 17 degrees of freedom.

The three margins are \(2.65(0.30)=0.795\), \(2.65(0.42)=1.113\), and \(2.65(0.65)=1.7225\) response units. The resulting intervals are approximately:

  • At 2 mg/kg: \(14.2\pm0.795=(13.41,\ 14.995)\) response units.
  • At 4 mg/kg: \(18.6\pm1.113=(17.487,\ 19.713)\) response units.
  • At 6 mg/kg: \(22.1\pm1.7225=(20.3775,\ 23.8225)\) response units.

Together, these intervals have at least 95% coverage for all three specified mean responses. The guarantee applies to these three doses only; it is not a continuous whole-curve band.

Choosing and Explaining the Coverage Statement

The right interval or band depends on the question being asked. A pointwise interval is appropriate when the target is the mean at a particular value chosen in advance. A simultaneous band is appropriate when the goal is to make a confidence statement about the shape or level of the curve across a domain. A finite family of Bonferroni intervals can address a short list of specified values, but should not be described as covering every point between them.

The Working–Hotelling formula applies when the mean curve is linear in its coefficients and the stated model conditions hold. A curve with nonlinear-looking terms, such as \(x^2\), can still meet this requirement because its coefficients enter linearly. A model that is nonlinear in its parameters does not automatically have this exact band. Also, neither band accounts for uncertainty introduced by selecting a curve form after examining the same data. The confidence claim is conditional on the specified model and its assumptions.

Common Mistake

Common mistake: “The 95% pointwise intervals are drawn at every value of \(x\), so there is a 95% chance that the whole curve lies inside the shaded region.” This is incorrect: each interval has 95% coverage for its own fixed predictor value, and the collection does not automatically have 95% simultaneous coverage. Use a simultaneous band or a suitable multiple-interval procedure for a whole-curve or multi-value claim. In repeated-sampling language, the confidence level describes how often the procedure covers the target; it is not a probability assigned to the fixed, unknown curve after the data are observed.
Key takeaway: “95%” must be tied to a coverage target. Pointwise bands protect one mean at a time; simultaneous bands protect the curve across the stated domain at once. State which target your interval or band addresses.

Check Your Understanding

Use the definitions and results above to answer these questions.

  1. What mean response does a pointwise 95% interval cover, and what does it not guarantee about other predictor values?
  2. Why is the Working–Hotelling multiplier generally larger than the pointwise t critical value?
  3. A model has \(n=24\) observations and \(p=4\) coefficients. What are its residual degrees of freedom?
  4. What does a 95% Bonferroni procedure for five specified predictor values guarantee, and what does it not guarantee?
  5. Why should an interval for the mean response not be described as an interval for a future individual response?