The accompanying file contains 200 observations with the binary target variable y along with the predictor variables
Question:
The accompanying file contains 200 observations with the binary target variable y along with the predictor variables x1, x2, x3, x4, and x5.
a. Perform KNN analysis on the data set. What is the optimal value of k?
b. What is the misclassification rate for the optimal k?
c. Report the accuracy, specificity, sensitivity, and precision rates for the test data set (for Analytic Solver) or validation data set (for R).
d. Change the cutoff value to 0.2. Report the accuracy, specificity, sensitivity, and precision rates for the test data set (for Analytic Solver) or the validation data set (for R).
e. Comment on the performance of the KNN classification model.
Step by Step Answer:
Business Analytics Communicating With Numbers
ISBN: 9781260785005
1st Edition
Authors: Sanjiv Jaggia, Alison Kelly, Kevin Lertwachara, Leida Chen