Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q9. Classification, KNN [3+3=6] Consider the following data set about people who purchased an Electric vehicle from a dealer (Purchased = 1 indicated that
Q9. Classification, KNN [3+3=6] Consider the following data set about people who purchased an Electric vehicle from a dealer (Purchased = 1 indicated that they bought the car). We wish to use KNN approach to make a prediction about whether or not the next potential customer will purchase a similar car. Person ID Age Purchased 25 0 0 1 1 2 3 4 5 6 7 8 9 35 10 20 32 18 29 47 45 46 Salary 33000 47 65000 86000 18000 82000 80000 28000 49000 (a) Draw the 2D-tree (only draw the tree, no need to plot the points) of the relevant parameters. 25000 26000 0 0 0 1 1 1 1 (b) Give one reason why the Euclidean distance is not a good metric to measure the distance betwwen pairs of points in this data set. Propose an alternate distance function.
Step by Step Solution
★★★★★
3.43 Rating (153 Votes )
There are 3 Steps involved in it
Step: 1
Initial Sorting and Splitting by Age First we sort the data by the Age attribute and look for the me...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