← Moment Equations

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

QuantityUnitsSuitable display
MeanOriginal population unitsLine through time
VarianceSquared population unitsSeparate line or panel
CovarianceProduct of two variables’ unitsSigned line, matrix or heatmap
ProbabilityDimensionless, between 0 and 1Probability 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

  1. The mean shows expected prevalence burden.
  2. Variance shows when paths differ most strongly.
  3. Negative covariance shows that epidemics with fewer susceptible people tend to have more infectious people at that time.
  4. The threshold probability directly answers a stated risk question and is not interchangeable with the mean.

Presentation rules

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.