Example:
n = 37
yellow = 25/37 = 0.675
orange = 6/37 = 0.162
green = 1/37 = 0.027
red = 5/37 = 0.135
H = (.675*-.393) + (.162*-1.82) + (.027*-3.61) + (.135* -2.00)
H = .265 + .294 + .097 + .27
H = 0.926
n total = |
yellow fish (one fish) |
orange fish (two fish) |
red fish (red fish) |
green fish (blue fish) |
---|---|---|---|---|
x for each color |
|
|
|
|
x/n |
|
|
|
|
ln (x/n) |
|
|
|
|
x/n * ln(x/n) |
|
|
|
|
H total |
|
|
|
|
|
|
|
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
Low biodiversity: pond two: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
High biodiversity: pond three
|
Comments