Clustering is an unsupervised learning technique where the algorithm identifies natural groupings or patterns in a dataset without any labeled outcomes. It analyzes the similarities and differences among data points to organize them into clusters, helping to reveal hidden structures in the data.
A supermarket wants to group its customers based on buying habits. The algorithm can divide customers into clusters like “frequent buyers,” “occasional buyers,” and “rare buyers,” helping the store plan targeted promotions.