
Cluster analysis: meaning, three methods, validation and limits
Cluster analysis brings elements together in compact groups on the basis of one or more characteristics. It is a very useful method for getting to know a new, unknown data set, but its outcomes can hardly be validated. This article explains three ways of clustering and where the method stops.
Key takeaways
- Cluster analysis: bringing elements together in compact groups on the basis of one or more characteristics, so that the groups are more homogeneous than the original set.
- It is a technique for classifying data, not one specific algorithm. Three common forms: hierarchical, point-based (k-means) and density-based clustering.
- Hierarchical clustering gives a tree (dendrogram) from which you choose a level; k-means requires you to choose the number of clusters in advance.
- Validation is limited: internal and external validation only show that one method is better than another for a given set, never an absolute quality.
- Use clustering mainly for initial exploration; for critical decisions prefer techniques that can be validated, such as decision trees and neural networks.
What is cluster analysis?
Cluster analysis is bringing elements together in compact groups on the basis of one or more characteristics.
Clustering is a typical buzzword, used appropriately and inappropriately. The term has different meanings depending on the field:
- Astronomy: a group of stars or galaxies that belong together and are under the influence of each other’s gravity.
- Business administration: a group of departments with the same background or function.
- Education: a group of pupils who take a certain subject together.
- Mathematics: a set of elements that have one or more properties in common.
- Organisation studies: business units that carry out certain activities at different locations.
- Computer science: a collection of data that according to a designer belongs together in some way.
The common denominator is a division into groups. In data analysis the intention is that after clustering a number of subsets remain that show less mutual difference than the original set: the clusters are more homogeneous. Every clustering can therefore be followed by a validation of the homogeneity of the clusters compared with the original data.
The problem of clustering
Clustering is easy to describe and therefore a difficult problem. “Clustering is bringing together in groups” can be satisfied in a great many ways: it says nothing about how the groups are formed, nor whether they share a property. Even the stricter definition does not say on what grounds the groups are made or how compact ‘compact’ is. There is therefore a lot of room in the result.
Origin
The origin of clustering lies in anthropology. In 1911 the Pole Jan Czekanowski introduced the term in his work on the distribution and origin of European peoples. From 1938 the technique appeared in psychology through the work of Zubin and in particular Robert Tryon, who used clustering in his research into the possible heritability of intelligence in rats (Tryon’s Rat Experiment).
Three ways of clustering
Cluster analysis is in fact a technique for classifying data, not a specific algorithm. There are so many algorithms that only a limited number can be discussed here.
1. Hierarchical cluster analysis
Hierarchical clustering divides information into a number of mutually related groups. The groups arise by placing elements together on the basis of a distance function: if the distance between an element and the centre of a cluster falls below a certain value, the element belongs to that cluster. The clusters can then be combined into combined clusters, again on the basis of mutual distance. This builds a tree structure, a dendrogram, that shows the relationships between the clusters. It is up to the user to determine which level of clustering is necessary or desired. Hierarchical clustering therefore does not give a unique result, only a series of possibilities to choose from.
2. Point-based cluster analysis (k-means)
In point-based clustering you determine in advance on which properties the clustering takes place and how many clusters are needed. A widely used method is k-means clustering, in which you choose k clusters at the start and then follow a fixed procedure:
- Choose k elements at random as starting points for the clusters. These points are called vectors or centroids: they indicate several properties at once and ought to lie in the middle of a cluster.
- Determine the boundaries of the clusters around the vectors. It is almost certain that the chosen vectors do not point to the real centroid.
- Calculate for all points in each cluster the distance to the centroid and from this a new centroid.
- If the calculated distance is below a threshold value, the final division has been reached. If not, repeat from step 2.
Distance can be defined in different ways; one is the ‘normal’ Euclidean distance, the distance you can measure with a ruler. Because the choice of starting points influences the clustering, the method has to be run several times with different vectors. That makes it slower, but the gain is a better and more reliable answer. Compared with hierarchical clustering, the influence of the user is more modest: the user only chooses the number k.
3. Density-based clustering
Another method uses the density of suitable elements within a set: where many suitable elements lie close together, density is high and those elements are counted as a cluster. If the calculated density of a subset is below a threshold, it contains too few suitable elements and is not part of the cluster. A precondition is that the information shows clear differences in density. That is not always the case and can certainly not be guaranteed in advance.
Hierarchical versus k-means clustering
The two best-known forms compared.
Hierarchical
k-means
Result
A tree (dendrogram)
k fixed clusters
Choice by user
The level afterwards
The number k in advance
Uniqueness
A series of options
Depends on starting points
Speed
Slow with large sets
Fast, but run several times
Suitable for
Exploring structure
Segmenting large sets
Validating a cluster analysis
Once a clustering has been found, the problem of validation arises: is there an independent method to quantify the quality of a clustering? Unfortunately the answer is not clear-cut. In principle there are two ways:
- Internal validation: comparing the outcome quantitatively with alternative methods of predictive analytics. The success of a method also depends on how the set is composed, and that two or more methods converge to one solution is no guarantee that it is the best.
- External validation: testing the method on a specially composed set whose outcome has been determined in advance by a human specialist. The composition of the test set favours or disadvantages certain methods, and the solution of the specialist is not by definition the best.
Validation of clustering therefore goes no further than showing that one method is better or worse than another for a given set, without an absolute value.
The limitations of cluster analysis
- The concept is very broad. Many techniques all lead to some ‘division into groups’. The resulting segregation of a set may be entirely artificial. In many social issues the population is clustered by age, gender or cultural background.
- Relevance is rarely questioned. In many cases nobody asks to what extent the chosen clustering is relevant to the question. It is hardly possible to test in advance whether the division is made on grounds that are useful and logical; usually you can only answer that afterwards, and then only partly.
- Limited validation. The reliability of a clustering cannot be determined, or only to a very limited extent.
If you recognise these limitations, clustering is a very useful method to gain insight into the properties of the elements in a (large) set, particularly in the initial investigation of a new, unknown set. For a more thorough analysis other techniques are available, such as the decision tree and the neural network. Many of these can be validated independently or allow quality control of their results. Precisely in studies using critical information such an approach is preferable.
How Diamond Decisions applies cluster analysis
Diamond Decisions uses clustering as an exploration tool, for example to discover customer or product groups, never as the final word. After inspiration, business modeling determines which question the grouping must answer, data analytics runs and compares several clusterings, and the decision makers judge whether the groups are recognisable and usable in practice.
Talk to the author
Rick van der LindenDiamond Decisions
Discuss your question with Rick
Tell us which decision needs to improve. In a no-obligation conversation we show you where your data delivers the most.
Schedule an introduction →Step 3 of our approach
Diamond Data Analytics
A data warehouse that starts with your most important decisions and is ready for conversational AI: a working prototype within 24 hours.
Explore Data Analytics →Frequently asked questions
01
What is cluster analysis?
Bringing elements together in compact groups on the basis of one or more characteristics, so that the groups are more homogeneous than the original set.
02
Which forms of clustering are there?
Among others hierarchical clustering, which builds a dendrogram; point-based clustering such as k-means, with a number of clusters chosen in advance; and density-based clustering, which looks for areas where many elements lie close together.
03
What is the difference between clustering and classification?
With classification the groups are known in advance and a model learns to assign new cases to them. With clustering there are no predefined groups: the algorithm forms them from the data.
04
How do you validate a cluster analysis?
Internally, by comparing with other methods, or externally, by testing on a set whose outcome a specialist determined beforehand. Both only show that one method works better than another for that set, not how good the clustering is in absolute terms.
05
What can an SME do with cluster analysis?
Discover customer segments, product groups or patterns in orders in data it already has. Treat the outcome as a hypothesis and test it with sales and service before changing policy on it.
Further reading
Sources
- Wikipedia: Jan Czekanowski.
About the author
About Diamond Decisions
Diamond Decisions helps organizations become better by enabling better decisions. We don’t start with data, dashboards or AI, but with the decision that needs to improve, and work back from there to KPIs, data and technology. We do that in four steps: inspiration and alignment, business modeling, analytics and data platform and data-driven decision makers. That way BI and AI don’t remain an IT project, but deliver value every day.

