n = 0 / 400
drag to pan · scroll to zoom

Martingales & the Optional Stopping Theorem — 2D Chart

This simulator races a bundle of independent fair-coin random walks on a 2D step-vs-value chart, each one stopped the instant it first crosses a barrier ±B, and tracks the live sample mean against the theoretical value the optional stopping theorem predicts. It is a direct, hands-on view of a martingale property that underpins fair-game analysis, Wald's identity, and risk-neutral option pricing: no matter how the individual paths wander before they are stopped, their average outcome cannot drift away from the starting value as long as the underlying process stays fair. Drag to pan and scroll to zoom into any stretch of the run.