Page 139 - Data Science Algorithms in a Week
P. 139
Clustering into K Clusters
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 39 43 4
14 36 38 2
15 30 32 1
16 36 38 0
17 36 39 3
18 37 38 ?
We would like to guess using clustering how many children a couple has where the age of
the husband is 37 and the age of the wife is 38.
[ 127 ]