Download presentation
Presentation is loading. Please wait.
Published byNickolas Jared Lane Modified over 9 years ago
1
Clustering Methods K- means
2
K-means Algorithm
3
Assume that K=3 and initially the points are assigned to clusters as follows. C 1 ={x 1,x 2,x 3 }, C 2 ={x 4,x 5,x 6 } and C 3 ={x 7,x 8 }. Apply the K-means algorithm until convergence.(i.e. untill the clusters do not change), using the manhattan distance. Problem Statement
4
Given data X1=(1,9) X2=(1,2) X3=(9,5) X4=(4,7) X5=(10,6) X6=(7,5) X7=(2,3) X8=(4,8)
5
K-means The initial centroids are C 1 ={x 1,x 2,x 3 } C 2 ={x 4,x 5,x 6 } C 3 ={x 7,x 8 }
6
K-means Manhattan distance Distance calculation:
7
Iteration 1 The table shows the distance between the object and centroids
8
Iteration 1 New centroids
9
Iteration 2 The table shows the distance between the object and new centroids
10
Iteration 2 New centroids
11
Interation 3 The table shows the distance between the object and new centroids
12
Iteration 3 New centroids
13
Results At this stage centroid remains same. The K-means algorithm converges here. Thus the final centroids are ◦ C 1 =(3,8) ◦ C 2 =(8.67,5.33) ◦ C 3 =(1.5,2.5)
14
Results
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.