0
7.4kviews
What is clustering? Explain k-means clustering algorithm. Suppose the data for Clustering- (2,4,10,12,3,20,11,25)

Subject: Data Mining And Business Intelligence

Topic: Clustering

Difficulty: Medium

1 Answer
1
872views

Step 1:Randomly assign means

         m1=3, m2=4

Step 2:Calculate the distance of the objects from the mean and assign the objects to the cluster with minimum distance

         k1={2,3}    k2={4,10,12,20,30,11,25}

Step 3:Reassing means

         m1=(2+3/2)    m2=(4+10+12+20+30+11+25/2) 
         m1=2.5, m2=16

Step 4:Calculate distance and assign clusters

        k1={2,3,4}   k2={10,12,20,30,11,25}

Step 5: Reassing means

        m1=3,m2=18

Step 6: …

Create a free account to keep reading this post.

and 5 others joined a min ago.

Please log in to add an answer.