All notes / Probability and stochastic processes

From Martingales to Diffusion Generators

Itô calculus, scale functions, and exit problems

Will Gao · December 2025

Contents
  1. 1 Sigma-fields and information
  2. 2 Conditional expectation
  3. 2.1 From the discrete formula to a sigma-field viewpoint
  4. 2.2 Recovery of the discrete formula
  5. 2.3 Tower properties
  6. 2.4 Linearity and conditional variance
  7. 3 Stochastic processes, filtrations, and martingales
  8. 3.1 Examples
  9. 4 Stopping times and optional stopping
  10. 5 Markov chains
  11. 5.1 Markov property and transition probabilities
  12. 5.2 Harmonic and space–time harmonic functions
  13. 5.3 Biased random walk and gambler’s ruin
  14. 5.4 Expected exit time for symmetric random walk
  15. 6 Submartingales and maximal inequalities
  16. 6.1 Conditional Jensen inequality
  17. 7 Martingale convergence
  18. 8 The invariance principle and Brownian motion
  19. 9 Further properties of Brownian motion
  20. 9.1 Quadratic variation
  21. 9.2 Transformations of Brownian motion
  22. 9.3 Reflection principle and hitting times
  23. 9.4 Brownian motion with drift and volatility
  24. 10 The Itô integral
  25. 11 Itô’s formula
  26. 11.1 Why the second-order term survives
  27. 11.2 Multidimensional Itô formula
  28. 12 Continuous martingales and quadratic variation
  29. 12.1 Doob–Meyer and predictable quadratic variation
  30. 12.2 Brownian martingale representation
  31. 12.3 Quadratic covariation
  32. 12.4 Kunita–Watanabe decomposition
  33. 13 Stochastic integration with respect to a martingale
  34. 14 Finite variation and continuous semimartingales
  35. 15 Bessel dynamics and Lévy’s characterization
  36. 16 Diffusion processes and generators
  37. 16.1 Diffusions and stochastic differential equations
  38. 16.2 Generator
  39. 16.3 Converse: recovering an SDE
  40. 16.4 Exponential characterization
  41. 16.5 Basic examples
  42. 17 Ornstein–Uhlenbeck process
  43. 17.1 OU as a time-changed Brownian motion
  44. 18 Transformations of one-dimensional diffusions
  45. 19 Geometric Brownian motion
  46. 20 Exit problems and Dynkin’s formula
  47. 21 Scale functions and time change
  48. 21.1 Removing drift with the scale function
  49. 21.2 Dambis–Dubins–Schwarz theorem
  50. 21.3 Speed measure, Green kernel, and exit formulas
  51. 21.4 Probabilistic verification of the ODE solutions
  52. 22 Transition semigroups and Kolmogorov equations
  53. 22.1 Backward Kolmogorov equation
  54. 22.2 Forward Kolmogorov equation

These notes are largely adapted from Prof. Krzysztof Burdzy’s MATH 491 course at the University of Washington, Seattle (Autumn 2025), with some additional material and reorganization. They are not intended as a measure-theoretic treatment; sigma-fields and related language are used selectively when they clarify the stochastic-process viewpoint. Some later results are stated without proof, with standard regularity or integrability assumptions left implicit. I have done my best to ensure correctness, but errors may remain.

1Sigma-fields and information

Definition 1.1 (Sigma-field). Let Ω be a set. A collection F2Ω is a sigma-field (or σ-algebra) on Ω if

  1. ΩF;
  2. if AF, then Ac=ΩAF;
  3. if A1,A2,F, then k=1AkF.

A probability measure P on (Ω,F) is defined only on events AF and satisfies 0P(A)1,P(Ω)=1,P()=0. If A1,A2, are pairwise disjoint events in F, then countable additivity gives P(i=1Ai)=i=1P(Ai).

