Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Step 2 : Classification Models Using the code discussed in the lecture, split the data into training and testing data sets. Do not use TARGET
Step : Classification Models
Using the code discussed in the lecture, split the data into training and testing data sets.
Do not use TARGETLOSSAMT to predict TARGETBADFLAG.
Create a LOGISTIC REGRESSION model using ALL the variables to predict the variable TARGETBADFLAG
Create a LOGISTIC REGRESSION model and using BACKWARD VARIABLE SELECTION.
Create a LOGISTIC REGRESSION model and using a DECISION TREE and FORWARD STEPWISE SELECTION.
List the important variables from the Logistic Regression Variable Selections.
Compare the variables from the logistic Regression with those of the Random Forest and the Gradient Boosting.
Using the testing data set, create a ROC curves for all models. They must all be on the same plot.
Display the Area Under the ROC curve AUC for all models.
Determine which model performed best and why you believe this.
Write a brief summary of which model you would recommend using. Note that this is your opinion. There is no right answer. You might, for example, select a less accurate model because it is faster or easier to interpret.
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