Question
Consider a 1-dimensional dataset {1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 24, 28, 32, 36, 40} with the three natural clusters {1,
Consider a 1-dimensional dataset {1, 2, 3, 4, 5, 8, 9, 10, 11, 12, 24, 28, 32, 36, 40} with the three natural clusters {1, 2, 3, 4, 5}, {8, 9, 10, 11, 12} and {24, 28, 32, 36, 40}. Apply the k-means algorithm with k = 3 to this dataset and show the resulting clusters and cluster centroids for every iteration. Use the algorithm ClusteringByVarianceMinimization, not the incremental algorithm that has originally been published as k-means. We are assuming that ties are broken by assigning an object to the smallest of the closest centroids.
(a) Start with initial centroids of 1, 11, and 28. Does the algorithm detect the natural clusters?
(b) Start with initial centroids of 1, 2, and 3. Does the algorithm detect the natural clusters? What does this tell you?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started