Week 8: Advanced Exercises¶
Advanced exercises are designed for advanced learners that are ready to take on extra challenges. These exercises are made accessible to all after the class. Note that these exercises typically require more knowledge than what was presented in class.
Adv Exercise: Predator-prey relationship¶
- The prey-predator relationship was mentioned in this week’s module. Using similar structure as the code in this week’s regular exercises, proceed to model the scenario below:
Populations of rabbits and foxes co-exist in the same habitat
Implement the prey-predator relationship using the equation on https://en.wikipedia.org/wiki/Lotka%E2%80%93Volterra_equations. You will find it very helpful to complete the regular in-class exercise.
- Use the following constants:
alpha = 0.04
beta = 0.0005
delta = 0.00005
gamma = 0.2
Explore multiple initial conditions, you should find two steady states!