Predator prey model (Lotka–Volterra)

Lotka–Volterra equations (predator–prey equations) are used to model dynamical relationship between predators and they prey


Lotka-Volterra equations are used in simplest cases when there's only one predator population and one prey population. The model was developed in the beginning of 20th century by Alfred Lotka and Vito Volterra (independently).


  • exponential growth of the prey population when the predator is absent
  • the predator population will starve if the prey population is 0
  • predators can consume infinite amount of prey
  • environment is simple (both populations are moving randomly through a homogeneous environment)


Instead of using formulas to get the final value the model simulates all time steps to get historical data.

In [1]:
from iframer import *
By Anton Zemlyansky in
Tags : #System dynamics, #Biology,