Simulate uncertainty with Python
Model uncertainty, test assumptions and compare decisions through hands-on Python simulation.
Course contents
80 investigationsProbability essentials
Optional · 7 min01Your first simulation
6 lessons · Core
Turn one uncertain event into an inspectable experiment.
02Choose random inputs
6 lessons · Core
Match the sampling model to the quantity you are modelling.
03Understand simulation error
6 lessons · Core
Know how precisely a simulation has answered its question.
04Build inputs from evidence
6 lessons · Core
Separate recorded observations, fitted inputs and assumptions.
05Model dependence
6 lessons · Core
Represent relationships that independent draws would erase.
06Apply the method
6 lessons · Core
Transfer the same simulation habits across six different domains.
07Simulate systems over time
6 lessons · Core
Follow states, dependencies, queues and recovery.
08Learn more from fewer runs
6 lessons · Core
Improve an estimator and measure whether the improvement helps.
09Turn results into decisions
6 lessons · Core
Compare choices, downside, regret and the value of evidence.
10Validate and communicate
6 lessons · Core
Build a reproducible investigation someone else can challenge.
11Advanced sampling and rare events
8 lessons · Advanced
Generate useful samples and diagnose unstable weighted estimates.
Invert a cumulative distribution
8 min 62Accept or reject a proposal
8 min 63Weight samples from another distribution
9 min 64A proposal must reach the answer
9 min 65Keep weights stable on a log scale
8 min 66See a rare event more often
9 min 67When one weight dominates
9 min 68An unknown normalising constant
10 min12Bayesian Monte Carlo and MCMC
8 lessons · Advanced
Construct, check and use samples from a posterior distribution.
+Optional workbooks
3 investigations
No lessons match. Try a broader word or clear the search.
See an example
150 invitations.
110 seats. Enough room?
of these modelled events overflow.
What changes if you add ten seats?
Save or restore your work
Export reading marks, notes and code drafts to use them in another browser. Import replaces matching saved records. Run results and CSV files have separate exports.