Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2. Now, we will use K-means and hierarchical clustering on the data. (a) How many clusters do you think we should specify? Why? (b) Conduct
2. Now, we will use K-means and hierarchical clustering on the data. (a) How many clusters do you think we should specify? Why? (b) Conduct K-means clustering with 2 clusters. What are the cluster means? (Hint, In R, set.seed(1) km.out = kmeans(tumor,2,nstart=20) (c) Make a scatterplot matrix between all variables and color the points by cluster. Describe your findings. (Hint. In R, pairs(tumor,col=km.out$cluster)) (d) Using complete linkage, perform hierarchical clustering and color the points on the scatterplot matrix as in the previous question. Is the result much different? (Hint: In R, hc.complete=hclust(dist(tumor), method="complete") cutree(hc.comp|ete,2)
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