Stock price S0 at time 0 and S1(H)=uS0, S1(T)=dS0 at time 1, with P(H)=p, P(T)=q=1−p, money market rate r, and 0<d<1+r<u (no arbitrage). To replicate a derivative paying V1 at time 1 (e.g. a European call, V1=(S1−K)+), start with wealth X0 and hold Δ0 shares. The cash position X0−Δ0S0 grows by 1+r,
For a process Let (Ω,F,P) with filtration Ft, 0≤t≤T, Z>0 a.s., E[Z]=1, P~(A)=∫AZdP, and
Z(t)=E[Z∣Ft]
which is a martingale. For 0≤s≤t≤T and YFt-measurable,
E~[Y]=E[YZ(t)],E~[Y∣Fs]=Z(s)1E[YZ(t)∣Fs]
Girsanov Let W(t) be a Brownian motion on (Ω,F,P) with filtration Ft, Θ(t) an adapted process, and
Z(t)=exp(−∫0tΘdW−21∫0tΘ2du),W~(t)=W(t)+∫0tΘdu
Assume E∫0TΘ2Z2du<∞. Then with Z=Z(T), E[Z]=1, and under P~ the process W~ is a Brownian motion.
Risk-Neutral Measure
Let dS=αSdt+σSdW, with α the mean rate of return and σ the volatility, equivalently
S(t)=S(0)exp(∫0tσdW+∫0t(α−21σ2)ds)
With interest rate R(t), the money market M(t)=e∫0tRds (dM=RMdt) and the discount process D=1/M, dD=−RDdt. D has zero quadratic variation, so by the product rule
d(DS)=(α−R)DSdt+σDSdW=σDS[Θdt+dW],Θ=σα−R
Θ is the market price of risk, and α−R is the mean rate of return of the discounted stock price. Applying Girsanov with this Θ, dW~=Θdt+dW and
d(DS)=σDSdW~
so the discounted stock price is a P~-martingale, and under P~
Hold Δ(t) shares in a portfolio of total value X(t), so ΔS is invested in the stock and X−ΔS in the money market. The capital gain is Δ(t)[S(t+δt)−S(t)] and the interest gain (X−ΔS)Rδt, so
The price v(t,s) of a derivative whose payoff depends on S(T) solves the BSM equation
∂t∂v=rv−rs∂s∂v−21σ2s2∂s2∂2v
Barrier Options
A down-and-out call with barrier B≤K pays (S(T)−K)+ unless S(t)≤B for some t≤T, in which case it pays 0. The payoff depends on the path, but augmenting S with
Y(t)={10S(u)>B∀u∈[0,t]S(u)≤B∃u∈[0,t]
makes (S,Y) Markov, with V(T)=(S(T)−K)+Y(T), so
v(t,S(t),Y(t))=E~[e−r(T−t)V(T)Ft]
Once knocked out, v(t,s,0)=0. Let v(t,s):=v(t,s,1), which satisfies BSM on [0,T]×[B,∞) with
v(t,B)=0,0≤t≤T,v(T,s)=0,B≤s≤K,v(T,s)=s−K,s≥K
If v(t,s) solves BSM, so does s2αv(t,c/s) for any constant c, with 2α=1−σ22r. With c(t,s) the vanilla call,
v(t,s)=c(t,s)−(Bs)2αc(t,sB2)
At s=B the two terms cancel, and at T for s≥B, B2/s≤B≤K so the second term is 0.