Question: Problem 1 (8pt) In this question, we will predict the number of applications received (Apps) using the other variables in the College data set (ISLR

 Problem 1 (8pt) In this question, we will predict the number

Problem 1 (8pt) In this question, we will predict the number of applications received (Apps) using the other variables in the College data set (ISLR package). (a) Perform best subset selection to the data. What is the best model obtained according to Co, BIC and adjusted R'? Show some plots to provide evidence for your answer, and report the coefficients of the best model. (b) Repeat (a) using forward stepwise selection and backwards stepwise selection. How does your answer compare to the results in (a)? (c) Fit a lasso model on the data. Use cross-validation to select the optimal value of ^ Create plots of the cross-validation error as a function of ^. Report the resulting coefficient estimates. (d) Fit a ridge regression model on the data. Use cross-validation to select the optimal value of A. Create plots of the cross-validation error as a function of ^. Report the resulting coefficient estimates. (e) Now split the data set into a training set and a test set. i. Fit the best models obtained in the best subset selection (according to C, BIC or adjusted R?) to the training set, and report the test error obtained. ii. Fit a lasso model to the training set, with ^ chosen by cross validation. Report the test error obtained. iii. Fit a ridge regression model to the training set, with / chosen by cross validation. Report the test error obtained. iv. Compare the test errors obtained in the above analysis (i-iii) and determine the optimal model. Problem 2 (7pt) In the class, we discussed the ridge regression model as one of the shrinkage methods. In this problem, we study the effect of tuning parameter A on the model by mathematically calculating the coefficients. To do so, find the optimal value of the objective function given in equation (6.5) in the book (hint: consider A as a fixed parameter and differentiate 6.5 with respect to each coefficient. Set the derivative equal to zero to find a closed- form expression for all the coefficients. Then, describe the behavior of the coefficients in terms of 1 . More specifically, discuss the coefficient change when varying A from 0 to co .)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!