<p>First let us consider the single linkage (nearest neighbor) approach. The clusters can be found through the following algorithm</p>
<ol>
<li>Find the smallest non-zero distance</li>
<li>Group the two objects together as a cluster</li>
<li>Recompute the distances in the matrix by taking the minimum distances
<ul>
<li>Cluster a,b -> c = min(d(a, c), d(b, c))</li>
</ul></li>
</ol>
<p>Single linkage can operate directly on a proximity matrix, the actual data is not required.</p>
<p>A wonderful visual representation can be found in Everitt Section 4.2</p>
<h2>Centroid Clustering</h2>
<p>This is another criterion measure that requires both the data and proximity matrix. These are the following steps of the algorithm. Requires Euclidean distance measure to preserve geometric correctness</p>
<ol>
<li>Find the smallest non-zero distance</li>
<li>Group the two objects together as a cluster</li>
<li>Recompute the distances by taking the mean of the clustered observations and computing the distances between all of the observations
<ul>
<li>Cluster a,b -> c = d(mean(a, b), c)</li>
</ul></li>
</ol>
<h2>Complete Linkage</h2>
<p>This is like Single Linkage, except now we're taking the farthest distance. The algorithm can be adjusted to the following</p>
<ol>
<li>Find the smallest non-zero distance</li>
<li>Group the two objects together as a cluster</li>
<li>Recompute the distances in the matrix by taking the maximum distances
<ul>
<li>Cluster a,b -> c = max(d(a, c), d(b, c))</li>
</ul></li>
</ol>
<h2>Unweighted Pair-Group Method using the Average Approach (UPGMA)</h2>
<p>In this criterion, we are no longer summarizing each cluster before taking distances, but instead comparing each observation in the cluster to the outside point and taking the average</p>
<ol>
<li>Find the smallest non-zero distance</li>
<li>Group the two objects together as a cluster</li>
<li>Recompute the distances in the matrix by taking the mean
<ul>
<li>Cluster A: a,b -> c = $mean_{i = 0}(d(A_i, c))$</li>
</ul></li>
</ol>
<h2>Median Linkage</h2>
<p>This approach is similar to the UPGMA approach, except now we're taking the median instead of the mean</p>
<ol>
<li>Find the smallest non-zero distance</li>
<li>Group the two objects together as a cluster</li>
<li>Recompute the distances in the matrix by taking the median
<ul>
<li>Cluster A: a,b -> c = $median_{i = 0}{(d(A_i, c))}$</li>
</ul></li>
</ol>
<h2>Ward Linkage</h2>
<p>This one I didn't look too far into but here's the description: With Ward's linkage method, the distance between two clusters is the sum of squared deviations from points to centroids. The objective of Ward's linkage is to minimize the within-cluster sum of squares.</p>
<h2>When to use different Linkage Types?</h2>
<p>According to the following two stack overflow posts: <ahref="https://stats.stackexchange.com/questions/195446/choosing-the-right-linkage-method-for-hierarchical-clustering">https://stats.stackexchange.com/questions/195446/choosing-the-right-linkage-method-for-hierarchical-clustering</a> and <ahref="https://stats.stackexchange.com/questions/195456/how-to-select-a-clustering-method-how-to-validate-a-cluster-solution-to-warran/195481#195481">https://stats.stackexchange.com/questions/195456/how-to-select-a-clustering-method-how-to-validate-a-cluster-solution-to-warran/195481#195481</a></p>
<p>These are the following ways you can justify a linkage type.</p>
<p><strong>Cluster metaphor</strong>. <em>"I preferred this method because it constitutes clusters such (or such a way) which meets with my concept of a cluster in my particular project."</em></p>
<p><strong>Data/method assumptions</strong>. <em>"I preferred this method because my data nature or format predispose to it."</em></p>
<p><strong>Internal validity</strong>. <em>"I preferred this method because it gave me most clear-cut, tight-and-isolated clusters."</em></p>
<p><strong>External validity</strong>. <em>"I preferred this method because it gave me clusters which differ by their background or clusters which match with the true ones I know."</em></p>
<p><strong>Cross-validity</strong>. <em>"I preferred this method because it is giving me very similar clusters on equivalent samples of the data or extrapolates well onto such samples."</em></p>
<p><strong>Interpretation</strong>. <em>"I preferred this method because it gave me clusters which, explained, are most persuasive that there is meaning in the world."</em></p>
<h3>Cluster Metaphors</h3>
<p>Let us explore the idea of cluster metaphors now.</p>
<p><strong>Single Linkage</strong> or <strong>Nearest Neighbor</strong> is a <em>spectrum</em> or <em>chain</em>.</p>
<p>Since single linkage joins clusters by the shortest link between them, the technique cannot discern poorly separated clusters. On the other hand, single linkage is one of the few clustering methods that can delineate nonelipsodial clusters.</p>
<p><strong>Complete Linkage</strong> or <strong>Farthest Neighbor</strong> is a <em>circle</em>.</p>
<p><strong>Between-Group Average linkage</strong> (UPGMA) is a united *class</p>
<p><strong>Centroid method</strong> (UPGMC) is <em>proximity of platforms</em> (commonly used in politics)</p>
<h2>Dendrograms</h2>
<p>A <strong>dendrogram</strong> is a tree diagram frequently used to illustrate the arrangement of the clusters produced by hierarchical clustering. It shows how different clusters are formed at different distance groupings.</p>