Clustering model
Hierarchical Clustering
Building a hierarchy of clusters using either agglomerative or divisive approaches.
Hierarchical Clustering creates a tree of clusters (dendrogram) that shows how clusters relate at different levels of granularity. Agglomerative (bottom-up) starts with individual points and merges, while divisive (top-down) starts with one cluster and splits.
Formula
D(Cā, Cā) = min/max/avg d(x, y)
How it works
- Agglomerative: Start with each point as its own cluster
- Calculate distances between all cluster pairs
- Merge the two closest clusters
- Update distance matrix
- Repeat until one cluster remains or desired number reached
When to use it
- When you do not know the number of clusters
- When you need to understand cluster hierarchy
- For exploratory data analysis
- When clusters have nested structure
- For creating taxonomies
Advantages
- No need to specify k
- Produces interpretable dendrogram
- Can discover hierarchical relationships
- Multiple linkage methods available
- Works with any distance metric
Limitations
- Computationally expensive O(n³)
- Cannot undo previous merge/split decisions
- Sensitive to noise and outliers
- Difficult for large datasets
- Linkage choice affects results
Example uses
- Taxonomic classification
- Gene expression analysis
- Social network analysis
- Document organization
- Market research
Related models
Need a model built on your data?
Tell us the decision you want to improve. We will tell you whether your data can support it and which approach fits.