23 Discrete-time Lotka-Volterra Predator-Prey Model in R

23.1 Introduction

The Lotka-Volterra model describes the interaction between predators and prey. This document demonstrates how to program the discrete-time version of the model in R, explore its features, and visualise the dynamics of predator and prey populations over time. The time step (\(\Delta t\)) can be adjusted to explore the impact of a time delay in the system. In ecological systems, time delays can represent biological processes such as the time it takes for predators to respond to changes in prey density, for prey populations to recover after predation. If \(\Delta t\) is set to 1, this model is equivalent to a year-by-year model (as we have fitted in Excel in class), where the impact of predators on prey has a 1 year lag. i.e. the growth of predators, depends on the availability of prey 1 year ago and the growth of prey depends on the amount of predators 1 year ago.

23.2 Step 1: Define the Model

The discrete-time equations are as follows:

  • Victim (prey) population growth:
    \(V_{t+1} = V_t + \Delta t \cdot (R \cdot V_t - a \cdot C_t \cdot V_t)\)

  • Consumer (predator) population growth:
    \(C_{t+1} = C_t + \Delta t \cdot (a \cdot f \cdot V_t \cdot C_t - q \cdot C_t)\)

Note that, when \(\Delta t = 1\), the model is as follows:

  • Victim (prey) population growth:
    \(V_{t+1} = V_t + R \cdot V_t - a \cdot C_t \cdot V_t\)

  • Consumer (predator) population growth:
    \(C_{t+1} = C_t + a \cdot f \cdot V_t \cdot C_t - q \cdot C_t\)

Compare these to Equations 1 and 2 in the Excel exercise PDF.

The function below implements these equations in R.

23.3 Step 2: Set Parameters and Initial Conditions

We set the parameters, initial conditions, and time step (\(\Delta t\)) for the model.

23.4 Step 3: Simulate the Model

We simulate the model for the specified parameters and time steps.

23.5 Step 4: Visualise the Dynamics

23.5.1 Population Dynamics Over Time

The plot below shows the changes in consumer and victim populations over time.

23.5.2 Phase Plot with ZNGIs

The phase plot shows the relationship between victim and consumer populations.

23.6 Conclusion

This document demonstrates how to implement and explore the discrete-time Lotka-Volterra predator-prey model. By adjusting the time step (\(\Delta t\)) and other parameters, you can investigate how predator-prey dynamics are influenced by ecological factors. You will see that a time lag imposed by the t parameter results in expanding spirals in the phase plot and eventual extinction of predator and prey. Contrast this with the perpetual oscillations you get with the continuous time model.