Quant / Asset pricing in continuous time

SDEs

· Latest

Deriving and solving SDEs, the SDEs to remember, moments of BM, GBM mean and variance.

Definition / theoremKey factsSteps to prove

11. What is an SDE, and how do I derive or solve one?

Definition Shreve Sec 6.2

A stochastic differential equation with initial condition Xt=xX_t=x:

Differential formdXu=β(u,Xu) du+γ(u,Xu) dWudX_u=\beta(u,X_u)\,du+\gamma(u,X_u)\,dW_u
Integral form (what a solution satisfies)XT=x+∫tTβ(u,Xu) du+∫tTγ(u,Xu) dWuX_T=x+\int_t^T\beta(u,X_u)\,du+\int_t^T\gamma(u,X_u)\,dW_u

Geometric Brownian motion (Lecture 2, slide 37): St=S0exp⁡{μt−12σ2t+σWt}S_t=S_0\exp\{\mu t-\tfrac12\sigma^2t+\sigma W_t\} solves dSt=μSt dt+σSt dWtdS_t=\mu S_t\,dt+\sigma S_t\,dW_t.

Key facts
  • Reverse check: with f(t,x)=S0e(μ−12σ2)t+σxf(t,x)=S_0e^{(\mu-\frac12\sigma^2)t+\sigma x}, ft=(μ−12σ2)ff_t=(\mu-\tfrac12\sigma^2)f, fx=σff_x=\sigma f, fxx=σ2ff_{xx}=\sigma^2f; the ±12σ2\pm\tfrac12\sigma^2 cancel to give drift μ\mu.
  • The noise term is dWtdW_t, never dStdS_t.
  • Powers of GBM (Shreve Ex 4.6): d(Sp)=(pμ+12p(p−1)σ2)Sp dt+pσSp dWd(S^p)=\big(p\mu+\tfrac12p(p-1)\sigma^2\big)S^p\,dt+p\sigma S^p\,dW.
  • Linear (Vasicek) SDE dr=(a−r) dt+b dBdr=(a-r)\,dt+b\,dB: multiply by ete^{t} to get rt=r0e−t+a(1−e−t)+b∫0te−(t−s) dBsr_t=r_0e^{-t}+a(1-e^{-t})+b\int_0^te^{-(t-s)}\,dB_s, a normal variable.
  • dBt=rBt dtdB_t=rB_t\,dt has no dWdW: it is an ODE, Bt=ertB_t=e^{rt}.
Steps to derive an SDE from a given process
  1. Write the process as f(t,Wt)f(t,W_t) or f(t,Xt)f(t,X_t).
  2. Apply Itô–Doeblin and express the coefficients in terms of the process itself.
Steps to solve dS=μS dt+σS dWdS=\mu S\,dt+\sigma S\,dW
  1. Itô on log⁡S\log S: dlog⁡S=dSS−12dS dSS2=(μ−12σ2) dt+σ dWd\log S=\dfrac{dS}{S}-\dfrac12\dfrac{dS\,dS}{S^2}=(\mu-\tfrac12\sigma^2)\,dt+\sigma\,dW.
  2. Integrate from 0 to tt: log⁡St−log⁡S0=(μ−12σ2)t+σWt\log S_t-\log S_0=(\mu-\tfrac12\sigma^2)t+\sigma W_t.
  3. Exponentiate.
Steps to guess a solution Xt=f(t,Wt)X_t=f(t,W_t)
  1. Itô gives drift ft+12fxxf_t+\tfrac12f_{xx} and volatility fxf_x.
  2. Match: fx=γf_x=\gamma and ft+12fxx=βf_t+\tfrac12f_{xx}=\beta; solve for ff, use the initial value.
  3. The solution lives until ff blows up; that hitting time of WW is the stopping time τ\tau.

12. Which SDEs do I need to remember?

one Brownian motion and several Brownian motions

One Brownian motion Lecture 2, slides 28–39 · Shreve Ex 4.4.8–4.4.11, Sec 5.2
NameIntegral formDifferential formSolution / remember
BM with driftXt=X0+∫0tμ ds+∫0tσ dWsX_t=X_0+\int_0^t\mu\,ds+\int_0^t\sigma\,dW_sdXt=μ dt+σ dWtdX_t=\mu\,dt+\sigma\,dW_tXt=X0+μt+σWt∼N(X0+μt, σ2t)X_t=X_0+\mu t+\sigma W_t\sim N(X_0+\mu t,\ \sigma^2t)
Square of BMWt2−t=∫0t2Ws dWsW_t^2-t=\int_0^t2W_s\,dW_sd(Wt2−t)=2Wt dWtd(W_t^2-t)=2W_t\,dW_tMartingale
Powers of BMWtn=∫0tnWsn−1dWs+12n(n−1)∫0tWsn−2dsW_t^n=\int_0^tnW_s^{n-1}dW_s+\tfrac12n(n-1)\int_0^tW_s^{n-2}dsd(Wtn)=nWtn−1dWt+12n(n−1)Wtn−2dtd(W_t^n)=nW_t^{n-1}dW_t+\tfrac12n(n-1)W_t^{n-2}dtGives E[Wtn]\mathbb E[W_t^n] recursively (topic 13)
Exponential martingaleZt=1+∫0tσZs dWsZ_t=1+\int_0^t\sigma Z_s\,dW_sdZt=σZt dWtdZ_t=\sigma Z_t\,dW_tZt=exp⁡(σWt−12σ2t)Z_t=\exp(\sigma W_t-\tfrac12\sigma^2t); E[Zt]=1\mathbb E[Z_t]=1
Girsanov densityZt=1−∫0tΘsZs dWsZ_t=1-\int_0^t\Theta_sZ_s\,dW_sdZt=−ΘtZt dWtdZ_t=-\Theta_tZ_t\,dW_tZt=exp⁡ ⁣(−∫0tΘ dW−12∫0tΘ2ds)Z_t=\exp\!\big(-\int_0^t\Theta\,dW-\tfrac12\int_0^t\Theta^2ds\big)
Geometric BMSt=S0+∫0tμSs ds+∫0tσSs dWsS_t=S_0+\int_0^t\mu S_s\,ds+\int_0^t\sigma S_s\,dW_sdSt=μSt dt+σSt dWtdS_t=\mu S_t\,dt+\sigma S_t\,dW_tSt=S0e(μ−12σ2)t+σWtS_t=S_0e^{(\mu-\frac12\sigma^2)t+\sigma W_t}; ESt=S0eμt\mathbb E S_t=S_0e^{\mu t}
GBM under Q\mathbb QSt=S0+∫0trSs ds+∫0tσSs dW~sS_t=S_0+\int_0^trS_s\,ds+\int_0^t\sigma S_s\,d\widetilde W_sdSt=rSt dt+σSt dW~tdS_t=rS_t\,dt+\sigma S_t\,d\widetilde W_tSame solution with μ→r\mu\to r, W→W~W\to\widetilde W
Log of GBMlog⁡St=log⁡S0+∫0t(μ−12σ2) ds+∫0tσ dWs\log S_t=\log S_0+\int_0^t(\mu-\tfrac12\sigma^2)\,ds+\int_0^t\sigma\,dW_sdlog⁡St=(μ−12σ2) dt+σ dWtd\log S_t=(\mu-\tfrac12\sigma^2)\,dt+\sigma\,dW_tThe route to solving GBM
Power of GBMStp=S0p+∫0t(pμ+12p(p−1)σ2)Ssp ds+∫0tpσSsp dWsS_t^p=S_0^p+\int_0^t\big(p\mu+\tfrac12p(p-1)\sigma^2\big)S_s^p\,ds+\int_0^tp\sigma S_s^p\,dW_sd(Stp)=(pμ+12p(p−1)σ2)Stp dt+pσStp dWtd(S_t^p)=\big(p\mu+\tfrac12p(p-1)\sigma^2\big)S_t^p\,dt+p\sigma S_t^p\,dW_tAgain a GBM; p=2p=2: drift 2μ+σ22\mu+\sigma^2, vol 2σ2\sigma
Reciprocal of GBM1St=1S0+∫0tσ2−μSs ds−∫0tσSs dWs\dfrac1{S_t}=\dfrac1{S_0}+\int_0^t\dfrac{\sigma^2-\mu}{S_s}\,ds-\int_0^t\dfrac{\sigma}{S_s}\,dW_sd(1/St)=(σ2−μ)(1/St) dt−σ(1/St) dWtd(1/S_t)=(\sigma^2-\mu)(1/S_t)\,dt-\sigma(1/S_t)\,dW_tCase p=−1p=-1
Generalised GBMSt=S0+∫0tαsSs ds+∫0tσsSs dWsS_t=S_0+\int_0^t\alpha_sS_s\,ds+\int_0^t\sigma_sS_s\,dW_sdSt=αtSt dt+σtSt dWtdS_t=\alpha_tS_t\,dt+\sigma_tS_t\,dW_tSt=S0exp⁡ ⁣(∫0tσs dWs+∫0t(αs−12σs2) ds)S_t=S_0\exp\!\big(\int_0^t\sigma_s\,dW_s+\int_0^t(\alpha_s-\tfrac12\sigma_s^2)\,ds\big)
Money marketBt=1+∫0tRsBs dsB_t=1+\int_0^tR_sB_s\,dsdBt=RtBt dtdB_t=R_tB_t\,dtBt=e∫0tRs dsB_t=e^{\int_0^tR_s\,ds}; constant rr: erte^{rt}. An ODE, no Itô term
Discount processDt=1−∫0tRsDs dsD_t=1-\int_0^tR_sD_s\,dsdDt=−RtDt dtdD_t=-R_tD_t\,dtDt=e−∫0tRs ds=1/BtD_t=e^{-\int_0^tR_s\,ds}=1/B_t
Discounted stockDtSt=S0+∫0t(αs−Rs)DsSs ds+∫0tσsDsSs dWsD_tS_t=S_0+\int_0^t(\alpha_s-R_s)D_sS_s\,ds+\int_0^t\sigma_sD_sS_s\,dW_sd(DtSt)=(αt−Rt)DtSt dt+σtDtSt dWtd(D_tS_t)=(\alpha_t-R_t)D_tS_t\,dt+\sigma_tD_tS_t\,dW_t=σtDtSt dW~t=\sigma_tD_tS_t\,d\widetilde W_t: a Q\mathbb Q-martingale
Vasicek (OU)Rt=R0+∫0t(α−βRs) ds+∫0tσ dWsR_t=R_0+\int_0^t(\alpha-\beta R_s)\,ds+\int_0^t\sigma\,dW_sdRt=(α−βRt) dt+σ dWtdR_t=(\alpha-\beta R_t)\,dt+\sigma\,dW_tRt=e−βtR0+αβ(1−e−βt)+σ∫0te−β(t−s)dWsR_t=e^{-\beta t}R_0+\tfrac\alpha\beta(1-e^{-\beta t})+\sigma\int_0^te^{-\beta(t-s)}dW_s; normal, Var⁡=σ22β(1−e−2βt)\operatorname{Var}=\tfrac{\sigma^2}{2\beta}(1-e^{-2\beta t})
CIRRt=R0+∫0t(α−βRs) ds+∫0tσRs dWsR_t=R_0+\int_0^t(\alpha-\beta R_s)\,ds+\int_0^t\sigma\sqrt{R_s}\,dW_sdRt=(α−βRt) dt+σRt dWtdR_t=(\alpha-\beta R_t)\,dt+\sigma\sqrt{R_t}\,dW_tNo closed form; ERt=e−βtR0+αβ(1−e−βt)\mathbb E R_t=e^{-\beta t}R_0+\tfrac\alpha\beta(1-e^{-\beta t}); stays ≥0\ge0
Several Brownian motions Shreve Sec 4.6, Example 4.6.6, Sec 5.4.2, Ex 4.13

