Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SS Question 3 : K - Nearest Neighbours [ 2 2 ] We have the height ( in cm ) and weight ( in kg

SS Question 3: K-Nearest Neighbours [22] We have the height (in cm) and weight (in kg) dala of customers how have previously bought shirts at our store, showing the size of the shirts they bought, shown in Table 3. customer height weight shirt size 15858 AT 15859 M 15863 M 16059)1116060 M 16360 M 16361 M 16064 L CO 16364 Cle 16561 L CH 16562 L CH 16566 L Cus 16862 L C416863 L C 16866 L CS 17063 L Cut 17064 L CLB 170681 Table 3: Shirt size data John comes into our store to buy a shirt. He is 1.64m tall, and weighs 62kg.(a) Draw a diagram to show the relative position of all 18 instances, as well as John's data. Label the diagram completely and correctly. (5)(b) Write down the formula to calculate the Manhattan distance between points M and Pin(x,y)-space. Use this formula to calculate the distance between John and the first 12 instances from Table 3. Rank the customers by their distances from John, trom closest to furthest. Show your workings. (7)(c) Show how 5-NW (k-nearest neighbours with =5) will classity John's shirt size. Use the values in your calculations from the previous question. Show all your steps. (3)(d) Why is it important to standardise the data set when a classification algorithm such as k-NN is used? Use the data in Table 3 as a reference to explain your answer. (4)(e) What does it mean when we say the k-NN algorithm is non-parametric? (3)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

Students also viewed these Databases questions