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?
- A. Buy, because 2 of the 3 nearest customers buy
- B. Buy, because the single nearest neighbour, P1, buys
- C. No, because all 3 nearest customers say No
- 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.
Practise more Operations, Supply Chain & Business Analytics questionsOperations, Supply Chain & Business Analytics: notes and key points
More Operations, Supply Chain & Business Analytics questions
- One-dimensional k-means is run on the values 2, 4, 10, 12, 20 with starting centroids 3 and 15. After one assignment-and-update step, what…
- A plant uses the run-out-time method to choose its next production run. Items (stock; weekly demand): A (300; 50), B (200; 40), C (120…
- Order values have mean ₹520, median ₹480 and standard deviation ₹80. What is Pearson's second coefficient of skewness?
- Individual order values have mean ₹500 and standard deviation ₹120. For a random sample of 36 orders, what is the probability that the…
- A decision-tree node holds 10 customers: 6 renew and 4 do not. A split sends 5 customers (all renewers) left and 5 customers (1 renewer, 4…
- For the same split (parent 6 renew / 4 not; left child 5/0; right child 1/4), what is the information gain using entropy in bits (to two…