Cluster Analysis
What is Cluster Analysis?
Cluster analysis is a family of statistical methods, such as k-means and hierarchical clustering, that group data points by similarity without predefined labels. Product teams use it to find customer segments from behavior or needs.
Updated November 2026 · 3 min read
Cluster analysis is a set of statistical methods that sort data points into groups, called clusters, so that items in the same group are more similar to each other than to items in other groups. Unlike classification, it does not start with predefined labels: the method finds the groups from the data. In product and marketing work it is most often used to discover customer segments based on behavior, needs or value, rather than on assumptions about who the customers are.
The groups a clustering algorithm finds are not facts about the world. They depend on which variables go in, how those variables are scaled and which method is chosen. Good cluster analysis is therefore part statistics and part judgment: the test of a segmentation is whether the groups are distinct, stable and useful for a decision.
Types of cluster analysis
| Method | How it works | Good for | Watch out for |
|---|---|---|---|
| K-means | Assigns each point to the nearest of k cluster centers, then moves the centers, repeating until assignments settle | Large data sets with numeric variables | You must choose k in advance; assumes roughly round, similar-sized clusters; sensitive to outliers |
| Hierarchical | Merges the closest points or groups step by step (or splits from the top), producing a tree called a dendrogram | Smaller data sets; seeing how groups nest | Slow on large data; early merges cannot be undone |
| Density-based (such as DBSCAN) | Forms clusters from dense regions and labels sparse points as noise | Irregular cluster shapes; finding outliers | Results depend on density settings; struggles when clusters differ in density |
| Model-based (such as Gaussian mixture models) | Treats data as a mix of probability distributions and gives each point a probability of belonging to each cluster | Overlapping groups; soft membership | More assumptions and more computation |
How to do cluster analysis
- Define the decision. State what the clusters will be used for, such as tailoring onboarding or pricing packages. The decision determines which variables matter.
- Choose variables. Pick a small set of meaningful measures, such as feature usage, team size, order frequency or revenue. Avoid many highly correlated variables, which overweight one idea.
- Prepare the data. Handle missing values, cap extreme outliers and standardize variables so that one measured in thousands does not swamp one measured in single digits.
- Run the method. Try more than one number of clusters. The elbow method and silhouette scores help compare options, but neither gives a definitive answer.
- Profile the clusters. Describe each group by its averages and by attributes that were not used to build it, such as industry or churn rate.
- Validate. Check that clusters hold up on a different time period or sample, and that teams can recognize and act on them.
Cluster analysis vs. segmentation
Customer segmentation is the business practice of dividing customers into groups to serve them differently. Cluster analysis is one way to produce segments, by letting the data suggest them. Many segmentations are rule-based instead, such as splitting by company size or region. The two are often combined: clustering on behavior, then checking whether the clusters line up with simple rules that sales and marketing can apply.
Cluster analysis in practice
Consider a hypothetical design software company with 12,000 paying accounts. The product team clusters accounts on four standardized variables: seats, projects created per month, share of activity in collaboration features and API calls per month. After comparing three to seven clusters, it chooses four because they are distinct and easy to describe:
- Solo creators (5,400 accounts, 45%): one or two seats, steady project creation, little collaboration.
- Collaborative teams (3,600 accounts, 30%): five to 30 seats and heavy use of comments and shared libraries.
- Automators (1,800 accounts, 15%): high API usage, often building designs into other workflows.
- Dormant accounts (1,200 accounts, 10%): paying but creating fewer than one project a month.
Profiling shows the dormant group has the highest churn, which leads to a targeted re-engagement program, while the automators become the focus of a new API pricing tier.
Common pitfalls
- Clustering on whatever data is available. Variables chosen because they are easy to export rarely produce useful segments.
- Skipping standardization. Unscaled variables let the one with the largest numbers decide the clusters.
- Treating the number of clusters as obvious. Different values of k give different stories. Compare several and choose on usefulness as well as fit statistics.
- Never refreshing. Customer behavior changes. Re-run the analysis periodically and track how accounts move between clusters.
Cluster analysis supports market segmentation, behavioral segmentation and persona development, and its segments are often used as inputs to cohort analysis.
Frequently asked questions
How do you choose the number of clusters in cluster analysis?
Try several values and compare them. The elbow method and silhouette scores help, but neither gives a definitive answer. Choose the number that produces groups that are distinct, stable across samples or time periods, easy to describe and useful for the decision at hand. Different numbers of clusters tell different stories, so usefulness matters as much as fit.
What is the difference between cluster analysis and customer segmentation?
Customer segmentation is the business practice of dividing customers into groups to serve them differently. Cluster analysis is one way to create those segments, by letting the data suggest the groups. Many segmentations are rule-based instead, such as by company size or region, and teams often check whether behavioral clusters line up with simple rules.
Why do you standardize variables before running cluster analysis?
Most clustering methods compare data points by distance, so a variable recorded in thousands, such as revenue, would swamp one measured in single digits, such as seats. Standardizing puts variables on a comparable scale so each contributes fairly. Without it, the variable with the largest numbers effectively decides the clusters on its own.
Related terms
Customer Segmentation
Grouping customers by traits that change how to serve or sell to them.
Market Segmentation
Dividing a market into customer groups that respond alike.
Behavioral Segmentation
Grouping customers by what they do rather than who they are.
Persona
A research-based profile of a typical user type.