A data scientist will use SageMaker k-means to segment customers and must choose the optimal number of clusters (k). Which visualization approach will most reliably identify the best k?
Choose an answer
Tap an option to check your answer.
Correct answer: Run k-means for a range of k, compute the sum of squared errors (SSE) for each k, and plot SSE versus k. Choose the k at the elbow point where the curve begins to decrease linearly..
Why this is the answer
The elbow method, which involves plotting the Sum of Squared Errors (SSE) against the number of clusters (k), is a standard and reliable technique for determining the optimal k for k-means clustering. The "elbow point" signifies where adding more clusters provides diminishing returns in terms of reducing SSE, indicating a good balance between model complexity and data fit. The other options are less reliable for this specific task: Using PCA components for visualization and subjective separation is prone to misinterpretation and doesn't guarantee optimal clustering in the higher-dimensional space. Plotting PCA components versus explained variance helps determine the number of components to retain for dimensionality reduction, not the optimal number of clusters for k-means. t-SNE is a dimensionality reduction technique for visualization, and while it can show clusters, choosing k based on visual separation from t-SNE plots across various perplexity values is subjective and not a direct method for optimizing k-means.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed