0% found this document useful (0 votes)
7 views

Clustering_activity_K_Means+(age+and+amount)

The document outlines the results of a k-means clustering analysis on customer data, focusing on age and money spent on dresses. It includes multiple iterations showing the assignment of customers to clusters and the calculation of cluster centers. The final clusters indicate distinct groupings based on spending behavior and age demographics.

Uploaded by

shaikh hamid
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)
7 views

Clustering_activity_K_Means+(age+and+amount)

The document outlines the results of a k-means clustering analysis on customer data, focusing on age and money spent on dresses. It includes multiple iterations showing the assignment of customers to clusters and the calculation of cluster centers. The final clusters indicate distinct groupings based on spending behavior and age demographics.

Uploaded by

shaikh hamid
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/ 10

Iter

Customer Money spent Money


on dresses spent on
Age(X) (₹1000) (Y) Cluster Center Age dresses
1 28 11 2 1 10.0 8.0
2 45 2 2 43.0 6.0
3 28 15
4 51 3 SSE 250.0
5 42 7
6 26 12
7 23 10

8 43 3.2
9 26 17
10 45 2.6
11 24 10

Iter

Customer Money spent Money


on dresses spent on
Age(X) (₹1000) (Y) Cluster Center Age dresses
1 28 11 1 #DIV/0! #DIV/0!
2 45 2 2 28.0 11.0
3 28 15
4 51 3 SSE 0.0
5 42 7
6 26 12
7 23 10
8 43 3.2
9 26 17
10 45 2.6
11 24 10

Iter
B

Customer Money spent Money


on dresses spent on
Age(X) (₹1000) (Y) Cluster Center Age dresses
1 28 11 1 #DIV/0! #DIV/0!
2 45 2 2 #DIV/0! #DIV/0!
3 28 15
4 51 3 SSE 0.0
5 42 7
6 26 12
7 23 10
8 43 3.2
9 26 17
10 45 2.6
11 24 10

Iter
B

Customer Money spent Money


on dresses spent on
Age(X) (₹1000) (Y) Cluster Center Age dresses
1 28 11 1 #DIV/0! #DIV/0!
2 45 2 2 #DIV/0! #DIV/0!
3 28 15
4 51 3 SSE 0.0
5 42 7
6 26 12
7 23 10
8 43 3.2
9 26 17
10 45 2.6
11 24 10
k-means Clustering
Iteration 1

18

16

X14 Y X Y Min Squared Distance


#N/A #N/A 28 11 250.0
12
45 2 #N/A #N/A 0.0
10 28 15 #N/A #N/A 0.0
51 3 #N/A #N/A 0.0
8
42 7 #N/A #N/A 0.0
6 26 12 #N/A #N/A 0.0
23 10 #N/A #N/A 0.0
4

2
43 3.2 #N/A #N/A 0.0
0 26 17 #N/A #N/A 0.0
5 10 15
45 2.620 25
#N/A 30 35
#N/A 40 45 50 55
0.0
24 10Cluster 1#N/A
Cluster 2 #N/A
Center 0.0

Iteration 2

12

10
X Y X Y Min Squared Distance
8 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
6 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
4 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
2 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
0 #N/A #N/A #N/A #N/A 0.0
0 5 10 15
#N/A #N/A #N/A #N/A20 25 30
0.0
#N/A #N/ACluster 1#N/A
Cluster 2 #N/A
Center 0.0

Iteration 3

12

10
X Y X Y Min Squared Distance
8

6
12

10

8 #N/A #N/A #N/A #N/A 0.0


#N/A #N/A #N/A #N/A 0.0
6 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
4 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
2 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
0 #N/A #N/A #N/A #N/A 0.0
0 2 4 6
#N/A #N/A #N/A #N/A8 10 12
0.0
#N/A #N/ACluster 1#N/A
Cluster 2 #N/A
center 0.0

Iteration 4

12

10
X Y X Y Min Squared Distance
8 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
6 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
4 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
2 #N/A #N/A #N/A #N/A 0.0
#N/A #N/A #N/A #N/A 0.0
0 #N/A #N/A #N/A #N/A 0.0
0 2
#N/A #N/A 4 #N/A 6 #N/A8 10 12
0.0
#N/A #N/ACluster 1#N/A
Cluster 2 #N/A
center 0.0
1. Input the distances of each point from both the cluster centres in all the ce
2. For Dist_C1,Input the distance formula for each datapoint to cluster center
3. For Dist_C2,Input the distance formula for each datapoint to cluster center
4. The new centers of the clusters will appear in the next iteration box
Dist_C1 Dist_C2 5. Repeat this process till the centers of 2 consecutive iterations converge
18.2 15.8 6. If the all the inputs are correctly filled, then you will find that the cluster ce
This means that the solution converged and the final segmentation is done.

Dist_C1 Dist_C2

Dist_C1 Dist_C2
Dist_C1 Dist_C2
th the cluster centres in all the cells of Dist_C1 and Dist_C2 columns
r each datapoint to cluster center 1 (Refer formula in the cell T6)
r each datapoint to cluster center 2 (Refer formula in the cell U6)
ar in the next iteration box
nsecutive iterations converge
en you will find that the cluster centers in Iteration 3 and 4 will be same.
the final segmentation is done.
Distance Distance
Customer Money to Cluster to Cluster
spent on centre 1 centre 2 Assigned
Age dresses Cluster

1 28 11 18.2 15.8 2
2 45 2 35.5 4.5 2
3 28 15 19.3 17.5 2
4 51 3 41.3 8.5 2
5 42 7 32.0 1.4 2
6 26 12 16.5 18.0 1
7 23 10 13.2 20.4 1

8 43 3.2 33.3 2.8 2

9 26 17 18.4 20.2 1
10 45 2.6 35.4 3.9 2
11 24 10 14.1 19.4 1
Money
Cluster spent on
Center Age dresses
1 10.0 8.0
2 43.0 6.0

Customer

Age

Money
Customer spent on
dresses Assigned
Age (₹1000) Cluster 6 26
1 28 11 2 7 23
2 45 2 2 9 26
3 28 15 2 11 24

4 51 3 2 Age
Cluster centre
5 42 7 2 1 25.8
8 43 3.2 2
10 45 2.6 2

Money
spent on
dresses
Age (₹1000)
Cluster
centre 2 45.2 3.6
Money
spent on
dresses Assigned
(₹1000) Cluster

12 1
10 1
17 1
10 1

Money
spent on
dresses
(₹1000)

12.5

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy