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.

Itô's lemma along a path

Pick f and refine the grid. The stochastic integral alone (the naive chain rule) misses the ½f″ dt term; adding it closes the gap to f(W_T) − f(0).

Path

1.00
0.255
Random seed: 7

The second term is a drift that ordinary calculus would drop. For f = x² it is exactly T.

Both sides of Itô's lemma

On one Brownian path: the left side is f(W_t) − f(0); the right side is the Itô sum Σ f′(W)ΔW (evaluated at the left point) plus the correction ½Σ f″(W)Δt. Increase n: the corrected sum sticks to the left side, the uncorrected one does not.

f(W_t) − f(0)Σ f′(W)ΔW + ½Σ f″(W)ΔtΣ f′(W)ΔW (no correction)

Drag the time cursor (or focus it and use the arrow keys) to read the values at t.

f(W_t) − f(0), at t = 0.500
0.6120
Σ f′(W)ΔW + ½Σ f″(W)Δt, at t = 0.500
0.5438
Σ f′(W)ΔW (no correction), at t = 0.500
0.0438
f(W_t) − f(0) (T)
0.0558
Σ f′(W)ΔW + ½Σ f″(W)Δt
-0.1325
Error with correction
-0.1883
Σ f′(W)ΔW (no correction)
-1.1325
Error without correction
-1.1883
Mean |error| at T over 200 paths
Error with correctionError without correction

The corrected error falls as n grows; the uncorrected one levels off at the size of the correction.

What the path is made of
∫f′(W) dW½∫f″(W) dtSum
Missing from the naive chain rule at T
1.0000
∫f′(W) dW
-1.1325
Sum
-0.1325