Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this first problem, our goal is to use KNN to predict whether a new customer will accept a loan offer. This will serve as
In this first problem, our goal is to use KNN to predict whether a new customer will accept a loan offer. This will serve as the basis for the design of a new campaign.
We will consider a hypothetical customer with the following data:
Age
Experience
Income
Family
CCAvg
Education
Education
Education
Mortgage
Securities Account
CD Account
Online
Credit Card
Before beginning the analysis, partition the data into training and validation sets. Then complete the following:
Perform a KNN classification with all predictors except ID and ZIP code using k Remember to transform categorical predictors with more than two categories into dummy variables first. Specify the success class as loan acceptance and use the default cutoff value of How would this customer be classified?
Find a choice of k that balances between overfitting and ignoring the predictor information.
Show the confusion matrix for the validation data that results from using the best k
Classify the customer from Step B using the best k
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