Chapter 12

Prediction and Model Selection

[25/84%]
Show
LaTeX
Problem 12.1

Explain how you could calculate the ridge estimate β^(k)\widehat{\beta }(k) using a least squares program.

?
Problem 12.2

Consider a regression with two orthogonal centered and scaled explanatory variables xx and zz. Using the techniques of Example 12.2 in Section 12.4.1, calculate the probability of correctly identifying the true model using forward selection when the regression coefficients of xx and zz are both zero. Use a value of c1=1.64c_{1} = 1.64 and assume that the error variance is 1.

?
Problem 12.3

Consider a regression with KK explanatory variables. Let FpF_{p} be the FF-statistic for testing that some specified subset of rr variables can be deleted from the model, where r=K+1−pr = K+1-p. Show that the value of CpC_{p} for this reduced model with the rr variables deleted is Cp=r(Fp−1)+pC_{p} = r\left(F_{p}-1\right)+p.

?
Problem 12.4

Verify (12.85).

?
Problem 12a.1

Show that the square of the total bias ∥μ−E[Xβ^]∥2\left\| \mathbf{\mu }-\mathbb {E}\left[\mathbf{X} \widehat{\mathbf{\beta }}\right]\right\|^{2} is equal to the first term in (12.8).

?
Problem 12a.2

Consider the regression model

Yi=α+γ1xi+γ2zi+εi(i=1,…,n)(12.13) Y_{i} = \alpha +\gamma _{1} x_{i}+\gamma _{2} z_{i}+\varepsilon _{i} \quad (i = 1, \ldots , n) \tag {12.13}

where ∑ixi=∑izi=0\sum_{i} x_{i} = \sum_{i} z_{i} = 0 and ∑ixi2=∑izi2=1\sum_{i} x_{i}^{2} = \sum_{i} z_{i}^{2} = 1. Suppose that we want to predict the response YY corresponding to a vector (x,z)(x, z) using a predictor of the form

Y^=Yˉ+γ~1x \widehat{Y} = \bar{Y}+\tilde{\gamma }_{1} x

where γ~1\tilde{\gamma }_{1} is the least squares estimate obtained by fitting the model

Yi=α+γ1xi+εi(i=1,…,n) Y_{i} = \alpha +\gamma _{1} x_{i}+\varepsilon _{i} \quad (i = 1, \ldots , n)
?
(a)

Assuming that the model (12.13) is correct, show that the expected model error E[ME]=E[(Y^−α−γ1x−γ2z)2]\mathbb {E}\left[\mathrm{ME}\right] = \mathbb {E}\left[\left(\widehat{Y}-\alpha -\gamma_{1} x-\gamma_{2} z\right)^{2}\right] of the predictor Y^\widehat{Y} is given by

E[ME]=σ2(n−1+x2)+γ22(rx−z)2, \mathbb {E}\left[\mathrm{ME}\right] = \sigma ^{2}\left(n^{-1}+x^{2}\right)+\gamma _{2}^{2}(r x-z)^{2},

where r=∑ixizir = \sum_{i} x_{i} z_{i}.

(b)

Under what circumstances will Y^\widehat{Y} be a better predictor than the predictor based on both xx and zz?

Problem 12b.1

Prove that

RSS⁡pRSS⁡K+1=n−K−1n−p⋅1−Rˉp21−RˉK+12 \frac{\operatorname {RSS}_{p}}{\operatorname {RSS}_{K+1}} = \frac{n-K-1}{n-p} \cdot \frac{1-\bar{R}_{p}^{2}}{1-\bar{R}_{K+1}^{2}}
?
Problem 12b.2

Perform a small simulation to assess how badly CpC_{p} underestimates the prediction error in Example 12.1.

?
Problem 12b.3

Prove that KL(f,g)≥0K L(f, g) \geq 0. You may assume that f(y)>0f(\mathbf{y}) > 0 and g(y)>0g(\mathbf{y}) > 0 for all x . Hint: Show that log⁡x≤x−1\log x \leq x-1 for x>0x > 0, and put x=g(y)/f(y)x = g(\mathbf{y}) / f(\mathbf{y}).

?
Problem 12b.4

Obtain (12.35) using conditional probability arguments.

?
Problem 12c.1

Show that the first step in forward selection is equivalent to selecting the variable most highly correlated with the response.

?
Problem 12c.2

