Diversity Indices
Computing and interpreting diversity indices
A diversity index combines how many species are present with how individuals are distributed among them. Start with each species' relative abundance, pi, found by dividing its count by the total count. The proportions must sum to one before either index is calculated.
Calculate from proportions
Species richness is the number of species, while Shannon diversity also responds to their proportions: H=−∑ipilnpi. This formula uses the natural logarithm; state the log base when reporting a value. A species with zero observed individuals contributes zero by the limiting convention plnp→0 as p→0+, although richness normally counts only species present.
Simpson concentration is D=∑ipi2, whereas Gini–Simpson diversity is 1−D. Both are dimensionless, and the word “Simpson” alone can refer to different conventions. Name the formula so a larger concentration is not confused with a larger diversity value.
Worked example
Consider a separate sample with species counts 6, 3, and 1, for a total of 10 individuals. Its proportions are 0.6, 0.3, and 0.1, which add to one. Squaring and summing gives D=0.62+0.32+0.12=0.46, so 1−D=0.54.
Using natural logs for the same sample gives H=−(0.6ln0.6+0.3ln0.3+0.1ln0.1)≈0.898. The results describe this distribution of observed proportions; they are not species counts. Stating both the input proportions and the selected formula makes the calculation reproducible.
Interpreting results
At fixed richness, greater evenness generally gives larger Shannon and Gini–Simpson diversity values. Under independent draws with replacement from the stated proportions, D is the probability that two draws match species and 1−D is the probability that they differ.
Sampling without replacement from a finite set of observed individuals has a different probability because the first draw changes the available counts.
A community has species counts 4, 3, and 3. Using the Gini–Simpson form 1 − Σ p², what is the index?
Mark Yourself Question
- Grab a piece of paper and try this problem yourself.
- When you're done, check the "I have answered this question" box below.
- View the solution and report whether you got it right or wrong.
A five-individual sample has counts 2, 2, and 1 across three species. Calculate Shannon H = −Σ p ln p using natural logarithms. Report to three decimal places.