Bartleby Related Questions Icon
Related questions
bartleby
Concept explainers
Question
4, Use the given data to classify the record below using the k-NN algorithm for k=1 to 5.
|
Loan Purpose
|
Checking
|
Savings
|
Months
Customer
|
Months
Employed
|
|
|---|---|---|---|---|---|
|
Repairs
|
0
|
900
|
25
|
4
|
Complete the table below for the nearest neighbors and for the classification of the new record for each value of k.
|
k
|
Distance
|
Classification
|
|---|---|---|
|
1
|
enter your response here
|
▼
High
Low
Tie
|
|
2
|
enter your response here
|
▼
High
Low
Tie
|
|
3
|
enter your response here
|
▼
High
Low
Tie
|
|
4
|
enter your response here
|
▼
Low
High
Tie
|
|
5
|
enter your response here
|
▼
High
Tie
Low
|
(Round to four decimal places as needed.)
|
Loan Purpose
|
Checking
|
Savings
|
Months
Customer
|
Months
Employed
|
Credit
Risk
|
|
|---|---|---|---|---|---|---|
|
Business
|
322
|
578
|
10
|
14
|
Low
|
|
|
New Car
|
0
|
821
|
25
|
63
|
High
|
|
|
New Car
|
0
|
10723
|
11
|
15
|
Low
|
|
|
Small Appliance
|
0
|
407
|
13
|
2
|
Low
|
|
|
Business
|
16647
|
895
|
16
|
34
|
Low
|
|
|
Used Car
|
0
|
109
|
25
|
26
|
Low
|
|
|
Furniture
|
664
|
537
|
31
|
33
|
High
|
|
|
New Car
|
0
|
667
|
29
|
10
|
High
|
|
|
Furniture
|
0
|
8357
|
25
|
5
|
High
|
|
|
New Car
|
0
|
759
|
16
|
59
|
High
|
|
|
Small Appliance
|
303
|
899
|
13
|
3
|
High
|
|
|
Small Appliance
|
0
|
192
|
46
|
13
|
High
|
|
|
New Car
|
0
|
116
|
49
|
45
|
High
|
|
|
Furniture
|
0
|
544
|
19
|
15
|
Low
|
|
|
Small Appliance
|
0
|
10853
|
25
|
81
|
Low
|
|
|
Furniture
|
0
|
322
|
13
|
9
|
Low
|
|
|
Small Appliance
|
0
|
717
|
22
|
10
|
High
|
|
|
Business
|
339
|
2790
|
22
|
55
|
High
|
|
|
Used Car
|
0
|
309
|
49
|
37
|
Low
|
|
|
Repairs
|
0
|
772
|
25
|
19
|
Low
|
|
|
Business
|
0
|
406
|
6
|
35
|
Low
|
|
|
Furniture
|
0
|
461
|
13
|
48
|
Low
|
|
|
New Car
|
0
|
0
|
25
|
19
|
High
|
|
|
New Car
|
0
|
544
|
25
|
0
|
High
|
|
|
Small Appliance
|
0
|
418
|
19
|
4
|
Low
|
|
|
Small Appliance
|
483
|
415
|
19
|
6
|
High
|
|
|
New Car
|
0
|
508
|
13
|
3
|
High
|
|
|
New Car
|
2641
|
0
|
13
|
71
|
Low
|
|
|
Small Appliance
|
0
|
11838
|
7
|
70
|
Low
|
|
|
New Car
|
682
|
2017
|
37
|
85
|
High
|
|
|
New Car
|
0
|
11587
|
22
|
46
|
Low
|
|
|
Furniture
|
0
|
8944
|
25
|
66
|
Low
|
|
|
Furniture
|
0
|
347
|
16
|
5
|
Low
|
|
|
New Car
|
11072
|
891
|
61
|
17
|
Low
|
|
|
New Car
|
0
|
127
|
7
|
13
|
Low
|
|
|
Furniture
|
0
|
367
|
37
|
22
|
Low
|
|
|
Other
|
0
|
523
|
37
|
0
|
Low
|
|
|
Small Appliance
|
0
|
337
|
25
|
107
|
Low
|
|
|
New Car
|
0
|
716
|
19
|
33
|
High
|
|
|
Furniture
|
0
|
987
|
37
|
101
|
High
|
|
|
Business
|
257
|
460
|
49
|
75
|
High
|
|
|
New Car
|
332
|
214
|
25
|
2
|
Low
|
|
|
Used Car
|
0
|
396
|
49
|
73
|
High
|
|
|
Furniture
|
642
|
0
|
13
|
65
|
High
|
|
|
Business
|
898
|
177
|
22
|
105
|
High
|
|
|
New Car
|
3880
|
0
|
23
|
37
|
Low
|
|
|
Furniture
|
0
|
815
|
19
|
13
|
High
|
|
|
Used Car
|
0
|
160
|
13
|
7
|
Low
|
|
|
Used Car
|
0
|
276
|
25
|
91
|
Low
|
|
|
Small Appliance
|
497
|
0
|
7
|
51
|
Low
|
Expert Solution
Check MarkThis question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
bartleby
This is a popular solution
bartleby
Trending nowThis is a popular solution!
bartleby
Step by stepSolved in 3 steps with 1 images
Knowledge Booster
Background pattern image
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, ai-and-machine-learning and related others by exploring similar questions and additional content below.Similar questions
- Write the suitable SQL statement to answer the following questions based on the following tables ( image )the question is:3. Change EMPLOYEE (EMP_ID= 505) SALARY to 70000.arrow_forwardThe data in this table is as follows: Team Dragons Carp Bay Stars Marines Ham Fighters The latest scores from the Japanese Baseball League are in the table with schema Scores(Team, Opponent, RunsFor, RunsAgainst) Lions Tigers Swallows Giants Hawks Buffaloes O a. Hawks Opponent Tigers Swallows Giants Hawks Buffaloes O b. Dragons O c. Buffaloes O d. Giant Golden Eagles Dragons Carp Bay Stars Marincs Ham Fighters RunsFor 5 3 1 Bay Stars 6 3 Tigers Ham Fighters 5 1 8 4 2 RunsAgainst 3 6 Golden Eagles Lions 12 What is the result of executing the following query on this data? 6 1 3 6 12 5 4 2 5 1 8 Identify, in the list below, a row of the result. Marines SELECT Team, Opponent FROM Scores WHERE Team LIKE '% %' OR Opponent LIKE '_i%';arrow_forwardHow many rows does the resultant of the relational algebra expression acqcost>1500 (Tdesc,acqcost (A)) have, given the table A below? id 82943 Conference Table 77463 Conference Chair 99821 Desk 44320 Desk 99873 Conference Chair 77472 Conference Chair 88872 Speaker Phone 33411 Monitor 55" 98006 Printer 88753 Copier 72633 Chair 99098 Conference Chair desc acqcost 4998.00 247.45 1987.00 2019年09月15日 1987.00 2017年11月05日 247.45 2019年09月15日 2019年09月15日 247.45 247.00 2020年06月23日 874.00 2018年03月08日 1389.00 2019年12月18日 4877.90 2017年12月01日 642.00 2017年11月05日 239.90 2020年02月10日 dateacq 2019年09月15日 2019年09月15日arrow_forward
- Customer_ID Customer_Name Order_ID Order_Date Product_Name Quantity 101 Alice 1 2023年09月01日 Laptop 2 101 Alice 1 2023年09月01日 Mouse 1 102 Bob 2 2023年09月02日 Monitor 1 102 Bob 2 2023年09月02日 Keyboard 1 103 Carol 3 2023年09月03日 Laptop 1 103 Carol 3 2023年09月03日 Speaker 2 For the following tables, identify the following functional dependencies where ( ? → Customer_Name). (Customer_ID → Customer_Name ). (Customer_ID, Order_ID → Customer_Name ). (Customer_ID, Order_ID, Order_Date → Customer_Name ). (Order_ID → Customer_Name ).arrow_forwardComposite datatypes can only have multi row &multi column values in them Answers: Yes Noarrow_forwardUse the relational algebra to find name of sailors who have reserved boat #103arrow_forward
arrow_back_ios
arrow_forward_ios