Show that the variable that increases the difference RSSp−RSSp+1\mathrm{RSS}_{p}-\mathrm{RSS}_{p+1} by the greatest amount is the one having the greatest partial correlation with the response, given the variables already in the model.

?
Problem 12c.3

In Example 12.2, verify Algorithm 12.2 and identify the regions corresponding to the subsets chosen by (a) backward elimination, (b) stepwise regression.

?
(a)
(b)
Problem 12d.1

Verify that the marginal distribution of Y\mathbf{Y} in the Bayesian setup of Section 12.5.1 is Np(0,(σ2+σ02)Ip)N_{p}\left(\mathbf{0},\left(\sigma^{2}+\sigma_{0}^{2}\right) \mathbf{I}_{p}\right).

?
Problem 12d.2

Show that when XTX=Ip\mathbf{X}^{T} \mathbf{X} = \mathbf{I}_{p}, then the quantity cjc_{j} in the second version of the garrote is given by

cj=β^j2λ+β^j2. c_{j} = \frac{\widehat{\beta }_{j}^{2}}{\lambda +\widehat{\beta }_{j}^{2}} .

Fig. 12.4 Functions giving shrinkage estimates in the orthonormal case. The shrinkage estimate \tilde{\beta }_{j} is h\left(\widehat{\beta }_{j}\right).Fig. 12.4 Functions giving shrinkage estimates in the orthonormal case. The shrinkage estimate \tilde{\beta }{j} is h\left(\widehat{\beta }{j}\right).

?
Problem 12e.1

Verify (12.65). Hint: Use the partitioned matrix inverse formula A.9.1 and multiply out the quadratic form.

?
Problem 12e.2

Find the form of the posterior predictive density for straight-line regression. Assume that the explanatory variable has been centered and that the prior mean is zero. Also assume that you are predicting a single value (i.e., assume that m=1m = 1).

?
Problem 12f.1

Consider the regression model

Yi=α+βxi+εi(1=1,…,n) Y_{i} = \alpha +\beta x_{i}+\varepsilon _{i} \quad (1 = 1, \ldots , n)

where ∑ixi=0\sum_{i} x_{i} = 0 and ∑ixi2=1\sum_{i} x_{i}^{2} = 1. Let r=∑ixiYir = \sum_{i} x_{i} Y_{i}. Suppose that we estimate the parameter β\beta by the estimate

β~={0, if ∣r∣<cr, if ∣r∣≥c \tilde{\beta } = \begin{cases} 0, & \text{ if }\left|r\right| < c \\ r, & \text{ if }\left|r\right| \geq c\end{cases}

where cc is some positive constant. How does the MSE of β~\tilde{\beta } as an estimate of β\beta compare with that of the usual LSE?

?
Problem 12f.2

Suppose that you use forward selection to choose either the null model Yi=α+εiY_{i} = \alpha +\varepsilon_{i} or the simple linear regression model in Exercise 1 above. Explain how you would evaluate the conditional density (12.74) in this situation.

?
Problem 12f.3

For any pair of random vectors Y\mathbf{Y} and Z\mathbf{Z}, show that the difference Var⁡[Y]−E[Var⁡[Y∣Z]]\operatorname {Var}\left[\mathbf{Y}\right]-\mathbb {E}\left[\operatorname {Var}\left[\mathbf{Y} \mid \mathbf{Z}\right]\right] is positive semidefinite. Hint: Show that the difference is Var⁡[E[Y∣Z]]\operatorname {Var}\left[\mathbb {E}\left[\mathbf{Y} \mid \mathbf{Z}\right]\right].

?
Problem 12g.1

Write a small computer program to calculate the residual sum of squares for all possible regressions using the Garside algorithm. What size problems can reasonably be handled?

?
Problem 12g.2

Implement the Morgan and Tatar algorithm. What sort of improvements do you notice over the Garside algorithm?

?
Problem 12h.1

Show that the function ff which minimizes the expected ME (12.80) is the conditional expectation E[β∣β^]\mathbb {E}\left[\beta \mid \widehat{\beta }\right] given by (12.81).

?
Problem 12h.2

Draw the same diagram for Example 12.6 as those given in the text in Examples 12.4 and 12.5.

?
Problem 12h.3

Show that in ridge regression when XTX=Ip\mathbf{X}^{T} \mathbf{X} = \mathbf{I}_{p}, the little bootstrap and GCV give the same estimate for the ridge parameter.

?