5D Library › Implied Volatility Surfaces, Skew Premia and Quantitative Risk Control of Vertical Spreads · 中文
Chapter 4 The Non-Linear Behaviour of the Greeks as Expiry Approaches
Four Greeks
The Greeks are the partial derivatives of an option’s price with respect to its inputs; they tell us what the price is sensitive to. For a European put on a non-dividend-paying underlying:
where is the standard normal density. is the change in price for a one-unit move in the underlying; is the rate of change of ; (vega) is the change in price when volatility moves, reported here per volatility point (0.01); is the change in price as time passes, taken as and reported per calendar day.
The four are tied together by the Black–Scholes partial differential equation:
Its meaning is that, in the model, time decay is the price of gamma. A long-gamma position pays every day in exchange for convexity gains when the underlying moves; if realised volatility equals implied volatility, the two cancel in expectation. So “time value drains away every day” is not in itself a reason to expect a loss: what decides the expected profit is the gap between realised and implied volatility, the underlying’s real drift, and trading costs. That is the starting point of the model in Chapter 5.
How they change with days to expiry
The program below first checks the four formulas against finite differences, then computes the Greeks of the 100-strike put in the money (underlying at 95), at the money (100) and out of the money (105) as the days left shrink from 60 to 1 (in this chapter time to expiry and daily decay are counted in calendar days, whereas the time stop of Chapters 5 and 8 counts trading days); finally it computes the net Greeks of the 100/95 bear put spread of Chapter 3 at several prices and times to expiry.
Calculation
# Greeks of a European put (closed form, checked by finite differences) as days to
# expiry (DTE) shrink, and the net Greeks of the 100/95 bear put spread. Theta per
# calendar day, vega per 1 vol point. Illustrative parameters.
import math
def ncdf(x):
return 0.5 * (1.0 + math.erf(x / math.sqrt(2.0)))
def npdf(x):
return math.exp(-0.5 * x * x) / math.sqrt(2 * math.pi)
def put(S, K, T, r, s):
d1 = (math.log(S / K) + (r + 0.5 * s * s) * T) / (s * math.sqrt(T))
d2 = d1 - s * math.sqrt(T)
price = K * math.exp(-r * T) * ncdf(-d2) - S * ncdf(-d1)
delta = ncdf(d1) - 1
gamma = npdf(d1) / (S * s * math.sqrt(T))
theta = -S * npdf(d1) * s / (2 * math.sqrt(T)) + r * K * math.exp(-r * T) * ncdf(-d2)
vega = S * npdf(d1) * math.sqrt(T)
return price, delta, gamma, theta / 365, vega / 100
def fd_check(S=100.0, K=100.0, T=30 / 365, r=0.03, s=0.22, h=1e-4):
p, d, g, th, v = put(S, K, T, r, s)
fd = ((put(S + h, K, T, r, s)[0] - put(S - h, K, T, r, s)[0]) / (2 * h),
(put(S + h, K, T, r, s)[0] - 2 * p + put(S - h, K, T, r, s)[0]) / h ** 2,
-(put(S, K, T + h, r, s)[0] - put(S, K, T - h, r, s)[0]) / (2 * h) / 365,
(put(S, K, T, r, s + h)[0] - put(S, K, T, r, s - h)[0]) / (2 * h) / 100)
return max(abs(a - b) / abs(b) for a, b in zip(fd, (d, g, th, v)))
if __name__ == "__main__":
r = 0.03
print(f"finite-difference check: largest relative error {fd_check():.1e}"
" (gamma limited by step size)")
print("put K = 100, vol 0.22 DTE: 60 30 14 7 3 1")
for S, lab in ((95, "ITM S=95"), (100, "ATM S=100"), (105, "OTM S=105")):
g = [put(S, 100, d / 365, r, 0.22) for d in (60, 30, 14, 7, 3, 1)]
for i, name in ((1, "delta"), (2, "gamma"), (3, "theta/day"), (4, "vega/pt")):
print(f" {lab:10s} {name:10s}" + "".join(f"{x[i]:8.3f}" for x in g))
th = [put(100, 100, d / 365, r, 0.22)[3] for d in (30, 7)]
print(f"ATM theta, 7 vs 30 DTE: ratio {th[1] / th[0]:.2f}"
f" (sqrt(30/7) = {math.sqrt(30 / 7):.2f})")
print("bear put spread, long 100 (vol .22) / short 95 (vol .245)")
print(" DTE S value delta gamma theta/day vega/pt")
for d in (30, 7, 3):
for S in (92.0, 95.0, 97.5, 100.0, 103.0):
a, b = put(S, 100, d / 365, r, 0.22), put(S, 95, d / 365, r, 0.245)
n = [x - y for x, y in zip(a, b)]
print(f" {d:3d} {S:5.1f} {n[0]:6.3f} {n[1]:+6.3f} {n[2]:+7.4f}"
f" {n[3]:+7.4f} {n[4]:+6.3f}")
# finite-difference check: largest relative error 3.3e-06 (gamma limited by step size)
# put K = 100, vol 0.22 DTE: 60 30 14 7 3 1
# ITM S=95 delta -0.683 -0.771 -0.873 -0.950 -0.995 -1.000
# ITM S=95 gamma 0.042 0.051 0.051 0.035 0.008 0.000
# ITM S=95 theta/day -0.019 -0.024 -0.023 -0.013 0.003 0.008
# ITM S=95 vega/pt 0.137 0.082 0.039 0.013 0.001 0.000
# ATM S=100 delta -0.460 -0.472 -0.481 -0.486 -0.491 -0.495
# ATM S=100 gamma 0.045 0.063 0.092 0.131 0.200 0.346
# ATM S=100 theta/day -0.025 -0.038 -0.057 -0.083 -0.128 -0.226
# ATM S=100 vega/pt 0.161 0.114 0.078 0.055 0.036 0.021
# OTM S=105 delta -0.259 -0.199 -0.119 -0.051 -0.007 -0.000
# OTM S=105 gamma 0.035 0.042 0.044 0.033 0.009 0.000
# OTM S=105 theta/day -0.023 -0.029 -0.031 -0.023 -0.007 -0.000
# OTM S=105 vega/pt 0.138 0.084 0.041 0.015 0.002 0.000
# ATM theta, 7 vs 30 DTE: ratio 2.19 (sqrt(30/7) = 2.07)
# bear put spread, long 100 (vol .22) / short 95 (vol .245)
# DTE S value delta gamma theta/day vega/pt
# 30 92.0 3.811 -0.244 -0.0259 +0.0244 -0.050
# 30 95.0 2.983 -0.299 -0.0091 +0.0166 -0.026
# 30 97.5 2.225 -0.300 +0.0085 +0.0052 +0.004
# 30 100.0 1.518 -0.260 +0.0219 -0.0057 +0.031
# 30 103.0 0.849 -0.184 +0.0269 -0.0129 +0.046
# 7 92.0 4.698 -0.177 -0.0806 +0.0584 -0.032
# 7 95.0 3.743 -0.464 -0.0883 +0.0746 -0.039
# 7 97.5 2.392 -0.575 +0.0102 +0.0117 +0.000
# 7 100.0 1.096 -0.425 +0.0953 -0.0539 +0.038
# 7 103.0 0.254 -0.150 +0.0706 -0.0473 +0.031
# 3 92.0 4.928 -0.077 -0.0709 +0.0504 -0.012
# 3 95.0 4.149 -0.503 -0.1808 +0.1397 -0.033
# 3 97.5 2.449 -0.777 +0.0037 +0.0178 -0.001
# 3 100.0 0.776 -0.481 +0.1881 -0.1188 +0.034
# 3 103.0 0.060 -0.066 +0.0624 -0.0433 +0.012The largest relative difference between finite differences and the formulas is : the formulas are correct.
For the at-the-money option, gamma and time decay accelerate as expiry approaches: gamma rises from 0.045 at 60 days to 0.346 at one day, and daily decay from −0.025 to −0.226. By the formula, at-the-money decay is roughly proportional to : with seven days left it is 2.19 times the decay at 30 days, close to (the difference comes from the interest term). Vega falls steadily as maturity shortens, from 0.161 to 0.021.
In-the-money and out-of-the-money options behave differently: gamma and decay first rise and then fall, peaking with two to four weeks left before collapsing towards zero, as the option becomes “almost certainly exercised or almost certainly worthless”. Close to expiry a deep in-the-money European put even shows positive time decay (+0.003 at three days), because its value approaches the discounted strike and the passage of time shrinks the discount.
The net Greeks of the spread depend on where the underlying sits between the two strikes, and they grow as expiry approaches:
- Near the long strike of 100, the spread has positive net gamma and negative net decay: 0.0057 a day with 30 days left, 0.0539 with seven and 0.1188 with three, about 21 times larger.
- Near the short strike of 95 the signs reverse: net gamma is negative and the passage of time helps (+0.0746 a day with seven days left), because the spread is converging to its maximum value of 5.
- Near the midpoint of 97.5, net gamma and net vega are close to zero and the spread acts as a pure directional position with the largest delta (−0.777 with three days left).
Figure 2 shows these changes. The left panel plots the spread’s value against the underlying: the fewer days left, the closer the curve lies to the expiry payoff; the right panel plots net daily decay, which changes sign between the two strikes and grows sharper as expiry nears.
Note
Where the intuition behind time stops comes from. Traders say that if a spread has done nothing in its first week or two it is time to leave, because decay accelerates later. The numbers above show this is partly right: if the underlying stays near the long strike, net daily decay does grow from 0.006 to more than 0.05; but if the underlying has already moved towards the short strike, the passage of time helps. Whether a time stop makes sense therefore depends on where the underlying is, not just on how many days have passed. Chapter 5 turns this into an optimal stopping problem.
Chapter summary
The Greeks are tied together by the Black–Scholes equation, and in the model time decay is the price of gamma. At-the-money gamma and decay accelerate roughly as , while in- and out-of-the-money Greeks rise and then fall. The net Greeks of a bear put spread change sign with the position of the underlying: near the long strike net decay is negative and grows quickly, near the short strike it is positive. Whether a time stop is reasonable therefore depends on the state, not only on the count of days.
Fan, Y. (2026). Implied Volatility Surfaces, Skew Premia and Quantitative Risk Control of Vertical Spreads: Microstructure Pricing and Time-Stop Dynamics under Non-Gaussian Tails [期权隐含波动率曲面、偏度溢价与垂直价差结构的定量风控] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.23796765 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).