Question: Implement K - means manually. Figure 1 : Scatter plot of datasets and the initialized centers of 3 clusters Given the input matrix x whose

Implement K-means manually.
Figure 1: Scatter plot of datasets and the initialized centers of 3 clusters
Given the input matrix x whose rows represent different data points, please perform a k-means
clustering on this dataset using the Euclidean distance as the distance function. Here k is chosen
as 3. The Euclidean distance d between input vector vec(p)inRn and vec(q)inRn is defined as
d=i=1n(pi-qi)22
All data in x were plotted in Figure 1. The center of 3 clusters were initialized as vec(c1)=(6.2,3.2)
(red), vec(c2)=(6.6,3.7)(green), vec(c3)=(6.5,3.0)(blue).
x=[[5.9,3.2],[4.6,2.9],[6.2,2.8],[4.7,3.2],[5.5,4.2],[5.0,3.0],[4.9,3.1],[6.7,3.1],[5.1,3.8],[6.0,3.0]]Implement K-means manually.
a.) What are 3 clusters and their centers after one iteration? Show the detailed steps, same as questions b.
_
b. What are 3 clusters and their centers after two iterations?
_
Implement K - means manually. Figure 1 : Scatter

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!