← Stochastic Differential Equations

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

\[dX(t)=\underbrace{f(X(t))dt}_{\text{drift change}}+\underbrace{g(X(t))dW(t)}_{\text{diffusion change}}.\]

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.

\[f(I)=a_1(I)-a_2(I),\qquad g(I)=\sqrt{a_1(I)+a_2(I)}.\]

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

QuantityCan be negative?Interpretation
\(f(I)\)YesExpected direction: positive upward, negative downward.
\(g(I)\)Usually chosen non-negativeScale of fluctuations.
\(g(I)dW\)YesRealised 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.

Interactive PythonDrift and diffusion at one SIS state

Output

Run the code to see the result.

Conditions and limitations

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.