Diversity index

Intermediate

What you need first. Nothing else on this path comes first. This page is part of Applications.

In ecology, a diversity index is a summary of how individuals are divided among classes, using both the number of classes and their relative sizes. A woodland sample contains many oaks and one rare shrub. Counting the species says the wood is richer than a plantation of oaks alone, and it treats the shrub as equal to the oaks. A diversity index is a single number that uses both the number of classes and the way individuals are divided among those classes.

Diversity index

Diversity index
Fact Value
Topic Applications
Listed on Applications
Worked example 1

Motivating example

Ten trees fall into three species, with counts 6, 3, and 1. Species richness is 3. That number would be the same for counts 4, 4, and 2, or for 8, 1, and 1. A visitor who cares whether the wood is mostly one species needs a summary that moves when the counts become more equal. Simpson’s concentration does that: it is large when two individuals drawn at random are likely to be the same species, and small when they are likely to differ.[1][2]

Definition

Consider an infinite population whose individuals fall into ZZ classes, with proportions p1,…,pZp_1,\ldots,p_Z that sum to 1. Simpson’s concentration is

λ=∑i=1Zpi2.\lambda=\sum_{i=1}^{Z} p_i^2.

It lies between 1/Z1/Z and 1. The value 1 means every individual is in a single class. The value 1/Z1/Z means the classes are equal, which is the most even division possible for that number of classes. The same λ\lambda is the probability that two individuals drawn at random and independently are in the same class.[1]

In a finite sample of size NN with counts nin_i,

ℓ=∑ini(ni−1)N(N−1)\ell=\frac{\sum_i n_i(n_i-1)}{N(N-1)}

is an unbiased estimator of λ\lambda. The numerator counts pairs that fall inside one class, and the denominator counts all pairs. Ecologists often report a diversity form that runs the other way, 1−λ1-\lambda, or the reciprocal 1/λ1/\lambda. The reciprocal can be read as the number of equally common species that would give the same concentration.[1][2]

Draw two individuals independently from a very large population. The chance they belong to the same class is high when one class dominates, and it is as small as the number of classes allows when the classes are equal. That chance is a concentration. Diversity, in the sense of evenness mixed with richness, runs in the other direction: many equal classes make the chance of a match small. The indices used in ecology are functions of this chance, or of the entropy of the same proportions.[1][2]

Properties

Richness ZZ and evenness are different components. λ\lambda uses both, and a single number cannot be decomposed back into them without more information. For fixed ZZ, λ\lambda is minimised when the pip_i are equal. Adding a rare class changes λ\lambda only a little, because a small pip_i contributes pi2p_i^2, which is smaller still. The sample estimator ℓ\ell is not the plug-in ∑(ni/N)2\sum (n_i/N)^2; the factor ni(ni−1)n_i(n_i-1) corrects the finite-sample bias of that plug-in for λ\lambda.[1][2]

Peet records the heterogeneity reading used in ecology: a diversity measure of this family should respond to the number of species and to the distribution of individuals among them. There is no single index that every study must use. Species richness, λ\lambda, 1−λ1-\lambda, and the Shannon function answer different questions, and a paper has to say which one it computed.[2]

Statistical use

Community ecology uses the indices to compare sites, treatments, or years. The classification has to be fixed first: species, genus, or some other partition. Individuals in a class are treated as equivalent, and classes are treated as equally different, which is a modelling choice. Sampling needs to match the spatial pattern of the organisms; a sample piled into one patch estimates the patch. In genetics the reciprocal of λ\lambda has been used as an effective number of alleles. The same algebra appears as a concentration index in economics, where large shares play the role of abundant species.[2]

The income Gini coefficient is a different construction, based on the area between the Lorenz curve and the line of equality. It is also a concentration measure, and it is a different formula from Simpson’s λ\lambda. Reporting one under the other’s name mixes an income inequality with a probability of a matching pair.[3]

Worked example

Counts are 6, 3, and 1, so N=10N=10 and the proportions are 0.60.6, 0.30.3, and 0.10.1. Then

λ=0.62+0.32+0.12=0.36+0.09+0.01=0.46.\lambda=0.6^2+0.3^2+0.1^2=0.36+0.09+0.01=0.46.

The unbiased sample form is

ℓ=6⋅5+3⋅2+1⋅010⋅9=30+690=3690=0.4.\ell=\frac{6\cdot 5+3\cdot 2+1\cdot 0}{10\cdot 9}=\frac{30+6}{90}=\frac{36}{90}=0.4.

