- Compute the centroid of the following clusters:
a) 2, 3, 4
b) 100$, 400$, 1000$
c) (10,20), (40, 60), (0, 40)
d) (200$, 40km), (300$, 60km), (500$, 100km), (250$, 200km)
e) (1,2,4), (0,0,3), (10,20,5), (4,8,2), (5,0,1)
- Cluster the following datasets into the 2, 3 and 4 clusters using k-means clustering algorithm:
a) 0, 2, 5, 4, 8, 10, 12, 11.
b) (2,2), (2,5), (10,4), (3,5), (7,3), (5,9), (2,8), (4,10), (7,4), (4,4), (5,8), (9,3).
- (Couples and the number of their children) We are given the following ages of the couples and their number of the children.
Couple number
|
Wife age
|
Husband age
|
Number of children
|
1
|
48
|
49
|
5
|
2
|
40
|
43
|
2
|
3
|
24
|
28
|
1
|
4
|
49
|
42
|
3
|
5
|
32
|
34
|
0
|
6
|
24
|
27
|
0
|
7
|
29
|
32
|
2
|
8
|
35
|
35
|
2
|
9
|
33
|
36
|
1
|
10
|
42
|
47
|
3
|
11
|
22
|
27
|
2
|
12
|
41
|
45
|
4
|
13 ... |