K Means Clustering Solved Numerical - 5 Minutes Engineering
K Means Clustering Solved Numerical - 5 Minutes Engineering
Skrapp.io
K Means Clustering Solved Numerical
MAY 2, 2021
K means clustering is a unsupervised learning algorithm. NO target or dependent variable is mentioned in input data. Here we try to make groups or clusters of data points.
Numerical – Using K means clustering algorithm form two clusters for given data.
Height Weight
185 72
170 56
168 60
179 68
182 72
10/3/23, 10:13 AM K Means Clustering Solved Numerical - 5 Minutes Engineering
188 77
180 71
180 70
183 84
180 88
180 67
177 76
As per question we need to form 2 clusters, So for that we consider first two data points of our data and assign them as a centroid for each cluster as shown below
10/3/23, 10:13 AM K Means Clustering Solved Numerical - 5 Minutes Engineering
Now we need to assign each and every data point of our data to one of these clusters based on Euclidean distance calculation.
Here (X0,Y0) is our data point and (Xc,Yc) is a centroid of a particular cluster. Lets consider the next data point i.e. 3rd data point(168,60) and check its distance with the centroid of
both clusters.
10/3/23, 10:13 AM K Means Clustering Solved Numerical - 5 Minutes Engineering
Now we can see from calculations that 3rd data point(168,60) is more closer to k2(cluster 2), so we assign it to k2. After that we need to modify the centroid of k2 by using the old
centroid values and new data point which we just assigned to k2.
Now after new centroid calculations we got new centroid value for k2 as (169,58) and k1 centroid value will remain the same as NO new data point is added to that cluster(k1). We
need to repeat the above mentioned procedure until all data points are over. The final answer is mentioned below, you can check your answers.
10/3/23, 10:13 AM K Means Clustering Solved Numerical - 5 Minutes Engineering
MACHINE LEARNING
Python Indentation How to Determine the Optimal Number of Clusters – K Means Clustering
LEAVE A REPLY
Your email address will not be published. Required fields are marked *
COMMENT
NAME *
10/3/23, 10:13 AM K Means Clustering Solved Numerical - 5 Minutes Engineering
EMAIL *
WEBSITE
SAVE MY NAME, EMAIL, AND WEBSITE IN THIS BROWSER FOR THE NEXT TIME I
COMMENT.
POST COMMENT
Search
RECENT POSTS
2D Translation Numerical
2D Translation
oi.pparkS
Install
Email
Finder
Extension
Skrapp.io
Open
Install Email
Finder Extension
Find email addresses and launch your
email prospecting project in only
seconds.
Skrapp.io
10/3/23, 10:13 AM K Means Clustering Solved Numerical - 5 Minutes Engineering
Skrapp.io Ope
Skrapp.io Ope
Home
About us
Contact us
Privacy Policy