Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 13

Dendrograms: Defining Style Segments

Recommended resources

Welcome back. In our last lesson, you learned how to construct a full hierarchical clustering solution, represented by a tree-like diagram called a dendrogram. This dendrogram contains every possible grouping of your lingerie pieces, from each item as its own cluster to all items merged into one. While comprehensive, this leaves us with a critical question: which of these many possible groupings should you actually use?

Today, we will focus on answering that question. You will learn how to make a principled decision on the number of clusters to work with by "cutting" the dendrogram at an appropriate level. This final step is what transforms the hierarchical structure into concrete, usable style segments—like 'minimalist classics', 'boudoir showstoppers', or 'sporty comfort'—that can guide the curation process for your photoshoot.

By the end of this lesson, you will be able to justify your choice for a specific number of clusters by analyzing the dendrogram's structure and ensuring the resulting segments are meaningful for your design project.

From Hierarchy to Partitions: Cutting the Dendrogram

The dendrogram is not the final result, but rather a map of all possible results. To get a specific number of clusters, we need to "cut" this map. Imagine drawing a horizontal line across the dendrogram. The number of clusters is simply the number of vertical lines your horizontal line intersects.

  • A cut at a low distance (close to the bottom) will intersect many vertical lines, creating a large number of small, highly specific clusters.
  • A cut at a high distance (close to the top) will intersect few vertical lines, yielding a small number of large, more general clusters.

The image below illustrates this principle. A horizontal cut at a distance of 1.5 creates four distinct clusters, while a higher cut at 2.5 results in only two.

This dendrogram shows how different horizontal cut-off lines produce different numbers of clusters. The blue dashed line at a distance of 1.5 yields four clusters, while the red dashed line at a distance of 2.5 yields two clusters.

The key question, then, is not how to cut, but where to cut.


Method 1: The "Largest Jump" Heuristic

The most common method for choosing a cut point is based on analyzing the vertical lines of the dendrogram. The y-axis represents the distance (or dissimilarity) at which clusters were merged. A long vertical line indicates that two very dissimilar clusters were combined. This is often a "forced" or unnatural merge.

The core idea is to find the largest jump in distance between successive merges. You should cut the dendrogram just below this largest jump. This implies you are stopping the clustering process right before it's forced to merge two groups that are not very similar to each other.

The following video provides an excellent walkthrough of this concept.

Flat and Hierarchical Clustering | The Dendrogram Explained

This video from 365 Data Science clearly explains how to interpret a dendrogram and select the number of clusters.

Please watch the section explaining how to choose the number of clusters. The narrator demonstrates the "cutting" process and provides the intuition for why you would choose one number of clusters over another based on the distance between merges.

To formalize this, the following reading explains the same principle with a clear diagram.

The complete guide to clustering analysis: k-means and hierarchical ...

This guide, which we used in the previous lesson, also contains a precise method for determining the optimal number of clusters from a dendrogram.

Please read the subsection Optimal number of clusters under the "Single linkage" heading. Focus on the main principle: "we usually look at the largest difference of heights" and how the diagram illustrates counting the vertical lines to determine the cluster count.


Method 2: Stability and Interpretability

While the "largest jump" heuristic is a strong starting point, a more robust justification considers two additional factors: stability and interpretability.

Stability: A good clustering solution should be stable. This means that a small change in the cutting point shouldn't drastically alter the outcome. If moving your cut-off line slightly creates a cascade of new, unstable clusters, that's a sign you are in a messy part of the dendrogram. You want to cut in a region where the cluster solution remains consistent.

The following video discusses this idea of finding a stable, robust solution.

