Answered step by step
Verified Expert Solution
Question
1 Approved Answer
show the R codes for 8 questions below, run the results in R studio and show the interpretation required: Assignment Summary Use the College dataset
show the R codes for 8 questions below, run the results in R studio and show the interpretation required:
Assignment Summary Use the College dataset from the ISLR library to build a logistic regression model to predict whether a university is private or public. 1. Import the dataset and perform Exploratory Data Analysis by using descriptive statistics and plots to describe the dataset. 2. Split the data into a train and test set - refer to the ALY6015_Feature_Selection_R.pdf document for information on how to split a dataset. 3. Fit logistic regression model. 4. Create a confusion matrix and report the results of your model predictions on the train set. Interpret and discuss the confusion matrix. Which misclassifications are more damaging for the analysis, False Positives or False Negatives? 5. Report and interpret Accuracy, Precision, Recall, and Specificity metrics. 6. Create a confusion matrix and report the results of your model for the test set. Compare the results with the train set and interpret. 7. Plot and interpret the ROC curve. 8. Calculate and interpret the AUC.
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