Question: 7. In this problem, we consider the classification methods using the College data set in the ISLR2 library. a) Randomly split the data into a

 7. In this problem, we consider the classification methods using the

7. In this problem, we consider the classification methods using the College data set in the ISLR2 library. a) Randomly split the data into a training set and a test set. b) Perform logistic regression on the training data to predict Private using all other variables. Interpret the meaning of the coefficients matrix in the summary result. c) What is the test error of the model obtained? d) Repeat b) by LDA and QDA, separately. e) Fit a SVM using a nonlinear kernel to the data. What is the test error of the model? f) Comment on the results in b), c) and d)

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!