CommunityCountsλ1 − λ1/λE
A25, 25, 25, 250.250.7541.0
B60, 10, 10, 10, 100.400.602.50.5

p_i = n_i ÷ N. λ = Σ p_i². Simpson's diversity = 1 − λ; maximum 1 − 1/S when all S species are equal. Effective species = 1/λ. Evenness = (1/λ) ÷ S.

Convert counts to proportions, square, add and subtract from 1. Read λ as 'same species', 1 − λ as 'different species' and 1/λ as 'effective number of species'. Diversity reflects both richness and evenness, and Simpson's index is driven mainly by the common species.