Lably
Skip to content

Species diversity

Number of distinct species in a biological community

  • 5 min read
  • 4 chapters

Related on Lably

Through Species, Fraction and Arithmetic mean

Calculation of diversity

Species diversity in a dataset can be calculated by first taking the weighted average of species proportional abundances in the dataset, and then taking the inverse of this. The equation is:

qD=1∑i=1Spipiq−1q−1

The denominator equals mean proportional species abundance in the dataset as calculated with the weighted generalized mean with exponent q - 1. In the equation, S is the total number of species (species richness) in the dataset, and the proportional abundance of the ith species is pi. The proportional abundances themselves are used as weights. The equation is often written in the equivalent form:

qD=(∑i=1Spiq)1/(1−q)

The value of q determines which mean is used. q = 0 corresponds to the weighted harmonic mean, which is 1/S because the pi values cancel out, with the result that 0D is equal to the number of species or species richness, S. q = 1 is undefined, except that the limit as q approaches 1 is well defined:

limq→1qD=exp⁡(−∑i=1Spiln⁡pi),

which is the exponential of the Shannon entropy.

q = 2 corresponds to the arithmetic mean. As q approaches infinity, the generalized mean approaches the maximum pi value. In practice, q modifies species weighting, such that increasing q increases the weight given to the most abundant species, and fewer equally abundant species are hence needed to reach mean proportional abundance. Consequently, large values of q lead to smaller species diversity than small values of q for the same dataset. If all species are equally abundant in the dataset, changing the value of q has no effect, but species diversity at any value of q equals species richness.

Negative values of q are not used, because then the effective number of species (diversity) would exceed the actual number of species (richness). As q approaches negative infinity, the generalized mean approaches the minimum pi value. In many real datasets, the least abundant species is represented by a single individual, and then the effective number of species would equal the number of individuals in the dataset.

The same equation can be used to calculate the diversity in relation to any classification, not only species. If the individuals are classified into genera or functional types, pi represents the proportional abundance of the ith genus or functional type, and qD equals genus diversity or functional type diversity, respectively.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Organisms