Management & CommerceHardMBA placement (Analytics)

A new customer has (spend score, visits) = (5, 5). Labelled customers are P1 (4, 5) Buy, P2 (6, 6) No, P3 (5, 7) Buy, P4 (8, 5) No, P5 (5, 4) No. Using k-nearest neighbours with k = 3 and Euclidean distance, what is the prediction?

  1. A. Buy, because 2 of the 3 nearest customers buy
  2. B. Buy, because the single nearest neighbour, P1, buys
  3. C. No, because all 3 nearest customers say No
  4. D. No, because 2 of the 3 nearest customers say No

Correct answer: D. No, because 2 of the 3 nearest customers say No

Distances: P1 1, P5 1, P2 ≈ 1.41, P3 2, P4 3. The three nearest are P1 (Buy), P5 (No) and P2 (No), so the majority vote is No. P3 is fourth, so it does not count.

More Operations, Supply Chain & Business Analytics questions

Exams that ask this topic