What the Numerical Test Checks
Geometric Brownian motion gives a direct computational test of Ito's formula: its solution is explicit, while its differential contains the correction that distinguishes stochastic calculus from ordinary calculus. On one simulated Brownian path, we can compute the exact process values at grid points and compare their changes with left-point sums for the drift and diffusion terms. As the grid is refined, the residual in that differential identity should shrink.
Work on a filtered probability space \((\Omega,\mathcal{F},(\mathcal{F}_t)_{t\ge0},\mathbb{P})\) carrying a standard Brownian motion \(B_t\), adapted to the filtration. Fix \(S_0>0\), a drift coefficient \(\mu\in\mathbb{R}\), a diffusion coefficient \(\sigma\in\mathbb{R}\), and a finite horizon \(T>0\). The drift describes the \(dt\) term; the diffusion coefficient multiplies the Brownian \(dB_t\) term. The model is
For a stochastic integral \(\int_0^t H_s\,dB_s\), the integrand is understood to be adapted and progressively measurable, with \(\mathbb{E}\int_0^T H_s^2\,ds<\infty\) when a square-integrable Ito integral is used. In this model, the integrand is \(H_s=\sigma S_s\); the explicit solution below has finite second moments on every finite time interval, so it meets this condition. The Ito multiplication rules are \(dB_t\,dB_t=dt\), \(dB_t\,dt=0\), and \(dt\,dt=0\).
The Exponential Solution and Its Correction
Proof. Define \(f(t,x)=S_0\exp((\mu-\tfrac12\sigma^2)t+\sigma x)\) and set \(S_t=f(t,B_t)\). Its derivatives are \(f_t=(\mu-\tfrac12\sigma^2)f\), \(f_x=\sigma f\), and \(f_{xx}=\sigma^2 f\). Ito's formula, including its second-derivative correction, gives
Also \(B_0=0\), so \(S_{t=0}=S_0\). This verifies the stated solution directly. The coefficient \(-\tfrac12\sigma^2\) in the exponent cancels the \(\tfrac12 f_{xx}\) contribution to leave drift \(\mu S_t\). Without it, the drift would instead be \((\mu+\tfrac12\sigma^2)S_t\). The coefficients are globally Lipschitz in \(S\) and have linear growth: \(|\mu x|+|\sigma x|\le(|\mu|+|\sigma|)(1+|x|)\). Thus the standard existence-and-uniqueness theorem for Lipschitz SDEs applies; the explicit verification also supplies a solution. \(\square\)
For comparison with numerical output, the solution has \(\mathbb{E}[S_t]=S_0e^{\mu t}\). Indeed, the normal moment-generating formula gives \(\mathbb{E}[e^{\sigma B_t}]=e^{\sigma^2t/2}\), and multiplication by the deterministic exponential in the solution gives this mean. This is an independent check on the drift correction; it does not mean that a single simulated path follows its expectation.
Worked Example: Verify the Exponential Formula
Take \(S_0=2\), \(\mu=\tfrac14\), and \(\sigma=\tfrac12\). The exponent coefficient is \(\mu-\tfrac12\sigma^2=\tfrac14-\tfrac12\cdot\tfrac14=\tfrac18\), so the candidate is \(S_t=2e^{t/8+B_t/2}\). The derivatives of \(f(t,x)=2e^{t/8+x/2}\) are \(f_t=\tfrac18 f\), \(f_x=\tfrac12 f\), and \(f_{xx}=\tfrac14 f\). Therefore Ito's formula gives drift \((\tfrac18+\tfrac12\cdot\tfrac14)S_t=\tfrac14S_t\), and diffusion \(\tfrac12S_t\), as required.
Check: the independent mean calculation gives \(\mathbb{E}[S_t]=2e^{t/4}\). Directly, \(\mathbb{E}[2e^{t/8+B_t/2}]=2e^{t/8}e^{(1/2)^2t/2}=2e^{t/8+t/8}=2e^{t/4}\).
Grid Simulation and the Residual
Take a uniform grid \(t_i=ih\), \(i=0,\ldots,n\), with \(h=T/n\). To simulate Brownian motion on this grid, draw independent standard normal variables \(Z_i\) and set \(\Delta B_i=\sqrt{h}Z_i\), \(B_{t_i}=\sum_{j=1}^{i}\Delta B_j\). For a fixed set of simulated increments, calculate exact process values from
Then form the left-point approximation to the integrated Ito differential. Its drift sum is \(\sum_{i=0}^{n-1}\mu S_{t_i}h\), and its diffusion sum is \(\sum_{i=0}^{n-1}\sigma S_{t_i}\Delta B_i\). Define the terminal residual by subtracting both sums from the exact change:
This is a test of the integral equation, not a claim that each finite-grid increment equals its first-order approximation. The exponential solution supplies exact grid values, while the sums approximate the drift and Ito integrals. An Euler update, \(S_{t_{i+1}}\approx S_{t_i}+\mu S_{t_i}h+\sigma S_{t_i}\Delta B_i\), is a different operation: it constructs an approximate process rather than evaluating the exact solution at the grid points.
Worked Example: One-Step Error on a Simulated Increment
Use the parameters \(S_0=2\), \(\mu=\tfrac14\), and \(\sigma=\tfrac12\) above, and take one step with \(h=\tfrac14\) and simulated increment \(\Delta B_0=\tfrac12\). This increment corresponds to \(Z_0=1\). The exact one-step exponent change is \((\tfrac18)(\tfrac14)+(\tfrac12)(\tfrac12)=\tfrac1{32}+\tfrac14=\tfrac9{32}\), hence \(S_{t_1}=2e^{9/32}\) and the exact change is \(2(e^{9/32}-1)\).
The left-point drift contribution is \(\mu S_0h=(\tfrac14)(2)(\tfrac14)=\tfrac18\). The left-point diffusion contribution is \(\sigma S_0\Delta B_0=(\tfrac12)(2)(\tfrac12)=\tfrac12\). Their sum is \(\tfrac58\), so the residual is \(2(e^{9/32}-1)-\tfrac58\), approximately \(0.02457\), using \(e^{9/32}\approx1.3248\).
Check: substituting the exact change back into the residual gives \(2e^{9/32}-2-\tfrac58=2e^{9/32}-\tfrac{21}{8}\), which is the same expression. A nonzero one-step residual is expected: the Ito identity concerns the limit of the sums, not equality at a fixed step size.
Why the Residual Shrinks
Proof. The integrated Ito equation gives \(S_T-S_0=\int_0^T\mu S_s\,ds+\int_0^T\sigma S_s\,dB_s\). Consequently \(R_n\) is the sum of the error in approximating the ordinary integral by its left-point sum and the error in approximating the Ito integral by its left-point sum. Write \(\eta(s)=t_i\) when \(t_i\le s<t_{i+1}\). The drift error is \(\mu\int_0^T(S_s-S_{\eta(s)})\,ds\); by Cauchy–Schwarz its squared expectation is at most \(\mu^2T\int_0^T\mathbb{E}|S_s-S_{\eta(s)}|^2\,ds\). The Ito isometry gives the diffusion error's squared expectation as \(\sigma^2\int_0^T\mathbb{E}|S_s-S_{\eta(s)}|^2\,ds\).
To bound the common integral, let \(u=\eta(s)\) and \(\delta=s-u\), so \(0\le\delta\le h\). The explicit solution yields \(S_s=S_uY\), where \(Y=\exp((\mu-\tfrac12\sigma^2)\delta+\sigma(B_s-B_u))\). The increment \(B_s-B_u\) is independent of \(\mathcal{F}_u\), and normal moment calculations give \(\mathbb{E}[Y]=e^{\mu\delta}\) and \(\mathbb{E}[Y^2]=e^{(2\mu+\sigma^2)\delta}\). Also \(\mathbb{E}[S_u^2]=S_0^2e^{(2\mu+\sigma^2)u}\). Therefore
The right side is a continuous function of \((u,\delta)\) on the compact set \(0\le u\le T,\ 0\le\delta\le h\), and its bracket is zero at \(\delta=0\). More quantitatively, the mean value theorem applied to the exponentials bounds the absolute value of the bracket by \(C\delta\) for \(0\le\delta\le T\), for a finite constant \(C\) depending only on \(\mu,\sigma,T\). The prefactor is bounded for \(u\in[0,T]\). Hence \(\mathbb{E}|S_s-S_{\eta(s)}|^2\le C_1h\) for a finite constant \(C_1\), and its integral over \([0,T]\) tends to zero. Both errors thus tend to zero in \(L^2\); the squared norm of their sum is bounded by twice the sum of their squared norms. This proves \(R_n\to0\) in \(L^2(\mathbb{P})\). \(\square\)
The stochastic sums here are Ito integrals of left-step adapted integrands. The integrand \(\sigma S_{\eta(s)}\) is progressively measurable and square-integrable on the finite horizon. The Ito isometry controls its approximation error; in particular, the Ito integral is square-integrable. For such an integrand its integral is a martingale: it is integrable by the isometry, and its conditional expectation increment over \([u,t]\) given \(\mathcal{F}_u\) is zero, first for adapted step integrands by independent Brownian increments and then for square-integrable integrands by the Ito-isometry limit. The residual convergence is a statement in mean square, not a guarantee that every finite simulated path has a small residual.
Worked Example: A Four-Step Residual
Set \(S_0=1\), \(\mu=0\), \(\sigma=1\), \(T=1\), and \(h=\tfrac14\). Consider the simulated increments \((\tfrac12,-\tfrac12,\tfrac12,-\tfrac12)\), each corresponding to a standard normal draw of \(1\) or \(-1\). The grid Brownian values are \(0,\tfrac12,0,\tfrac12,0\). Since the exponent increment is \(\Delta B_i-\tfrac12h=\Delta B_i-\tfrac18\), the exact process values are \(1,e^{3/8},e^{-1/4},e^{1/8},e^{-1/2}\).
The drift sum is zero. The diffusion sum is \(\tfrac12(1)-\tfrac12e^{3/8}+\tfrac12e^{-1/4}-\tfrac12e^{1/8}\), approximately \(-0.4047\). The exact terminal change is \(e^{-1/2}-1\), approximately \(-0.3935\). Thus \(R_4=e^{-1/2}-1-\tfrac12(1-e^{3/8}+e^{-1/4}-e^{1/8})\), approximately \(0.01120\).
Check: calculating the four stepwise errors \(\Delta S_i-S_{t_i}\Delta B_i\) and adding them gives the same residual, because the exact changes telescope to \(S_T-S_0\). The errors are approximately \(-0.04501,\ 0.05131,\ -0.03505,\ 0.03996\); their sum is approximately \(0.01120\), agreeing with the terminal calculation.
Interpreting the Test and Avoiding a Common Error
For a computational study, keep the simulated Brownian path fixed while refining the grid when possible, and compute the exact solution at each grid point from the cumulative Brownian values. Record \(|R_n|\) or \(R_n^2\) for each refinement. Across independently simulated paths, the residual is random, so a single sequence need not decrease monotonically. The proposition predicts convergence in mean square as the step shrinks, not a strict decrease at every refinement for every outcome.
A common mistake is to use \(S_0e^{\mu t+\sigma B_t}\) as the exact solution. Applying Ito's formula to \(g(t,x)=S_0e^{\mu t+\sigma x}\) gives \(g_t=\mu g\), \(g_x=\sigma g\), and \(g_{xx}=\sigma^2g\), so its drift is \((\mu+\tfrac12\sigma^2)g\), not \(\mu g\). For example, with \(\mu=0\) and \(\sigma=1\), the uncorrected exponential has drift \(\tfrac12g\,dt\); the correct solution is \(S_0e^{B_t-t/2}\). The correction is a consequence of \(dB_t\,dB_t=dt\), whereas the ordinary chain rule has no such term. A Stratonovich integral uses the ordinary chain rule, but converting a Stratonovich equation to Ito form requires a correction; it is not interchangeable with the Ito differential tested here.
Finally, distinguish two useful numerical objects. The exact grid transition evaluates the known exponential solution using the simulated Brownian increment. The Euler update uses only the first-order drift and diffusion increments and generally differs from that exact value at finite \(h\). Comparing the Euler update directly to the exact transition measures a discretization error; the residual defined above tests whether the integrated Ito differential is recovered by left-point sums. Keeping these checks separate makes the role of the Ito correction visible rather than hiding it inside a numerical update.
Check Your Understanding
Use the exponential solution and the residual definition to justify each answer.
- For \(S_0=1\), \(\mu=\tfrac12\), and \(\sigma=2\), what is the coefficient of \(t\) in the exponential solution, and what is the drift after applying Ito's formula?
- Why does a nonzero residual on one time step not contradict the integrated Ito equation?
- For a fixed grid, write the exact Brownian grid values in terms of the simulated standard normal variables.
- Which integrability condition permits the Ito isometry to be used for the diffusion sum?
- Explain why the uncorrected candidate \(S_0e^{\mu t+\sigma B_t}\) has drift \((\mu+\tfrac12\sigma^2)S_t\) rather than \(\mu S_t\).