The Itô stochastic integral
Construct integration against Brownian motion from discrete martingale transforms and adapted simple integrands, prove Itô's isometry, extend by density to L², and compare Itô and Stratonovich conventions.
After this lesson you can
- Explain why a tag-independent Riemann-Stieltjes integral does not generally exist pathwise against Brownian motion.
- Construct the Itô integral for simple integrands and prove the isometry.
- Calculate ∫ B dB from the definition and numerically check that it equals (B_t² − t)/2.
- Compare Itô, Stratonovich and right-endpoint sums numerically and relate their differences to quadratic variation.
- Identify drift, diffusion and quadratic variation of an Itô process.
Before you start
Gains before knowing the next move
A strategy holding units of an asset priced earns approximately over a short interval. The position must be chosen with information available at the beginning of the interval. When refining the grid, the point at which we evaluate is not innocuous: Brownian motion has positive quadratic variation.
In the first experiment use the same path and compare left, middle and right evaluations. The intermediate control value is interpolated between each interval’s endpoints: it does not claim to reveal the actual Brownian value at that time.
Infinite total variation prevents straightforward application of general Riemann-Stieltjes theory with a bounded-variation integrator. It does not mean every classical integral against a Brownian path fails: for example, with constant integrand one, sums telescope to . However, for left- and right-tagged sums have different limits, precluding a tag-independent classical integral.
From predictable sums to an integral
A simple integrand adapted to a partition has the form
where each is square integrable. Its Itô integral is defined as . It is the continuous version of the martingale transform: may depend on the past, but not on the future increment. A random constant used from time zero does not satisfy this condition in the natural filtration, even if integrable.
The Itô isometry states
For a simple integrand, expanding the square makes cross terms vanish. If , product is -measurable and . Diagonal terms equal . Thus the equality holds for the sum and, by linearity, for differences of sums.
If is progressively measurable and , approximate it by adapted simple integrands in norm . The isometry turns a Cauchy sequence of integrands into one of integrals in ; completeness provides the limit and makes it independent of the approximation. This construction identifies processes equal almost everywhere with respect to . See assumptions and the density proof in Salez’s notes.
Martingale, energy and localization
For progressive with finite expected energy, the process of partial integrals is a continuous square-integrable Itô martingale. Its quadratic variation is
Doob’s maximal inequality gives . Do not confuse this quadratic variation, which is random if is, with the variance of the final integral, which is its expectation.
A local martingale is a process that becomes a martingale when stopped at a sequence of times tending to infinity almost surely. If is progressive and almost surely for each , the integral can be constructed by localization and is a local martingale. Lack of finite expected energy removes a sufficient condition for a true martingale, but alone does not prove it fails.
There is a concrete counterexample: if is the norm of a three-dimensional Brownian motion started one unit from the origin, is a strict local martingale. Itô’s formula, studied later, gives and , with Brownian: the process is one plus a driftless local integral. Its expectation is for , so it is not a martingale. Stopping before approaches zero too closely recovers bounded martingales; that stopping cannot be removed without justifying uniform integrability. The property and expectation are described in the analysis of the inverse Bessel process.
The term missing from ordinary calculus
For a partition, . Summing and using the quadratic variation of ,
On a uniform grid of intervals, the difference between the left sum and its limit is . Its mean squared error is : this equality applies to this simulation and integrand, not a universal rate for arbitrary integrands. The right sum differs from the left by exactly .
Stratonovich and Itô processes
The Stratonovich integral is obtained, under appropriate assumptions, as a limit in probability of symmetric sums. If and are continuous semimartingales,
For example, for , and . For with and suitable local conditions, . This formula does not define conversion for an arbitrary integrand without appropriate covariation. In physics Stratonovich often appears when studying smooth approximations; in finance Itô is common for predictable positions. The choice depends on the model and how it is obtained, not just the field’s name.
An Itô process has the form
under the corresponding measurability and integrability conditions. is drift and diffusion; in multiple dimensions the covariation matrix also depends on correlations between noise sources. Itô’s formula for functions of is the next step.
Gains of a self-financing portfolio connect with dynamic derivatives hedging, once assets, funding and costs are modeled. Equations of diffusion models also require the stochastic convention to be stated when interpreting their drift.
Lab: sums on the same paths
We generate fine increments and obtain coarser grids by summing them. Thus error at different resolutions is measured on the same paths and is not confused with changing the sample.
import numpy as np
from scipy.stats import norm
rng=np.random.default_rng(2624)
T=1.; nmax=1024; replicas=3000
dW=rng.normal(0,np.sqrt(T/nmax),size=(replicas,nmax))
B=np.column_stack((np.zeros(replicas),np.cumsum(dW,axis=1)))
limite=(B[:,-1]**2-T)/2
escalas=[]; errores=[]
for n in (8,16,32,64,128,256,512,1024):
paso=nmax//n
nodos=B[:,::paso]; delta=np.diff(nodos,axis=1)
izquierda=np.sum(nodos[:,:-1]*delta,axis=1)
derecha=np.sum(nodos[:,1:]*delta,axis=1)
simetrica=(izquierda+derecha)/2
mse=np.mean((izquierda-limite)**2)
escalas.append(n); errores.append(mse)
if paso>=2:
medios=B[:,paso//2::paso]
centro=np.sum(medios*delta,axis=1)
error_centro=np.mean((centro-B[:,-1]**2/2)**2)
else:
error_centro=None
print("n, ECM izquierdo y teórico, error simétrico máximo, ECM de centro real y teórico:",
n,mse,T*T/(2*n),np.max(abs(simetrica-B[:,-1]**2/2)),
error_centro,T*T/(4*n) if paso>=2 else None)
pendiente=np.polyfit(np.log(escalas),np.log(errores),1)[0]
print("pendiente observada de log ECM frente a log n:",pendiente)This cell’s symmetric point averages integrand values at both endpoints. For it gives the exact trapezoidal identity on any grid; the left sum converges to a different quantity. We also calculate a sum using the actual Brownian value at the temporal midpoint, obtained from the fine grid. If and are the increments of the two halves, its difference from the trapezoidal sum is and has MSE . At the finest resolution no intermediate points are available. The estimated left-sum MSE slope varies by sample; the theoretical formula gives slope −1 against , or −1/2 for root MSE.
Now we estimate the isometry for several adapted integrands. Both quantities use the same left grid. The sample mean may not be exactly zero and the comparison has Monte Carlo uncertainty; produces more variable tails.
pasos=256; nodos=B[:,::nmax//pasos]
delta=np.diff(nodos,axis=1); anteriores=nodos[:,:-1]
t=np.arange(pasos)*T/pasos
integrandos={"B":anteriores, "tiempo":np.broadcast_to(t,anteriores.shape),
"signo":np.sign(anteriores), "exponencial":np.exp(anteriores)}
for nombre,H in integrandos.items():
integral=np.sum(H*delta,axis=1)
energia=np.sum(H*H,axis=1)*T/pasos
diferencia=integral**2-energia
print(nombre,"media, error estándar de la media, segundo momento, energía:",
integral.mean(),integral.std(ddof=1)/np.sqrt(replicas),
np.mean(integral**2),energia.mean())
print("diferencia emparejada y su error estándar:",
diferencia.mean(),diferencia.std(ddof=1)/np.sqrt(replicas))
H=anteriores
parciales=np.cumsum(H*delta,axis=1)
inicio=parciales[:,pasos//2-1]
posterior=parciales[:,-1]-inicio
grupo=posterior[inicio>0]
print("incremento posterior medio dado integral intermedia positiva, error estándar:",
grupo.mean(),grupo.std(ddof=1)/np.sqrt(len(grupo)))For , we compare the difference between symmetric and left sums with approximate covariation . Both use the same nodes: convergence does not mean the finite sums are identical.
for n in (16,64,256,1024):
nodos=B[:,::nmax//n]; delta=np.diff(nodos,axis=1)
H=np.exp(nodos)
ito=np.sum(H[:,:-1]*delta,axis=1)
sim=np.sum((H[:,:-1]+H[:,1:])*delta/2,axis=1)
correccion=np.sum(H[:,:-1],axis=1)*T/(2*n)
print("n y error cuadrático medio de conversión:",
n,np.mean((sim-ito-correccion)**2))The inverse Bessel example can be checked at one time without simulating an entire path: is the norm of a shifted three-dimensional Gaussian vector. The following average is an estimate and may fluctuate, especially due to values near the origin.
z=rng.normal(size=(100000,3))
z[:,0]+=1.
inverso=1/np.linalg.norm(z,axis=1)
print("esperanza muestral, error estándar y referencia en t=1:",
inverso.mean(),inverso.std(ddof=1)/np.sqrt(len(inverso)),2*norm.cdf(1)-1)Exercises
Step 1 of 3. For i<j, why does E[HᵢΔBᵢHⱼΔBⱼ] vanish?
Step 1 of 2. Which exact identity holds on each interval?
import numpy as np
def ito_sum(H,B,dt):
pass
def stratonovich_sum(H,B,dt):
passIn these sums the time step identifies the grid and allows its positivity to be checked; increments of are already included in the input. In the limit, endpoint averaging approximates Stratonovich under the assumptions stated above.
The Itô integral preserves predictable information and is constructed in through its isometry. Quadratic variation explains why left and symmetric conventions produce different results.
Check the numerical exercises after attempting them.
print("varianza con H=s hasta 2:",2**3/3)
print("segundo momento con H=B hasta 1:",1/2)