Why this mistake matters
CIR and Heston variance processes are designed to remain nonnegative, but a straightforward Euler simulation can still produce a negative variance. Clipping that value to zero avoids a software failure; it does not automatically preserve the behavior of the original stochastic model.
The mistake explained
Truncation, reflection and related fixes change the discrete-time transition behaviour. They may introduce unexpected probability mass near zero and bias integrated variance, option prices and Greeks. Maintaining nonnegative simulated values is therefore only one requirement for a trustworthy numerical implementation.
A practical example
Take an Euler step for a square-root variance process near zero. An adverse random shock can make the numerical variance negative even though the continuous-time CIR process cannot. Replacing the result with zero changes how the simulation evolves on subsequent steps. Different positivity schemes may consequently produce different prices.
The appropriate positivity scheme should be chosen by measured pricing and moment errors, not only by the absence of negative numbers in a simulation log.
What you will learn
- Understand why a positive process can yield negative Euler steps.
- Recognize the bias introduced by variance clipping.
- Test variance discretization schemes for stability and convergence.
Watch the video above for the full explanation, practical examples and mathematical details.
Slides and further resources
Lecture slides and code on GitHub ↗ · Complete lecture slides (PDF) ↗
Explore all 30 episodes or discover more quantitative finance videos on Computations in Finance ↗.