use Spearman’s rank correlation and Pearson’s linear correlation to analyse the relationships between two variables, including how biotic and abiotic factors affect the distribution and abundance of species (the formulae for these correlations will b
Biodiversity – Analysing Relationships with Correlation
This set of notes explains how to use Spearman’s rank correlation and Pearson’s linear correlation to investigate how biotic and abiotic factors influence the distribution and abundance of species.
1. Key Concepts
Biodiversity: Variety of life at genetic, species and ecosystem levels.
Biotic factors: Living components that affect a species (e.g., competition, predation, symbiosis).
Interpretation of \$r_s\$ follows the same guidelines as Pearson’s \$r\$ but refers to monotonic trends.
5. Example Data Set
Suppose we survey a freshwater pond and record the abundance of a particular macroinvertebrate species (individuals per m²) against water temperature (°C) at ten sites.
Site
Temperature (°C)
Abundance (ind/m²)
1
12
5
2
14
8
3
15
12
4
16
15
5
18
20
6
19
22
7
20
25
8
21
27
9
22
30
10
23
33
6. Calculating Pearson’s r for the Example
Using the data above:
Compute \$\bar{x}\$ (mean temperature) and \$\bar{y}\$ (mean abundance).
Calculate each \$(xi-\bar{x})(yi-\bar{y})\$, \$(xi-\bar{x})^2\$, and \$(yi-\bar{y})^2\$.
Insert the sums into the Pearson formula.
For brevity, the final result is \$r \approx 0.99\$, indicating a very strong positive linear relationship between temperature and abundance.
7. Calculating Spearman’s \$r_s\$ for the Same Data
Because the data are already ordered, the ranks for temperature and abundance are identical (1–10). Thus \$d_i = 0\$ for all \$i\$ and:
\$r_s = 1 - \frac{6\cdot 0}{10(10^{2}-1)} = 1\$
This confirms a perfect monotonic increase.
8. Interpreting Results in an Ecological Context
Positive correlation suggests that higher temperatures favour the species, perhaps by increasing metabolic rates or food availability.
If a negative correlation were observed with, for example, dissolved oxygen, it would indicate that lower oxygen levels limit abundance.
Strong correlations do not prove causation; experimental or mechanistic studies are required to confirm the underlying processes.
9. Applying Correlation to Biotic vs. Abiotic Factors
When analysing field data, separate the variables into:
Calculate correlation coefficients for each variable against species abundance. Compare the magnitude of \$|r|\$ or \$|r_s|\$ to identify which factor has the strongest association.
10. Limitations and Precautions
Both coefficients assume independent observations; spatial autocorrelation can inflate significance.
Pearson’s \$r\$ requires approximately normal distribution of the variables; otherwise, transform data or use Spearman’s \$r_s\$.
Outliers can heavily influence Pearson’s \$r\$ but have less effect on Spearman’s \$r_s\$.
Correlation does not imply causation; consider confounding variables.
11. Suggested Diagram
Suggested diagram: Scatter plot of temperature (x‑axis) versus species abundance (y‑axis) with a fitted linear regression line, illustrating the strong positive Pearson correlation.
12. Summary Checklist for Students
Identify the two variables to be compared.
Decide whether the relationship is expected to be linear (use Pearson) or monotonic (use Spearman).
Rank the data if using Spearman; otherwise calculate means and deviations for Pearson.
Apply the appropriate formula and compute the coefficient.
Interpret the sign and magnitude of the coefficient in ecological terms.
Consider the role of biotic and abiotic factors and discuss possible mechanisms.