Skip to question

Computational Finance Q&A · Volume 1 · Question 07 of 30

What Sanity Checks Can You Perform for a Simulated Stock Process?

Learn practical tests for simulated stock prices: martingales, simple payoffs, random seeds, time steps and market calibration.

Part of Computational Finance Q&A — Volume 1, a companion to the 14-lecture Computational Finance course. Lecture 3: Option Pricing and Simulation in Python.

Why this question matters

Simulation code may produce convincing stock paths while still violating the financial model it is supposed to represent. Before using those paths to value derivatives, a quant needs basic consistency tests.

The idea explained

The episode reviews checks described in the slides: whether the discounted asset behaves as a martingale under a risk-neutral simulation, whether easy benchmark payoffs are reproduced, and whether changing path counts, random seeds or time-step sizes changes the result materially.

A practical perspective

A zero-strike European call gives a particularly simple benchmark. If a simulation does not reproduce such a tractable case, a complicated exotic option price from the same code should not be trusted without investigation.

What you will learn

Watch the video for the complete discussion and consult the original slides for the technical details.

Slides and related lessons

Q&A slides on GitHub ↗ Relevant slides: pp. 20 of the 84-page Q&A deck

Related Computational Finance course material: Lecture 3: Option Pricing and Simulation in Python.

Browse all 30 questions, explore the full Computational Finance materials ↗, or find more on Computations in Finance ↗.