0% found this document useful (0 votes)
311 views8 pages

K Means Clustering Solved Numerical - 5 Minutes Engineering

This document discusses using k-means clustering to form two clusters from a dataset containing individuals' heights and weights. It shows assigning initial centroids, calculating distances between data points and centroids to assign clusters, updating the centroids, and repeating until clusters are stable. The final assigned clusters are presented at the end.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
311 views8 pages

K Means Clustering Solved Numerical - 5 Minutes Engineering

This document discusses using k-means clustering to form two clusters from a dataset containing individuals' heights and weights. It shows assigning initial centroids, calculating distances between data points and centroids to assign clusters, updating the centroids, and repeating until clusters are stable. The final assigned clusters are presented at the end.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

10/3/23, 10:13 AM K Means Clustering Solved Numerical - 5 Minutes Engineering

5 MINUTES ENGINEERING  MENU


Helpi n g S t u d e n t s

Install Email Finder Extension


Find email addresses and launch your email prospecting project in
seconds.

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

 PREV POST NEXT POST 

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

Underfitting and Overfitting

do while loop in C programming language

While loop in C Programming Language


oi.ppa
10/3/23, 10:13 AM K Means Clustering Solved Numerical - 5 Minutes Engineering

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

Install Email Finder Extension

Skrapp.io Ope

Install Email Finder Extension

Skrapp.io Ope
Home

About us

Contact us

Privacy Policy

Terms and Conditions

© 2021 5 Minutes Engineering

You might also like