Notation: dW dB=ρ dtdW\,dB=\rho\,dt (correlated), dW(1)dW(2)=0dW^{(1)}dW^{(2)}=0 (independent).

NameIntegral formDifferential formSolution / remember
Correlated BM from independent onesBt=ρWt(1)+1−ρ2 Wt(2)B_t=\rho W^{(1)}_t+\sqrt{1-\rho^2}\,W^{(2)}_tdBt=ρ dWt(1)+1−ρ2 dWt(2)dB_t=\rho\,dW^{(1)}_t+\sqrt{1-\rho^2}\,dW^{(2)}_tBB is a BM (Lévy) with dW(1)dB=ρ dtdW^{(1)}dB=\rho\,dt
Independent BM from correlated onesW~t=Wt−ρBt1−ρ2\widetilde W_t=\dfrac{W_t-\rho B_t}{\sqrt{1-\rho^2}}dW~t=dWt−ρ dBt1−ρ2d\widetilde W_t=\dfrac{dW_t-\rho\,dB_t}{\sqrt{1-\rho^2}}W~\widetilde W is a BM independent of BB
Two correlated GBMsSt1=S01+∫0tα1Ss1 ds+∫0tσ1Ss1 dWs(1)S^1_t=S^1_0+\int_0^t\alpha_1S^1_s\,ds+\int_0^t\sigma_1S^1_s\,dW^{(1)}_s
St2=S02+∫0tα2Ss2 ds+∫0tσ2Ss2(ρ dWs(1)+1−ρ2 dWs(2))S^2_t=S^2_0+\int_0^t\alpha_2S^2_s\,ds+\int_0^t\sigma_2S^2_s\big(\rho\,dW^{(1)}_s+\sqrt{1-\rho^2}\,dW^{(2)}_s\big)
dS1=α1S1dt+σ1S1dW(1)dS^1=\alpha_1S^1dt+\sigma_1S^1dW^{(1)}
dS2=α2S2dt+σ2S2(ρ dW(1)+1−ρ2 dW(2))dS^2=\alpha_2S^2dt+\sigma_2S^2\big(\rho\,dW^{(1)}+\sqrt{1-\rho^2}\,dW^{(2)}\big)
dS1dS2=ρσ1σ2S1S2 dtdS^1dS^2=\rho\sigma_1\sigma_2S^1S^2\,dt; each is a GBM on its own
Multi-asset marketSti=S0i+∫0tαiSsi ds+∑j∫0tσijSsi dWs(j)S^i_t=S^i_0+\int_0^t\alpha_iS^i_s\,ds+\sum_j\int_0^t\sigma_{ij}S^i_s\,dW^{(j)}_sdSti=αiSti dt+Sti∑jσij dWt(j)dS^i_t=\alpha_iS^i_t\,dt+S^i_t\sum_j\sigma_{ij}\,dW^{(j)}_tUnder Q\mathbb Q: αi→r\alpha_i\to r, W(j)→W~(j)W^{(j)}\to\widetilde W^{(j)}
Product of two GBMsXtYt=X0Y0+∫0t(α1+α2+ρσ1σ2)XsYs ds+∫0tσ1XsYs dWs+∫0tσ2XsYs dBsX_tY_t=X_0Y_0+\int_0^t(\alpha_1+\alpha_2+\rho\sigma_1\sigma_2)X_sY_s\,ds+\int_0^t\sigma_1X_sY_s\,dW_s+\int_0^t\sigma_2X_sY_s\,dB_sd(XY)=XY[(α1+α2+ρσ1σ2) dt+σ1dW+σ2dB]d(XY)=XY\big[(\alpha_1+\alpha_2+\rho\sigma_1\sigma_2)\,dt+\sigma_1dW+\sigma_2dB\big]Product rule; the ρσ1σ2\rho\sigma_1\sigma_2 is dX dYdX\,dY
Ratio of two GBMs, Z=X/YZ=X/YZt=Z0+∫0t(α1−α2+σ22−ρσ1σ2)Zs ds+∫0tσ1Zs dWs−∫0tσ2Zs dBsZ_t=Z_0+\int_0^t(\alpha_1-\alpha_2+\sigma_2^2-\rho\sigma_1\sigma_2)Z_s\,ds+\int_0^t\sigma_1Z_s\,dW_s-\int_0^t\sigma_2Z_s\,dB_sdZ=Z[(α1−α2+σ22−ρσ1σ2) dt+σ1dW−σ2dB]dZ=Z\big[(\alpha_1-\alpha_2+\sigma_2^2-\rho\sigma_1\sigma_2)\,dt+\sigma_1dW-\sigma_2dB\big]Quotient rule; total vol σ12+σ22−2ρσ1σ2\sqrt{\sigma_1^2+\sigma_2^2-2\rho\sigma_1\sigma_2}. Used for a change of numeraire
Product rule (any Itô processes)XtYt=X0Y0+∫0tXs dYs+∫0tYs dXs+[X,Y]tX_tY_t=X_0Y_0+\int_0^tX_s\,dY_s+\int_0^tY_s\,dX_s+[X,Y]_td(XY)=X dY+Y dX+dX dYd(XY)=X\,dY+Y\,dX+dX\,dYTopic 15
Merge two noises (Lévy)Zt=Z0+∫0tc3 ds+∫0tk dMsZ_t=Z_0+\int_0^tc_3\,ds+\int_0^tk\,dM_sdZ=c1dW+c2dB+c3dt=k dM+c3dtdZ=c_1dW+c_2dB+c_3dt=k\,dM+c_3dtk=c12+c22+2ρc1c2k=\sqrt{c_1^2+c_2^2+2\rho c_1c_2}, dM=(c1dW+c2dB)/kdM=(c_1dW+c_2dB)/k
Key facts
  • Deterministic volatility, additive noise (BM with drift, Vasicek) ⇒ the solution is normal (Shreve Thm 4.4.9).
  • Multiplicative noise (GBM and its powers, products, ratios) ⇒ log-normal.
  • With two BMs the only new ingredient is the cross term dX dYdX\,dY: it carries ρ\rho, and vanishes when the BMs are independent.
