AWS Certified AI Practitioner (AIF-C01) — Question 132
A company wants to find groups for its customers based on the customers’ demographics and buying patterns.
Which algorithm should the company use to meet this requirement?
Answer options
- A. K-nearest neighbors (k-NN)
- B. K-means
- C. Decision tree
- D. Support vector machine
Correct answer: B
Explanation
The K-means algorithm is ideal for clustering based on demographics and buying patterns, as it groups data points into clusters based on similarity. K-nearest neighbors (k-NN) is used for classification rather than clustering, while decision trees and support vector machines are more suited for predictive modeling rather than grouping similar data.