Skip to content
Founded by three Carnegie Mellon University faculty members
Institute of Algorithmic Tradingand Applied Computational Finance

Open course in quantitative foundations

Monte Carlo Simulation, From First Principles

What is a Monte Carlo simulation? A free course that builds one from first principles: random numbers, the law of large numbers, simulated price paths and their error bars.

The walkthrough films of this course

Taming Tail Risk With Monte Carlo

A 41-minute animated walkthrough for Lesson 7, Risk by Simulation: Value at Risk and Expected Shortfall.

  • Value at risk from sorted losses
  • Expected shortfall: the average of the tail
  • Fat tails and error bars on risk

You are watching the opening. The whole film plays in your course room with lesson 7, as soon as you enroll in this free course.

Taming Monte Carlo's Wild Variance

A 43-minute animated walkthrough for Lesson 8, Making It Efficient: Variance Reduction and Vectorization.

  • Why plain Monte Carlo is noisy
  • Antithetic paths, control variates, stratified sampling
  • Every path at once, as arrays

You are watching the opening. The whole film plays in your course room with lesson 8, as soon as you enroll in this free course.

What is a Monte Carlo simulation? It answers a question about averages by generating many random scenarios and averaging over them. If you cannot work out the expected payoff of an option with a formula, you can simulate ten thousand price paths, compute the payoff on each and take the mean. The law of large numbers says the answer converges; the central limit theorem says how fast.

Why learn Monte Carlo from first principles?

Because most mistakes with simulation come from treating it as a black box: too few paths, no error bars, a discretization that biases the result. Building it from random numbers up makes each of those mistakes visible.

Who should take this course?

Anyone starting in quantitative finance, and anyone who has run a simulation in a spreadsheet or library and wants to know what it is doing. Each lesson is an audio lesson with study notes, a cheat sheet and a workbook.

What you will be able to do

  • Explain the four-step Monte Carlo framework and describe how the error scaling law governs the trade-off between precision and computational cost.
  • Apply seed management to produce reproducible simulation results and select an appropriate pseudorandom number generator for a given scientific context.
  • Calculate expected value for discrete random variables and identify the conditions under which the Law of Large Numbers guarantees convergence.
  • Simulate Geometric Brownian Motion price paths with the correct drift correction and interpret the resulting log-normal terminal price distribution.
  • Construct percentile fan charts from simulation ensembles and select the appropriate uncertainty measure for a given analytical question.
  • Price European options by risk-neutral Monte Carlo simulation and explain why the real-world drift parameter is replaced by the risk-free rate.
  • Evaluate Value at Risk and Expected Shortfall outputs, state their precise interpretations, and identify distributional assumptions that cause each measure to break down.

Syllabus, module by module

  1. What Is a Monte Carlo Simulation?

    Introduces Monte Carlo simulation through its historical origins, the Law of Large Numbers, and the four-step framework that underlies every application from physics to finance.

  2. Random Numbers: Where They Come From and What They Mean

    Explains how pseudorandom number generators work, how they evolved from early linear congruential generators to the Mersenne Twister and PCG64, and why seed management is the foundation of reproducible simulation.

  3. Expectations, Averages, and the Law of Large Numbers

    Traces the formal development of expected value from seventeenth-century gambling problems through Kolmogorov's Strong Law, establishing the mathematical guarantee that makes simulation estimates reliable.

  4. Simulating a Single Price Path

    Derives Geometric Brownian Motion as the standard model for stock prices, explains why the drift correction is mandatory rather than optional, and shows how drift, volatility, and time horizon interact in simulated paths.

  5. Many Paths: Distributions, Uncertainty, and Error Bars

    Shows how to generate and summarize thousands of price paths as an ensemble, construct percentile fan charts, and correctly distinguish between standard deviation, standard error, and confidence intervals.

  6. Pricing by Simulation: Options and Payoffs

    Covers European option payoff structures, the risk-neutral pricing measure, and how Monte Carlo simulation prices derivatives by averaging discounted payoffs across simulated price paths.

  7. Risk by Simulation: Value at Risk and Expected Shortfall

    Examines how to read risk from a loss distribution, defines Value at Risk and Expected Shortfall with their precise interpretations, and explains why fat-tailed return distributions caused catastrophic model failures in 2008.

  8. Making It Efficient: Variance Reduction and Vectorization

    Presents antithetic variates and control variates as variance reduction techniques, explains how NumPy vectorization accelerates path generation, and shows how to assemble a correctly formed confidence interval.

What every course contains

Every paid course comes with the first seven and the certificate, whichever level it sits at. The proctored exam and the credential come when the course is taken as part of a Certificate, Diploma or Fellowship. Everything is self-paced: the material is yours to study in any order, at any hour, for the whole of the license.

  1. Workbooks. Written to train the thinking patterns and the important concepts of the course, with worked problems and the reasoning behind each answer, so that you learn to think the way the subject is thought.
  2. Audio edition. Focused, well-presented recordings with explainers and examples of the material, made to be interesting, relevant and entertaining, so that the general subject can be learned away from the desk.
  3. Notes. Pre-produced notes with every fact the course relies on, written out in full, so that nothing has to be transcribed from the films or the audio.
  4. Cheat sheet. One sheet with every important learning concept of the course on it, to keep beside you during the work and to revise from before the exam.
  5. Named sources. Every fact in the notes names its source, the paper, the book or the dataset, for anyone who wants to dig in further.
  6. Explainer films. Focused films, in the style of the sample films on the catalog page, that walk through the most difficult concepts of the course with visual explanations of a high standard.
  7. Transcript. A full transcript of every film and every audio recording, searchable and quotable.
  8. Proctored exam. Taken as part of a Certificate, Diploma or Fellowship, the course ends in a proctored multiple-choice questionnaire, with a pass mark of 60% and three retakes included. A course taken on its own is assessed by its coursework and has no exam.
  9. Verifiable certificate. A certificate of completion that a third party can verify: an employer sends the code on it to the credentials office and receives written confirmation of the course, the date and the result.
  10. Credential of the program. The Certificate, Diploma or Fellowship of the program, track or path the course belongs to, awarded when every course in it is passed. Which one depends on the program you choose.

Assessment

Not assessed. Study notes, a cheat sheet and a workbook come with every lesson. Open courses are free, have no exam and award no certificate. Read how certification works.

Before you start

Some familiarity with averages and standard deviations. Two lessons talk about Python tools; no programming is needed to follow them.

Questions applicants ask

What is Monte Carlo simulation used for in finance?

Pricing derivatives that have no closed-form formula, estimating portfolio risk, and stress-testing strategies against many possible futures.

Why is it called Monte Carlo?

The name was given at Los Alamos in the 1940s by the group around Stanislaw Ulam, John von Neumann and Nicholas Metropolis, after the casino in Monaco, because the method relies on chance.

Free 6 hours of material