Cluster analysis – a guide to smarter data-driven decisions

Adobe for Business Team

02-24-2025

A smiling man in a patterned shirt talks on the phone while holding a tablet in a retail store. Floating elements show a personalised ad segment for 11K seasonal shoppers and social media posts featuring green fashion items.

Cluster analysis is a statistical method that identifies and groups similar data points together, whilst highlighting the differences between distinct groups.

Consider a clothing retailer segmenting customers by purchasing behaviour – frequent buyers, seasonal shoppers, or one-time purchasers. Cluster analysis enables businesses to identify these groups and tailor their marketing strategies, from targeted advertisements to personalised offers.

In marketing, the purpose of cluster analysis is to segment consumers into distinct groups with shared characteristics. This enables businesses to better understand their target audience and tailor their marketing strategies accordingly.

What you’ll learn:

What is cluster analysis, and how does it work?

Cluster analysis is a form of unsupervised classification – it operates without any predefined categories, definitions, or expectations from the outset. As a statistical data mining technique, it groups observations that share similarities whilst distinguishing them from other groups.

A useful way to understand clustering is to picture someone sorting through a box of assorted chocolates. That person will naturally have preferences for certain types of chocolate.

As they work through the box, there are many ways to group the chocolates: milk versus dark, with nuts or without, nougat or no nougat, and so on.

The process of sorting chocolates into groups based on shared characteristics is, in essence, clustering – and it is something we all do instinctively.

An ecommerce platform, for instance, might group customers by purchasing behaviour – distinguishing budget-conscious shoppers from premium product buyers and occasional browsers. This segmentation enables the platform to create tailored promotions for each group, driving engagement and sales.

Understanding cluster analysis

Cluster analysis sits at the forefront of data analysis, which explains why sectors such as finance, insurance, retail, ecommerce, and marketing rely on it to identify patterns and relationships within their data.

There are five main clustering approaches, with k-means clustering and hierarchical (or hierarchy) clustering being the most widely used. The approach an organisation adopts depends on what is being analysed and why. Visualisation techniques such as scatter plots and dendrograms allow businesses to present their cluster analysis results in a clear and accessible way.

What is the purpose of clustering datasets?

The primary purpose of cluster analysis in marketing is to build groups, or clusters, ensuring that observations within each group are as similar to one another as possible.

In practice, the purpose varies by application. In marketing, clustering helps marketers uncover distinct groups within their customer base, which they can then use to develop targeted marketing campaigns.

Clustering may help an insurance company identify, for example, groups of motor insurance policyholders with a high average claim cost.

How an organisation intends to apply clustering determines its purpose. This is shaped primarily by the industry, the business unit involved, and the outcomes the organisation is looking to achieve.

Why is cluster analysis important for business strategy?

Cluster analysis can benefit an organisation in several ways, including shaping how it markets its products.

It can determine which audiences those products are marketed to, what retention and sales strategies are appropriate, and how prospective customers are evaluated.

By clustering existing customers, organisations can assess their lifetime value against attrition risk. This intelligence informs how they communicate with different customer segments and how to identify new high-value prospects.

What are the different types of clustering and when should you use them?

A row of five green icons representing different types of clustering algorithms: partitioning, hierarchical, density-based, grid-based, and model-based algorithms.

Five major clustering algorithms are in common use:

Clustering algorithm
Description
Best for
Disadvantages
Marketing use case
Partitioning algorithms
Partitioning algorithms, such as k-means clustering, divide the dataset into a predefined number of clusters by optimising an objective function (e.g., minimising the sum of squared distances).
Best suited to datasets where the number of clusters is known in advance and those clusters are clearly distinct.
  • Requires the number of clusters to be specified in advance
  • May not perform well with clusters of varying sizes and densities
  • Sensitive to outliers
Segmenting corporate clients into distinct groups based on purchasing patterns, enabling targeted B2B email campaigns and personalised product offerings.
Hierarchical algorithms
Hierarchical algorithms – including agglomerative and divisive clustering – construct a nested hierarchy of clusters by merging or splitting them according to similarity.
Particularly useful when the underlying data has a hierarchical structure, or when the number of clusters is not known in advance.
  • Computationally intensive for large datasets
  • Early clustering decisions cannot be reversed
  • Sensitive to noise and outliers
