# Hierarchical Clustering (Dendrogram)

A dendrogram is a 2-D diagram representing a tree-like relationship. Dendrograms are one of the most familiar expressions of the result of Hierarchical Cluster Analysis which displays the hierarchical structure implied by the similarity matrix and clustered by the linkage rule. The output of this is a graph which shows how similar each of the different areas are when taking into account a range of variables. Closeness to each other on the dendrogram suggests greater similarity.

### SET UP

To illustrate the use of the Hierarchical Clustering (Dendrogram) tool, we will use a dataset on Income, Inequality and Financial Stress across the Greater Hobart area. To do this:

• Select Greater Hobart as your area.
• Select SA2 OECD Indicators: Income, Inequality and Financial Stress 2011 as your dataset, selecting all variables.

### Inputs

Once you have done this, open the Hierarchical Clustering (Dendrogram) tool (Tools → Charts→ Hierarchical Clustering (Dendrogram)) and enter the parameters listed below.

The parameters that need to be entered are:

• Dataset Input: Select a dataset that contains the variables of interest. Select SA2 OECD Indicators: Income, Inequality and Financial Stress 2011.
• Variables: A set of independent variables. Select the following variables:
• Median Disposable Income (Synthetic Data)
• Gini Coefficient (Synthetic Data)
• Poverty Rate (Synthetic Data)
• % Can’t afford a night out (Synthetic Data)
• Distance Metric: Distance measure to be used. Select euclidean.
• euclidean: “ordinary” straight-line distance between two points in Euclidean space.
• maximum: greatest distance along any coordinate dimension, also known as chessboard distance.
• manhattan: the distance between two points measured along axes at right angles.
• canberra: a measure of similarity and dissimilarity between groups.
• binary: measures the minimum number of substitutions required to change one string into the other, or the minimum number of errors that could have transformed one string into the other.
• minkowski: is a metric in a normed vector space which can be considered as a generalization of both the Euclidean distance and the Manhattan distance.
• Cluster Metric: The agglomeration method (linkage rule) to be used. It is important to note that in every method used, the analysis is processed as a complete-link case. Select complete.
• ward: calculates the increase in the error sum of squares (ESS) after fusing two clusters.
• single: the two closest points from each cluster
• complete: the two furthest points from each cluster
• average: the average of the cluster’s distances is taken whilst compensating for the number of points in that cluster
• mcquitty: the average of the cluster’s distances is taken, not considering the number of points in that cluster.
• median: the inter-cluster median point
• centroid: the inter-cluster mid-point
• Observation Labels: A variable whose values are to be used as labels for each case. Select SA2 Name.
• Chart Title: A title for your Hierarchical Clustering Dendrogram. Type Income, Inequality and Financial stress in Greater Hobart.
• Show Gridlines: Specify whether you would like gridlines on your output graph. Tick this box.
• Greyscale: Specify whether you would like your graph to be grey-scale (checked) or colour (unchecked). Untick this box.

Note: Please see the documentation of Cluster Analysis (Hierarchical) for further details.

Once you have selected your parameters, click Run Tool.

### Outputs

Once you have run the tool, click the Display Output button which appears in the pop-up dialogue box. This should open up a chart tool looking like the one shown below.

The bottom nodes represent objects with indices of the objects in the original data set. The links between objects are represented as inverted U-shaped lines. The length of each inverted U represents the distance (dissimilarity) between each node.

The outputs indicate that the most similar SA2s are Kingston Beach – Blackmans Bay and Claremont, and there are two clusters of close similarity.

### Looking for Spatial Data?

You can browse the AURIN Data Discovery: