Difference between revisions of "Programming/Kdb/Labs/Option pricing"
From Thalesians Wiki
< Programming | Kdb | Labs
Line 16: | Line 16: | ||
C(S_t, t) = e^{-r\tau} [F_t N(d_1) - K N(d_2)] | C(S_t, t) = e^{-r\tau} [F_t N(d_1) - K N(d_2)] | ||
</math></center> | </math></center> | ||
where <math>F = S_t e^{(r - q)\tau}</math> is the forward price and | where <math>\tau = T - t</math> is the time to maturity, <math>F = S_t e^{(r - q)\tau}</math> is the forward price, and | ||
<center><math> | <center><math> | ||
d_1 = \frac{1}{\sigma\sqrt{\tau}} \left[ \ln\left(\frac{S_t}{K}\right) + \left(r - q + \frac{1}{2}\sigma^2\right)\tau \right] | d_1 = \frac{1}{\sigma\sqrt{\tau}} \left[ \ln\left(\frac{S_t}{K}\right) + \left(r - q + \frac{1}{2}\sigma^2\right)\tau \right] |
Revision as of 22:36, 17 June 2021
Recall the celebrated Black-Scholes equation
Here
- is a time in years; we generally use as now;
- is the value of the option;
- is the price of the underlying asset at time ;
- is the volatility — the standard deviation of the asset's returns;
- is the annualized risk-free interest rate, continuously compounded;
- is the annualized (continuous) dividend yield.
The solution of this equation depends on the payoff of the option — the terminal condition. In particular, if at the time of expiration, , the payoff is given by , in other words, the option is a European call option, then the value of the option at time is given by the Black-Scholes formula:
where is the time to maturity, is the forward price, and
and