Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Vocab updates


Dendrograms

A dendrogram is the graphical representation of a statistical tool called “hierarchical agglomerative clustering”. Hierarchical clustering aims at defining a sequence of N clusterings of k clusters, for k Î [1,...,N], so that the resulting clusters form a nested sequence.

The agglomerative algorithm starts with the initial set of N attributes variables, considered as N singleton clusters. At each step it proceeds by identifying the two most similar clusters and merging them to form a new cluster. This step is repeated until all attributes all variables have been merged together into a single cluster.

The similarity among the attributes the variables is measured by means of the correlation coefficient which takes its values into the range [-1,1]:

rho(x,y) = cov(x,y) / σxy

where, cov(x,y) represents the covariance between variables X and Y; and σx is the standard-deviation of variable X.

Create a Dendrogram

To launch the dendrogram editor, select Visualize > Dendrogram from the menu. Alternatively, click the icon () in the sidebar and then add New.

  1. Enter a chart Title.

  2. Select an Object Record set from the list, if required. 

  3. Select attributes from Select variables from the Attribute Variable list and click Input. Attributes  Variables used in dendrograms must be numerical.

  4. Click on Save.

  5. The Dendrogram tool generates two different views:

    1. Dendrogram tree (see tab Dendrogram) shows groups of linearly correlated attributes correlated variables and clusters highly correlated attributes correlated variables together on the tree. The closer the value is to 1 or -1 the higher the correlation. The higher correlated values are displayed on the right.
    2. Correlation matrix give the overall results of calculating linear correlation factors, i.e. for each pair of attributesvariables. Positive correlation factors are displayed in green, negative ones in red.

Tip
titleFind an Attributea Variable

Attributes Variables are listed alphabetically. To find an attributea variable, use the scroll bar or enter the name in the Attribute the Variable field.

To clone:

  1. Click More actions > Clone  to clone the dendrogram or More actions > Clone as and select Temporal CurvesTrends, Dendrogram, Summary Chart or Multiplot. 

To export data:

  1. Click More actions > General Actions 

    1. Click Download Data. Choose the CSV format (CSV US or CSV EU). 
    2. Click Export Matrix to CSV to download the correlation matrix. Choose the CSV format (CSV US or CSV EU). 

To export graphic as:

  1. Click More actions > Export graphic as and select a file format; either PDF, PNG or SVG.

To create a

new attribute

new variable selection:

  1. In Correlation Matrix tab, use the check boxes to select the attributesvariables, one by one or select all using the first checkbox (beside the empty field used to filter attributesvariables). 

  2. Click on More Actions > Attribute Selection Variable Selection. It is possible to create: Attribute  Variable Set, Fill Missing Values, Differentiated Attributevariable, Moving Average, Shifted AttributeVariable

To create different charts:

  1. In Correlation Matrix tab, use the check boxes to select the attributesvariables, one by one or select all using the first checkbox (beside the empty field used to filter attributesvariables). 

  2. Click on More Actions > Attribute Selection Variable Selection. It is possible to create: Histogram, Temporal Curves Trends and a Dendrogram (using the new set of attributesvariables). 


Info
titleWhen to use a dendrogram?

A dendrogram is an effective tool to use to analyze similarities among the attributesvariables, and eliminating attributes eliminating variables that are too correlated (and thus bringing probably redundant information). It is also useful for detecting important correlations between an attribute a variable of interest and the other attributesvariables, for example, between a goal attribute goal variable and the input attributesvariables.

Example Visualization

Interpret the dendrogram and correlation matrix to identify which variables influence the target SUN_ENERGY_WEEK_AVRG (energy gathered from solar panels)

Tip
titleTips

Here are some tips:

  1. First look at the Dendrogram tree view and isolate attributes isolate variables grouped together near the SUN_ENERGY_WEEK_AVRG with high correlation factor values (top scale represents the correlation factor in absolute value, maximum being unity).
  2. Go to Correlation matrix tab, search for SUN_ENERGY_WEEK_AVRG column, click on the column label to sort the correlation factor values. Rank the most influencing input attributes input variables on SUN_ENERGY_WEEK_AVRG.

Don’t forget to validate your findings! Create a Scatter plot

The following example illustrates the correlation of FUEL_WEEK_AVRG_MODEL with the energy gathered from solar panels. The minus sign (-) confirms that when there is abundant sunlight, fuel consumption is lower. The minimum correlation coefficient between SUN_ENERGY_WEEK_AVRG and SUN_WEEK_AVGR_HR and FUEL_WEEK_AVRG_MODEL is -0.502452.

Tip
titleHow to interpret the Dendrogram tree

Dendrogram shows groups of correlated attributesvariables. This view is a graphical summary of the correlation matrix result. Note: the dendrogram shows absolute values of coefficient,  values range between -1 and 1. Strength of correlation 0 means no correlation and 1 means a perfect correlation (positive or negative). 


Tip
titleHow to interpret the Correlation Matrix

To check which attributes which variables are the most correlated to a specific one, click on it. The row of the table will be sorted in terms of the absolute values of coefficients related to this specific attributevariable. By clicking on header we can see the attributes the variables correlated to the tag in a decreasing order (from the most correlated to the least one) . 

By clicking on the  icon, a filter can be applied to keep only attributes only variables that are correlated with a minimum absolute value of correlation coefficient.

E.g. Click on the  icon under Tag Name. A field with > 0.5 appears, that means you are filtering your column with values with a coefficient bigger than 0.5. It is possible to edit the field, you can enter other values, for example, > 0.8.