Agglomerative clustering
Agglomerative clustering is a bottom-up hierarchical clustering method that starts with individual items as separate clusters and repeatedly merges clusters according to a linkage criterion.
Build a Robo-Advisor with Python (From Scratch)
Agglomerative clustering is a bottom-up clustering technique in which each object starts as a singleton cluster and clusters are successively combined.
- How it is used
- Builds the hierarchy used to reorder assets before recursive bisection in hierarchical risk parity.
- How deep it goes
- Works through iterative linkage-matrix construction and notes that a simpler implementation is inefficient for large asset sets.
- Examples
- Uses eight ETFs and assets—VV, VB, AGG, VEA, BNDX, VWO, EMB, and DJP—to produce a linkage matrix.
- What you can do after
- Apply it via SciPy or an explicit Python loop to construct an asset linkage matrix for hierarchical risk parity.
Read how Build a Robo-Advisor with Python (From Scratch) explains agglomerative clustering →
Build AI Drug Discovery Pipelines
Agglomerative clustering is a bottom-up hierarchical clustering method that starts with singleton clusters and successively merges the closest clusters.
- How it is used
- Uses hierarchical grouping to select representative and diverse compounds for screening libraries.
- How deep it goes
- Explains bottom-up merging, four linkage choices, dendrogram cuts, implementation, sampling, and diversity evaluation.
- Examples
- Demonstrates RDKit fingerprint conversion, Ward fitting, dendrogram truncation, cluster-center sampling, and redundancy measurement.
- What you can do after
- Apply it via RDKit and scikit-learn to cluster molecules, sample representatives, and assess library diversity.
Read how Build AI Drug Discovery Pipelines explains agglomerative clustering →
Also covered in
Related concepts
- clusteringkind of · Clustering is the process of grouping data items so that items within a group are more similar to one another than to items in other groups.
- hierarchical clusteringkind of · Hierarchical clustering is a clustering method that organizes observations into nested groups by successively merging or splitting clusters.
- correlationuses · Correlation is a statistical association describing how variables vary together in direction or degree, without by itself establishing causation.
- Ward's methoduses · Ward's method is an agglomerative hierarchical clustering technique that merges the pair of clusters causing the smallest increase in total within-cluster variance.
Questions about agglomerative clustering
What is agglomerative clustering?
Agglomerative clustering is a bottom-up hierarchical clustering method that starts with individual items as separate clusters and repeatedly merges clusters according to a linkage criterion.
Which Manning books explain agglomerative clustering?
Build a Robo-Advisor with Python (From Scratch) and Build AI Drug Discovery Pipelines.
What is agglomerative clustering a kind of?
Agglomerative clustering is a kind of clustering. Clustering is the process of grouping data items so that items within a group are more similar to one another than to items in other groups.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

