## An overview of agglomerative hierarchical clustering, dendrogram and their implementation in python

Photo by Campaign Creators on Unsplash

Agglomerative Clustering is a type of hierarchical clustering algorithm. It is an unsupervised machine learning technique that divides the population into several clusters such that data points in the same cluster are more similar and data points in different clusters are dissimilar.

- Points in the same cluster are closer to each other.
- Points in the different clusters are far apart.

(Image by Author), Sample 2-dimension Dataset

In the above sample 2-dimension dataset, it is visible that the dataset forms 3 clusters that are far apart, and points in the same cluster are close to each other.

An overview of agglomeration and divisive clustering algorithms and their implementation

towardsdatascience.com

## The intuition behind Agglomerative Clustering:

Agglomerative Clustering is a bottom-up approach, initially, each data point is a cluster of its own, further pairs of clusters are merged as one moves up the hierarchy.

## Steps of Agglomerative Clustering:

- Initially, all the data-points are a cluster of its own.
- Take two nearest clusters and join them to form one single cluster.
- Proceed recursively step 2 until you obtain the desired number of clusters.

#data-science #artificial-intelligence #machine-learning #programming #python