Organising business customer data into a hierarchical structure (e.g., by industry, then by company size) to tailor multi-level marketing strategies and account management.
Density-based algorithms
Density-based algorithms, such as DBSCAN, identify clusters as dense regions of data points separated by areas of lower density, enabling the discovery of clusters with arbitrary shapes.
Well-suited to datasets with clusters of varying shapes and sizes, particularly where noise is present.
  • Sensitive to parameter selection
  • May not perform well with clusters of varying densities or high-dimensional data
  • Can misclassify border points
Identifying clusters of high engagement among B2B clients within noisy transaction data, to focus marketing efforts on high-value accounts or areas of concentrated business activity.
Grid-based algorithms
Grid-based algorithms divide the data space into a finite number of cells forming a grid structure, then identify clusters according to the density of data points within those cells.
Well-suited to handling large datasets where a fast clustering method is required.
  • Heavily dependent on grid resolution
  • May not capture clusters of arbitrary shapes
  • Potential loss of detail
Quickly clustering large volumes of B2B lead data (e.g., by geolocation or other business attributes) to identify regional hotspots for targeted sales outreach and marketing campaigns.
Model-based algorithms
Model-based algorithms proceed on the assumption that data is generated by a mixture of underlying probability distributions, and seek to estimate the parameters of those distributions.
Best suited to datasets where the data distribution can be well-modelled by statistical distributions.
  • Computationally expensive
  • Requires correct model assumptions
  • Sensitive to initial conditions and potential model misspecification.
Segmenting B2B customers by fitting models (such as Gaussian mixture models) to transaction data, uncovering distinct buying behaviour segments for tailored marketing strategies.

What are the characteristics of a good cluster analysis?

A good cluster analysis groups data accurately in ways that are both useful and actionable. It surfaces genuine patterns, yielding insights that inform sound decisions. A bad cluster analysis, by contrast, produces misleading or arbitrary groupings that neither solve a problem nor add value.

The characteristics of good cluster analysis are:

For example, consider segmenting B2B customers based on their purchasing habits. A well-constructed clustering model groups them into:

Each group can be targeted with a tailored marketing strategy, improving conversions and increasing customer satisfaction.

By contrast, poor cluster analyses produce:

To illustrate, suppose a marketing team clusters customers based on the number of vowels in their company name. While mathematically possible, this grouping has no business value – it doesn’t predict behaviour, preferences, or needs. The outcome is a meaningless segmentation that wastes time and resources.

What are the disadvantages of cluster analysis, and how can companies avoid problems?

Disadvantage
Problem
How to avoid it
Arbitrary number of clusters
Determining the optimal number of clusters (k) can be challenging and may not reflect the true structure of the data.
Use methods such as the elbow method or silhouette score to estimate the appropriate k. Test different values and validate the results.
Sensitivity to outliers and noise
Outliers can distort cluster formation, resulting in inaccurate groupings.
Pre-process data to identify and handle outliers. Consider density-based clustering algorithms, such as DBSCAN, which are more resilient to noise.
Poor interpretability
Clusters can be difficult to interpret or apply in practice.
Select relevant features carefully. Utilise visualisation techniques such as Principal Component Analysis (PCA) or t-Distributed Stochastic Neighbor Embedding (t-SNE) to improve interpretability.
Unequal cluster sizes and density
Algorithms such as k-means assume clusters of similar size and density, which may not reflect real-world data.
Consider alternative approaches such as hierarchical clustering or Gaussian mixture models (GMM), which can accommodate clusters of varying shapes and sizes.
Computational complexity
Clustering large datasets can be resource-intensive and time-consuming.
Adopt grid-based or sampling-based approaches to improve computational efficiency.
Overfitting to noise
The model may identify patterns in random noise, producing spurious clusters.
Regularly validate clusters against real-world business logic, and use holdout datasets to test for overfitting.
Dependency on feature selection
Poorly chosen features can produce misleading clusters.
Carry out thorough feature selection, or apply dimensionality reduction techniques such as PCA or linear discriminant analysis (LDA), before clustering.

Organisations can avoid common clustering pitfalls by:

How do you perform cluster analysis?

A step-by-step flowchart with six green circles detailing the clustering analysis process: choosing an analysis method, determining the number of cases, selecting variables, deciding on standardisation, applying an algorithm, and finalising clusters.

Step 1: Choose an analysis method

The first step in cluster analysis is selecting an analysis method. The appropriate choice will depend on the size of the dataset and the types of variables involved.

