Answered step by step
Verified Expert Solution
Link Copied!

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 =40
Experience =10
Income =84
Family =2
CCAvg =2
Education_1=0
Education_2=1
Education_3=0
Mortgage =0
Securities Account =0
CD Account =0
Online =1
Credit Card =1
Before beginning the analysis, partition the data into training (60%) and validation (40%) sets. Then complete the following:
Perform a KNN classification with all predictors except ID and ZIP code using k =1. Remember to transform categorical predictors with more than two categories into dummy variables first. Specify the success class as 1(loan acceptance), and use the default cutoff value of 0.5. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions