Departures from Assumptions: Diagnosis and Remedies
[28/100%]Consider a regression with regression matrix and LSE . Suppose that a new case with data () is added. Show that the residual sum of squares is increased by an amount , where .
Consider deleting a variable from a regression. Let and be the hat matrices with and without the corresponding column included.
Show that
Let . Show that if and are the diagonal elements of and , then
Explain how the second term on the right of (10.72) can be interpreted as the leverage of the th case in the added variable plot for variable . How can you use added variable plots to determine which variables contribute to the leverage of observation ?
The correlation that exists between the residuals in a regression complicates the detection of departures from the standard regression model. For this reason, various proposals for independent and identically distributed "residual-like" quantities have been proposed. For example, Theil [1965, 1968] (see also Grossman and Styan [1972]) introduced BLUS residuals having the following properties: (i) for some matrix (i.e., linear). (ii) (i.e., scalar). (iii) (i.e., unbiased). (iv) is chosen to minimize , where is some fixed dimensional subvector of (i.e., best).
Thus, the BLUS residuals are the linear combination of that best approximates some ()-subset of the errors.
Assume that is of full rank . Let be an orthogonal matrix such that the columns of are an orthonormal basis for . (For example, could be the matrix arising in the QR decomposition discussed in Section 11.3.) Show that any matrix that satisfies (ii) and (iii) above must be of the form for some orthogonal matrix .
Let be an submatrix of such that . Show that
Let be the singular value decomposition of . (cf. A.12). Show that
with equality if and only if . Hence show that . Hint: Show that .
Prove (10.14).
Show that if the random variable has a beta distribution, then has an distribution. Express in terms of .
Express in the form for a suitable vector .
Show that can be written as
where and .
Prove that is a projection matrix (i.e., show that and ).
Show that is a projection matrix and prove that and are independent. Hence prove that has a beta distribution.
Show that .
Show that provided that the regression matrix contains a column of 1 's, for each .
Use part (a) to prove (10.21).
The following exercises require familiarity with a computing package such as S-PLUS, R, or Matlab. We provide some R code to assist readers.
Generate a set of regression data according to the model
where and are sampled from independent distributions, and the errors are sampled from , where . This may be done in S-PLUS or R by the code fragment eps<-rnorm(100,sd=0.25) x1<-rnorm(100) x2<-rnorm(100) y<-1+x1+2*sign(x2)*abs(x2)^(1/3)+eps
Construct the partial residual plot for . How well does the curve in the plot reveal the transformation required to linearize the regression surface? Use the code reg.stuff<-lm(y~x1+x2) betahat2<-coef(reg.stuff)[3] estar2<-betahat2*x2+residuals(reg.stuff) plot(x2,estar2)
Now construct another set of data, the same as before but with having correlation with . Use the same code, but define with the lines rho<-0.95 x2<-rho*x1+sqrt(1-rho^2)*rnorm(100)
Construct the partial residual plot for the new . What do you notice?
Construct a set of data as in Exercise 2 but with
so that the coefficient is zero. Set the correlation between and at 0.999. What does the partial residual plot suggest about the importance of in the model? Generate a new set with . What does the plot now suggest? What does this example teach you about using partial residual plots to assess the importance of adding variables?
Repeat Exercise 3 using added variable plots instead of partial residual plots. Do added variable plots have a problem with correlated data? Use the R code resy<-residuals(lm(yx1)) resx2<-residuals(lm(x2x1)) plot(resy,resx2) to draw the added variable plot.
Construct a set of data as in Exercise 2(a) but with being generated by
where the 's are This will create a situation where the partial residual plot would be expected to fail, according to the arguments of Cook [1993] since , which is far from linear. Does the plot, in fact, fail? Repeat with a linear function of . What happens now?
Differentiate (10.35) and take expectations to derive (10.37).
Let , and let be an orthonormal basis for , so that . Verify that and that .
Let . Show that is of full rank, so that .
Use (b) to prove (10.38).
Use the fact that to prove (10.39).
Suppose that , where the 's are independently and identically distributed as . Find the restricted likelihood for .
Show that for this example the REML estimate of is the usual unbiased estimate . Thus in this case the REML estimate is unbiased but the MLE is not.
Suppose that are gamma random variables with density functions
so that , say, and . Find a transformation that will make the variances of the 's approximately equal.
Let be the order statistics calculated from a random sample from a distribution. Then (see, e.g., David [1981], Azzalini [1996: p. 301]) the density of is
where and are, respectively, the distribution and density functions of the standard normal distribution.
By making a transformation, show that
where is the beta function (A.13.6).
Using the definition of the integral, show that
where
Explain why the weights sum to 1.
Comment on the accuracy of the approximation
Suppose that is a family of monotone-increasing transformations such that is .
Show that the log likelihood for is
Show that in the case of the John-Draper transformation, the log likelihood is
Show that for fixed , the values of and that minimize (10.47) are
and
where denotes expectation with respect to and .
Consider a linear function of . Show that the change in the estimate when the th observation is deleted is
where is the catcher matrix .
Show that
Suppose that we delete a set of observations. Show that the "delete version
of the Andrews-Pregibon statistic can be written as
Let be the th diagonal element of the hat matrix based on () rather than . Show that . Hint: Use the results of Section 10.6.3.
The influence curve of the least squares estimate was derived in Example 3.22. A sample version of the IC (cf. Section 3.13.3) can be defined by taking as the e.d.f. , and by considering the difference rather than the derivative. This leads to the sample influence curve , given by
where puts mass 1 at ().
Show that is the empirical distribution function calculated from the remaining points when the th observation has been deleted from the sample.
Hence show that for the least squares estimate functional ,
The quantity is a vector. We can obtain an overall scalar measure by considering the quantity
where is a positive-definite matrix and is a positive constant. Show that if we choose and , we obtain Cook's D.
For more details on the influence function approach to outlier detection, see Cook and Weisberg [1982, Chapter 3] and Chatterjee and Hadi [1988, Chapter 5].
Show that the largest eigenvalue of satisfies
Show that
Prove that with the priors of Section 10.7.3 , the posterior mean of is just the ridge estimate (10.64).
Prove that with the priors of Section 10.7.3 , the prior distribution of is .