User:Chas zzz brown/predator prey

Aesthetically speaking, a problem with the algae shrimp alewife model is that if the alewife population is 0, the model acts differently than then algae shrimp model does by itself; in fact the shrimp grow without bounds.

We can adjust for this and create a more faithful model by combining observations about the standard predator prey model and the competition models.

General Competition Model edit

The general competition model for n species is described as:

 

In this model, the elements of the interaction matrix   are typically all positive; and the coefficient   encodes the degree to which species j decreases the rate of growth of species i.

Note that in this model, if   for all j except for one species i, (i.e., there is only 1 species actually present), then we have the equation

 

If we let   where   is the carrying capacity of species i, we get the familiar equation:

 

In this case, r_i represents the birth rate   without any other limiting factors involved; and   is a self-limiting factor.

It is slightly counter-intuitive to denote interactions which decrease a species with positive numbers, and those which increase a species with negative numbers; and in fact with appropriate sign changes for the elements of A, we can rewrite the the general equation as:

 

or, after appropriately rescaling the coefficients of A by  ,

 

As we shall see, in this form the general competition equations are compatible with the predator prey equations.

Predator Prey Equations edit

The predator prey equations for two species are often written as:

 
 

where x is the prey species, y is the predator species, and the coefficients are all positive real numbers, with b being the prey species birth rate, c being the effect of predation, g being the rate of growth in the predator species from consuming prey, and d being the death rate for the predator species.

Now, if we remove the constraint that all coefficients be positive, we can make the following assignments:

 
 
 
 
 
 

And then after substitution, the above equations become:

 
 

Now we can add in a (negative!) carrying capacity factor   for the prey, and no such self-limiting factor for the predator; and write the above as:

 
 

or more compactly, letting  ,

 

which is then the same form as the set of equations for general competition given above.

General System Model edit

As a start, a more general approach for n different species is as follows:

 

where we have

  is the (fixed) birth rate,

  is the (fixed) death rate,

and there is an array (the interaction matrix)   where the element   captures the effect of species j on species i.

When  , the effect of species j on species i is to increase species i.
When  , the effect of species j on species i is to deccrease species i.

Typically, we have that if species i is a producer (e.g., algae), then   is positive; and if species i is a consumer, then   is negative; in other words, for producers we consider the net birth rate in the absence of other species, and for consumers we consider the net death rate. So we might as well write   in the above equations, and we get the same form as in the previous two examples:

 

Application to the models from the Excel spreadsheets edit

Details as I get to them! Primarily, we want to normalize the interaction matrix by dividing the coefficients by  ; but in the case of consumers, this flips the meaning of the sign of those coefficients (since consumers have   negative).