Answered step by step
Verified Expert Solution
Question
1 Approved Answer
a . Consider the following customer: Age = 4 0 , Experience = 1 0 , Income = 8 4 , Family = 2 ,
a Consider the following customer:
Age Experience Income Family CCAvg Education
Education Education Mortgage Securities Account
CD Account Online and Credit Card 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?
b What is a choice of k that balances between overfitting and ignoring the predictor
information?
c Show the confusion matrix for the validation data that results from using the best k
d Consider the following customer: Age Experience Income
Family CCAvg Education Education Education
Mortgage Securities Account CD Account Online and Credit
Card Classify the customer using the best k
e Repartition the data, this time into training, validation, and test sets : :
Apply the kNN method with the k chosen above. Compare the confusion
matrix of the test set with that of the training and validation sets. Comment on the
differences and their reason.
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