Background
The backbone to multivariate analysis is the two-way data matrix. In an ecological sense, we can imagine that each column in the dataset is a species or environmental factor and each row is a site. In a human dimensions sense, we can imagine a similar dataset where the columns are are responses to a question and each row is an individual.
This dataset can be be represented in an n-dimensional space based on its values within this data set. The points in that n-dimensional space form a data cloud. A primary goal of multivariate statistics is to describe the orientation of the points in this cloud.
For simplicity sake lets envision, a dataset with 4 sites (rows) and only 2 species (columns). The number of species A will be represented on the X axis and the number of species B will be represented on the Y axis.
Now if you could imagine adding a third species, we would adjust the location of the sites along a third axis representing the number of species. The same goes for adding more and more species.
Similarity among sites
Most multivariate analysis uses similarities (or dissimilarities) to describe how each site (or individual) relates to the others based on species composition (or collective answers to questions).
Similarity
- Similarity is a characterization of the attributes in common compared to the total attributes.
- Sites with exactly the same attributes with have a similarity of 1, sites with no attributes the same will have a similarity of 0.
Dissimilarity
- Complement to similarity (i.e., 1 - similarity)
Distances
If we go back to our plot of the two species across four sites from earlier, we can visualize how similarity and distances are related. The visual layout of how these sites exist in the n-dimensional space can be thought of like a map. Points close together are more similar than points further away.
In the above plot, the dashed lines represent the distances between sites 1, 3, and 4 to site 2. Site 4 and Site 2 are the most different. If you look at the species composition you can see why. Site 2 had 1 of species A and 8 of Species B, whereas Site 4 had 9 of species A and 1 of species B. Sites 1 and 2 are the most similar. Site 2 had 1 of species A and 8 of Species B and Site 1 had 1 of species A and 9 of species B.
Distances are dissimilarities (dissimilarity = 1-similarity), or there are specific distance measures (e.g., Euclidean) that have no counterpart in similarity index.
Distances based on dissimilarites are bounded between 0 and 1. Distances based on a specific distance measures are unbounded.
The dimensions of the dissimilarity matrix are related to the number of rows in the 2-way data matrix.
As you can see above, we had 4 sites so our distance matrix is a 4x4 matrix (the distance from each site to every site). The diagonal of the distance matrix should be 0 because it represents the comparison of each site to itself.
There are around 30 measures of similarities or distances (Legendre & Legendre 2012). The choice on which one to use will be related to the type of data that you have, the question, and the analysis.
Euclidian distance
- Most appealing measure because it has true ‘metric’ properties
- Column standardized to remove issues with scale
- Applied to any data of any scale
- Used in eigenvector ordinations (e.g., PCA)
- Assumes variables are uncorrelated
- Emphasizes outliers
- Looses sensitivity with heterogeneous data
- Distances not proportional
City-block (Manhattan) distance
- Most ecologically meaningful dissimilarities are Manhattan type
- Less weight to outliers compared to ED
- Retains sensitivity with heterogenous data
- Distances not proportional
Proportional Distances
- Manhattan distances expressed as a proportion to max distance
- 2 communities with nothing in common would have dissimilarity of 1
Sorensen or Bray-Curtis distance
- Percent dissimilarity
- Common with species data but can be used on any scale
- Gives less weight to outliers compared to ED
- Retains sensitivity with heterogeneous data
- Maximum when there is no shared species
- NOT metric and cannot be used with DA or CCA
A few other proportional distances exist and differ in how they weight the dissimilarity. Two examples are:
- Jaccard distance
- Kulcynski distance
Euclidean distances based on species profiles
Chord distance
- Similar conceptually to ED, but data are row normalized
- Useful in species abundance data because it removes differences in abundance
Chi-square distance
- ED after completing a row chi-quare standardization see last weeks notes
Species-profile distance
- ED on relative abundances see last weeks notes
Hellinger distances
- ED on the Hellinger standardization see last weeks notes
Phew!! After going through all of these standardizations, transformations, and you have got to be thinking there has to be an easier way. And of course there is. The vegan
package that I mentioned in the previous class has functions that will allow us to do all of these standardizations and distance measures. For example to run the
chi.sq transformation and the euclidean distance, we combine the use of the functions decostand
(completes many of the common standardizations) and vegdist
(completes many of the common distance measures).
There are many other distance metrics we could choose from. Look at the help menu for vegdist (?vegdist
) to get a better idea of what is available and how it is calculated.