Hierarchical clustering, for example, suits smaller datasets, whilst k-means clustering is better suited to moderately large datasets where the number of clusters is known in advance.

Large datasets typically involve a mixture of variable types and generally require a two-step procedure.

Step 2: Determine the number of cases

Once you have decided on the analysis method, determine how many cases to subdivide into homogeneous groups or clusters. These cases, or observations, can be any subject, person, or thing you wish to analyse.

Step 3: Select variables for analysis

Next, select the variables to include. There may be 1,000 variables, or even 10,000 or 25,000. The number and types of variables chosen will determine which type of algorithm to use.

Step 4: Decide on variable standardisation

Decide whether to standardise the variables so that each one contributes equally to the distance or similarity between cases. The analysis can be run with both standardised and unstandardised variables.

Step 5: Apply the chosen algorithm

Each analysis method takes a different approach.

Step 6: Finalise the number of clusters

Finally, the algorithm selects a method for forming the groups and determines how many clusters are needed to represent the data. It assesses how similar the clusters are and splits them accordingly.

What do you do with the results of a cluster analysis?

Most clustering methods have an associated visualisation, which is widely used to investigate results. For k-means clustering, it is common to plot x and y axes showing the distance between groups of observations.

This type of visualisation makes the groupings clearly apparent. For hierarchical clustering, a visualisation called a dendrogram is used, showing the splits in the cut tree.

How do you ensure your cluster analysis is accurate?

Begin by assessing cluster tendency. Before applying any clustering algorithm, verify whether your dataset has the potential to form meaningful clusters or whether it is randomly distributed.

The Hopkins statistic is a widely used method for this purpose. It measures the probability that your data is uniformly distributed. A value near 0 indicates a strong cluster tendency, whilst a value around 0.5 suggests that the data is essentially random.

Visual tools such as the Visual Assessment of cluster Tendency (VAT) complement this approach by reordering the dissimilarity matrix to highlight potential clusters. If these tests confirm that your data naturally groups together, you can proceed with clustering. If not, clustering may not yield meaningful insights.

The next step is to determine the optimal number of clusters. Selecting the right number of clusters (k) is critical, as too few may oversimplify the data whilst too many can result in overfitting.

One well-established approach is the elbow method: Plot the within-cluster sum of squares against the number of clusters and identify the point at which improvements in clustering performance begin to level off – the ‘elbow’. The silhouette score provides another useful measure, evaluating how well each data point fits within its assigned cluster relative to others. Higher silhouette scores indicate more distinct and well-separated clusters.

The gap statistic provides a further check, comparing observed within-cluster dispersion against the dispersion expected under a null distribution. This helps to identify the optimal k by pinpointing where the gap is at its greatest.

Finally, evaluate the quality of your clusters. Having established them, it is important to confirm that they are both internally cohesive and clearly separated from one another.

The silhouette coefficient, which ranges from −1 to 1, is widely used for this purpose – a score closer to 1 indicates well-defined clusters. The Dunn index calculates the ratio of the smallest distance between observations in different clusters (inter-cluster distance) to the largest distance within a single cluster (intra-cluster distance), with higher values indicating better cluster quality. By contrast, the Davies–Bouldin index measures the average similarity between each cluster and its most similar counterpart, where lower values indicate better clustering quality.

In summary, ensuring accurate cluster analysis involves a three-step process:

  1. Assess cluster tendency: Determine whether your data naturally forms clusters using statistical tests such as the Hopkins statistic and visualisation tools such as VAT.
  2. Determine the optimal number of clusters: Identify the right number of clusters (k) using methods such as the elbow method, silhouette score, and gap statistic to avoid oversimplification or overfitting.
  3. Evaluate clustering quality: Confirm that your clusters are both compact and well separated using metrics such as the silhouette coefficient, Dunn index, and Davies-Bouldin index.

Getting started with cluster analysis

The principal benefit of cluster analysis is that it enables organisations to uncover patterns and relationships within their data, supporting informed decision-making and actions grounded in real-time insights.

If you are ready to get started with cluster analysis, the first step is to identify a reliable software tool that can help you analyse and interpret your data effectively.

Adobe Analytics turns real-time data into real-time insights. More than a web analytics solution, it draws on data from every point in the customer journey and converts it into an insight that guides your next best action. Analytics uses artificial intelligence (AI) to deliver predictive insights based on the full scope of your data, enabling users to view and manipulate data in real time.

Request a demo or watch the overview video to find out more about Adobe Analytics.