5D Library › 做市商伽马敞口、零日到期期权与波动率收割动力学 · English
第六章 方差互换:复制、偏斜、跳跃与凸性
直接交易方差
第四、五章通过带行权价的期权交易波动率,这把对波动率的看法和对价格终点的看法混在了一起。方差互换去掉了后者:到期时它支付日对数收益的已实现方差与期初固定的执行价之差。它是「收割波动率」最干净的工具,它的理论也是看清收成从何而来、代价是什么的最干净的地方。
推导
复制。 利率为零、远期为 时,已实现方差的支付可以用一个按 加权的虚值期权静态组合,加上一个动态远期头寸来复制,由此得到公允方差执行价 (Carr and Madan 1998; Demeterfi et al. 1999; Britten-Jones and Neuberger 2000)。权重偏向低行权价:按每一元期权价格计,行权价 80 的权重是行权价 100 的 倍。
推导
# Chapter 6. Replicating a variance swap with a strip of options (Carr-Madan /
# Demeterfi- Derman-Kamal-Zou). With r = 0 and forward F, the fair variance
# strike is
# K_var = (2 / T) x [ integral_0^F P(K) / K^2 dK + integral_F^inf C(K) / K^2
# dK ].
# A: with a flat smile the strip must return sigma^2; we check the error from
# strike
# spacing and from truncating the strike range.
# B: with a skew the strip prices variance ABOVE at-the-money variance.
# C: the strip replicates realised variance only for continuous paths. A jump
# J in the
# log price pays the hedged strip 2 (e^J - 1 - J), but realised variance
# counts J^2.
import math
F, T = 100.0, 30 / 252
def Phi(x):
return 0.5 * (1.0 + math.erf(x / math.sqrt(2.0)))
def bs(K, sig, call):
sd = sig * math.sqrt(T)
d1 = (math.log(F / K) + 0.5 * sd * sd) / sd
d2 = d1 - sd
return F * Phi(d1) - K * Phi(d2) if call else K * Phi(-d2) - F * Phi(-d1)
def kvar(vol, lo, hi, dk):
n = int(round((hi - lo) / dk))
tot = 0.0
for i in range(n + 1):
K = lo + i * dk
w = 0.5 if i in (0, n) else 1.0
px = bs(K, vol(K), K >= F)
tot += w * px / (K * K) * dk
return 2.0 / T * tot
if __name__ == "__main__":
flat = lambda K: 0.20
print(
"A. Flat 0.20 smile: fair variance strike should be 0.040000 (vol"
" 0.2000)"
)
print(
" strike range spacing K_var implied vol error in vol"
" points"
)
for lo, hi in ((95, 105), (90, 110), (80, 120), (50, 150)):
for dk in (5.0, 1.0, 0.25):
kv = kvar(flat, lo, hi, dk)
print(
" {:>3}-{:<3} {:5.2f} {:.6f} {:.4f} "
" {:+.2f}".format(
lo,
hi,
dk,
kv,
math.sqrt(kv),
100 * (math.sqrt(kv) - 0.20),
)
)
print(
"\nB. Skewed smile: vol(K) = 0.20 - b x ln(K / F), kept between 0.05"
" and 0.60"
)
print(" skew b ATM vol variance-swap vol difference")
for b in (0.0, 0.25, 0.5, 1.0):
sk = lambda K, b=b: min(0.60, max(0.05, 0.20 - b * math.log(K / F)))
kv = kvar(sk, 20, 300, 0.25)
print(" {:5.2f} {:.4f} {:.4f} {:+.4f}".format(
b, sk(F), math.sqrt(kv), math.sqrt(kv) - sk(F)))
print("\nC. One jump of size J in the log price")
print(
" J realised J^2 strip pays 2(e^J-1-J) strip / realised"
)
for J in (-0.20, -0.10, -0.05, 0.05, 0.10):
strip = 2 * (math.exp(J) - 1 - J)
print(
" {:+.2f} {:.6f} {:.6f} {:.4f}".format(
J, J * J, strip, strip / (J * J)
)
)
print(
"\nReading: a down-jump pays the hedged strip LESS than the variance"
" it adds"
)
print(
"(the gap is about J^3 / 3), so the seller of a variance swap who"
" hedges with"
)
print(
"options loses on crashes even when perfectly hedged against"
" diffusion."
)
# A. Flat 0.20 smile: fair variance strike should be 0.040000 (vol 0.2000)
# strike range spacing K_var implied vol error in vol points
# 95-105 5.00 0.031074 0.1763 -2.37
# 95-105 1.00 0.029280 0.1711 -2.89
# 95-105 0.25 0.029211 0.1709 -2.91
# 90-110 5.00 0.040923 0.2023 +0.23
# 90-110 1.00 0.038049 0.1951 -0.49
# 90-110 0.25 0.037937 0.1948 -0.52
# 80-120 5.00 0.043455 0.2085 +0.85
# 80-120 1.00 0.040109 0.2003 +0.03
# 80-120 0.25 0.039978 0.1999 -0.01
# 50-150 5.00 0.043497 0.2086 +0.86
# 50-150 1.00 0.040140 0.2003 +0.03
# 50-150 0.25 0.040009 0.2000 +0.00
#
# B. Skewed smile: vol(K) = 0.20 - b x ln(K / F), kept between 0.05 and 0.60
# skew b ATM vol variance-swap vol difference
# 0.00 0.2000 0.2000 +0.0000
# 0.25 0.2000 0.2030 +0.0030
# 0.50 0.2000 0.2120 +0.0120
# 1.00 0.2000 0.2590 +0.0590
#
# C. One jump of size J in the log price
# J realised J^2 strip pays 2(e^J-1-J) strip / realised
# -0.20 0.040000 0.037462 0.9365
# -0.10 0.010000 0.009675 0.9675
# -0.05 0.002500 0.002459 0.9835
# +0.05 0.002500 0.002542 1.0169
# +0.10 0.010000 0.010342 1.0342
#
# Reading: a down-jump pays the hedged strip LESS than the variance it adds
# (the gap is about J^3 / 3), so the seller of a variance swap who hedges with
# options loses on crashes even when perfectly hedged against diffusion.A 段说明这个公式原则上精确、实践中脆弱。在 0.20 的平坦微笑下,从 50 到 150、间距 0.25 的期权条带给出的答案准确到波动率点的小数点后两位;同一范围、间距 5.00 时高估 +0.86 个波动率点。截断比间距更要紧:从 95 到 105 的条带无论取样多细都低估 −2.91 个波动率点,因为它漏掉了承担复制任务的两翼。窄条带不是方差互换。
B 段说明方差的额外价格从何而来。在偏斜的微笑下,条带对方差的定价高于平值方差:每单位对数价值度偏斜 0.25 时高 +0.0030,0.50 时高 +0.0120,1.00 时高 +0.0590。这个差额是市场对下行波动的定价,通过认沽上的 权重收取。
C 段是对卖方最要紧的结果。复制对连续路径成立。对数价格的一次跳跃 使已实现方差增加 ,却只付给已对冲的条带 ,短缺约为 。−20% 的跳跃付给条带的只是它增加的方差的 0.9365;−10% 的跳跃为 0.9675。所以用条带对冲的方差互换卖方在每一次崩盘中都亏钱,即使他对扩散完全对冲——对冲恰好在卖方最害怕的事件中付得不够。向上跳跃会略微多付(+5% 时为 1.0169),但指数的跳跃大多向下。
平均而言,方差不等于波动率的平方
波动率互换支付的是已实现波动率而不是方差。一个常见的捷径把它的执行价报成方差执行价的平方根。第十四段程序说明这为什么是错的。
推导
# Chapter 6. The variance premium and the convexity of variance. Realised
# 30-day volatility sigma_R is uncertain: ln sigma_R ~ Normal(ln 0.15,
# 0.35^2), plus with probability 0.10 a month contains a gap that adds 0.03^2
# x 12 to annualised variance. A variance swap pays sigma_R^2 - K_var; a
# volatility swap pays sigma_R - K_vol. Question 1: is the fair vol-swap
# strike the square root of the fair variance strike? Question 2: if the
# market quotes variance at the fair value plus a premium, what
# does a SHORT variance swap look like, and a short vol swap at
# the same implied level? 200,000 simulated months, fixed seed.
import math
import random
def months(n, rng):
out = []
for _ in range(n):
s = math.exp(rng.gauss(math.log(0.15), 0.35))
v = s * s + (0.03 ** 2 * 12 if rng.random() < 0.10 else 0.0)
out.append(v)
return out
def summary(p):
n = len(p)
m = sum(p) / n
sd = math.sqrt(sum((x - m) ** 2 for x in p) / (n - 1))
sk = sum((x - m) ** 3 for x in p) / n / sd ** 3
return m, sd, sk, sum(x > 0 for x in p) / n, min(p)
if __name__ == "__main__":
rng = random.Random(56014)
v = months(200000, rng)
ev = sum(v) / len(v)
evol = sum(math.sqrt(x) for x in v) / len(v)
print("1. Fair strikes with no premium")
print(
" fair variance strike E[sigma^2] {:.5f} (vol {:.4f})"
.format(ev, math.sqrt(ev))
)
print(" fair vol-swap strike E[sigma] {:.4f}".format(evol))
print(
" convexity gap sqrt(E[s^2]) - E[s] {:+.4f} ({:.1f} vol"
" points)".format(math.sqrt(ev) - evol, 100 * (math.sqrt(ev) - evol))
)
kvar = ev * 1.30
print("\n2. Market quotes variance 30 % above its fair value:")
print(
" K_var = {:.5f} (implied vol {:.4f})".format(kvar, math.sqrt(kvar))
)
print(
" payoff per month, scaled so each position has vega 1 at the"
" implied vol"
)
print(
" position mean sd skew win rate "
" worst"
)
var_p = [(kvar - x) / (2 * math.sqrt(kvar)) for x in v]
vol_p = [math.sqrt(kvar) - math.sqrt(x) for x in v]
vol_fair = [
evol * (math.sqrt(kvar) / math.sqrt(ev)) - math.sqrt(x) for x in v
]
for name, p in (("short variance swap at K_var", var_p),
("short vol swap at sqrt(K_var)", vol_p),
("short vol swap, same % premium", vol_fair)):
m, sd, sk, w, lo = summary(p)
print(
" {:<32}{:+.4f} {:.4f} {:+5.2f} {:6.3f} {:+.4f}".format(
name, m, sd, sk, w, lo
)
)
print(
"\nReading: quoting a vol swap at the square root of the variance"
" strike"
)
print(
"overprices it by the convexity gap, which a seller collects as if it"
" were"
)
print(
"premium. At a like-for-like premium the short variance swap"
" carries the"
)
print("heavier left tail, because variance is convex in volatility.")
# 1. Fair strikes with no premium
# fair variance strike E[sigma^2] 0.02991 (vol 0.1729)
# fair vol-swap strike E[sigma] 0.1630
# convexity gap sqrt(E[s^2]) - E[s] +0.0099 (1.0 vol points)
#
# 2. Market quotes variance 30 % above its fair value:
# K_var = 0.03888 (implied vol 0.1972)
# payoff per month, scaled so each position has vega 1 at the implied vol
# position mean sd skew win rate worst
# short variance swap at K_var +0.0228 0.0588 -2.79 0.766 -1.4574
# short vol swap at sqrt(K_var) +0.0342 0.0578 -1.08 0.766 -0.5862
# short vol swap, same % premium +0.0228 0.0578 -1.08 0.709 -0.5975
#
# Reading: quoting a vol swap at the square root of the variance strike
# overprices it by the convexity gap, which a seller collects as if it were
# premium. At a like-for-like premium the short variance swap carries the
# heavier left tail, because variance is convex in volatility.即使完全没有溢价,公允方差执行价对应的波动率是 0.1729,而公允的波动率互换执行价是 0.1630:凸性缺口为 +0.0099,约 1.0 个波动率点。由詹森不等式,,只有在波动率确定时才取等号。按 报价的波动率互换被高估了这个缺口,卖方会把它当作溢价收进来。
第 2 部分把方差报价定在其公允价值之上 30%,比较三个具有相同 vega 的空头头寸。在同等溢价下,空头方差互换与空头波动率互换的均值相同,每月 +0.0228,但方差互换的偏度为 −2.79,对 −1.08,最差的一个月为 −1.4574,对 −0.5975。因为方差是波动率的凸函数,方差卖方做空了这份凸性:同样的溢价,更重的左尾。
证据
已知的情况。 Carr 与 Wu 用期权价格合成方差互换报价,发现标普 500 与标普 100 的方差风险溢价显著为负——方差卖方平均获得报酬——溢价随时间变化,且不能被标准风险因子解释 (Carr and Wu 2009)。复制公式及其跳跃误差在 Demeterfi、Derman、Kamal 与 Zou 中推导 (Demeterfi et al. 1999);它所依赖的无模型隐含方差来自 Carr 与 Madan,以及 Britten-Jones 与 Neuberger (Carr and Madan 1998; Britten-Jones and Neuberger 2000)。
「收割波动率」收割的是什么
把第四到第六章的算术放在一起,就知道收成是什么。方差卖方平均赚取隐含方差与已实现方差之差——对指数期权而言,在长样本上这是一份真实的溢价。这份溢价是为承担三样东西支付的:复制无法对冲的跳跃、方差对波动率的凸性,以及第四章的估计风险。一份不报出跳跃误差、凸性缺口与注码的「收成」,不是收成,而是对好年份的描述。
假说 · 尚未验证
作者的假说(尚未验证): 在指数数据中,用挂牌期权条带对冲的空头方差互换,在多年上测得的已实现盈亏接近合成的方差溢价减去一个跳跃误差项,而这个误差项集中在少数几个月份;并且这些月份在总短缺中所占的份额大于它们在月份数中所占的份额。什么结果会证明它错:短缺在各月之间均匀分布,或者除条带截断能解释的部分外没有短缺。
小结
方差互换可以用按 加权的期权条带复制;对连续路径复制是精确的,但对行权价范围(窄条带会低估几个波动率点)和间距敏感。偏斜把公允方差执行价抬到平值方差之上。向下跳跃付给已对冲条带的少于它增加的方差,约少 ,所以已对冲的卖方在崩盘中亏钱。波动率互换不是方差互换的平方根:詹森不等式在本例中打开了约 1.0 个波动率点的凸性缺口,而在同等溢价下,空头方差头寸承担更重的尾部。方差溢价是真实的;它是承担跳跃、凸性与估计风险的价格,不是白拿的收益。
参考文献
Fan, Y. (2026). Dealer Gamma Exposure, Zero-Day Options and Volatility Harvesting Dynamics: Delta-Hedging Feedback Loops, Strike Pinning, Iron Condor Tail Ruin and Variance Swap Replication [做市商伽马敞口、零日到期期权与波动率收割动力学] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090160 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).