Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started