Given data on two variables and , consider fitting a cubic polynomial regression model . In addition to plotting the fitted curve, you would like a 95% confidence band about the curve. Consider the following two approaches:
(a)
At each point , form a 95% confidence interval for the linear function .
(b)
Form a 95% confidence set for as in (3.15), which in turn generates confidence intervals for .
How do these approaches differ? Which band is likely to be wider? Conduct a small simulation experiment to compare the two methods.
Soln. 3.2
For the first method, at each point , the variance of is
Then at each sample , the confidence interval is calculated as
For the second method, denote as the true value of coefficients, we have
The confidence region for is found by inverting the inequality above with respect to . To do that, we first make Cholesky decomposition of where is upper triangular. Therefore, for vectors at the boundary of the confidence region, lies on the 4-dimensional ball with radius . Hence for any vector , we can first normalize it to the ball with radius and the arrive by
Note that the confidence region from the first method is expected to be wider than that from the second method. The reason is that the region from the first method is a simultaneous confidence region, that is, each of the coordinate falls into the region with the given probability. While the one from the second is an elliptical confidence region, it's less strict than the simultaneous one thus it's narrower. This is also observed from Figure 1 below.
Figure 1: Confidence Regions from Two Different Methods
Figure 1 is drawn from a numerical simulation experiment. In the simulation we first draw 10 values, ,uniformly from . Then we generate
with . That is, the true value for is .
The blue line is calculated from , the two green lines are the 95% confidence region band from the first method, and the red lines are sampled from the boundary of the 95% confidence set from the second method. Note that most red ones lie in the confidence region formed by the green boundaries, however, they have the freedom to jump out.