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.

Girsanov: changing the drift by reweighting

Paths with drift θ are reweighted by the density dQ/dP = exp(−θX_T + ½θ²T). The weighted law is driftless Brownian motion, at the price of fewer effective samples.

Measure change

0.80
03
1.00
0.255
Random seed: 7
Mean weight
1.032
Effective sample size
2074 / 4000
ESS / N
51.8%
Weighted mean of X_T
-0.048

The weights average to one. As θ grows a few paths carry nearly all the weight, which is why importance sampling with a large shift is noisy.

Brownian paths with drift θ
Under P: drift θ
Reweighted: driftless