aidoesscience
aidoesscience › Predator–prey
Validating · validations

Predator–prey simulation

Do predator and prey populations settle to a balance, or oscillate forever?

▶ Run the simulationSee the measured result

Measured by the lab
2.000001
Known value
2
Relative error
5.80e-7

Units: dimensionless population — the prey time-average ⟨x⟩ = γ/δ = 2.0 and predator time-average ⟨y⟩ = α/β = 2.0, both equal to the coexistence fixed point; secondary knowns: small-amplitude period T₀ = 2π/√(αγ) = 2π, culling law ⟨x⟩ = (γ+m)/δ

How the lab tests it

Integrate the Lotka–Volterra equations (RK4) and watch the phase-space orbit; track the conserved quantity V and measure the cycle's period from successive prey peaks.

What it checks

a closed orbit (V = δx − γ·ln x + βy − α·ln y conserved) with small-amplitude period T₀ = 2π/√(αγ)

This simulation has a catalogued, oracle-checked result: The mean of a boom-bust cycle sits exactly on the balance point.