Ecologists have used various indices as a means to quantify biodiversity. One simple index is the Simpson Index.
To calculate this Simpson Index, we need to know the number of individuals for each particular species (n) and the sum of those numbers (N):
For example, in a community of three species where one species has 6 members, a second has 12, and a third has 42:
D = (6/60)2 + (12/60)2 + (42/60)2 = 0.54
So when we are calculating D, we are summing the squares of the proportion each species makes to the total.
D actually is inversely related to diversity. When D = 0 (its theoretical minimum), there is infinite diversity.
When D = 1 (its maximum), there is no diversity as all of the individuals are from just one species.
Ecologists will often use the reciprocal of D, 1/D. This figure actually has meaning in that it is the effective
number of species in the area.