Docsity

MATH 644: Regression Analysis Methods, Schemes and Mind Maps of Design

Partial preview of the text

Download MATH 644: Regression Analysis Methods and more Schemes and Mind Maps Design in PDF only on Docsity!

MATH 644: Regression Analysis Methods

FINAL EXAM

Fall, 2012

INSTRUCTIONS TO STUDENTS:

  1. This test contains SIX questions. It comprises ELEVEN printed pages.
  2. Answer ALL questions for a total of 100 marks.
  3. This is an open-book and open-note test; you can use any materials you have.
  4. Write your name on the front of your answer booklet and on any additional sheets you write on.
  1. True/False. Please read each statement and put T(True)/F(False) in the begin- ning. Notice: the standard least squares estimator is applied whenever needed in the statements. Define the standard multiple linear regression model as follows:

Yi = β 0 + β 1 Xi 1 + · · · + βpXip + εi,

where εi ∼i.i.d.^ N (0, σ^2 ).

(a) A coefficient of determination zero indicates that X and Y are not related. (b) A high coefficient of determination indicates that the estimated re- gression line is a good fit. (c) If two multiple linear regression models have the same mean squared error (MSE), we prefer the model with less variables. (d) For any F-test associated with the multiple linear regression model, we can find an equivalent t-test. (e) In a standard multiple linear regression model, the variance of the prediction becomes larger as Xj deviates from the sample mean X¯j. (f) In a standard multiple linear regression model, define the residuals to be ei = Yi − Yˆi, we have ∑n i=1 eiXij^ = 0 for all^ j^ = 1,... , p^ −^ 1. (g) In a standard multiple linear regression model, the prediction for a new observation with predictors X(new)^ = ( X¯ 1 , X¯ 2 ,... , X¯p) is Y¯ = n−^1 ∑ni=1 Yi, where X¯j = n−^1 ∑n i=1 Xji, j^ = 1,... , p^ is the sample mean.

  1. Yes/No. Suppose you have four possible predictor variables X 1 , X 2 , X 3 , and X 4 that could be used in a regression analysis. You run a forward selection procedure, and the variables are entered as follows: Step 1: X 2 Step 2: X 4 Step 3: X 1 Step 4: X 3 In other words, after Step 1, the model is E{Y } = β 0 + β 1 X 2. After Step 2, the model is E{Y } = β 0 + β 1 X 2 + β 2 X 4.

(Extra Space for Answers)

  1. Suppose we have the following two multiple linear regression models:

Yi = β 0 + β 1 X 1 i + β 2 X 2 i + εi (1)

and Yi = β 0 + β 1 X 1 i + β 2 X 2 i + β 3 X 3 i + εi, (2)

where εi ∼i.i.d.^ N (0, σ^2 ).

We first perform the analysis for model (1) in R:

fit12 = lm(Y ~ X1 + X2) summary(fit12) Call: lm(formula = Y ~ X1 + X2)

Residuals: Min 1Q Median 3Q Max -1.72610 -0.71385 0.03204 0.62244 3. Coefficients: Estimate Std. Error t value Pr(>|t|) (Intercept) -0.002956 0.094429 -0.031 0. X1 2.171693 0.108222 20.067 <2e- X2 2.949736 0.098936 29.814 <2e- Residual standard error: 0.9428 on 97 degrees of freedom Multiple R-squared: 0.938, Adjusted R-squared: ??? F-statistic: 733.5 on 2 and 97 DF, p-value: < 2.2e-

(a) Calculate the adjusted R-square value from the output.

(b) Calculate the SSR (Regression Sum of Squares) from the output. (c) Perform the hypothesis test, H 0 : β 1 = β 2 = 0 v.s. H 1 : not both β 1 and β 2 equal zero. Write down the test method and calculate the test statistic.

(Extra Space for Answers)

  1. An analyst decided to fit the multiple regression model Yi = β 0 + β 1 Xi 1 + β 2 Xi 2 + β 3 Xi 3 + β 4 Xi 1 Xi 2 + β 5 Xi 1 Xi 3 + β 6 Xi 2 Xi 3 + εi, where εi ∼ N (0, σ^2 ), i = 1,... , 20. To reduce correlation between the covariates in this model, the centered variables xi 1 = Xi 1 − X¯ 1 = Xi 1 − 25. 305 , xi 2 = Xi 2 − X¯ 2 = Xi 2 − 51 .170, and xi 3 = Xi 3 − X¯ 3 = Xi 3 − 27 .620 are used. The fitted regression equation is given by Yˆ = 20.53 + 3. 43 x 1 − 2. 095 x 2 − 1. 616 x 3 + 0. 00888 x 1 x 2 − 0. 08479 x 1 x 3 + 0. 09042 x 2 x 3 , M SE = 6.745, where the true model is Yi = β 0 + β 1 xi 1 + β 2 xi 2 + β 3 xi 3 + β 4 xi 1 xi 2 + β 5 xi 1 xi 3 + β 6 xi 2 xi 3 + εi. One would like to test whether the interaction terms between the three predictor variables should be included in the regression model. Use the above information and the following Table to conduct a F-test at 5% significance level. Clearly state the null and alternate hypotheses, test statistic, decision rule and the conclusion.

Variable Extra Sum of Squares Value x 1 SSR(x 1 ) = 352. x 2 SSR(x 2 |x 1 ) = 33. x 3 SSR(x 3 |x 1 , x 2 ) = 11. x 1 x 2 SSR(x 1 x 2 |x 1 , x 2 , x 3 ) = 1. x 1 x 3 SSR(x 1 x 3 |x 1 , x 2 , x 3 , x 1 x 2 ) = 2. x 2 x 3 SSR(x 2 x 3 |x 1 , x 2 , x 3 , x 1 x 2 , x 1 x 3 ) = 6. F(0.975, 3, 13) = 4.3472, F(0.95, 3, 13) = 3.4105, F(0.975, 7, 19) = 3.0509, F(0.95, 7, 19) = 2.5435, F(0.95, 4, 13) = 3.1791, F(0.975, 4, 13) = 3.9959, F(0.95, 4, 19) = 2.8951, F(0.975, 4, 19) = 3.5587, F(0.975, 3, 19) = 3.9034, F(0.95, 3, 19) = 3.1274.

  1. Suppose we have the following two multiple linear regression models:

Yi = β 0 + β 1 Xi 1 + · · · + βp− 1 Xi,p− 1 + εi (3)

and Yi = β 0 + β 1 Xi 1 + · · · + βp− 1 Xi,p− 1 + βpXi,p + εi, (4)

where εi ∼i.i.d.^ N (0, σ^2 ).

(a) Denote the R^2 (the coefficient of multiple determination) for the two models (3) and (4) as R^2 (3) and R^2 (4). Is it true that R^2 (3) ≤ R^2 (4) always holds? If yes, prove it. If not, give a counter example. (If you are providing a counter example, please write down the design matrix X and the response vector Y explicitly. The reasoning of R^2 (3) > R^2 (4) is required.) (b) Denote the R^2 a (the adjusted coefficient of multiple determination) for the two models as R^2 a(3) and R a^2 (4). Is it true that R^2 a(3) ≤ R^2 a(4) always holds? If yes, prove it. If not, give a counter example. (If you are providing a counter example, please write down the design matrix X and the response vector Y explicitly. The reasoning of R^2 a(3) > R^2 a(4) is required.)

(Extra Space for Answers)