02
Drift, diffusion and biological meaning
Every SDE step combines a predictable local tendency with a random fluctuation. These two contributions have different mathematical and biological roles.
The general SDE
The drift coefficient \(f\) gives the local expected rate of change. The diffusion coefficient \(g\) controls the size of random fluctuations; it is not itself the random number.
Biological derivation from infection and recovery
For an SIS infectious count, let infection and recovery event rates be \(a_1\) and \(a_2\). Infection changes \(I\) by +1 and recovery by −1.
The rates subtract in the drift because the events move \(I\) in opposite directions. Their variances add in the diffusion because both random event streams contribute uncertainty.
Direction and magnitude are different
| Quantity | Can be negative? | Interpretation |
|---|---|---|
| \(f(I)\) | Yes | Expected direction: positive upward, negative downward. |
| \(g(I)\) | Usually chosen non-negative | Scale of fluctuations. |
| \(g(I)dW\) | Yes | Realised random change can be positive or negative. |
Units check
If \(I\) is measured in people and time in days, \(f\) has units people/day. Because \(dW\) has units \(\sqrt{\text{day}}\), \(g\) has units people/\(\sqrt{\text{day}}\). Both complete terms have units people.
Interactive Python laboratory
At one epidemic state, the drift contribution is fixed while repeated diffusion contributions vary around zero.
Output
Run the code to see the result.
Conditions and limitations
- The square-root expression requires non-negative event rates.
- At an absorbing state where all rates vanish, both drift and diffusion vanish.
- A diffusion approximation treats the state as continuous and can produce non-integer values.
- Near small populations or boundaries, a CTMC may represent discrete extinction more faithfully.
What this lesson adds
You can now identify drift as expected direction, diffusion as fluctuation scale, derive both from opposing biological event rates, and check their units. The next lesson explains the Brownian increment that supplies the random sign and magnitude.