Question: Consider the data in Table 2 . Object S C F V o 1 M B b Y o 2 S R s Y o

Consider the data in Table 2.
Object S C F V
o1 M B b Y
o2 S R s Y
o3 L G p Y
o4 L G s Y
o5 S R w N
o6 L R w N
o7 L R p N
Table 2: Objects with attributes and their classification as V (Y, N).
We have data for another object, as shown in Table 3, with an unknown classification.
Object S C F V
o8 L G w ?
Table 3: Object o8 with unknown classification.
(a) Use the Hamming distance measure (see Appendix on p.7) to calculate
the distance between o8 and the 7 instances in Table 2. Show the resulting
ordering. (5)
(b) If we want to use kNN to classify the new instance, o8, what would be a good
value for k? Justify your answer. (4)
(c) Use kNN with k =3 to classify the new instance, o8.(4)
(d) Discuss what effect choosing k =4 would have on the classification of the
new instance, o8?(2)
F15

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!