MedA MedB MedC MedD Cluster 1 Cluster 2
X 1 2 4 5 1 2
Y 1 1 3 4 1 1
DISTANCE MedA MedB MedC MedD
Cluster 1 0 1 3.605551 5
Cluster 2 1 0 2.828427 4.242641
sum of "Yes"
Cluster 1 Yes No No No 1
Cluster 2 No Yes Yes Yes 3
Cluster 1
Sum of X when Cluster1 equal Yes 1 1 new X
Sum of X when Cluster2 equal Yes 1 1 new Y
Cluster 2
Sum of Y when Cluster1 equal Yes 11 3.667 new X
Sum of Y when Cluster2 equal Yes 8 2.667 new Y
RED x and y are cordinates of centroids BLUE x and y are cordinates of
DATA
4.5
3.5
2.5
1.5
0.5
0
0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5
Step 1
Step 2
This Workbook is a companion of Kardi Teknomo's tutorial on K Mean Clustering
Copyright © Kardi Teknomo and Zlatan Aki Mur 2005
Step 3 See more explanation in
[Link]
Step 4 How to use this workbook?
1. Delete the word "Stop" in the following blue cell STOP
2. Press F9 for next iteration
3. Repeat step 2 until no change in the cluster
4. To restart, type any letter in the blue cell above and press F9
cordinates of How does the iteration work?
This worksheet contains No Macro
It uses Tools > Options > Calculation > Manual
Iteration is checked for Maximum Iteration = 1
4.5 5 5.5