← Stochastic Differential Equations

14

Path plots, density plots, bands, histograms and tables

The final SDE lesson combines visual and tabular summaries while keeping individual paths, time-specific distributions and numerical uncertainty conceptually separate.

Choose a display from the biological question

DisplayQuestion answered
Path plotWhat possible histories and fluctuations look like
Mean with percentile bandHow centre and time-specific spread change
Density at selected timesHow the shape of the distribution evolves
Outcome histogramHow frequently final or trajectory-level outcomes occur
TableWhat the exact reported summaries are

Lines and bands need precise labels

A mean path is not one realisation. A percentile band is pointwise unless a simultaneous construction is used. A few displayed sample paths illustrate variation but do not estimate frequencies.

Density versus histogram

A histogram shows bin counts or frequencies. A density display is scaled so its total area is approximately one, which permits comparison between samples of different sizes. Both depend on bin width, so avoid interpreting small bumps as biological discoveries.

Interactive Python laboratory

Interactive PythonComplete SDE results report

Output

Run the code to see the result.

How to interpret the report

  1. Panel A shows possible histories but only 15 of 500 paths.
  2. Panel B uses every path and shows pointwise central spread around the mean.
  3. Panel C shows that distribution shape can change, so mean and variance alone may be incomplete.
  4. Panel D reports frequencies at one stated time rather than over the whole trajectory.
  5. The printed table provides exact summaries supporting the visual claims.

Communication checklist

Biological interpretation

The ensemble describes intrinsic stochastic variation under fixed assumptions. Wide distributions indicate that the same biology permits substantially different prevalence levels. A mass at zero has direct extinction meaning only when the model and numerical boundary rule justify that interpretation.

SDE section completion

You can now derive epidemic diffusions from events, generate Brownian increments, program Euler–Maruyama, simulate one or many paths, calculate ensemble summaries, compare model classes, diagnose numerical validity, and communicate stochastic results accurately.