The plug-in 0.460.46 and the unbiased estimator 0.40.4 are not the same number. Both describe these ten individuals; λ\lambda is the population concentration they estimate.[1]

Your turn. Ten individuals are split evenly between two classes, five and five. What is λ\lambda?

The proportions are 1/21/2 and 1/21/2, so λ=(1/2)2+(1/2)2=1/2\lambda=(1/2)^2+(1/2)^2=1/2.

Common misconceptions

Species richness is not a diversity index of the heterogeneity kind. Two communities with the same number of species can have very different λ\lambda. A larger λ\lambda means more concentration, which is less diversity in the evenness sense; 1−λ1-\lambda is the form that rises as the community becomes more mixed. The Gini coefficient of income is not this index. And ℓ\ell is not defined for a sample of size 0 or 1, because there are no pairs.[2][1][3]

The population formula assumes an infinite population and independent draws. The sample formula assumes a random sample from that population and drops samples of size 0 or 1 when the size itself is random. Every individual is assigned to one class. If the classification is arbitrary, the index inherits the arbitrariness. Spatial clustering means a convenience sample can look less diverse than the region. No index repairs a species concept that splits or lumps taxa differently in the two samples being compared.[1][2]

Connections

The Gini index used to split a classification tree is an impurity, 1−∑pi21-\sum p_i^2, which is the complement of Simpson’s concentration for a discrete distribution on the classes at a node. The income Gini coefficient uses the Lorenz curve instead, and answers a question about inequality of a size variable.[3][2] A multinomial distribution is the sampling scheme behind the counts nin_i when individuals are drawn independently into a fixed set of classes.

Check yourself

Try these questions before opening an answer.

Concentration of 6, 3, and 1

Proportions 0.6, 0.3, and 0.1. What is Simpson’s λ?

λ = 0.36 + 0.09 + 0.01 = 0.46.

Unbiased pair estimator

Counts 6, 3, and 1. What is the unbiased estimator ℓ?

ℓ = 36/90 = 0.4.

Equal split

Ten individuals split five and five. What is λ?

λ = 1/2.

History

Yule and Fisher, Corbet, and Williams had already proposed sample statistics of concentration and of diversity, tied to particular frequency distributions. Simpson’s 1949 letter defined a population concentration λ=∑pi2\lambda=\sum p_i^2, interpretable as the probability that two randomly drawn individuals match, and gave the unbiased pair-count estimator for a sample. Ecological reviews in the following decades treated that index as the first of the heterogeneity measures, and recorded the later habits of reporting 1−λ1-\lambda or 1/λ1/\lambda so that the number rises as the community becomes more even.[1][2]

See also

Abundance estimation · Actuarial science · Astrostatistics · Biostatistics · Business analytics · Censoring · Chemometrics · Computational biology

Glossary and index

References

  1. ^ a b c d e f g h i a. (30 April 1949) b. (30 April 1949) c. (30 April 1949) d. (30 April 1949) e. (30 April 1949) f. (30 April 1949) g. (30 April 1949) h. (30 April 1949) i. (30 April 1949) Simpson, E. H. (1949). Measurement of Diversity. Nature, 163. https://people.wku.edu/charles.smith/biogeog/SIMP1949.pdf
  2. ^ a b c d e f g h i j a. (section "Simpson's Index") b. (section "Simpson's Index") c. (section "Heterogeneity indices") d. (section "Simpson's Index") e. (introduction; section "Simpson's Index") f. (section "Assumptions and data"; section "Simpson's Index") g. (section "Simpson's Index") h. (section "Assumptions and data") i. (section "Simpson's Index") j. (section "Simpson's Index") Peet, R. K. (1974). The Measurement of Species Diversity. Annual Review of Ecology and Systematics, 5, 285–307. https://www.sci.muni.cz/botany/nekola/foe/peet1974.pdf
  3. ^ a b c a. (p. 231) b. (p. 231) c. (p. 231) Dodge, Yadolah (2008). The Concise Encyclopedia of Statistics. Springer. https://doi.org/10.1007/978-0-387-32833-1
Cite this page
Plain text
StatWiki (2026). "Diversity index." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/diversity-index.html
BibTeX
@misc{statwiki_diversity_index,
  author = {{StatWiki}},
  title = {{Diversity index}},
  year = {2026},
  url = {https://www.statwiki.io/articles/diversity-index.html},
  urldate = {2026-12-02},
  note = {StatWiki, last updated 2 December 2026}
}