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
| Week | Lesson | What you’ll do |
|---|---|---|
| 1 | Model formulation and conservation | Translate an inventory process into units, variables, and a conservation check. |
| 2 | Discrete dynamical systems | Predict whether a small perturbation shrinks near a fixed point. |
| 3 | Ordinary differential equations and cooling | Turn a rate law into a trajectory and check its fit. |
| 4 | Numerical simulation and Euler stability | Recognize numerical oscillation in an otherwise smooth process. |
| 5 | Calibration, identifiability, and sensitivity | Design a measurement that distinguishes parameters with equal fit. |
| 6 | Monte Carlo and deadline risk | Estimate a tail probability and separate model uncertainty from simulation error. |
| 7 | Discrete-time Markov chains | Compute transient probabilities and verify a stationary distribution. |
| 8 | Poisson arrivals and interarrival times | Test whether a single constant arrival rate hides a peak. |
| 9 | Continuous-time Markov chains and queues | Relate high utilization to long waits in a single-server system. |
| 10 | Random walks and first passage | Measure the probability of reaching capacity by a deadline. |
| 11 | Discrete-event simulation and validation | Simulate a queue using real event order and assess model error on held-out data. |
| 12 | Capstone · Decide how much service capacity to add | Compare staffing under smooth, variable, and bursty workloads. |