15
Mean, variance, covariance and probability visualisations
The final lesson matches each moment or probability to a display with correct units, scale and biological interpretation.
Each quantity needs its own interpretation
| Quantity | Units | Suitable display |
|---|---|---|
| Mean | Original population units | Line through time |
| Variance | Squared population units | Separate line or panel |
| Covariance | Product of two variables’ units | Signed line, matrix or heatmap |
| Probability | Dimensionless, between 0 and 1 | Probability curve or table |
Putting all four on one vertical axis can conceal scale and meaning. Separate panels preserve honest labels.
Scenario
Use 3,000 stochastic SIR epidemics and observe \(S(t)\) and \(I(t)\) daily. Report expected infectious prevalence, its variance, susceptible–infectious covariance and \(\Pr(I(t)\ge30)\).
Interactive Python laboratory
Interactive PythonMoment and probability report
Output
Run the code to see the result.
Read the panels together
- The mean shows expected prevalence burden.
- Variance shows when paths differ most strongly.
- Negative covariance shows that epidemics with fewer susceptible people tend to have more infectious people at that time.
- The threshold probability directly answers a stated risk question and is not interchangeable with the mean.
Presentation rules
- State whether moments are analytical, closed approximations or Monte Carlo estimates.
- Give sample size and seed for simulated moments.
- Use squared units for variance and covariance.
- Keep probability axes between 0 and 1.
- Define thresholds and observation times.
- Accompany plots with a compact exact-value table.
Part 5 completion
You can now define and estimate moments, derive first- and second-moment equations, identify unclosed nonlinear hierarchies, apply and test closures, solve retained ODEs, validate against simulation, approximate probabilities and communicate mean, variance, covariance and risk accurately.