Q9. Classification, KNN [3+3=6] Consider the following data set about people who purchased an Electric vehicle...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Answer rating: 100% (QA)
Initial Sorting and Splitting by Age First we sort the data by the Age attribute and look for the me... View the full answer
Related Book For
Smith and Roberson Business Law
ISBN: 978-0538473637
15th Edition
Authors: Richard A. Mann, Barry S. Roberts
Posted Date:
Students also viewed these programming questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
An ammonia bath is the one most widely used for depositing Pd-Ni alloy coatings. The article "Modelling of Palladium and Nickel in an Ammonia Bath in a Rotary Device" (Plating and Surface Finishing,...
-
Write a SELECT statement that returns four columns from the Vitals table: Height in. Weight. Jh. Jempand Pulse. Then, run this statement to make sure it works correctly. Add an ORDER BY clause to...
-
Three identical fatigue specimens (denoted A, B, and C) are fabricated from a nonferrous alloy. Each is subjected to one of the maximum-minimum stress cycles listed in the following table; the...
-
Husemann Co.s assets include notes receivable from customers. During fiscal 2022, the amount of notes receivable averaged $525,000, and the interest rate of the notes averaged 4.2%. Required: a....
-
A negatively charged particle is at rest in a region where a uniform magnetic field points in the positive \(x\) direction and a uniform electric field points in the positive \(y\) direction. What is...
-
The data below concerns adjustments to be made at Victoria Company. ADJUSTMENTS a. On October 1, 2016, the firm signed a lease for a warehouse and paid rent of $20,700 in advance for a six-month...
-
4 16. The mean and variance of a binomial distribution area and respectively. If P(X = 1) = then P(X = 4 or 5) is equal to: 243 (a) 1/159 64 (b) $ 16 (c) 81 925 145 (d) 27 243 17. Let E1, E2, E3 be...
-
Capstone Case: Sunrise Bakery Expansion The Sunrise Bakery Corporation was originally founded in Houston, TX in 1991 by Griffin Harris, who currently serves as the company's Chief Executive Officer....
-
On July 7, 2031, Terry Min, the owner of MIN'S RARE MUSICAL (buyer) sold there min musical instruments to TREKKIES-R-US (seller) on credit for 2/15, n/60 for $7,500 having a cost of $3,500. The...
-
Liquid reaction A --> 2B is taking place in a steady state packed bed reactor that has total available packing area (A) of 10 m. The density (p) and packing surface (a) of the catalyst per volume are...
-
Jack sends Joan an offer that says, "I'm offering to sell you my car for $2,000. If I don't hear from you in 10 days, I'll assume you're willing to buy the car for the listed price." Jack hears...
-
The pressure inside a plane is maintained at 1 Atm. What is the outward force exerted on a 1mx 2m cabin door if the outside pressure is 0.3 Atm? O O a. 160 N b. 1.40 N C. 1700 N d. 400 N
-
Economic Development Strategies, GIS, and Disasters Discussion Description Please post to Discussion - Module #6 - Economic Development Strategies and GIS by completing the following: Discussion Part...
-
A 87kg cyclist is exercising at a vo2 requirement of 42ml/kg/min. what is the energy expenditure over an exercise period of 53 mins.
-
Mohan Ltd. has an existing freehold factory property, which it intends to knock down and redevelop. During the redevelopment period the company will move its production facilities to another...
-
Find i 0 (t) for t > 0 in the circuit in Fig. 16.72 . 2 + Vo 1 7.5e-2t u(t) V ( +) 4.5[1 u(t)]V 0.5v. 1H
-
A privately owned business in a developing country determines that current computer technology could solve many of the problems faced by its countrys private and public sectors. This business,...
-
Sam Sharpe executed and delivered to Don Dole the following instrument: Knoxville, Tennessee May 29, 2011 Thirty days after date I promise to pay Don Dole or order, Five Thousand Dollars. The holder...
-
This matter is before the court on Plaintiffs Motion for Partial Summary Judgment. Defendants have filed a Grounds of Defense, asserting certain affirmative defenses to liability. Plaintiff argues...
-
Indonesia produces about 60 percent of the worlds palm oil. Palm oil is used in the production of shampoo, ice cream, and chocolate. Assume that Switzerland does not produce palm oil but companies in...
-
An article in the Wall Street Journal stated that Chinas treatment of American know-how has been a central issue to U.S.-China trade tensions over the past five years. a. What does the article mean...
-
An article in the Wall Street Journal explained that despite rising national security tensions between the United States and China in 2023, trade between the two nations was rising. China is a...
Study smarter with the SolutionInn App