Clustering_activity_K_Means+(age+and+amount)
Clustering_activity_K_Means+(age+and+amount)
8 43 3.2
9 26 17
10 45 2.6
11 24 10
Iter
Iter
B
Iter
B
18
16
2
43 3.2 #N/A #N/A 0.0
0 26 17 #N/A #N/A 0.0
5 10 15
45 2.620 25
#N/A 30 35
#N/A 40 45 50 55
0.0
24 10Cluster 1#N/A
Cluster 2 #N/A
Center 0.0
Iteration 2
12
10
X Y X Y Min Squared Distance
8 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
6 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
4 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
2 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
0 #N/A #N/A #N/A #N/A 0.0
0 5 10 15
#N/A #N/A #N/A #N/A20 25 30
0.0
#N/A #N/ACluster 1#N/A
Cluster 2 #N/A
Center 0.0
Iteration 3
12
10
X Y X Y Min Squared Distance
8
6
12
10
Iteration 4
12
10
X Y X Y Min Squared Distance
8 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
6 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
4 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
2 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
0 #N/A #N/A #N/A #N/A 0.0
0 2
#N/A #N/A 4 #N/A 6 #N/A8 10 12
0.0
#N/A #N/ACluster 1#N/A
Cluster 2 #N/A
center 0.0
1. Input the distances of each point from both the cluster centres in all the ce
2. For Dist_C1,Input the distance formula for each datapoint to cluster center
3. For Dist_C2,Input the distance formula for each datapoint to cluster center
4. The new centers of the clusters will appear in the next iteration box
Dist_C1 Dist_C2 5. Repeat this process till the centers of 2 consecutive iterations converge
18.2 15.8 6. If the all the inputs are correctly filled, then you will find that the cluster ce
This means that the solution converged and the final segmentation is done.
Dist_C1 Dist_C2
Dist_C1 Dist_C2
Dist_C1 Dist_C2
th the cluster centres in all the cells of Dist_C1 and Dist_C2 columns
r each datapoint to cluster center 1 (Refer formula in the cell T6)
r each datapoint to cluster center 2 (Refer formula in the cell U6)
ar in the next iteration box
nsecutive iterations converge
en you will find that the cluster centers in Iteration 3 and 4 will be same.
the final segmentation is done.
Distance Distance
Customer Money to Cluster to Cluster
spent on centre 1 centre 2 Assigned
Age dresses Cluster
1 28 11 18.2 15.8 2
2 45 2 35.5 4.5 2
3 28 15 19.3 17.5 2
4 51 3 41.3 8.5 2
5 42 7 32.0 1.4 2
6 26 12 16.5 18.0 1
7 23 10 13.2 20.4 1
9 26 17 18.4 20.2 1
10 45 2.6 35.4 3.9 2
11 24 10 14.1 19.4 1
Money
Cluster spent on
Center Age dresses
1 10.0 8.0
2 43.0 6.0
Customer
Age
Money
Customer spent on
dresses Assigned
Age (₹1000) Cluster 6 26
1 28 11 2 7 23
2 45 2 2 9 26
3 28 15 2 11 24
4 51 3 2 Age
Cluster centre
5 42 7 2 1 25.8
8 43 3.2 2
10 45 2.6 2
Money
spent on
dresses
Age (₹1000)
Cluster
centre 2 45.2 3.6
Money
spent on
dresses Assigned
(₹1000) Cluster
12 1
10 1
17 1
10 1
Money
spent on
dresses
(₹1000)
12.5