Example 1.2 (A fair die). Let Ω={1,2,3,4,5,6} and define X=1{2,4,6}={1,if the roll is even,0,if the roll is odd. Then σ(X)={, Ω, {2,4,6}, {1,3,5}}. The level sets of a discrete random variable form a partition of Ω, and σ(X) consists of all unions of cells of that partition.

For two discrete random variables, σ(X,Y) is generated by the common refinement of the partitions induced by X and Y. More generally, for arbitrary random variables, σ(X,Y) contains at least as much information as σ(X): σ(X)σ(X,Y).

2Conditional expectation

2.1From the discrete formula to a sigma-field viewpoint

For discrete random variables X and Y, the familiar formula is g(y):=E[XY=y]=xxP(X=xY=y), whenever P(Y=y)>0. The law of total expectation becomes E[X]=E[E[XY]]=yE[XY=y]P(Y=y).

The course mainly uses conditional expectation through its familiar discrete properties. The following general definition is included because it makes the role of filtrations especially transparent; its existence theorem belongs to the measure-theoretic background and is not developed here.

Definition 2.1 (Conditional expectation). Let (Ω,F,P) be a probability space, let X be integrable (E|X|<), and let GF be a sub-sigma-field. A random variable Z is a version of the conditional expectation of X given G, written Z=E[XG], if

  1. Z is G-measurable; and
  2. for every AG, AZdP=AXdP.

Such a Z exists and is unique up to almost-sure equality. Moreover, it is integrable and E|Z|E|X|.

If XL2, then E[XG] is the orthogonal projection of X onto the closed subspace L2(Ω,G,P) of G-measurable square-integrable random variables.

2.2Recovery of the discrete formula

Assume X and Y are discrete and E|X|<. For each y with P(Y=y)>0, define g(y)=xxP(X=xY=y)=1P(Y=y)xxP(X=x,Y=y), and define g(y) arbitrarily when P(Y=y)=0. Set Z=g(Y). Then Z is σ(Y)-measurable. Every event in σ(Y) is a union of level sets {Y=y}, so it suffices to verify the defining integral identity on each such level set. Indeed, {Y=y}ZdP=g(y)P(Y=y)=xxP(X=x,Y=y)={Y=y}XdP. Hence g(Y) is a version of E[Xσ(Y)], usually abbreviated as E[XY].

Taking A=Ω in the defining identity yields the general law of total expectation: E[E[XG]]=E[X].

2.3Tower properties

Proposition 2.2 (Tower and measurability properties). Let X be integrable and let GHF. Then E[E[XG]|H]=E[XG], E[E[XH]|G]=E[XG].

Proof. Because E[XG] is G-measurable and GH, it is also H-measurable; conditioning an integrable H-measurable variable on H leaves it unchanged. This proves the first identity.

For the second identity, E[E[XH]G] is G-measurable. For every AG we also have AH, and therefore AE[E[XH]G]dP=AE[XH]dP=AXdP. By uniqueness, the left-hand random variable equals E[XG] almost surely.

This is often summarized as “the smaller sigma-field wins.”

Definition 2.3 (Independent sigma-fields). Two sub-sigma-fields G and H are independent if P(AB)=P(A)P(B)for every AG and BH.

For example, σ(X1,X2,) and σ(Y1,Y2,) are independent exactly when the random vectors (X1,X2,) and (Y1,Y2,) are independent.

2.4Linearity and conditional variance

For integrable random variables X,Y and constants a,b, E[aX+bYG]=aE[XG]+bE[YG]a.s. If XL2, the conditional variance of X given G is Var(XG):=E[(XE[XG])2|G]. Expanding the square and using the pull-out property for G-measurable factors gives Var(XG)=E[X2G](E[XG])2.

3Stochastic processes, filtrations, and martingales

Definition 3.1 (Stochastic process and filtration). Let (Ω,F,P) be a probability space and let T be an index set, usually a subset of [0,) or of N0. A stochastic process is a collection of random variables (Xt)tT on this space.

A filtration is a collection of sub-sigma-fields (Ft)tT such that st  FsFt. It represents information accumulating over time.

The natural filtration of a process (Xt) is FtX:=σ(Xs:st). In discrete time, this reads FkX=σ(X0,,Xk).

Definition 3.2 (Discrete-time martingale). Let (Fk)k0 be a filtration. A process (Xk)k0 is a martingale with respect to (Fk) if, for every k,

  1. Xk is Fk-measurable (the process is adapted);
  2. E|Xk|<;
  3. E[Xk+1Fk]=Xk almost surely.

If the filtration is not specified, it is often understood to be the natural filtration.

By total expectation, every martingale has constant mean: E[Xk+1]=E[E[Xk+1Fk]]=E[Xk]. The converse is false: constant mean is unconditional, whereas the martingale property must hold conditionally after every possible history.

Example 3.3 (Constant mean does not imply martingale). Let X0=0. At time 1, win or lose $10 with equal probability, so X1{10,10} and E[X1]=0. At time 2:

  • if X1=10, the next $10 bet is won with probability 1/4 and lost with probability 3/4;
  • if X1=10, the next $10 bet is won with probability 3/4 and lost with probability 1/4.

Here X2 denotes cumulative wealth. Consequently, E[X2X1=10]=10+(1/4)(10)+(3/4)(10)=5, and E[X2X1=10]=10+(3/4)(10)+(1/4)(10)=5. Thus E[X2]=0, but E[X2F1]X1; the process has constant mean but is not a martingale.

Proposition 3.4. If (Xk) is a martingale with respect to (Fk), then for all st, E[XtFs]=Xsa.s.

Proof. Repeated application of the tower property gives, for example, E[Xk+1Fk1]=E[E[Xk+1Fk]Fk1]=E[XkFk1]=Xk1, and continuing backward proves the claim.

3.1Examples

Example 3.5 (Mean-zero random walk). Let ξ1,ξ2, be independent and integrable, with E[ξk]=0, and put S0=0,Sk=i=1kξi. With Fk=σ(ξ1,,ξk) (equivalently, σ(S0,,Sk)), E[Sk+1Fk]=E[Sk+ξk+1Fk]=Sk+E[ξk+1Fk]=Sk+E[ξk+1]=Sk. Thus (Sk) is a martingale.

Example 3.6 (Product martingale). If ξ1,ξ2, are independent and integrable with E[ξi]=1, and the finite products are integrable, then M0=1,Mk=i=1kξi is a martingale with respect to σ(ξ1,,ξk), since E[Mk+1Fk]=MkE[ξk+1Fk]=Mk.

Example 3.7 (Doob’s martingale). Let (Fn)n0 be a filtration and let X be integrable. Define Mn:=E[XFn]. Then (Mn) is a martingale. Indeed,

  1. Jensen’s inequality gives E|Mn|E[E(|X|Fn)]=E|X|<;
  2. Mn is Fn-measurable by definition; and
  3. the tower property gives E[Mn+1Fn]=E[E[XFn+1]Fn]=E[XFn]=Mn.

Let F:=σ(n0Fn). Lévy’s upward theorem completes the heuristic that Mn is the best estimate of X based on the information available by time n: MnE[XF]almost surely and in L1. In particular, if X is F-measurable, then MnX almost surely and in L1.

4Stopping times and optional stopping

Definition 4.1 (Stopping time). Let (Ω,F,(Ft)t0,P) be a filtered probability space. A random variable T:Ω[0,] is a stopping time with respect to (Ft) if {Tt}Ftfor every t0.

In discrete time, T takes values in N0{}. Informally, by time t one can determine whether stopping has occurred, without using future information.

Example 4.2 (First-passage time). Let (Sn)n0 be a discrete-time stock-price process with its natural filtration, and fix a threshold a>0. Define T:=inf{n0:Sna},inf:=. Then {Tn}=k=0n{Ska}Fn, so T is a stopping time. The analogous continuous-time statement holds under standard path-measurability assumptions (for example, for an adapted process with continuous paths).

Theorem 4.3 (Optional stopping: a uniform-integrability form). Let (Mn,Fn)n0 be a martingale and let T be an almost surely finite stopping time. If the stopped family {MnT:n0} is uniformly integrable, then MT is integrable and E[MT]=E[M0].

Proof. For each n, the bounded-stopping-time result gives E[MnT]=E[M0]. Since T< almost surely, MnTMT almost surely. Uniform integrability upgrades this to L1 convergence, so expectations converge and the result follows.

Two common sufficient conditions are:

  1. T is bounded almost surely; or
  2. E[T]< and the increments are uniformly bounded, meaning there is a constant C< such that |MnMn1|C almost surely for every n1.

In case (ii), |MnT||M0|+CT, and the integrable right-hand side implies uniform integrability.

The theorem formalizes the idea that an admissible stopping strategy cannot create positive expected profit from a fair game. The hypotheses matter: unbounded stopping rules without suitable integrability can invalidate the conclusion and may expose a player to arbitrarily large intermediate losses.

Example 4.4 (Why the optional-stopping hypotheses matter). Let ξ1,ξ2, be independent and suppose P(ξk=1)=P(ξk=1)=12, and let S0=0 and Sn=k=1nξk. The process (Sn) is a martingale. Define the first hitting time of 1 by T:=inf{n0:Sn=1}. One-dimensional simple symmetric random walk is recurrent, so T< almost surely. Nevertheless, E[S0]=0,ST=1 a.s.,E[ST]=1. There is no contradiction: T is unbounded, E[T]=, and the stopped family (SnT)n0 is not uniformly integrable.

5Markov chains

5.1Markov property and transition probabilities

Let (Ω,F,P) be a probability space and let (E,E) be a measurable state space, such as Rd with its Borel sigma-field. A stochastic process (Xt)tT taking values in E consists of measurable maps Xt:(Ω,F)(E,E).

Definition 5.1 (Markov process). An adapted process (Xt) is Markov with respect to a filtration (Ft) if, for every s<t and AE, P(XtAFs)=P(XtAXs)a.s. Here the right-hand side denotes a version of the conditional probability measurable with respect to σ(Xs).

Usually (Ft) is the natural filtration. Informally, conditional on the present state, the future is independent of the past.

For a discrete-time process on a countable state space, the Markov property is equivalently P(Xn+1=jXn=i,Xn1=in1,,X0=i0)=P(Xn+1=jXn=i) whenever the conditioning event has positive probability.

If the one-step probability P(Xn+1=jXn=i) does not depend on n, the chain is time-homogeneous, and we write it as pij. Its m-step transition probability is pij(m):=P(Xn+m=jXn=i), which is independent of n for a time-homogeneous chain. The Chapman–Kolmogorov equations state that pij(n+m)=kEpik(n)pkj(m). In matrix notation, P(n+m)=P(n)P(m).

5.2Harmonic and space–time harmonic functions

Definition 5.2 (Harmonic function). For a time-homogeneous Markov chain with transition matrix P=(pxy) on a countable state space E, a function h:ER is harmonic on a set DE if h(x)=yEpxyh(y)=E[h(Xn+1)Xn=x]for every xD.

Subject to the required integrability, if h is harmonic on all of E, then (h(Xn)) is a martingale with respect to the natural filtration.

Definition 5.3 (Space–time harmonic function). A function h:E×N0R is space–time harmonic if h(x,n)=yEpxyh(y,n+1).

Then (h(Xn,n)) is a martingale, provided it is integrable. For a time-inhomogeneous chain, pxy is replaced by the time-dependent kernel pn(x,y).

In continuous time, if (Pt)t0 is the Markov semigroup, the analogous space–time relation is h(x,s)=Pth(,s+t)(x)=Eh(y,s+t)Pt(x,dy). For standard Brownian motion, a sufficiently smooth space–time harmonic function satisfies the backward heat equation hs+122hx2=0.

5.3Biased random walk and gambler’s ruin

Let ξ1,ξ2, be independent, let p(0,1), and suppose P(ξk=1)=p,P(ξk=1)=q:=1p, and define Sn=s0+k=1nξk. Suppose first that pq and put r=q/p. The function g(x)=rx is harmonic because qg(x1)+pg(x+1)=g(x). Consequently, (g(Sn)) is a martingale.

Fix integers a<s0<b and let T:=inf{n0:Sn{a,b}}. The walk exits the finite interval {a+1,,b1} almost surely; this is true in both the biased and symmetric cases. The stopped process g(SnT) is bounded, so optional stopping gives rs0=E[g(ST)]=P(ST=a)ra+P(ST=b)rb. Therefore, for p12, P(ST=a)=rs0rbrarb,P(ST=b)=rars0rarb. For p=q=12, take the limit r1 (or use that Sn itself is a martingale) to obtain P(ST=a)=bs0ba,P(ST=b)=s0aba.

5.4Expected exit time for symmetric random walk

Now let (Sn) be simple symmetric random walk with S0=0, and let a<0<b be integers. Although the expected time to hit a single nonzero level is infinite, the exit time T:=inf{n0:Sn{a,b}} has finite expectation. To calculate it, define Mn:=Sn2n. Since Mn+1Mn=(Sn+ξn+1)2(n+1)(Sn2n)=2Snξn+1, and E[ξn+1Fn]=0, the process (Mn) is a martingale.

For k1, the time Tk is bounded. Optional stopping gives 0=E[MTk]=E[STk2]E[Tk]. The stopped positions are bounded by max{|a|,|b|}, so dominated convergence applies to the first term; monotone convergence applies to the second. Hence E[T]=E[ST2]. Using the symmetric gambler’s-ruin probabilities, E[T]=a2bba+b2aba=ab=|ab|. In the special case a=b, this becomes E[T]=a2, an instance of the parabolic scaling principle “time is of the order of distance squared.”

6Submartingales and maximal inequalities

Definition 6.1 (Submartingale and supermartingale). An adapted, integrable process (Xn) is a submartingale with respect to (Fn) if E[Xn+1Fn]Xna.s. for every n. It is a supermartingale if the inequality is reversed. Thus (Xn) is a submartingale if and only if (Xn) is a supermartingale, and it is a martingale if and only if it is both.

For a submartingale, E[Xn+1]E[Xn]. For example, if Y1,Y2, are independent and integrable with E[Yi]=μ0, then Xn:=i=1nYi,Fn:=σ(Y1,,Yn) defines a submartingale because E[Xn+1Fn]=Xn+μXn.

The optional-sampling inequality says that if (Xn) is a submartingale and ST are bounded stopping times, then E[XS]E[XT]. The inequalities reverse for supermartingales. More general stopping times require additional conditions such as uniform integrability.

6.1Conditional Jensen inequality

If φ is convex and the relevant variables are integrable, conditional Jensen gives φ(E[XG])E[φ(X)G]. Consequently:

  1. if (Xn) is a martingale and φ is convex, then (φ(Xn)) is a submartingale whenever it is integrable;
  2. if (Xn) is a submartingale and φ is convex and nondecreasing, then (φ(Xn)) is a submartingale whenever it is integrable.

In particular, if (Xn) is a martingale, then (|Xn|) is a submartingale; if the martingale is square-integrable, then (Xn2) is also a submartingale.

Theorem 6.2 (Doob–Kolmogorov maximal inequalities). If (Xk)k=0n is a nonnegative submartingale, then for a>0, P(max0knXka)E[Xn]a. If (Xk)k=0n is a martingale, then P(max0kn|Xk|a)E|Xn|a. If it is square-integrable, then also P(max0kn|Xk|a)E[Xn2]a2.

Proof of the first inequality. Let A={max0knXka} and let τ be the first time Xka, capped at n. Decompose A according to the first hitting time. Using the submartingale property from each such time to n gives aP(A)E[Xτ1A]E[Xn1A]E[Xn], where the last inequality uses Xn0. The other two bounds follow by applying the first to the nonnegative submartingales |Xk| and Xk2.

7Martingale convergence

Theorem 7.1 (Martingale convergence theorem). If (Xn) is a martingale and supnE|Xn|<, then there is a finite integrable random variable X such that XnX almost surely. This assumption alone does not necessarily give convergence in L1; uniform integrability does.

A particularly useful special case is L2 boundedness.

Theorem 7.2 (L2-bounded martingale convergence). If (Xn) is a martingale and supnE[Xn2]<, then XnX almost surely and in L2 for some XL2.

Sketch of the key argument. Conditional Jensen shows that (Xn2) is a submartingale, so E[Xn2]μ for some finite μ. For fixed m, the shifted process (Xm+kXm)k0 is a martingale. The L2 maximal inequality and the tower property give P(max1kn|Xm+kXm|>ε)E[(Xm+nXm)2]ε2=E[Xm+n2]E[Xm2]ε2. Indeed, E[Xm+nXm]=E[XmE[Xm+nFm]]=E[Xm2]. Letting n controls the whole tail after time m. Choosing a subsequence of m for which these tail probabilities are summable and applying Borel–Cantelli gives almost-sure convergence along the tail; the martingale maximal estimate then controls the intermediate indices. The same second-moment identity shows directly that (Xn) is Cauchy in L2.

Example 7.3 (Pólya’s urn). In the classical Pólya urn, draw a ball uniformly, return it, and add one ball of the same color. If Xn is the proportion of red balls after n draws, then (Xn) is a martingale and 0Xn1. The bounded-martingale convergence theorem therefore implies that Xn converges almost surely and in L1 to a random limit X.

8The invariance principle and Brownian motion

Let ξ1,ξ2, be i.i.d. with E[ξ1]=0 and Var(ξ1)=1, and write Sn=k=1nξk. The central limit theorem states that Snn  d  N(0,1). To retain the entire path rather than only its endpoint, define the rescaled step process Yt(n):=Sntn,t0. The floor is convenient because it preserves the discrete-time martingale as a piecewise-constant process. Linear interpolation is also valid for the functional limit theorem, although with the usual piecewise-constant filtration it uses the next increment between grid points and is not a martingale.

Theorem 8.1 (Donsker’s invariance principle). As n, the processes (Yt(n))t0 converge weakly to standard Brownian motion in the Skorokhod space D([0,)) (under the usual topology, locally on compact time intervals). The linearly interpolated processes converge weakly in C([0,)).

The word “invariance” means that, after centering and variance normalization, the same Brownian limit arises for any i.i.d. increment law with finite variance; the detailed distribution of ξ1 does not affect the limit.

Definition 8.2 (Standard Brownian motion). A stochastic process (Bt)t0 is standard Brownian motion if:

  1. B0=0 almost surely;
  2. it has independent increments: for 0t0<t1<<tm, the increments Bt1Bt0,,BtmBtm1 are independent;
  3. it has stationary Gaussian increments: BtBsN(0,ts) for 0s<t;
  4. the map tBt is continuous almost surely.

9Further properties of Brownian motion

Brownian motion is a Markov process and a martingale with respect to its natural filtration. It is also a Gaussian process: every finite vector (Bt1,,Btm) is multivariate normal. This follows because such a vector is a linear transformation of independent Gaussian increments.

Theorem 9.1 (Strong Markov property). Let T be an almost surely finite stopping time for Brownian motion. Then (BT+sBT)s0 is a standard Brownian motion independent of the information available up to time T (usually denoted FT). In particular, BT+sBTN(0,s).

Theorem 9.2 (Nowhere differentiability). Almost surely, the sample path tBt is nowhere differentiable. Thus Brownian paths are continuous everywhere but differentiable nowhere, with probability one.

9.1Quadratic variation

Let πn={0=tn,0<tn,1<<tn,mn=t} be deterministic partitions of [0,t], with mesh |πn|:=maxk(tn,ktn,k1)0. Then Qn:=k=1mn(Btn,kBtn,k1)2t in L2 and hence in probability. Indeed, writing Δn,kB=Btn,kBtn,k1 and Δn,kt=tn,ktn,k1, E[(Δn,kB)2]=Δn,kt,Var((Δn,kB)2)=2(Δn,kt)2. Independence of the increments gives E[Qn]=t,Var(Qn)=2k(Δn,kt)22t|πn|0. For the dyadic partitions, the variances are summable, so the convergence is also almost sure by Chebyshev’s inequality and Borel–Cantelli. More generally, almost-sure convergence follows under suitable summability conditions on the meshes. This limit is denoted [B]t=t and is called the quadratic variation of Brownian motion.

9.2Transformations of Brownian motion

Several useful transformations follow from the defining properties.

  1. Scaling. For any a>0, (1aBa2t)t0 is standard Brownian motion.
  2. Time inversion. Define X0=0 and Xt=tB1/t for t>0. Then (Xt)t0 is standard Brownian motion.
  3. Brownian bridge. On 0t1, define Zt=BttB1. This centered Gaussian process has covariance Cov(Zs,Zt)=min(s,t)st and the same law as Brownian motion conditioned to satisfy B1=0. Moreover, (Zt)0t1 is independent of B1.

9.3Reflection principle and hitting times

For a>0 and t>0, the reflection principle gives P(max0stBsa)=2P(Bta)=22πtaex2/(2t)dx. Let Ta:=inf{t0:Bt=a}. Continuity gives {Tat}={max0stBsa}, so P(Tat)=2P(Bta). Differentiating yields the density fTa(t)=a2πt3/2exp(a22t),t>0. Consequently P(Ta<)=1, but E[Ta]=, because tfTa(t) is asymptotic to a positive constant times t1/2 as t. Brownian motion is recurrent in one dimension: almost surely it returns to every fixed level infinitely often.

9.4Brownian motion with drift and volatility

Given μR and σ>0, the process Xt=X0+μt+σBt is Brownian motion with drift μ and volatility σ. Its increments satisfy XtXsN(μ(ts),σ2(ts)). The centered process XtX0μt=σBt is a martingale, whereas Xt itself is a martingale only when μ=0.

10The Itô integral

Let (Bt)0tT be Brownian motion on a filtered probability space satisfying the usual conditions.

Definition 10.1 (Simple predictable integrand). Given a deterministic partition 0=t0<t1<<tn=T, a simple predictable process has the form Ht=k=0n1Ak1(tk,tk+1](t), where each Ak is Ftk-measurable and square-integrable. Its Itô integral is defined by 0THtdBt:=k=0n1Ak(Btk+1Btk).

The use of the left endpoint is essential: Ak may depend on information known by time tk, but not on the future increment Btk+1Btk.

Theorem 10.2 (Itô isometry for simple processes). For every simple predictable H of the form above, E[(0THtdBt)2]=E[0THt2dt].

Proof. Let ΔBk=Btk+1Btk. The diagonal terms satisfy E[Ak2(ΔBk)2]=E[Ak2](tk+1tk), because Ak and ΔBk are independent. If i<j, then AiAjΔBi is Ftj-measurable, while E[ΔBjFtj]=0. Hence E[AiAjΔBiΔBj]=0. Expanding the square therefore gives E[(0THtdBt)2]=k=0n1E[Ak2](tk+1tk)=E[0THt2dt].  

The isometry extends the integral to every predictable process H satisfying E[0THt2dt]<. Choose simple predictable H(n) with E[0T|Ht(n)Ht|2dt]0. The isometry makes 0THt(n)dBt Cauchy in L2, and one defines 0THtdBt:=L2-limn0THt(n)dBt. This definition is independent of the approximating sequence, preserves the Itô isometry, and produces a continuous square-integrable martingale Mt=0tHsdBs.

11Itô’s formula

Theorem 11.1 (One-dimensional Itô formula). If fC2(R), then f(Bt)f(B0)=0tf(Bs)dBs+120tf(Bs)ds.

Example 11.2. For f(x)=cx, Itô’s formula reduces to cBtcB0=0tcdBs. For f(x)=x2 and B0=0, Bt2=20tBsdBs+t,0tBsdBs=12(Bt2t). For f(x)=ex, eBt1=0teBsdBs+120teBsds. Taking expectations gives the integral equation g(t)=1+120tg(s)ds,g(t):=E[eBt], so g(t)=et/2.

The exponential process Mt:=exp(Bt12t) is a martingale. For 0s<t, independence of increments and the Gaussian moment-generating function yield E[MtFs]=MsE[exp((BtBs)12(ts))|Fs]=Mse(ts)/2E[eBtBs]=Ms.

11.1Why the second-order term survives

For a partition 0=t0<<tn=t, Taylor expansion suggests f(Bt)f(B0)=k=1nf(Btk1)ΔBk+12k=1nf(Btk1)(ΔBk)2+remainder. The first sum converges to the Itô integral. Brownian quadratic variation implies that (ΔBk)2 behaves collectively like Δtk, so the second sum converges to 120tf(Bs)ds. Higher-order terms vanish after localization and a rigorous control of the remainder. This is the source of the extra second-derivative term absent from ordinary calculus.

Theorem 11.3 (Time-dependent Itô formula). Let fC1,2([0,T]×R), meaning once continuously differentiable in time and twice continuously differentiable in space. Then f(t,Bt)f(0,B0)=0tfx(s,Bs)dBs+0tft(s,Bs)ds+120tfxx(s,Bs)ds.

If f solves the backward heat equation ft+12fxx=0, then f(t,Bt)=f(0,B0)+0tfx(s,Bs)dBs. Thus (f(t,Bt)) is a local martingale, and it is a true martingale when the stochastic integral is integrable (for example, when E0Tfx(s,Bs)2ds<).

11.2Multidimensional Itô formula

Let Bt=(Bt(1),,Bt(d)) have independent standard Brownian components. This is d-dimensional Brownian motion. For a smooth function f:Rd×[0,T]R, write xf=(fx1,,fxd),Δxf=k=1dfxkxk. Then f(Bt,t)f(B0,0)=0txf(Bs,s)dBs+0tft(Bs,s)ds+120tΔxf(Bs,s)ds, where 0txf(Bs,s)dBs:=k=1d0tfxk(Bs,s)dBs(k).

Example 11.4 (Stochastic integration by parts). For two independent Brownian motions and f(x,y)=xy, the second-order drift terms vanish because fxx=fyy=0 and [B(1),B(2)]t=0. Hence Bt(1)Bt(2)B0(1)B0(2)=0tBs(2)dBs(1)+0tBs(1)dBs(2). Equivalently, 0tBs(2)dBs(1)=Bt(1)Bt(2)B0(1)B0(2)0tBs(1)dBs(2).

Example 11.5 (Bessel process). Apply the multidimensional formula to f(x1,,xd)=k=1dxk2. If B0=0, then Bt2=2k=1d0tBs(k)dBs(k)+dt. Therefore Bt2dt is a martingale and Bt2 is a submartingale. The radial process Rt:=Bt is called a Bessel process of dimension d.

12Continuous martingales and quadratic variation

Definition 12.1 (Continuous martingale). A process (Mt)t0 is a continuous martingale if it is a martingale and has continuous sample paths almost surely.

12.1Doob–Meyer and predictable quadratic variation

Theorem 12.2 (Doob–Meyer decomposition). Let (Xt) be a right-continuous submartingale of class D on a finite time interval, on a filtered probability space satisfying the usual conditions. Then there is a unique decomposition

Xt=Mt+At,

where M is a uniformly integrable martingale and A is a predictable integrable increasing process with A0=0. If X is continuous, both terms may be chosen continuous. Here class D means that the stopped family {Xτ:τT} is uniformly integrable.

Application to the bracket. For a continuous locally square-integrable martingale M, conditional Jensen makes M2 a local submartingale. Applying the localized Doob–Meyer decomposition gives

Mt2=M02+Nt+Mt,

where N is a continuous local martingale and M is predictable and increasing. Rearranging shows that Mt2M02Mt is a local martingale. Uniqueness in Doob–Meyer gives uniqueness of the bracket.

For a continuous locally square-integrable martingale M, there is a unique continuous predictable increasing process M, starting at zero, such that Mt2M02Mt is a local martingale. The process M is called the predictable quadratic variation (or bracket) of M. This fact may be viewed as a special case of the Doob–Meyer decomposition; we use it here without developing the general theorem.

The quadratic variation of M is obtained from partition sums: [M]t:=lim|π|0k(Mtk+1Mtk)2. The limit is understood in probability. For a continuous local martingale, [M]t=Mtup to indistinguishability. The notation [M] emphasizes the partition-limit construction, while M emphasizes the compensator characterization.

12.2Brownian martingale representation

Theorem 12.3 (Martingale representation theorem). Let (Ft) be the completed natural filtration of a Brownian motion B on [0,T]. If (Mt) is a square-integrable (Ft)-martingale, then there is a predictable process φ satisfying E[0Tφs2ds]< such that Mt=M0+0tφsdBs,0tT. The integrand is unique up to the usual almost-everywhere equivalence.

The Brownian-filtration hypothesis is essential: an arbitrary filtration may contain martingales that cannot be represented using a given Brownian motion.

Proposition 12.4 (Bracket of an Itô integral). Let Zt=0tHsdBs for a locally square-integrable predictable process H. Then [Z]t=Zt=0tHs2ds.

For a simple process, the partition sum for [Z] is kAk2(Btk+1Btk)2, which converges to kAk2(tk+1tk). Equivalently, Zt20tHs2ds is a local martingale. Approximation extends the identity to general H.

12.3Quadratic covariation

For continuous local martingales X and Y, define [X,Y]t:=14([X+Y]t[XY]t). Equivalently, [X,Y]t=lim|π|0k(Xtk+1Xtk)(Ytk+1Ytk) in probability. Predictable covariation is defined by polarization as X,Yt:=14(X+YtXYt). For continuous local martingales, these versions agree. Covariation is symmetric and bilinear, and [X+Y]=[X]+[Y]+2[X,Y].

Two continuous local martingales are strongly orthogonal when [X,Y]=0; equivalently, XY is a local martingale (assuming one starts at zero, or after subtracting initial values). Independent Brownian motions are strongly orthogonal. Conversely, two jointly Gaussian Brownian motions with zero cross-variation are independent. For general martingales, zero cross-variation does not by itself imply independence.

The covariation form of Cauchy–Schwarz is |X,Yt|XtYt.

12.4Kunita–Watanabe decomposition

Theorem 12.5 (Kunita–Watanabe decomposition). Let X and Y be continuous square-integrable martingales. Then there are a predictable process H and a square-integrable martingale L, strongly orthogonal to X, such that

Yt=Y0+0tHsdXs+Lt.

The decomposition is unique in the usual equivalence classes.

Why this is the martingale analogue of orthogonal projection. The Kunita–Watanabe inequality implies that the signed measure dX,Y is absolutely continuous with respect to dX on the part seen by X. Let

H=dX,YdX,Lt=YtY00tHsdXs.

Using dX,HdX=HdX gives X,L=0, so the remainder is strongly orthogonal to X. The stochastic-integral isometry gives uniqueness. Thus the integral term is precisely the component of Y generated by X, and L is the orthogonal residual.

13Stochastic integration with respect to a martingale

Let M be a continuous square-integrable martingale. For a simple predictable process Hs=k=0n1Ak1(tk,tk+1](s),Ak bounded and Ftk-measurable, define 0tHsdMs:=k=0n1Ak(Mtk+1tMtkt).

Martingale increments are not generally independent of the past. What is used instead is conditional orthogonality: E[Mtk+1MtkFtk]=0. The bracket identity gives the corresponding conditional second-moment relation E[(Mtk+1Mtk)2Ftk]=E[Mtk+1MtkFtk]. Cross terms vanish by conditioning at the earlier endpoint. Consequently,

Theorem 13.1 (Martingale isometry). For every simple predictable H, E[(0tHsdMs)2]=E[0tHs2dMs].

By completing the simple predictable processes under the norm HM2:=E[0tHs2dMs], one defines HdM for every predictable H with finite norm. The result is again a continuous square-integrable martingale, and 0HsdMst=0tHs2dMs.

14Finite variation and continuous semimartingales

Definition 14.1 (Finite variation). A continuous process A has finite variation on compact intervals if, for every T<, supπk|Atk+1Atk|<almost surely, where the supremum is over all finite partitions of [0,T]. Equivalently, A can be written as the difference of two continuous increasing processes.

Integration against A is defined pathwise as a Lebesgue–Stieltjes integral. If At=0tasds, then 0tHsdAs=0tHsasds.

Definition 14.2 (Continuous semimartingale). A continuous adapted process X is a semimartingale if Xt=X0+Mt+At, where M is a continuous local martingale starting at zero and A is a continuous adapted finite-variation process starting at zero.

Continuous local martingales are semimartingales, and continuous submartingales and supermartingales are also semimartingales under standard hypotheses. A typical example is Zt=Z0+0tHsdBs+0tKsds.

Theorem 14.3 (Itô formula for continuous semimartingales). Let X=(X(1),,X(d)) be a vector of continuous semimartingales and fC1,2([0,T]×Rd). Then f(t,Xt)f(0,X0)=0tft(s,Xs)ds+i=1d0tfxi(s,Xs)dXs(i)+12i,j=1d0tfxixj(s,Xs)d[X(i),X(j)]s.

Only the local-martingale parts contribute quadratic covariation; continuous finite-variation processes have zero quadratic variation and zero covariation with continuous local martingales.

15Bessel dynamics and Lévy’s characterization

Let B=(B(1),,B(d)) be d-dimensional Brownian motion and set Xt=Bt2=k=1d(Bt(k))2. Itô’s formula gives dXt=2k=1dBt(k)dBt(k)+ddt. The local-martingale part has quadratic variation 40tk=1d(Bs(k))2ds=40tXsds.

Theorem 15.1 (Lévy’s characterization). If W is a continuous local martingale with W0=0 and [W]t=t for all t0, then W is a standard Brownian motion.

Define, with the integrand chosen arbitrarily when Bs=0, Wt:=k=1d0tBs(k)Bs1{Bs>0}dBs(k). Brownian motion spends zero Lebesgue time at the origin, so [W]t=t; hence W is Brownian motion. The squared Bessel process satisfies dXt=2XtdWt+ddt. For the radial process Rt=Xt, away from the origin Itô’s formula gives dRt=dWt+d12Rtdt. For d2 this is the standard Bessel SDE with its usual boundary interpretation. When d=1, Rt=|Bt| is reflected Brownian motion and a local-time term is required at the origin.

Proposition 15.2 (Product formula). If X and Y are continuous local martingales, then XtYtX0Y0[X,Y]t=0tYsdXs+0tXsdYs is a continuous local martingale. It is a true martingale under suitable integrability assumptions.

This is simply Itô’s formula for f(x,y)=xy, written differentially as d(XtYt)=YtdXt+XtdYt+d[X,Y]t.

16Diffusion processes and generators

16.1Diffusions and stochastic differential equations

Broadly, a diffusion is a continuous-time Markov process with continuous sample paths (often with the strong Markov property included in the convention). Several other characterizations are available under suitable assumptions. Rather than develop those equivalences, these notes focus on one-dimensional diffusions that arise from stochastic differential equations of the form dXt=μ(Xt)dt+σ(Xt)dBt,X0=x. Equivalently, Xt=x+0tμ(Xs)ds+0tσ(Xs)dBs.

If μ and σ are locally Lipschitz and satisfy a linear-growth bound, then the SDE has a unique global strong solution. Local Lipschitz continuity alone gives pathwise uniqueness up to the explosion time; the growth condition prevents explosion.

When the relevant conditional limits exist, the coefficients have the infinitesimal interpretations μ(x)=limh01hE[Xt+hXtXt=x], σ2(x)=limh01hE[(Xt+hXt)2Xt=x]. We focus here on the time-homogeneous case; time-dependent coefficients are handled similarly.

16.2Generator

The infinitesimal generator acts on sufficiently smooth test functions as Lf(x)=μ(x)f(x)+12σ2(x)f(x). On domains with boundaries, the relevant boundary conditions are part of the model and matter when the generator is used in boundary-value problems.

For a diffusion satisfying dXt=μ(Xt)dt+σ(Xt)dBt, Itô’s formula gives, for suitable f, df(Xt)=Lf(Xt)dt+f(Xt)σ(Xt)dBt.

16.3Converse: recovering an SDE

The generator identity also has a useful converse. Suppose X is continuous and, for every compactly supported twice continuously differentiable function f,

Mtf:=f(Xt)f(X0)0tLf(Xs)ds

is a continuous local martingale. Assume enough regularity and nonexplosion to justify the following localization.

Recovering drift and noise. Stop when X leaves a compact interval and choose test functions that agree there with f(x)=x and f(x)=x2. The first choice shows that

Mt:=XtX00tμ(Xs)ds

is a continuous local martingale. The second choice says that

Xt2X020t[2Xsμ(Xs)+σ2(Xs)]ds

is a local martingale. Comparing this with the semimartingale product formula for X2 identifies

Mt=0tσ2(Xs)ds.

If σ(Xs)0, define

Wt:=0t1σ(Xs)dMs.

Then Wt=t, so Lévy’s characterization makes W Brownian motion. Substitution gives

dXt=μ(Xt)dt+σ(Xt)dWt.

If σ may vanish, enlarge the space with an independent Brownian motion W and add 1{σ(Xs)=0}dWs to the normalized integral over the set where σ0. The resulting continuous local martingale still has bracket t, so Lévy’s characterization applies. Under the usual regularity assumptions, uniqueness in law for this characterization also gives the Markov and strong Markov properties.

16.4Exponential characterization

For λR, define

Zt(λ):=exp{λ(XtX0)λ0tμ(Xs)dsλ220tσ2(Xs)ds}.

Derivation. Write Nt=XtX00tμ(Xs)ds. For an SDE solution, dNt=σ(Xt)dWt and dNt=σ2(Xt)dt. Itô’s formula applied to exp(λNλ2N/2) cancels the finite-variation terms and leaves

dZt(λ)=λZt(λ)σ(Xt)dWt.

Hence Z(λ) is a positive local martingale and therefore a supermartingale. It is a true martingale, for example, if Novikov’s condition holds:

Eexp{λ220Tσ2(Xs)ds}<.

Conversely, if these exponential processes have the local-martingale property for a sufficiently rich set of λ, expansion around λ=0 identifies the first-order compensator as μ(Xt)dt and the second-order variation as σ2(Xt)dt. Appropriate continuity and integrability assumptions are essential.

16.5Basic examples

  1. Brownian motion with drift and volatility, Xt=X0+μt+σBt, has constant drift μ and diffusion coefficient σ.
  2. If T is a stopping time, stopped Brownian motion Xt=BtT is a continuous local martingale. When T is the first hitting time of an absorbing set, it is the corresponding absorbed diffusion. For an arbitrary stopping time, the stopped process need not retain the Markov property.
  3. Reflected Brownian motion is Xt=|Bt|. Tanaka’s formula gives |Bt|=|B0|+0tsgn(Bs)dBs+Lt0(B), where Lt0(B) is local time at zero. Thus reflection is encoded by a boundary local-time term, not by an ordinary drift function alone.

17Ornstein–Uhlenbeck process

The Ornstein–Uhlenbeck (OU) process solves dXt=θXtdt+σdWt,θ>0. The drift pulls the process toward zero, while the diffusion coefficient is constant. Multiplying by the integrating factor eθt and applying the semimartingale product rule gives d(eθtXt)=σeθtdWt. Hence Xt=X0eθt+σ0teθ(ts)dWs. If X0 is deterministic, Xt is Gaussian with E[Xt]=X0eθt,Var(Xt)=σ22θ(1e2θt). For 0st, Cov(Xs,Xt)=σ22θ(eθ(ts)eθ(t+s)) when X0 is deterministic. In particular, the mean tends to zero and the variance tends to σ2/(2θ).

If instead X0N(0,σ22θ) independently of W, then the OU process is stationary: E[Xt]=0,Cov(Xs,Xt)=σ22θeθ|ts|.

17.1OU as a time-changed Brownian motion

For X0=0, Xt=σeθt0teθsdWs. The stochastic integral is a centered Gaussian martingale with bracket q(t)=0te2θsds=e2θt12θ. It therefore has the same law as a Brownian motion W~ evaluated at q(t): Xt=dσeθtW~(e2θt1)/(2θ)=σ2θeθtWe2θt1, where the second equality in law uses Brownian scaling. Conversely, if this last representation is used pathwise, then Ws=2θσs+1Xlog(s+1)/(2θ).

18Transformations of one-dimensional diffusions

Let X solve dXt=μ(Xt)dt+σ(Xt)dBt, and let g be a C2 strictly monotone function with a sufficiently regular inverse. Setting Yt=g(Xt) and writing x=g1(y), Itô’s formula shows that Y is a diffusion with drift and diffusion coefficient μY(y)=g(x)μ(x)+12g(x)σ2(x), σY(y)=g(x)σ(x). Equivalently, σY2(y)=(g(x)σ(x))2.

19Geometric Brownian motion

The standard diffusion model for a positive stock price is dStSt=μdt+σdWt,S0>0. Brownian noise is a useful idealization because its increments have mean zero, are independent of the past, have variance proportional to elapsed time, and produce continuous paths. Real financial returns need not satisfy these assumptions exactly.

Applying Itô’s formula to f(x)=logx gives dlogSt=(μ12σ2)dt+σdWt. Therefore St=S0exp((μ12σ2)t+σWt). Thus St is lognormal, remains strictly positive, and satisfies E[St]=S0eμt. Its logarithm is recurrent precisely when μ=σ2/2. If μσ2/2<0, then St0 almost surely; if μσ2/2>0, then St almost surely.

20Exit problems and Dynkin’s formula

Consider a regular one-dimensional diffusion on (a,b), dXt=μ(Xt)dt+σ(Xt)dWt,a<X0=x<b, with generator Lf=μf+12σ2f. Define Ta=inf{t0:Xt=a},Tb=inf{t0:Xt=b},T=TaTb.

Theorem 20.1 (Dynkin’s formula). For a suitable test function f and a stopping time τ satisfying the needed integrability conditions, Ex[f(Xτ)]=f(x)+Ex[0τLf(Xs)ds].

One may first prove this for bounded τ and then pass to limits by localization or uniform integrability.

Dynkin’s formula turns three common probabilistic quantities into boundary value problems:

  1. The probability of exiting at b, u(x):=Px(Tb<Ta), solves Lu=0 on (a,b),u(a)=0,u(b)=1.
  2. The mean exit time v(x):=Ex[T] solves Lv=1 on (a,b),v(a)=v(b)=0.
  3. For a measurable function g, the occupation functional w(x):=Ex[0Tg(Xs)ds] solves Lw=g on (a,b),w(a)=w(b)=0.

These assertions require sufficient regularity and finiteness to justify the boundary conditions and optional stopping. The integral in the definition of w is a functional because it depends on the entire sample path up to T.

21Scale functions and time change

21.1Removing drift with the scale function

Assume σ(x)0 on the interval of interest. Define the scale density and a corresponding scale function by s(x):=exp(x0x2μ(y)σ2(y)dy),S(x):=x0xs(y)dy. The choices of base point and affine normalization do not matter. Since S=s and S(x)μ(x)+12S(x)σ2(x)=0, Itô’s formula yields dS(Xt)=S(Xt)σ(Xt)dWt. Thus the scale transformation removes drift and makes S(Xt) a local martingale. In particular, for a<x<b, Px(Tb<Ta)=S(x)S(a)S(b)S(a). A commonly used speed density, under this normalization, is m(x)=2σ2(x)s(x). Scale controls hitting probabilities, while speed controls how quickly the diffusion moves through the state space.

21.2Dambis–Dubins–Schwarz theorem

Theorem 21.1 (Dambis–Dubins–Schwarz). Let M be a continuous local martingale with M0=0 and M= almost surely. Define the generalized inverse Ts:=inf{t0:Mt>s}. Then Bs:=MTs,s0, is Brownian motion with respect to the time-changed filtration, and Mt=BMt.

The theorem is consistent with Lévy’s characterization: quadratic variation is the intrinsic clock of a continuous local martingale. In particular, a martingale of the form Mt=0tσsdWs accumulates intrinsic time at rate Mt=0tσs2ds. If the total bracket can be finite, the theorem remains valid up to that terminal intrinsic time, or after adjoining an independent Brownian motion to continue the clock.

For the diffusion in scale, Yt=S(Xt), the local martingale Mt=YtY0 has quadratic variation Mt=0ts2(Xr)σ2(Xr)dr. Consequently, subject to the qualification in the theorem, S(Xt)S(X0)=BMt. This makes precise the idea that the scale function removes the drift and the quadratic variation then supplies the Brownian clock.

21.3Speed measure, Green kernel, and exit formulas

We use the speed density convention m(x)=2σ2(x)s(x),m(dx)=m(x)dx. The factor 2 is conventional. Some authors instead define m~(x)=1/(σ2(x)s(x)); formulas using m~ acquire an additional factor 2.

Let Ga,b(x,y):=(S(xy)S(a))(S(b)S(xy))S(b)S(a). This is the Green kernel of the diffusion killed when it exits (a,b), relative to the speed measure. Under the usual regularity and integrability conditions, Ex[0Tg(Xr)dr]=abGa,b(x,y)g(y)m(y)dy. Thus the three boundary-value problems above have the explicit solutions f1(x)=u(x)=S(x)S(a)S(b)S(a), f2(x)=v(x)=u(x)xb(S(b)S(y))m(y)dy+(1u(x))ax(S(y)S(a))m(y)dy, f3(x)=w(x)=u(x)xb(S(b)S(y))m(y)g(y)dy+(1u(x))ax(S(y)S(a))m(y)g(y)dy. Here Lf1=0, Lf2=1, and Lf3=g, with their respective boundary values. If the alternative density m~=m/2 is used, the right-hand sides defining f2 and f3 must be multiplied by 2.

Derivation of the Green representation. With the present speed convention, the generator has the scale–speed form

Lf(x)=1m(x)ddx{f(x)s(x)}.

Indeed, ss=2μσ2 and 1m=σ2s2. Consequently, Lf=g is equivalent to

ddx{f(x)s(x)}=m(x)g(x).

For fixed y, the function xGa,b(x,y) is continuous, vanishes at a and b, and is affine in the scale coordinate S(x) on either side of y. Its scale derivative has jump

G(y+,y)s(y)G(y,y)s(y)=1.

It is therefore the fundamental solution for the killed boundary problem. Integrating it against g(y)m(y)dy enforces this derivative jump and gives Lf=g with zero boundary values. Splitting the resulting integral at y=x yields the two explicit expressions above.

21.4Probabilistic verification of the ODE solutions

Itô’s formula gives df1(Xt)=Lf1(Xt)dt+f1(Xt)σ(Xt)dWt. After stopping at T, the drift vanishes. Since 0f11 on [a,b], optional stopping may be justified through Tn, giving f1(x)=Ex[f1(XT)]=Px(Ta<Tb)f1(a)+Px(Tb<Ta)f1(b)=Px(Tb<Ta)=u(x).

For f2, Itô’s formula up to Tn yields f2(XTn)f2(x)=(Tn)+MTn for a localized martingale M. Passing to the limit under the appropriate integrability conditions and using f2(XT)=0 gives f2(x)=Ex[T]=v(x). The identical argument with Lf3=g gives f3(x)=Ex[0Tg(Xr)dr]=w(x).

Example 21.2 (Standard Brownian motion). For dXt=dWt, one may take s(x)=1,S(x)=x,m(x)=2. If a<0<b and X0=0, then P0(Tb<Ta)=aba=|a||a|+|b|,E0[TaTb]=ab=|ab|. With the alternative convention m~=1, the leading factor 2 in the Green formula produces the same answer.

Example 21.3 (Ornstein–Uhlenbeck process). For dXt=θXtdt+σdWt,θ>0, σ>0, a convenient choice is s(x)=exp(θx2σ2),S(x)=0xexp(θy2σ2)dy,m(x)=2σ2exp(θx2σ2). The scale integral has no elementary antiderivative. On the whole real line, the normalized speed density is the invariant density π(x)=θπσ2exp(θx2σ2), which is the density of N(0,σ2/(2θ)).

22Transition semigroups and Kolmogorov equations

Suppose the diffusion admits a transition density p(t,x,y), meaning that Px(Xtdy)=p(t,x,y)dy. Not every Markov process has a density, and smoothness of p requires additional assumptions. For a suitable test function f, define u(t,x):=Ex[f(Xt)]=Rp(t,x,y)f(y)dy=:Ptf(x). The Markov property implies the semigroup identity Pt+s=PtPs, and, when densities exist, the Chapman–Kolmogorov equation p(t+s,x,y)=Rp(t,x,z)p(s,z,y)dz.

22.1Backward Kolmogorov equation

The generator acts on the starting variable x: Lx=μ(x)x+12σ2(x)2x2. Under sufficient regularity, u(t,x)=Ptf(x) solves tu(t,x)=Lxu(t,x),u(0,x)=f(x). Indeed, the semigroup property and the definition of the generator give Pt+hfPtfh=Pt(Phffh)PtLf=LPtf. For a fixed terminal time T, the equivalent terminal-value formulation is v(t,x):=Ex[f(XTt)],tv+Lxv=0,v(T,x)=f(x).

22.2Forward Kolmogorov equation

The formal adjoint of L acts on densities by Lyρ=y(μ(y)ρ(y))+122y2(σ2(y)ρ(y)).

Weak derivation of the forward equation. Let φ be smooth with compact support. The backward equation applied to the test function, followed by the definition of the formal adjoint, gives

ddtφ(y)p(t,x,y)dy=ddtPtφ(x)=PtLφ(x) =Lφ(y)p(t,x,y)dy=φ(y)Lyp(t,x,y)dy.

The final equality is integration by parts once in the drift term and twice in the diffusion term; compact support removes the boundary terms. Hence tp=Lyp in the weak sense. If the density is sufficiently smooth, the weak identity is the pointwise PDE below. On bounded intervals, the integration-by-parts boundary terms instead determine the appropriate probability-flux boundary conditions.

Accordingly, the transition density satisfies the forward Kolmogorov, or Fokker–Planck, equation tp(t,x,y)=Lyp(t,x,y),p(0,x,y)=δx(y), where the initial condition is understood distributionally. On a bounded state space, the appropriate absorbing, reflecting, or other boundary condition must also be supplied. A stationary density π satisfies Lπ=0 together with normalization and the relevant boundary behavior.

Example 22.1 (Transition densities). For standard Brownian motion, p(t,x,y)=12πtexp((yx)22t), and both Kolmogorov equations reduce to the heat equation in the appropriate space variable.

For the Ornstein–Uhlenbeck process above, XtX0=x  N(xeθt, σ22θ(1e2θt)). Hence its transition density is Gaussian with this mean and variance, and it converges as t to the invariant density π displayed above.