Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. (30 marks) You are asked to use the k-means algorithm to cluster the following 8 examples into 3 clusters: P1=(2,10), P2=(2,6), P3=(8,4), P4=(5,8),

 

2. (30 marks) You are asked to use the k-means algorithm to cluster the following 8 examples into 3 clusters: P1=(2,10), P2=(2,6), P3=(8,4), P4=(5,8), P5=(7,4), P6=(6,4), P7=(1,2), P8=(4,9). (a) Compute the distance matrix based on the Euclidean distance. (b) Suppose that the initial seeds (centroids of each cluster) are A1, A4 and A7. Run the k- means algorithm for 1 iteration ONLY and then write down: i) The new clusters (i.e. the examples belonging to each cluster) ii) The centroids of the new clusters

Step by Step Solution

3.48 Rating (158 Votes )

There are 3 Steps involved in it

Step: 1

To solve this problem we will follow the steps of the kmeans algorithm a Compute the distance matrix ... 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

Step: 3

blur-text-image

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

Foundations of Financial Management

Authors: Stanley Block, Geoffrey Hirt, Bartley Danielsen

15th edition

77861612, 1259194078, 978-0077861612, 978-1259194078

More Books

Students also viewed these Programming questions