Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 1 6 points ) Use the data chart below to answer the following questions without using any ML R functions ( like kmeans, hclust,

(16 points) Use the data chart below to answer the following questions without using any ML R functions (like kmeans, hclust, or
k). Feel free to use any basic utilities R functions to calculate your answers. For each part, you must include all the work needed to
justify and obtain your answers in order to receive full credit.
(a) Use the 3-nearest neighbor algorithm with the Manhattan metric to calculate the
predicted target (color) of the point (5,5,4). Make sure to indicate which of the
points are the 3 nearest neighbors.
(b) Suppose that P1 and P3 are randomly selected as centroids for the 2-means
clustering algorithm (with the Euclidean metric).
(i) For the other four points, indicate for each which cluster they get assigned to (call
P1's cluster as "cluster #1" and P3's as "cluster #2")
(ii) Compute the new centroids of the clusters after (i) has been completed.
NOTE: There will be little or no partial credit for this problem, so please triple
check your work.
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

25 Vba Macros For Data Analysis In Microsoft Excel

Authors: Klemens Nguyen

1st Edition

B0CNSXYMTC, 979-8868455629

More Books

Students also viewed these Databases questions