Share on Facebook Share on Twitter Email
Answers.com

Hierarchical clustering

 
Wikipedia: Hierarchical clustering

In statistics, hierarchical clustering is a method of cluster analysis which seeks to build a hierarchy of clusters. Strategies for hierarchical clustering generally fall into two types:

  • Agglomerative: This is a "bottom up" approach: each observation starts in its own cluster, and pairs of clusters are merged as one moves up the hierarchy.
  • Divisive: This is a "top down" approach: all observations start in one cluster, and splits are performed recursively as one moves down the hierarchy.

In general, the merges and splits are determined in a greedy manner. The results of hierarchical clustering are usually presented in a dendrogram.

Contents

Cluster dissimilarity

In order to decide which clusters should be combined (for agglomerative), or where a cluster should be split (for divisive), a measure of dissimilarity between sets of observations is required. In most methods of hierarchical clustering, this is achieved by use of an appropriate metric (a measure of distance between pairs of observations), and a linkage criteria which specifies the dissimilarity of sets as a function of the pairwise distances of observations in the sets.

Metric

The choice of an appropriate metric will influence the shape of the clusters, as some elements may be close to one another according to one distance and farther away according to another. For example, in a 2-dimensional space, the distance between the point (1,0) and the origin (0,0) is always 1 according to the usual norms, but the distance between the point (1,1) and the origin (0,0) can be 2, \scriptstyle\sqrt{2} or 1 under Manhattan distance, Euclidean distance or maximum distance respectively.

Some commonly used metrics for hierarchical clustering are:[1]

Names Formula
Euclidean distance  \|a-b \|_2 = \sqrt{\sum_i (a_i-b_i)^2}
squared Euclidean distance  \|a-b \|_2^2 = \sum_i (a_i-b_i)^2
Manhattan distance  \|a-b \|_1 = \sum_i |a_i-b_i|
maximum distance  \|a-b \|_\infty = \max_i |a_i-b_i|
Mahalanobis distance  \sqrt{(a-b)S^{-1}(a-b)} where S is the covariance matrix
cosine similarity  \cos^{-1} \frac{a \cdot b}{\|a\| \|b\|}

For text or other non-numeric data, metrics such as the Hamming distance or Levenshtein distance are often used.

A review of cluster analysis in health psychology research found that the most common distance measure in published studies in that research area is the Euclidean distance or the squared Euclidean distance.[citation needed]

Linkage criteria

The linkage criteria determines the distance between sets of observations as a function of the pairwise distances between observations.

Some commonly used linkage criteria between two sets of observations A and B are:[2]

Names Formula
Maximum or complete linkage clustering  \max \, \{\, d(a,b) : a \in A,\, b \in B \,\}.
Minimum or single-linkage clustering  \min \, \{\, d(a,b) : a \in A,\, b \in B \,\}.
Mean or average linkage clustering, or UPGMA  \frac{1}{|A| |B|} \sum_{a \in A }\sum_{ b \in B} d(a,b).

where d is the chosen metric.

  • The sum of all intra-cluster variance.
  • The increase in variance for the cluster being merged (Ward's criterion).[3]
  • The probability that candidate clusters spawn from the same distribution function (V-linkage).

Discussion

Hierarchical clustering has the distinct advantage that any valid measure of distance can be used. In fact, the observations themselves are not required: all that is used is a matrix of distances.

Software

Free

Commercial

See also

Notes

  1. ^ "The DISTANCE Procedure: Proximity Measures". SAS/STAT 9.2 Users Guide. SAS Institute. http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_distance_sect016.htm. Retrieved 2009-04-26. 
  2. ^ "The CLUSTER Procedure: Clustering Methods". SAS/STAT 9.2 Users Guide. SAS Institute. http://support.sas.com/documentation/cdl/en/statug/59654/HTML/default/statug_cluster_sect012.htm. Retrieved 2009-04-26. 
  3. ^ Ward, Joe H. (1963). "Hierarchical Grouping to Optimize an Objective Function". Journal of the American Statistical Association 58 (301): 236–244. MR0148188. JSTOR 2282967. 

References and further reading


Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
 
 

 

Copyrights:

Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Hierarchical clustering" Read more