Interactive model — experiment with these parameters in sItô

Scope note: This note uses a stylized textbook SDE with dimensionless parameters as a standard stochastic-modeling illustration in sItô. It is not a calibrated physical, biological, or clinical model, and domain-specific noise mechanisms and empirical validation are outside its scope.

With contact rate $\beta = 6$, recovery rate $\gamma = 2$, and initial compartments $S_0 = 0.95$, $I_0 = 0.05$ (basic reproduction number $R_0 = \frac{\beta S_0}{\gamma} = 2.85$), the deterministic SIR epidemic peaks at $31.8\%$ infected. Perturbing the transmission term with multiplicative noise of amplitude $\sigma = 0.5$ turns peak prevalence into a random variable with mean $33.7\%$, standard deviation $3.2$ percentage points, and a $90\%$ interval spanning $28.4\%$ to $39.0\%$.

Deterministic peak and noisy transmission

In the deterministic SIR system [1], $\frac{dI}{dS} = -1 + \frac{\gamma}{\beta S}$ vanishes at $S = \frac{\gamma}{\beta}$, yielding the closed-form maximum infected fraction

$$ I_{\max} = I_0 + S_0 - \frac{\gamma}{\beta}\Bigl(1 + \ln\frac{\beta S_0}{\gamma}\Bigr) = 0.3176. $$

Introducing environmental noise $\sigma$ directly into the transmission contact rate yields the coupled SDE [2]

$$ \begin{aligned} dS_t &= -\beta S_t I_t\,dt - \sigma S_t I_t\,dW_t, \\ dI_t &= (\beta S_t I_t - \gamma I_t)\,dt + \sigma S_t I_t\,dW_t, \end{aligned} $$

which preserves $S_t + I_t + R_t = 1$ pathwise while representing fluctuating contact intensity rather than finite-population demographic noise.

Stochastic SIR infected fraction fan peaking near t=0.9 between 26% and 38% before decaying cleanly to zero Stochastic SIR infected fraction fan peaking near t=0.9 between 26% and 38% before decaying cleanly to zero
Infected fraction $I_t$ under noisy transmission ($\sigma = 0.5$, $2 \times 10^3$ paths): stochastic surges broaden both the height and timing of the epidemic wave before recovery clears infections past $t = 4$. Open stochastic SIR in sItô ↗
Bell-shaped density of peak prevalence PathMax(i) centered at 0.338 with 5% quantile 0.285 and 95% quantile 0.391 Bell-shaped density of peak prevalence PathMax(i) centered at 0.338 with 5% quantile 0.285 and 95% quantile 0.391
Distribution of peak prevalence $\max_t I_t$ under transmission noise ($\sigma = 0.5$): mean peak shifts up slightly to $33.8\%$ while individual trajectories span a $90\%$ range from $28.5\%$ to $39.1\%$. Inspect peak density in sItô ↗

Run this in sItô

Open sItô with this model pre-loaded to inspect the path distribution, summary statistics, and parameter sensitivities—or change any setting and rerun (both runs simulate $2 \times 10^3$ paths to $T = 10$ and track $\max_{0 \le t \le T} I_t$):

Noise $\sigma$Exact $I_{\max}$Simulated mean (SE)Standard deviation$90\%$ range
$0$0.31760.323 (Euler grid)0—
$0.5$—$\approx 0.337$ ($10^{-3}$)$\approx 0.032$$[0.284,\, 0.390]$

Communicating peak uncertainty

Transmission noise raises average peak prevalence slightly (by roughly $6\%$) while spreading outcomes across more than ten percentage points. Under $50\%$ transmission volatility, quoting a single $32\%$ point forecast hides the upper risk; reporting the quantile band alongside the distribution of peak timing avoids false precision. See How to read a fan chart and Compiling parametric SDEs into fast Monte Carlo simulations.

Related notes: Predator–prey with noise, How many Monte Carlo paths?.