Skip to lecture

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

Option Pricing and Simulation in Python

Connect Black–Scholes pricing, risk-neutral valuation, martingales, hedging and the Feynman–Kac theorem with Python simulation.

Jump to a chapter8 topics · play a chapter or read its individual guide
  1. Read topic →
  2. Read topic →
  3. Read topic →
  4. Read topic →
  5. Read topic →
  6. Read topic →
  7. Read topic →
  8. 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

A simulated stock path is not yet an option price. The valuation must be consistent with no-arbitrage arguments, a suitable probability measure and the payoff at maturity. Understanding how these ideas fit together is essential for interpreting numerical results.

Inside this lecture

Starting from Black–Scholes stock dynamics, the lecture develops simulated paths and numerical experiments in Python. Replication, delta hedging and martingales motivate risk-neutral valuation. It then connects the Feynman–Kac representation, the Black–Scholes pricing PDE and the familiar closed-form European-option formula.

A practical perspective

An analyst may estimate a stock’s expected return from historical prices. Using that forecast drift directly in a risk-neutral option simulation is a different operation from no-arbitrage pricing. The lecture explains why the stock drift changes with the measure used for valuation.

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 3 slides and code on GitHub ↗ · Watch Lecture 3 on YouTube ↗

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