Deriving Black-Scholes

94 points by meysamazad a day ago on hackernews | 55 comments

Even if it feels unintuitive, the price of an option does not depend on whether the underlying moons or tanks. Under some reasonable market hypotheses, we can build a fully hedged portfolio by holding the underlying and shorting the option. Since it is riskless, by no-arbitrage assumption, it must return the same as the risk-free interest rate. That allows to put together an equation (the Black-Scholes equation), and solve for the option price (the Black-Scholes formula).

Model §

A European call gives the right, but not the obligation, to buy an underlying at a fixed price K ⁣K\!, the strike, on a fixed date T ⁣T\!, the maturity. Its value V ⁣V\! is the premium you need to pay for having that optionality, and it depends on time and on the underlying stock price S ⁣S\!. At maturity it is the payoff1 1 For example, pay $5 today for the right to buy one AMZN share for $200 in a month. If AMZN then trades at $230, you buy at $200 and the option is worth $30. If it trades at $180, you walk away and the option is worth nothing. 

V(T,S)=max⁡(S−K,0). V(T,S)=\max(S-K,0).

Stock moves scale with price, so it is common to model the returns instead of the price. Over a short time the return is a small drift plus noise. The noise is the sum of many small, unpredictable2 2 Weak-form efficient market hypothesis: past prices do not predict future moves.  sources. Such sum can be modeled as a Brownian motion W ⁣W\!,3 3 By the central limit theorem, the sum of many small independent variables is normal.  so the return is

dSS=μ dt+σ dW ⁣, \frac{dS}{S}=\mu\,dt+\sigma\,dW\!,

with drift μ\mu and volatility σ ⁣\sigma\!. For our model, we will assume constant drift, volatility and interest rate r ⁣r\!. We will also assume “perfect” trading, with fractional shares allowed, no fees, no taxes, no dividends, and no arbitrage.

Hedged portfolio §

The trick of Black-Scholes is to build a fully hedged portfolio combining the option and the underlying in the right proportion. By the no-arbitrage hypothesis, its returns must be the same as the interest rate r ⁣r\!, and that way we can put together an equation.

When the stock moves a little, the option moves by Δ\Delta times as much, with

Δ=∂V∂S. \Delta=\frac{\partial V}{\partial S}.

If you short one option and hold Δ\Delta shares, then the two moves cancel. This is a delta hedge.

One step. From today (left) to maturity (right), the stock moves from $100 to $110 or $90, and a call at $100 pays $10 or $0. Half a share minus the call is worth $45 either way, so it is riskless. Without interest it is also worth $45 today, so the call costs $50 − $45 = $5.

stock$100call$5hedge$45stock$110call$10hedge$45stock$90call$0hedge$45

Note that Δ\Delta changes with the stock price and time. The portfolio is riskless only over an instant, and stays so only if it is rebalanced continuously.

Black-Scholes equation §

Use the Taylor expansion of the option value and keep the terms up to order dtdt. Since (dW)2=dt(dW)^2=dt, the (dS)2(dS)^2 term is one of them,

dV=∂V∂tdt+∂V∂SdS+12∂2V∂S2(dS)2. dV=\frac{\partial V}{\partial t}dt+\frac{\partial V}{\partial S}dS +\frac{1}{2}\frac{\partial^2V}{\partial S^2}(dS)^2.

Substituting the stock model gives

dV=(μS∂V∂S+∂V∂t+12σ2S2∂2V∂S2)dt+σS∂V∂S dW. dV=\left(\mu S\frac{\partial V}{\partial S}+\frac{\partial V}{\partial t} +\frac{1}{2}\sigma^2S^2\frac{\partial^2V}{\partial S^2}\right)dt +\sigma S\frac{\partial V}{\partial S}\,dW.

Now, we can use the same hedged portfolio Π\Pi as before, short one option and long Δ\Delta shares, which is worth −V+ΔS ⁣-V+\Delta S\!. Holding Δ\Delta fixed over an instant,

dΠ=−dV+ΔdS, d\Pi=-dV+\Delta dS,

and substituting dSdS and dV ⁣dV\! gives

dΠ=(−∂V∂t−12σ2S2∂2V∂S2)dt. d\Pi=\left(-\frac{\partial V}{\partial t} -\frac{1}{2}\sigma^2S^2\frac{\partial^2V}{\partial S^2}\right)dt.

See how noise and drift cancel. No dW ⁣dW\! term is left, and everything else is known at time tt, so over the next instant the portfolio change is fixed.4 4 A known return with no randomness is precisely what riskless means.  We’ve built a riskless portfolio, that by the no-arbitrage assumption, it must earn the risk-free rate, dΠ=rΠ dt.d\Pi=r\Pi\,dt. Equating both expressions gives us the Black-Scholes equation

∂V∂t+rS∂V∂S+12σ2S2∂2V∂S2=rV. \frac{\partial V}{\partial t}+rS\frac{\partial V}{\partial S} +\frac{1}{2}\sigma^2S^2\frac{\partial^2V}{\partial S^2}=rV.

Note that μ\mu is gone, so the option price does not depend on the drift.

Black-Scholes formula §

I won’t bore you with the technical details,5 5 For the details, see John C. Hull, Options, Futures, and Other Derivatives, 11th edition, Pearson, 2021. The Bible of derivatives.  but the above equation can be solved by a change of variables to turn it into the heat equation, whose solution is known. Define

τ=T−t,x=ln⁡S+(r−12σ2)τ,V(t,S)=e−rτw(τ,x), \tau=T-t,\quad x=\ln S+\left(r-\frac{1}{2}\sigma^2\right)\tau,\quad V(t,S)=e^{-r\tau}w(\tau,x),

where ww is the option value at maturity. Substituting, all terms but two cancel, and we get the heat equation

∂w∂τ=12σ2∂2w∂x2. \frac{\partial w}{\partial\tau}=\frac{1}{2}\sigma^2\frac{\partial^2w}{\partial x^2}.

With the payoff as initial condition, the solution is

w(τ,x)=12πσ2τ∫−∞∞max⁡(ey−K,0) exp⁡(−(y−x)22σ2τ)dy. w(\tau,x)=\frac{1}{\sqrt{2\pi\sigma^2\tau}}\int_{-\infty}^{\infty} \max(e^y-K,0)\,\exp\left(-\frac{(y-x)^2}{2\sigma^2\tau}\right)dy.

Completing the squares gives the Black-Scholes formula

V(t,S)=S N(d1)−Ke−rτN(d2), V(t,S)=S\,N(d_1)-Ke^{-r\tau}N(d_2),

where NN is the standard normal CDF and

d1=ln⁡(S/K)+(r+12σ2)τστ,d2=d1−στ. d_1=\frac{\ln(S/K)+\left(r+\frac{1}{2}\sigma^2\right)\tau}{\sigma\sqrt{\tau}}, \qquad d_2=d_1-\sigma\sqrt{\tau}.

  • N(d1)N(d_1) is the hedge ratio Δ\Delta, so the first term represents the price of an asset-or-nothing call, which pays the share if the call ends in the money.
  • N(d2)N(d_2) is the risk-neutral probability of exercise, so the second term is the present value of the expected strike payment.

That’s all, lads, go make Ken Griffin broke.