ADM3308-Fall 2025: Business Data Mining
Review Assignment #1
Q10) [10 marks] We want to predict David’s response to a marketing campaign using the
following labeled data. Predict David’s response using K-Nearest Neighbor algorithm,
with K=3, and Manhattan distance, also, considering the voting weight of each
customer as indicated in the dataset below.
Remember to first normalize each feature between [0, 1].
Show the steps of your calculations.
Customer
Age
Income
(K)
Nbr of
credit
cards
Response to
promotion,
Voting
weight
John
35
35
3
No,
weight=2
Maryam
22
50
2
Yes,
weight=3
Rachel
63
200
1
No
Weight=1
Ahmad
59
170
1
No,
Weight=1
Hannah
25
40
4
Yes
Weight=2
David
37
50
2
?
Customer
Age
Income
(K)
No.
credit
cards
Response to Manhattan
promotion, Distance to
Voting
“David”
weight
John
0.317
0
0.667
No,
weight=2
0.474
Maryam
0
0.091
0.333
Yes,
weight=3
0.366
Rachel
1
1
0
No
Weight=1
1.876
University of Ottawa
Telfer School of Management
Page 1 of 2
ADM3308-Fall 2025: Business Data Mining
Ahmad
0.902
0.818
0
No,
Weight=1
1.596
Hannah
0.073
0.030
1
Yes
Weight=2
1.021
David
0.366
0.091
0.333
Normalizing Age:
Min= 22 , Max= 63
John: (35-22)/(63-22)= 0.317
Rachel: (63-22)/(63-22)=1
Hannah: (25-22)/(63-22)=0.073
Yes
Maryam: (22-22)/(63-22)=0
Ahmad: (59-22)/(63-22)=0.902
David: (37-22)/(63-22)=0.366
Normalizing Income:
Min=35 , Max=200
John: (35-35)/(200-35)= 0
Rachel: (200-35)/(200-35)=1
Hannah: (40-35)/(200-35)=0.030
Maryam: (50-35)/(200-35)=0.091
Ahmad: (170-35)/(200-35)=0.818
David: (50-35)/(200-35)=0.091
Normalizing Nbr of Credit Cards:
Min=1 , Max=4
John: (3-1)/(4-1)= 0.667
Rachel: (1-1)/(4-1)=0
Hannah: (4-1)/(4-1)=1
Maryam: (2-1)/(4-1)=0.333
Ahmad: (1-1)/(4-1)=0
David: (2-1)/(4-1)=0.333
Manhattan Distance between “David”, and …
John: |Age1-Age2| + |Income1-Income2| + |NbrofCcard1 – NbrofCard2|=
=|0.317-0.366| + |0-0.091| + |0.667-0.333|=0.049+0.091+0.334=0.474
The 3 neighbors are
John with 2 X “No” votes
Maryam with 3 X “Yes” votes
Hannah with 2 X “Yes” vote
Therefore, David is predicted to say “Yes”.
University of Ottawa
Telfer School of Management
Page 2 of 2