Biodiversity Species Diversity Simulation

Niche partitioning, habitat loss and drought on a lattice community.

Controls

Readouts

Independent check

...
The science

Model. A lattice community with niche partitioning: species i has an optimum μi on an environmental gradient; its local fitness is f = exp(-(e-μ)²/2σ²). Dead cells are re-colonised from a 5x5 neighbourhood with probability proportional to fitness (plus rare immigrants).

Metrics. Shannon H = -∑ p ln p (nats; maximum ln S), Simpson 1-D = 1 - ∑p², evenness J = H/ln S. Species-area law S = c Az is fitted on nested squares (log-log slope).

Habitat loss and resilience. Removing cells lowers richness and the species-area curve predicts the loss; a drought shifts the environment, so specialists with narrow niches (small σ) fail more than generalists. Try narrow vs wide σ, then "Recover".

Honest limits: one trophic level, no interactions beyond competition for space, a 1-D gradient, simple random numbers; z here is a model output, not a field-measured value.