Question: Step 1) Scale the data and set the random seed to 42 IMPORTANT: In order to get results for the K-means cluster analysis that align
Step 1) Scale the data and set the random seed to 42 IMPORTANT: In order to get results for the K-means cluster analysis that align with the correct answers in the assignment quiz, you MUST set the seed value to 42 using the set.seed () function that was discussed in the module videos. If you do not do this, you will not be able to reproduce the answers that correspond with the assignment quiz. Step 2) Create a function to calculate the total within-cluster sum of squared deviations using 10 random starts (nstart=10). Step 3) Generate an elbow plot Quiz Question #1: What does the elbow plot depict? Step 4) Run k-means clustering with 4 clusters (k=4) and 1000 random restarts Step 5) Display the structure of the 4-means clustering object Quiz Question #2: What is the size of the largest cluster? Quiz Question #3: What is the size of the smallest cluster?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
