Overview
Direct Answer
Hierarchical clustering is an unsupervised learning method that organises data points into a nested tree structure (dendrogram) by iteratively merging similar clusters (agglomerative approach) or splitting heterogeneous clusters (divisive approach). Unlike partitioning methods such as K-means, it does not require pre-specifying the number of clusters.
How It Works
Agglomerative hierarchical clustering begins with each data point as a singleton cluster, then sequentially merges the two closest clusters using a linkage criterion—such as single linkage (minimum distance), complete linkage (maximum distance), or average linkage (mean distance)—until a single encompassing cluster remains. The process generates a dendrogram that visualises cluster relationships at all granularities, allowing analysts to cut the tree at any height to obtain a desired number of clusters.
Why It Matters
Organisations value hierarchical clustering for exploratory data analysis because it reveals underlying cluster structure without prior assumptions, supports dendrogram-based decision-making, and scales naturally across domains from genomics to customer segmentation. The interpretability of the dendrogram aids stakeholders in validating cluster quality and understanding relationships between groups.
Common Applications
Applications include biological taxonomy and gene expression analysis in bioinformatics, document organisation and text mining in information retrieval, customer segmentation in retail and finance, and ecological species classification. Dendrograms are widely used in phylogenetic analysis and hierarchical taxonomy construction.
Key Considerations
Computational complexity grows quadratically with dataset size, making the method impractical for very large datasets. Linkage choice significantly influences results; greedy merging decisions are irreversible, potentially trapping the algorithm in suboptimal configurations.
Cross-References(1)
More in Machine Learning
Overfitting
Training TechniquesWhen a model learns the training data too well, including noise, resulting in poor performance on unseen data.
Anomaly Detection
Anomaly & Pattern DetectionIdentifying data points, events, or observations that deviate significantly from the expected pattern in a dataset.
Online Learning
MLOps & ProductionA machine learning method where models are incrementally updated as new data arrives, rather than being trained in batch.
Regularisation
Training TechniquesTechniques that add constraints or penalties to a model to prevent overfitting and improve generalisation to new data.
Reinforcement Learning
MLOps & ProductionA machine learning paradigm where agents learn optimal behaviour through trial and error, receiving rewards or penalties.
Mini-Batch
Training TechniquesA subset of the training data used to compute a gradient update during stochastic gradient descent.
Model Calibration
MLOps & ProductionThe process of adjusting a model's predicted probabilities so they accurately reflect the true likelihood of outcomes, essential for risk-sensitive decision-making.
Loss Function
Training TechniquesA mathematical function that measures the difference between predicted outputs and actual target values during model training.