Skip to lecture

Computations in Finance · Free video course · Lecture 10 of 14

Monte Carlo Simulation of the Heston Model

Simulate the CIR variance process and Heston stochastic-volatility model using Euler, exact and almost-exact methods.

Jump to a chapter5 topics · play a chapter or read its individual guide
  1. Read topic →
  2. Read topic →
  3. Read topic →
  4. Read topic →
  5. Read topic →

Select a chapter to start the lecture at that point, or open its topic guide.

Part of the 14-lecture Computational Finance course. Open the YouTube playlist ↗

Why this topic matters

In stochastic-volatility models, the variance process is designed to remain non-negative. A careless numerical scheme can nevertheless produce negative simulated variance, changing the behaviour of the model and distorting option prices.

Inside this lecture

The lecture examines the Cox–Ingersoll–Ross variance process, the shortcomings of simple Euler discretization and the consequences of truncation and reflection schemes. It introduces exact CIR transition simulation and almost-exact Heston methods, then tests simulation-based option values against more direct pricing benchmarks in Python.

A practical perspective

Suppose an Euler simulation produces a negative variance at one time step. Replacing the value by zero prevents a software error, but also modifies the simulated dynamics. The choice of scheme can therefore influence prices and calculated risk measures.

What you will learn

Watch the complete lecture on YouTube for the mathematical details, explanations and numerical examples. Slides and Python materials are linked below.

Slides, Python code and related lectures

Lecture 10 slides and code on GitHub ↗ · Watch Lecture 10 on YouTube ↗

Explore the full course syllabus or browse book exercises and code ↗.