Steps to check a solution
  1. Apply Itô to the candidate Xt=f(t,Wt)X_t=f(t,W_t) (or to f(t,X,Y)f(t,X,Y) with several BMs).
  2. Compare the dtdt and each dWdW coefficient with the SDE.
  3. Check the initial value.
Steps with several Brownian motions
  1. Write each process’s SDE and read off dW dBdW\,dB (ρ dt\rho\,dt or 0).
  2. Apply the two-dimensional Itô formula or the product / quotient rule (topic 15).
  3. Collect dtdt, dWdW, dBdB terms; if one BM is asked for, merge the noises with Lévy (topic 16).

13. How do I compute E[Wtn]\mathbb E[W_t^n] from an SDE?

Formula Itô–Doeblin with f(x)=xnf(x)=x^n
Differential formd(Wtn)=nWtn−1 dWt+12n(n−1)Wtn−2 dtd(W_t^n)=nW_t^{n-1}\,dW_t+\tfrac12n(n-1)W_t^{n-2}\,dt
Integral formWtn=∫0tnWsn−1 dWs+12n(n−1)∫0tWsn−2 dsW_t^n=\int_0^tnW_s^{n-1}\,dW_s+\tfrac12n(n-1)\int_0^tW_s^{n-2}\,ds
Key facts
nnSDEE[Wtn]\mathbb E[W_t^n]
22W dW+dt2W\,dW+dttt
33W2 dW+3W dt3W^2\,dW+3W\,dt00
44W3 dW+6W2 dt4W^3\,dW+6W^2\,dt3t23t^2
55W4 dW+10W3 dt5W^4\,dW+10W^3\,dt00
66W5 dW+15W4 dt6W^5\,dW+15W^4\,dt15t315t^3
Steps
  1. Write the integral form (W0n=0W_0^n=0).
  2. Take expectations. The dWdW integral has mean 0 because it is a martingale with square-integrable integrand (topic 10), not because it is random.
  3. Swap E\mathbb E and ∫ds\int ds (Fubini): E[Wtn]=12n(n−1)∫0tE[Wsn−2] ds\mathbb E[W_t^n]=\tfrac12n(n-1)\int_0^t\mathbb E[W_s^{n-2}]\,ds. Integrate.

