0% found this document useful (0 votes)
48 views5 pages

K Mean Clustering (Assignment 2)

k mean clustering example

Uploaded by

Mohammad Sharif
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views5 pages

K Mean Clustering (Assignment 2)

k mean clustering example

Uploaded by

Mohammad Sharif
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Question (2,3) (5,6) (8,7) (1,4) (2,2) (6,7) (3,9) (8,6) x y

K- Means Clustering 2 3
C1=(2,3) and c2=(5,6) K=2 5 6
8 7
1 4
2 2
6 7
3 9
8 6

Now for C1(2,3.25) meman (2,3.25) 2 3


C2(6.75,6.5) mean (6.75, 6.5) 5 6
8 7
we should stop process of finding mean when new means 1 4
equals to old means 2 2
6
3 9
8 6

8
7 K-Mean Clustring
6 8
5
7
4
3 6

2 5
1
4

0
0 1 2 3 4 5
3

0
0 1 2 3 4 5
squart[(x-2)^2+(y-3)^2]= squart[(x-5)^2+(y-6)^2]=
0 18 c1
2.82 0 c2
7.21 3.16 c2
1.41 4.72 c1
1 2.23 c1
5.65 2.83 c2
1.41 1.41 c1
6.7 3 c2

C1(2,3)(1,4)(2,2)(3,4) Mean(x,y)=(x1+x2+x3+x4)/4=
(2+1+2+3)/4=2
C2(5,6)(8,7)(6,7)(8,6) similarly for y (y1+y2+y3+y4)/4=
(3+4+2+4)/4=3.25
C1 (2,3.25)
C2 similarly for y (y1+y2+y3+y4)/4= ,y (y1+y2+y3+y4)/4=
C2 6.75,6.5
C1(2.3,3.25)
C2(6.75, 6.5)
squart[(x-2)^2+(y-3.25)^2]= squart[(x-6.75)^2+(y-6.5)^2]=
0.25 squart( 34.81) c1
squart(16.5) squart( 3.31) c2
squart(50.06) squart (1.81) c2
Squart (1.56) Squart39.31) c1
squart(1.25) squart(42.81) c1
7 squart(30.04) squart(0.89
squart(1.56) Squart(20.31) c1
squart(43.56) Squart(1.81) c2

K-Mean Clustring x
8 2
5
7
8
6 1
5 2
6
4
3
3 8
2

0
0 1 2 3 4 5 6 7 8 9
3

0
0 1 2 3 4 5 6 7 8 9
c2

y
3
6
7
4
2
7
4
6

You might also like