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 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 c) 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 c), d) and e)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