Hierarchical Cluster Analysis in SPSS (SPSS Tutorial Video #29) - Dendrogram

This tutorial by Galak Breaks It Down offers a practical perspective on reading a dendrogram and choosing a cluster solution.

Watch the segment from the beginning of the dendrogram analysis. Pay attention to the discussion around making a "subjective call" and the idea that "we want solutions that are relatively stable to small variations in our judgment call."

Interpretability: This is where your domain expertise as a lingerie designer becomes paramount. The statistical algorithm provides a suggestion, but the ultimate test is whether the resulting clusters are meaningful to you.

Do the clusters represent coherent style families? For example, does one cluster group together all your 'delicate lace bralettes' and 'silk chemises', while another groups the 'padded push-ups' and 'structured corsets'? If a cluster contains a seemingly random mix of items (e.g., a sporty bikini top, a vintage garter belt, and a minimalist bralette), it's not a useful segment, even if the algorithm suggests it.

This process of naming and validating clusters is a crucial part of the analysis. A research paper on fashion trends highlights this exact step.

[PDF] ANALYZING FASHION TRENDS USING HIERARCHICAL ...

This paper applies hierarchical clustering to fashion collections, demonstrating how the final clusters are interpreted.

Read the section Cluster Validation and Visualization, noting that the identified clusters were "validated by domain experts to ensure that the groupings were both meaningful." Then, scan the descriptions in Cluster Distribution and Interpretation. These descriptions (e.g., "Winter Luxe," "Smart and Minimalist") are exactly the kind of meaningful labels you aim to create for your lingerie style families.


A Lingerie Styling Example

Let's return to the first dendrogram and imagine it represents a collection of your lingerie pieces.

Dendrogram of lingerie styles.

Suppose after inspecting the items, you find the clusters correspond to:

  • Orange Cluster: 'Minimalist & Everyday' styles (e.g., simple cotton bralettes, seamless briefs).
  • Green Cluster: 'Structured Boudoir' styles (e.g., underwire balconettes, corsets).
  • Red Cluster: 'Delicate & Romantic' styles (e.g., lace chemises, silk robes).

Now, let's justify a number of clusters:

  1. Analyze the Structure: The 'Structured Boudoir' (green) and 'Delicate & Romantic' (red) clusters merge at a distance of about 1.2. The 'Minimalist' (orange) cluster joins this larger group at a much higher distance of about 2.2.
  2. Apply the Largest Jump Rule: The vertical distance between the merge at ~1.2 and the final merge at ~2.2 is quite large. This is the "largest jump" in the dendrogram. Cutting just below this jump (e.g., at a distance of 2.0) leaves us with two clusters: {Minimalist} and {Boudoir & Romantic}. This is a very strong candidate for the optimal number of clusters.
  3. Consider Other Options: What if we cut lower, at a distance of 1.5 (the blue line)? This gives us four clusters. Looking at the dendrogram, this cut splits both the green and red clusters into two sub-clusters each. This might be useful. For example, the 'Delicate & Romantic' cluster might split into 'Sheer Lace' and 'Opaque Silk' sub-groups.
  4. Justify the Final Choice: Your decision depends on your goal.
    • If you need broad categories for initial mood boarding, a 2-cluster solution ('Minimalist' vs. 'Ornate') might be perfect.
    • If you are curating specific looks for the photoshoot and need more granular distinctions, the 4-cluster solution ('Minimalist', 'Structured-A', 'Structured-B', 'Romantic-A', 'Romantic-B') might be more practical, allowing you to select one piece from each distinct sub-family.

Your justification would be: "Based on the largest jump in the dendrogram, a 2-cluster solution is mathematically optimal. However, for the purpose of creating diverse photoshoot looks, a 4-cluster solution provides more granular and actionable style families, separating key sub-themes within the 'Structured' and 'Romantic' categories."


Numerical Exercise

You have performed hierarchical clustering on 10 lingerie pieces. The algorithm produces a series of merges, with the distance (height) of each merge recorded. The final five merge heights are as follows:

Merge Step Clusters Before Clusters After Merge Height
... (earlier steps) ... ... ...
Merge 6 5 4 0.8
Merge 7 4 3 1.1
Merge 8 3 2 2.5
Merge 9 2 1 4.9
  1. Calculate the jump in height for the last three merges (i.e., the increase in height from Merge 7 to 8, and from Merge 8 to 9).
  2. Based on the "largest jump" heuristic, what is the most likely optimal number of clusters?
  3. Provide a brief justification for your choice.
Click for a detailed solution.
  1. Calculate Jumps in Height:

    • Jump from 3 clusters to 2: Height(Merge 8) - Height(Merge 7) = 2.5 - 1.1 = 1.4
    • Jump from 2 clusters to 1: Height(Merge 9) - Height(Merge 8) = 4.9 - 2.5 = 2.4
  2. Optimal Number of Clusters: The largest jump is 2.4, which occurs when the number of clusters goes from 2 to 1.

  3. Justification: The "largest jump" rule suggests cutting the dendrogram just before the merge with the largest increase in distance. Here, the dissimilarity skyrockets from 2.5 to 4.9 when merging the final two clusters. This indicates that these last two clusters are very distinct from each other. Therefore, the most robust solution is to keep them separate, yielding an optimal number of 2 clusters.


Conclusion

In this lesson, you have learned how to move from a complex dendrogram to a practical, justified set of style segments. This is a critical step where statistical output meets expert judgment.

Key Takeaways:

  • A specific number of clusters is obtained by "cutting" the dendrogram with a horizontal line.
  • The primary heuristic for choosing where to cut is the "largest jump" method, which suggests cutting just before two very dissimilar clusters are merged.
  • A strong justification also considers the stability of the cluster solution and, most importantly, the interpretability of the resulting clusters from a domain perspective.
  • The final choice is a strategic decision that should be tailored to the specific goal of your analysis—in this case, creating meaningful style families for a lingerie photoshoot.

With this lesson, we conclude our module on unsupervised learning. You have successfully used PCA to identify underlying style dimensions and hierarchical clustering to group your lingerie pieces into meaningful families.

In our next module, we will pivot from discovering structure to making predictions. We will enter the world of supervised learning, starting with one of the most fundamental models: Multiple Linear Regression. You will learn how to build a model that predicts a lingerie piece's appeal score based on its specific design attributes, moving from the question "What groups exist?" to "How do features like lace percentage or strap width influence appeal?"