Question: Question 3 classification prediction calculation 35 points: Consider the dataset having 2 attribute variables (xl and x2) and the target variable C. Using the KNN
Question 3 classification prediction calculation 35 points: Consider the dataset having 2 attribute variables (xl and x2) and the target variable C. Using the KNN algorithm predict the class for X1=6.4 and X2-0.47. The following data (X1, X2, C) are for each player. X1 - player height in feet X2 = percent of successful field goals (out of 100 attempted) C= high, medium, low levels for the average points scored per game (TARGET VARIABLE) X1 High Low 6.3 6.9 6.4 6.3 6.8 6.9 6.7 6.9 6.4 X3 0.435 Medium 0.449 0.431 High 0.487 0.469 Medium 0.435 Low 0.48 Medium 0.516 High 0.47 Class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
