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
| Display | Question answered |
|---|---|
| Path plot | What possible histories and fluctuations look like |
| Mean with percentile band | How centre and time-specific spread change |
| Density at selected times | How the shape of the distribution evolves |
| Outcome histogram | How frequently final or trajectory-level outcomes occur |
| Table | What 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
Output
Run the code to see the result.
How to interpret the report
- Panel A shows possible histories but only 15 of 500 paths.
- Panel B uses every path and shows pointwise central spread around the mean.
- Panel C shows that distribution shape can change, so mean and variance alone may be incomplete.
- Panel D reports frequencies at one stated time rather than over the whole trajectory.
- The printed table provides exact summaries supporting the visual claims.
Communication checklist
- State model, initial conditions, parameter values, time step, number of paths and seed.
- Put units and biological quantities on axes.
- Say whether a band is percentile, SD or Monte Carlo error.
- State whether summaries include all paths or only non-extinct paths.
- Report numerical boundary treatment and correction frequency.
- Use enough precision to reproduce results, but not false biological precision.
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.