Shannon index

Jump to navigation Jump to search

The Shannon index (incorrectly the Shannon–Weaver index or also incorrectly known as the Shannon-Weiner Index [1]) <math>H^{\prime}</math> is one of several diversity indices used to measure diversity in categorical data. It is simply the Information entropy of the distribution, treating species as symbols and their relative population sizes as the probability.

This article treats its use in the measurement of biodiversity. The advantage of this index is that it takes into account the number of species and the evenness of the species. The index is increased either by having more unique species, or by having a greater species evenness.

The "Shannon-Weaver" name is a misnomer; apparently some biologists jumped to the conclusion that Warren Weaver, author of an influential preface to the book form[2] of Claude Shannon's 1948 paper[3]founding information theory, was a cofounder of this theory. Weaver did play a crucial role in the rapid postwar development of information theory in a different way, however; as an influential early administrator of the Rockefeller Foundation, he ensured that the first information theorists received generous research grants. Norbert Wiener had no hand in the index either, although his influential popularisation of cybernetics was often conflated with information theory in the 1950s.

Definitions

  • <math>n_i</math> The number of individuals in each species; the abundance of each species.
  • <math>S</math> The number of species. Also called species richness.
  • <math>N</math> The total number of all individuals: <math>\sum_{i=1}^S n_i</math>
  • <math>p_i</math> The relative abundance of each species, calculated as the proportion of individuals of a given species to the total number of individuals in the community: <math>n_i\over N</math>

Computing the index

<math>H^\prime = -\sum_{i=1}^S p_i \ln p_i</math>

By applying calculus, it can be shown that for any given number of species, there is a maximum possible <math>H^\prime</math>, <math>H_\max=\ln S</math> which occurs when all species are present in equal numbers.

Proof that maximum evenness maximizes the index

The following will prove that any given population will have a maximum Shannon Index if and only if each species represented is composed of the same number of individuals.

Expanding the index:

<math>H^\prime = -\sum_{i=1}^S {n_i\over N} \ln {n_i\over N}</math>
<math>N H^\prime = -\sum_{i=1}^S n_i \left ( \ln n_i - \ln N \right )

= -\sum_{i=1}^S n_i \ln n_i + \ln N \sum_{i=1}^S n_i </math>

<math>N H^\prime - N \ln N = -\sum_{i=1}^S n_i \ln n_i</math>

Now, let's define <math>H_s = -\sum_{i=1}^S n_i \ln n_i</math> Clearly, since <math>N</math> is a positive constant for a given population size, and <math>N\ln N</math> is also a constant, then maximizing <math>H_s</math> is equivalent to maximizing <math>H^\prime</math>.

Strategy

Let's split an arbitrarily sized population into two groups, with each group receiving an arbitrary number of individuals and an arbitrary number of species. Now, within each group, each species has the same number of individuals as any other species in that group, but the number of individuals per species in the first group may be different from the number of individuals per species in the second group.

Now, if it can be proven that <math>H_s</math> is maximized when the number of individuals per species in the first group matches the number of individuals per species in the second group, then it has been proved that the population has a maximum index only when each species in the population is evenly represented. <math>H_s</math> doesn't depend on the total population. So <math>H_s</math> may be built by simply adding the indices of two sub-populations. Since the population size is arbitrary, this proves that if you have two species (the smallest number that can be considered two groups), their index is maximized if they are present in equal numbers. So the rules of mathematical induction have been satisfied.

Proof

Now, divide the species into two groups. Within each group, the population is evenly distributed among the species present.

  • <math>k</math> The number of individuals in the second group.
  • <math>p</math> The number of species in the second group.
  • <math>n_{i2} = k/p</math> Number of individuals in each species in the second group.
  • <math>N-k</math> The number of individuals in the first group.
  • <math>S-p</math> The species in the first group.
  • <math>n_{i1} = {N-k \over S-p}</math> The individuals in each species in the first group.
<math>H_s = -\sum_{i=1}^{S-p} {N-k \over S-p} \ln {N-k \over S-p}
   - \sum_{i=1}^p {k\over p} \ln {k \over p}  
 = -\left ( N-k \right ) \ln  {N-k \over S-p}  
   - k \ln {k\over p}.

</math>

To find out which value of <math>k</math> will maximize <math>H_s</math>, we must find the value of <math>k</math> which satisfies the equation:

<math>{d\over dk}\, H_s=0.</math>

Differentiating,

<math>\ln { N-k \over S-p} + (N-k){1 \over N-k} - \ln {k\over p} - k {1 \over k} = 0,</math>
<math>\ln {N-k\over S-p} = \ln {k \over p}</math>

Exponentiating:

<math>{N-k\over S-p} = {k \over p} = {pN \over S}.</math>

Now by applying the definitions of <math>N_{i1}</math> and <math>N_{i2}</math>, we get

<math>N_{i1} = N_{i2} = {N\over S}.</math>

Result

Now we have accomplished the proof that the Shannon index is maximized when each species is present in equal numbers (see #strategy). But what is the index in that case? Well, <math>n_i = {N\over S}</math>, so <math>p_i = {1\over S}</math> Therefore:

<math>H_\max = - \sum_{i=1}^S {1\over S} \ln {1\over S} = \ln S.</math>

Notes

  1. Krebs, Charles (1989) Ecological Methodology. HarperCollins, New York.
  2. Weaver, W. (1949). The Mathematical Theory of Communication. Urbana, Illinois: University of Illinois. Unknown parameter |coauthors= ignored (help)
  3. Shannon, C.E. (1948). "A mathematical theory of communication". Bell System Technical Journal. 27: 379-423 and 623-656. Unknown parameter |month= ignored (help)

See also

de:Shannon-Index it:Indice di Shannon-Wiener he:מדד שאנון-ויבר

Template:WikiDoc Sources