Sub topic 3
Put-call parity and synthetic positions
This chapter assumes you know present value and compounding, the payoffs of calls and puts, and the no-arbitrage principle: two positions with identical future payoffs must cost the same today.
Put-call parity
For European options on a non-dividend-paying stock, put-call parity states:
c + X/(1+r)^T = p + S
Here c is the call price, p the put price, S the stock price, X the strike, r the risk-free rate, and T the time to expiry.
def put_from_call(call, spot, strike, r, t):
"""European put price from put-call parity: c + X/(1+r)^T = p + S."""
return call + strike / (1 + r) ** t - spot
print(round(put_from_call(call=8.0, spot=100, strike=100, r=0.05, t=1.0), 4)) # 3.2381Synthetic positions
Rearranging parity builds one position from the others:
- Synthetic long call: long stock, long put, short risk-free bond.
- Synthetic long put: long call, short stock, long risk-free bond.
Covered calls and protective puts
- A covered call (long stock, short call) earns the premium, but gains above the strike are given up.
- A protective put (long stock, long put) limits losses below the strike, at the cost of the premium.
Valuing an option with a one-period binomial tree
The stock either rises by factor u or falls by factor d. Risk-neutral probability is pi = (1+r-d)/(u-d), and the option value is the discounted expected payoff.
def binomial_call(s0, x, u, d, r):
pi = (1 + r - d) / (u - d)
c_up = max(s0 * u - x, 0.0)
c_down = max(s0 * d - x, 0.0)
return (pi * c_up + (1 - pi) * c_down) / (1 + r)
print(round(binomial_call(100, 100, 1.2, 0.9, 0.05), 4)) # 9.5238Black-Scholes-Merton
The model assumes lognormal stock prices, constant volatility, no transaction costs, and European exercise. Its inputs are S, X, r, T, volatility sigma, and dividend yield q.
import math
def norm_cdf(x):
return 0.5 * (1 + math.erf(x / math.sqrt(2)))
def bsm_call(s, x, r, t, sigma, q=0.0):
d1 = (math.log(s / x) + (r - q + 0.5 * sigma ** 2) * t) / (sigma * math.sqrt(t))
d2 = d1 - sigma * math.sqrt(t)
return s * math.exp(-q * t) * norm_cdf(d1) - x * math.exp(-r * t) * norm_cdf(d2)
print(round(bsm_call(100, 100, 0.05, 1.0, 0.2), 4)) # 10.4506Greeks
| Greek | Measures | Long call sign |
|---|---|---|
| Delta | Change in option price per unit change in S | Positive, 0 to 1 |
| Gamma | Change in delta per unit change in S | Positive |
| Vega | Sensitivity to volatility | Positive |
| Theta | Value lost per day from time decay | Negative |
| Rho | Sensitivity to the interest rate | Positive for a call |
A trader who sells a call with delta 0.6 hedges by buying 0.6 shares per option.
Swaps and the plain vanilla interest rate swap
In a plain vanilla swap, one party pays a fixed rate and receives a floating rate on the same notional. Its initial value is zero, so the fixed rate is set so that the swap is at par:
def swap_fixed_rate(discount_factors):
return (1 - discount_factors[-1]) / sum(discount_factors)
print(round(swap_fixed_rate([0.98, 0.95, 0.92]), 6)) # 0.02807After inception, the swap value equals the fixed-rate bond value minus the floating-rate bond value.
Currency and equity swaps, and credit default swaps
- A currency swap exchanges principal and interest in two currencies.
- An equity swap exchanges an equity index return for a fixed or floating rate.
- A credit default swap: the protection buyer pays a periodic premium, and the seller pays if a credit event occurs.
Exercise
A call costs 6.50 with S = 50, X = 50, r = 4%, and T = 0.5 years. What is the put price?
Show answer
About 5.52. Compute 50/1.04^0.5 = 49.0196, then p = 6.50 + 49.0196 - 50 = 5.5196.