A dendrogram is a tree-like diagram that shows how clusters are formed in hierarchical clustering. To read one, you look at the vertical lines, the horizontal lines, and the height at which clusters merge. The key is understanding that the height of a merge represents how different two clusters are; the higher the merge, the less similar the groups are. You interpret a dendrogram by identifying where large vertical gaps exist and cutting the tree at that height to determine your final number of clusters.
What Exactly Is A Dendrogram Showing Me?
A dendrogram is a visual summary of a clustering calculation. Hierarchical clustering starts with every single data point as its own cluster. Then, it repeatedly merges the two closest clusters together until all points are in one single cluster.
The dendrogram records this entire process. Each leaf at the bottom represents one original data point. Each time two clusters merge, a new branch is formed. The vertical line connecting those branches shows the distance or dissimilarity between the two clusters at the moment they were joined.
Think of it like a family tree, but for data. Instead of showing ancestry, it shows which data points are most similar to each other and when they become grouped together.
Reading The Axes: What Do The Lines Mean?
Dendrograms have two key visual elements: the leaves and the branches. The leaves are at the bottom, usually on the x-axis. They represent individual observations in your dataset.
The branches connect leaves and groups of leaves. The vertical lines represent the distance at which clusters merge. The horizontal lines simply connect clusters that have been merged together. The y-axis always represents a measure of distance or dissimilarity between clusters.
This distance is calculated using a specific method, such as Euclidean distance or correlation distance. The choice of distance metric changes the structure of the tree. You cannot compare the absolute heights of dendrograms built with different distance metrics.
How To Determine The Number Of Clusters
The most common question people ask is “How many clusters should I use?” The dendrogram gives you a visual answer. The standard approach is to look for the longest vertical lines in the tree that do not cross any horizontal lines.
You “cut” the tree at that height. To do this, draw a horizontal line across the dendrogram at a chosen height. The number of vertical lines this horizontal line crosses tells you the number of clusters you get.
Here is the practical rule: find the largest vertical gap in the tree. Place your cut there. The vertical lines below that cut represent distinct clusters.
- If you cut low on the tree, you get many small clusters.
- If you cut high on the tree, you get few large clusters.
- The “best” cut is usually where the vertical distances are largest.
There is no single mathematically correct answer. The dendrogram is a tool to help you decide based on your data and your research question.
Why The Height Of The Merge Matters
The height of each merge is the most informative part of the dendrogram. A low merge height means two clusters are very similar to each other. A high merge height means two clusters are quite different but were forced together because everything else had already been merged.
Think about the last merge in any dendrogram. It always happens at the very top. That merge combines the two most dissimilar groups in your entire dataset. This is why the top of the tree is always the tallest point.
Large jumps in height between successive merges are meaningful. They indicate a natural separation in your data. For example, if clusters merge at heights of 1, 2, and then suddenly jump to 10, that jump suggests you have found a distinct grouping structure. The data naturally falls into those lower clusters before being forced together at the higher dissimilarity level.
What Does The Cophenetic Distance Tell You?
There is a specific value you can calculate from a dendrogram called the cophenetic distance. This is the height at which two specific observations first appear in the same cluster. It is essentially the distance between two points as represented by the tree.
This value matters because it lets you check how well the dendrogram preserves the original distances between your data points. If the tree distorts the original relationships too much, your interpretation may be misleading.
The cophenetic correlation coefficient measures this. It compares the cophenetic distances to the original pairwise distances. A value close to 1 means the dendrogram represents your data well. A value close to 0 means the tree is a poor representation, and clustering may not be appropriate for your data.
Many software packages calculate this easily. If your value is low, consider using a different linkage method or distance metric before drawing conclusions from the tree structure.
Common Mistakes When Reading Dendrograms
People often misinterpret the order of leaves along the bottom axis. The horizontal order of leaves does not indicate closeness. Two adjacent leaves are not necessarily more similar to each other than leaves at opposite ends of the chart.
The only thing that matters is where the branches connect and the height of that connection. You can rotate the branches at any node without changing the meaning of the tree. This is a critical point that many beginners miss.
Another mistake is assuming the y-axis height has an absolute meaning. The height is relative to your distance metric and linkage method. A height of 5 in one analysis is not comparable to a height of 5 in another analysis using different parameters.
Also, do not ignore outliers. A single data point that only merges at a very high level is often an outlier. It may be dragging two otherwise similar clusters together. Reviewing the dendrogram for these singleton branches can help you identify problematic data points before you finalize your cluster solution.
Choosing The Right Linkage Method First
Before you even look at the dendrogram, you need to know how the clustering algorithm calculated the distances between clusters. This is called the linkage method. The method changes the shape of the tree dramatically.
Ward’s method minimizes the total within-cluster variance. It tends to produce compact, spherical clusters and is a common default choice. Complete linkage uses the maximum distance between points in two clusters. Single linkage uses the minimum distance and tends to produce long, chain-like clusters.
If you interpret a dendrogram built with single linkage the same way you interpret one built with Ward’s method, you will draw wrong conclusions. The vertical gaps mean different things. Ward’s method often shows clear distinct blocks, while single linkage often shows a gradual staircase pattern. Check which method you used before deciding on the number of clusters.
Validating Your Cluster Interpretation
A dendrogram is an exploratory tool, not a definitive answer. After you decide on a number of clusters by cutting the tree, you should validate that those clusters are actually meaningful.
Look at the actual data values within each cluster. Do the clusters make logical sense? Are they distinct on the variables that matter to you? A dendrogram can produce clusters even when none truly exist in your data. It will always find structure because it is forced to merge points step by step.
Consider using a separate validation method. For example, you can calculate the average silhouette width for different numbers of clusters. This tells you how similar each point is to its own cluster compared to other clusters. Compare that result to what your dendrogram suggests. When the two methods agree, you can be more confident in your interpretation.
Frequently Asked Questions
What does the height on a dendrogram mean?
The height represents the distance or dissimilarity between two clusters when they merge. Higher merges mean the clusters are less similar to each other.
How do I decide where to cut a dendrogram?
Look for the largest vertical gap in the tree and cut horizontally through it. The number of vertical lines your cut crosses is your number of clusters.
Does the order of labels at the bottom of a dendrogram matter?
No, the horizontal order of leaves is arbitrary. You can rotate branches at any node without changing the meaning of the clustering structure.
Why do my dendrogram clusters look different with different linkage methods?
Each linkage method calculates inter-cluster distance differently. Ward’s method creates compact clusters, while single linkage creates elongated chains, so the tree structure changes even with the same data.

