Chapter 4 Flashcards

1
Q

Why do we use numerical integration in modelling?

A

Numerical integration is the approximation of a continuous model in discrete steps (both in time and space for spatial models)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the advantages of using numerical integration for modelling instead of analytical solutions?

A
  1. Many models are not solvable analytically, but always numerically
  2. With numerical integration, there is virtually no limit to the complexity of models that can be solved:
    * Driving variables (e.g. time series of weather or deposition)
    * Discrete events (e.g. harvesting)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Equation for logistic growth rate?

A

dN/dt = r * N * (1 - N/K)
K = carrying capacity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a driving variable?

A

Driving variables characterize the influence of external factors on the system and may thus be essential to the model, yet they are not influenced by the processes within the system and thus not explicitly modelled.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What do Ordinary Differential Equations describe?

A

The change in states

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can be ODEs mathematically represented?

A

Y’ = f(Y, p, t)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a condition to solve this equation Y’ = f(Y, p, t)?

A

The initial state needs to be known (state Y at time = 0, Y_0)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the mathematical representation of the forward finite difference method?

A

Y_t+dt = Y_t + dt * f(Y, p, t)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

In a logistic growth model describe what happens when N (state) is very small

A

dN/dt = r * N * (1 - N/K)
if N= very small (0) then eq becomes
dN/dt = r * N * 1
meaning that the growth rate is now exponential

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

In a logistic growth model describe what happens when N (state) is equal or approaching K

A

dN/dt = r * N * (1 - N/K)
if N= K then eq becomes
dN/dt = r * N * (1 - K/K)
= r * N * (1 - 1) =
= r * N * 0 =
= 0
meaning that the growth rate is now 0 thus the population stops growing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In a logistic growth model describe what happens when N (state) is bigger than K

A

dN/dt = r * N * (1 - N/K)
if N > K then eq becomes
dN/dt = r * N * (1 - 2)
= r * N * - (value) –> whole eq become negative, thus the growth rate will also be negative

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the analytical solution to a simple logistic model?

A

N_t = (K * N_0 * e ^ (r *t)) / (K + N_0 * (e ^ (r * t) - 1))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the components used in the ode() function in R?

A
  1. the value(s) of initial state variable(s) – Y0
  2. the value(s) of parameter(s) – p
  3. a function with the auxiliary and differential equations returning the rates of all state variables –
    f
  4. time – t
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

When is the highest growth in a logistical equation?

A

when N = K/2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What happens when the time step we chose for the model is too large?

A

The model oscillates around the equilibrium

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the order of variables when inputting in function ode()?

A

ode(y = state
t = time sequence
func = logistic growth function
parms = parameters
method = euler’s/runge-kutta)

17
Q

What should event data frames contain?

A
  • var: the state variable name (or number) that is affected by the event;
  • time: the time at which the event is to take place;
  • value: the value, magnitude of the event;
  • method: which event is to take place; it should be one of “replace”, “add”, “multiply” (but it is also allowed to specify the number 1 = replace, 2 = add, 3 = multiply)
18
Q

How are driving variables included in the ode() function?

A

They are included through forcing functions.

19
Q

What are forcing functions?

A

Functions that appear in the equations and are only a function of time, and not of any of the other variables.

20
Q

When dealing with driving variables in a model, how do we usually have data and what should we do to make it continuous?

A

Often, we have data on driving variables gathered as a time series, containing values only at specified times.

Thus, if a model uses driving variables, their value at each time point needs to be estimated by interpolation of the data series.

21
Q

How does the 4th-order Runge-Kutta differ from Euler’s method of integration?

A

4th-order Runge-Kutta is a weighted form of Euler’s with different rates of change. RK4 involves four function evaluations per step. The different rates of change are calculated from the initial starting point. First, the rate of change is calculated for half a time step and the final and fourth one is calculated for the whole time step. Makes the approximation better.

22
Q

How do we measure the approximation of the model?

A
  1. Accuracy (small numerical error)
  2. Efficiency (fast to solve)
  3. Stability (no oscillations or chaotic behaviour)
  4. Memory usage
23
Q

How to make the approximation better?

A
  1. Make Δt smaller
  2. Evaluation at multiple points in time during ∆t
  3. Including higher order derivatives e.g. using a Taylor expansion
  4. Using a variable time-step instead of a fixed time-step
  5. Small time step when dynamics are fast
  6. Large time step when dynamics are slow
24
Q

Euler’s and Runge-Kutta mathematical equations

A
  1. Euler’s
    y_t+dt = y_t + dt * dy/dt
  2. Runge-kutta
    y_t + dt = y_t + 1/6 * dt * (k_1 + 2k_2 + 2k_3 + k_4)
25
Q
A
26
Q
A