Part 4: Stochastic Differential Equations
An SDE combines deterministic drift with continuous random diffusion. This pathway builds the idea carefully, derives epidemic models from biological events, simulates independent paths, and checks both numerical and interpretive validity.
Stage 1 · Understand stochastic change
Foundations of an SDE
Move from expected deterministic change to drift, diffusion and Brownian increments.
Stage 2 · Build SDE models
Numerical method and epidemic construction
Implement Euler–Maruyama, then derive SIS, SIR and SEIR diffusions from biological events.
Stage 3 · Simulate and summarise
One path, ensembles and uncertainty
Separate possible histories from empirical distributions and correctly labelled uncertainty summaries.
Stage 4 · Evaluate and communicate
Comparison, numerical validity and reporting
Assess when the approximation is useful, diagnose its numerical behaviour and communicate results.
Coverage rule
Lessons 1–4 explain the stochastic ingredients. Lessons 5–8 construct numerical and biological models. Lessons 9–11 simulate and summarise paths. Lessons 12–14 compare, validate and communicate results. Later lessons reuse earlier code but focus only on their stated new purpose.