Mathematical Modelling and Stochastic Modelling

Write down the rules of a process, test its assumptions, and make a capacity decision.

Write down the rules of a process, test its assumptions, and make a capacity decision.

Before you start. Mathematics for AI and Data Science.

Use Python 3.12 for the examples. Install the dependencies with python -m pip install numpy. Run each week as a separate script. Try the worked example on paper first, then change one assumption in the lab and explain the result. All datasets are small or generated locally.

The 12 weeks

WeekLessonWhat you’ll do
1Model formulation and conservationTranslate an inventory process into units, variables, and a conservation check.
2Discrete dynamical systemsPredict whether a small perturbation shrinks near a fixed point.
3Ordinary differential equations and coolingTurn a rate law into a trajectory and check its fit.
4Numerical simulation and Euler stabilityRecognize numerical oscillation in an otherwise smooth process.
5Calibration, identifiability, and sensitivityDesign a measurement that distinguishes parameters with equal fit.
6Monte Carlo and deadline riskEstimate a tail probability and separate model uncertainty from simulation error.
7Discrete-time Markov chainsCompute transient probabilities and verify a stationary distribution.
8Poisson arrivals and interarrival timesTest whether a single constant arrival rate hides a peak.
9Continuous-time Markov chains and queuesRelate high utilization to long waits in a single-server system.
10Random walks and first passageMeasure the probability of reaching capacity by a deadline.
11Discrete-event simulation and validationSimulate a queue using real event order and assess model error on held-out data.
12Capstone · Decide how much service capacity to addCompare staffing under smooth, variable, and bursty workloads.

Further reading · MIT 6.262 · Discrete Stochastic Processes