






























































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!































































K-means clustering Hierarchical clustering
We can see that there are three clusters in the data
STEPS FOR K-MEANS CLUSTERING
Let us assume that we select the red and blue points as the centriods
We know from geometry that the points on the green line are equi-distant from the red and blue centroid. Now it becomes clear, which points will belong to cluster 1 and cluster 2.
Closest centroid is a relative term. We are using Euclidean distance here But in other scenarios some other parameters may be more appropriate
New centroids have been assigned
Now, we will recolor those three points to assign them the correct cluster. Since some reassignment as taken place therefore, we go back to step 4
Compute the center of gravity for the new clusters