🧬 Evolution Tracker

Simulate and visualize population genetics — track trait diversity, detect selection pressure, and analyze allele frequency drift across generations

⚙️ Simulation Parameters

📖 About Evolution Tracking

The Evolution Tracker module (evolution_tracker.py) monitors population genetics in biobot simulations.


Shannon Diversity (H) — Information entropy: H = -∑(p × ln(p)). Higher values mean more even trait distribution.


Simpson's Diversity (D) — Probability two random bots differ: D = 1 - ∑(p²). Ranges 0 (monoculture) to 1 (maximum diversity).


Heterozygosity — Fraction of the population with non-modal trait values.


Selection Coefficient (s) — Rate of allele frequency change: s ≈ Δp / (p(1-p)). Clamped to ±10.


Effective Population Size (Ne) — Diversity-adjusted count: Ne = H / (1 - H).