Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have been provided with a dataset containing information about customer spending habits. Your task is to use the k - means algorithm with Euclidean

You have been provided with a dataset containing information about customer spending habits. Your task is to use the k-means algorithm with Euclidean distance to cluster the following 8 examples into 3 clusters:
\table[[Customer,Spending (in $)],[C1,200],[C2,150],[C3,300]]
Suppose that the initial seeds (centres of each cluster) are C1, C4, and C7. Run the k-means algorithm for 1 epoch only.
In particular:
a) Fill the distance matrix based on the Euclidean distance of the points given above:
\table[[,C1,C2,C3,C4,C5,C6,C7,C8],[C1,0,,,,,,,],[C2,,0,,,,,,],[C3,,,0,,,,,],[C4,,,,0,,,,],[C5,,,,,0,,,],[C6,,,,,,0,,],[C7,,,,,,,0,],[C8,,,,,,,,0]]
b) Calculate the cluster assignment at the end of the first epoch:
a. The new cluster assignment (i.e., contents of each cluster)
b. The centroids of the new clusters
c) How many more iterations are needed to converge? Show cluster assignments and updated centroids for each of the remaining epochs.
In your report, you need to include the appropriate cluster assignment and centroids.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

=+ (d) When is there convergence is the sense of (4.6)?

Answered: 1 week ago

Question

How do patients across cultures prefer to make medical decisions?

Answered: 1 week ago