14. What are the mean and variance of geometric Brownian motion?

Definition Lecture 2, slides 37–39

A random variable ceXce^X with X∼N(μ,σ2)X\sim N(\mu,\sigma^2) is log-normal. GBM is log-normal at each tt: (μ−12σ2)t+σWt∼N((μ−12σ2)t, σ2t)(\mu-\tfrac12\sigma^2)t+\sigma W_t\sim N\big((\mu-\tfrac12\sigma^2)t,\ \sigma^2t\big).

E[St]=S0eμt,Var⁡(St)=S02e2μt(eσ2t−1).\mathbb E[S_t]=S_0e^{\mu t},\qquad \operatorname{Var}(S_t)=S_0^2e^{2\mu t}\big(e^{\sigma^2t}-1\big).
Key facts
  • Normal mgf: E[eX]=em+v/2\mathbb E[e^X]=e^{m+v/2} for X∼N(m,v)X\sim N(m,v); in particular E[eaWt]=ea2t/2\mathbb E[e^{aW_t}]=e^{a^2t/2}.
  • Square the mean before subtracting; every term must carry S02S_0^2.
Steps to prove
  1. E[St]=S0e(μ−12σ2)t E[eσWt]=S0e(μ−12σ2)te12σ2t=S0eμt\mathbb E[S_t]=S_0e^{(\mu-\frac12\sigma^2)t}\,\mathbb E[e^{\sigma W_t}]=S_0e^{(\mu-\frac12\sigma^2)t}e^{\frac12\sigma^2t}=S_0e^{\mu t}.
  2. E[St2]=S02e(2μ−σ2)t E[e2σWt]=S02e(2μ+σ2)t\mathbb E[S_t^2]=S_0^2e^{(2\mu-\sigma^2)t}\,\mathbb E[e^{2\sigma W_t}]=S_0^2e^{(2\mu+\sigma^2)t}.
  3. Var⁡(St)=E[St2]−(E[St])2\operatorname{Var}(S_t)=\mathbb E[S_t^2]-(\mathbb E[S_t])^2.
Jasmine Nguyen