Quant / Finance and numerics

Stochastic volatility and interest-rate models

· Latest

The stochastic-volatility PDE, the bond pricing equation and the market price of risk, affine bond solutions, calibration, and the Vasicek short-maturity expansion.

Definition / formulaKey factsSteps

31. What PDE does an option satisfy under stochastic volatility?

Result two-factor Itô: Lecture 1 notes, “Itô in higher dimensions”

dS=μS dt+σS dW1dS=\mu S\,dt+\sigma S\,dW_1, dσ=p dt+q dW2d\sigma=p\,dt+q\,dW_2, E[dW1dW2]=ρ dt\mathbb E[dW_1dW_2]=\rho\,dt; volatility is not traded. Hedge with Π=V−ΔS−Δ1V1\Pi=V-\Delta S-\Delta_1V_1:

Vt+12σ2S2VSS+ρσqS VSσ+12q2Vσσ+rSVS+(p−λq)Vσ−rV=0.V_t+\tfrac12\sigma^2S^2V_{SS}+\rho\sigma qS\,V_{S\sigma}+\tfrac12q^2V_{\sigma\sigma}+rSV_S+(p-\lambda q)V_\sigma-rV=0.

λ(S,σ,t)\lambda(S,\sigma,t) is the market price of volatility risk.

Key facts
  • Cross term ρ b1b2VSσ\rho\,b_1b_2V_{S\sigma} with b1=σSb_1=\sigma S, b2=qb_2=q.
  • Two sources of risk need two hedging instruments: the stock and a second option.
  • With Π=V−ΔS\Pi=V-\Delta S only the dW1dW_1 risk can be removed; the dW2dW_2 risk remains unless ρ=±1\rho=\pm1. The portfolio is not riskless and no unique price follows: the market is incomplete.
Steps
  1. 2D Itô on VV and V1V_1: dtdt part LV=Vt+12σ2S2VSS+ρσqSVSσ+12q2Vσσ\mathcal L V=V_t+\tfrac12\sigma^2S^2V_{SS}+\rho\sigma qSV_{S\sigma}+\tfrac12q^2V_{\sigma\sigma}.
  2. Kill dσd\sigma risk: Δ1=Vσ/V1σ\Delta_1=V_\sigma/V_{1\sigma}. Kill dSdS risk: Δ=VS−Δ1V1S\Delta=V_S-\Delta_1V_{1S}.
  3. dΠ=rΠ dtd\Pi=r\Pi\,dt. Separate VV and V1V_1: LV+rSVS−rVVσ=LV1+rSV1S−rV1V1σ\dfrac{\mathcal LV+rSV_S-rV}{V_\sigma}=\dfrac{\mathcal LV_1+rSV_{1S}-rV_1}{V_{1\sigma}}.
  4. Both sides are independent of the option, so equal a function of (S,σ,t)(S,\sigma,t), written −(p−λq)-(p-\lambda q). Rearrange.

32. Where does the bond pricing equation come from, and what is λ\lambda?

Bond pricing equation later lectures

For dr=u(r,t) dt+w(r,t) dWdr=u(r,t)\,dt+w(r,t)\,dW:

Zt+12w2Zrr+(u−λw)Zr−rZ=0,Z(r,T;T)=1.Z_t+\tfrac12w^2Z_{rr}+(u-\lambda w)Z_r-rZ=0,\qquad Z(r,T;T)=1.

λ(r,t)\lambda(r,t) is the market price of interest-rate risk; u−λwu-\lambda w is the risk-adjusted drift.

Key facts
  • rr is not traded, so a bond can only be hedged with another bond.
  • Unhedged bond: dV−rV dt=wVr(dW+λ dt)dV-rV\,dt=wV_r(dW+\lambda\,dt). The excess return over cash is λ\lambda per unit of risk.
  • λ\lambda is the same for all maturities, otherwise there is arbitrage between bonds.
Steps · derivation with dr=dWdr=dW (u=0, w=1u=0,\ w=1)
  1. Itô: dVi=(Vi,t+12Vi,rr) dt+Vi,r dWdV_i=(V_{i,t}+\tfrac12V_{i,rr})\,dt+V_{i,r}\,dW for i=1,2i=1,2.
  2. Π=V1−ΔV2\Pi=V_1-\Delta V_2, Δ=V1,r/V2,r\Delta=V_{1,r}/V_{2,r}: riskless, so dΠ=rΠ dtd\Pi=r\Pi\,dt.
  3. Separate: V1,t+12V1,rr−rV1V1,r=V2,t+12V2,rr−rV2V2,r\dfrac{V_{1,t}+\frac12V_{1,rr}-rV_1}{V_{1,r}}=\dfrac{V_{2,t}+\frac12V_{2,rr}-rV_2}{V_{2,r}}.
  4. Left depends on T1T_1 only, right on T2T_2 only, so both equal λ(r,t)\lambda(r,t). Rearrange to Vt+12Vrr−λVr−rV=0V_t+\tfrac12V_{rr}-\lambda V_r-rV=0.

33. How do I solve for a zero-coupon bond in an affine model?

Results both checked numerically

dr=dWdr=dW with λ=λ(t)\lambda=\lambda(t), V=exp⁡(A(t;T)+rB(t;T))V=\exp\big(A(t;T)+rB(t;T)\big):

B=−(T−t),A=∫tTλ(s)(T−s) ds+(T−t)36.B=-(T-t),\qquad A=\int_t^T\lambda(s)(T-s)\,ds+\frac{(T-t)^3}{6}.

Extended Hull–White, u−λw=η(t)−γru-\lambda w=\eta(t)-\gamma r, w=cw=c, Z=eA−rBZ=e^{A-rB}:

