Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceProbability & MeasureStochastic ModelsMarket MicrostructureGuide
Stochastic Models
Random Walk
Random Walk labSymmetric Random WalkRescaled Random WalkStandard deviationCentral Limit Theorem
Brownian Motion
Brownian labDefining the Wiener processIncrement explorerJoint distributions and covarianceBrownian transformations and invarianceQuadratic variationBrownian bridgeRunning maximum and minimumReflection principleFirst passage timesHitting probabilities
Geometric Brownian Motion
LabDefinition: ABM vs GBMEuler–MaruyamaMean reversionJumpsCorrelated motions
Itô Process
LabItô integralItô's lemmaMartingalesGirsanov
Monte Carlo
LabVariance reductionFeynman–Kac
Connected Guides
  • Itô's lemma
  • Random walks and Brownian motion
  • The Itô integral
  • Mean reversion: Ornstein–Uhlenbeck and Vasicek

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Martingales and betting strategies

Every strategy that bets on a fair coin from the past only leaves the mean wealth flat. The histogram shows where the losses hide.

Game

100
10200
Random seed: 7
Mean final wealth
99.91 ± 1.49
Ahead of the start
66.4%
Ruined
24.7%
Lowest wealth
0

Optional stopping: a bounded strategy cannot beat a fair game. Stopping at +1 wins most of the time and pays for it with a long left tail.

Final wealth
Mean wealth of 2000 players after each round
Mean