B=1γ(1−e−γ(T−t)),A=−∫tTη(τ)B(τ;T) dτ+c22γ2((T−t)+2γe−γ(T−t)−12γe−2γ(T−t)−32γ).B=\tfrac1\gamma\big(1-e^{-\gamma(T-t)}\big),\quad A=-\int_t^T\eta(\tau)B(\tau;T)\,d\tau+\frac{c^2}{2\gamma^2}\Big((T-t)+\tfrac2\gamma e^{-\gamma(T-t)}-\tfrac1{2\gamma}e^{-2\gamma(T-t)}-\tfrac3{2\gamma}\Big).
Key facts
  • Final conditions: A(T;T)=0A(T;T)=0, B(T;T)=0B(T;T)=0 (from Z=1Z=1 for every rr).
  • The PDE is linear in rr, so the rr-terms and the rr-free terms vanish separately.
Steps
  1. Substitute Z=eA−rBZ=e^{A-rB}: Zt=(A′−rB′)ZZ_t=(A'-rB')Z, Zr=−BZZ_r=-BZ, Zrr=B2ZZ_{rr}=B^2Z.
  2. Hull–White: A′−rB′+12c2B2−(η−γr)B−r=0A'-rB'+\tfrac12c^2B^2-(\eta-\gamma r)B-r=0.
  3. Coefficient of rr: B′=γB−1B'=\gamma B-1, B(T)=0B(T)=0 → BB above.
  4. Rest: A′=ηB−12c2B2A'=\eta B-\tfrac12c^2B^2; integrate from tt to TT with A(T)=0A(T)=0 and evaluate ∫B2\int B^2.
  5. For dr=dWdr=dW (form eA+rBe^{A+rB}): rr-terms give B′=1B'=1; rest gives A′=λB−12B2A'=\lambda B-\tfrac12B^2.

34. How do I calibrate the model to today’s bond prices?

Idea both formulas checked numerically

Calibration: choose the free time-function (η\eta or λ\lambda) so the model’s bond prices at t∗t^*, with spot r∗r^*, equal the market’s for every maturity TT.

dr=dW:λ(t)=∂2∂t2log⁡VM(r∗,t∗;t)−(t−t∗).dr=dW:\quad \lambda(t)=\frac{\partial^2}{\partial t^2}\log V_M(r^*,t^*;t)-(t-t^*).Hull–White:η∗(t)=−∂2∂t2log⁡ZM(t∗;t)−γ∂∂tlog⁡ZM(t∗;t)+c22γ(1−e−2γ(t−t∗)).\text{Hull–White:}\quad \eta^*(t)=-\frac{\partial^2}{\partial t^2}\log Z_M(t^*;t)-\gamma\frac{\partial}{\partial t}\log Z_M(t^*;t)+\frac{c^2}{2\gamma}\big(1-e^{-2\gamma(t-t^*)}\big).
Key facts
  • Differentiating ∫t∗Tλ(s)(T−s) ds\int_{t^*}^T\lambda(s)(T-s)\,ds twice in TT gives λ(T)\lambda(T).
  • Hull–White: (∂T2+γ∂T)(\partial_T^2+\gamma\partial_T) applied to −∫ηB-\int\eta B gives −η(T)-\eta(T), and kills the r∗Br^*B term.
Steps
  1. Set model = market: log⁡ZM(t∗;T)=A(t∗;T)−r∗B(t∗;T)\log Z_M(t^*;T)=A(t^*;T)-r^*B(t^*;T).
  2. Differentiate twice with respect to TT (use B(T;T)=0B(T;T)=0 in Leibniz’s rule).
  3. Combine the derivatives so only the unknown function survives; rename T→tT\to t.

35. How do I expand a Vasicek bond for short maturities and get the yield?

Results yield: Financial Products & Markets, slide 144 · expansion checked numerically

Vasicek: u−λw=η−γru-\lambda w=\eta-\gamma r, constant ww. With τ=T−t\tau=T-t, expand Z∼a(r)+b(r)τ+c(r)τ2Z\sim a(r)+b(r)\tau+c(r)\tau^2:

Z∼1−rτ+12(r2−η+γr)τ2,y=−log⁡Z(t;T)T−t≈r+12(η−γr)τ+O(τ2).Z\sim1-r\tau+\tfrac12(r^2-\eta+\gamma r)\tau^2,\qquad y=-\frac{\log Z(t;T)}{T-t}\approx r+\tfrac12(\eta-\gamma r)\tau+O(\tau^2).
Key facts
  • With τ=T−t\tau=T-t: Zt=−ZτZ_t=-Z_\tau.
  • ww does not appear to this order because a′′=b′′=0a''=b''=0.
  • log⁡(1+x)≈x−12x2\log(1+x)\approx x-\tfrac12x^2 for the yield.
Steps
  1. τ0\tau^0: Z(r,T;T)=1Z(r,T;T)=1 gives a=1a=1.
  2. τ0\tau^0 of the PDE: −b+12w2a′′+(η−γr)a′−ra=0-b+\tfrac12w^2a''+(\eta-\gamma r)a'-ra=0 → b=−rb=-r.
  3. τ1\tau^1: −2c+12w2b′′+(η−γr)b′−rb=0-2c+\tfrac12w^2b''+(\eta-\gamma r)b'-rb=0 → c=12(r2−η+γr)c=\tfrac12(r^2-\eta+\gamma r).
  4. log⁡Z≈−rτ+12(r2−η+γr)τ2−12r2τ2=−rτ+12(γr−η)τ2\log Z\approx-r\tau+\tfrac12(r^2-\eta+\gamma r)\tau^2-\tfrac12r^2\tau^2=-r\tau+\tfrac12(\gamma r-\eta)\tau^2; divide by −τ-\tau.
Jasmine Nguyen