Interest Rate Volatility, Part 7: The Swaption Cube#
The earlier pages price one swaption with the smile for its expiry and tenor. A book has swaptions for every expiry, tenor and strike, and the market quotes only some of them. The swaption volatility cube is the object that supplies a volatility for any trade: a grid by option expiry and swap tenor, with a smile in the strike at each point of it. It is the volatility input of every rates product that pays on a swap rate, from a European swaption to a Bermudan and a CMS spread option, so its construction, its consistency and its interpolation decide the value of much of a rates book. This page sets out how the cube is built from quotes and SABR smiles, how a volatility is read from it for a trade that is not on the grid, the checks that the cube must pass, and where it feeds the other pages of the series. It is the seventh page on rates volatility.
What the cube is#
A point of the cube is a European swaption: an option that expires in \(e\) years to enter a swap of tenor \(t\) years, so “5Y x 10Y” expires in 5 years and the swap runs for the following 10. The cube has three dimensions.
Expiry. From a few weeks to 30 years, with quotes at standard points such as 1M, 3M, 6M, 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 15Y, 20Y and 30Y.
Tenor. The length of the underlying swap, usually 1Y to 30Y at points such as 1Y, 2Y, 3Y, 5Y, 7Y, 10Y, 15Y, 20Y and 30Y.
Strike. Measured as an offset from the forward swap rate of that expiry and tenor, in basis points, and not as an absolute rate, so that the smile of each point is centred on its own forward.
The market quotes the at-the-money matrix, the normal volatilities of the 5Y x 5Y and the rest, with the smile as differences from it at fixed strike offsets, for a subset of expiries and tenors. The matrix and the smile slices are not enough on their own. A trade needs a volatility at an expiry, tenor and strike that were not quoted, and every strike needs a smile that is free of arbitrage. The cube is the model that supplies both.
Building it#
The usual construction puts the SABR model of Interest Rate Volatility, Part 3: SABR Model & Calibration on each node of the grid.
At each node, find the forward swap rate and the annuity from the curve (Interest Rate Curves, Part 1: Instruments & Bootstrapping).
Fix the backbone \(\beta\) (Interest Rate Volatility, Part 4: SABR Backbone & Beta), and fit \(\rho\) and \(\nu\) to the quoted smile.
Solve for \(\alpha\) so that the at-the-money volatility matches the quote exactly (Interest Rate Volatility, Part 5: Hagan’s Approximation).
The result is three matrices, \(\alpha\), \(\rho\) and \(\nu\), on the same grid as the at-the-money quotes. Where the smile is not quoted at a node, \(\rho\) and \(\nu\) are taken from neighbouring nodes. The fit of each node is a small non-linear regression of the kind in Regression and Fitting, Part 3: Non-linear Regression, and the parameters that it finds have the standard errors and the weak directions that such a fit has.
Reading a volatility from the cube#
For a swaption with expiry \(e\), tenor \(t\) and strike \(K\), that is not a node:
Compute the forward swap rate \(F\) and the annuity \(A\) for that expiry and tenor from the curve.
Find the four nodes that surround \((e, t)\).
Interpolate the smile to \((e, t)\). There are three common ways: interpolate the SABR parameters, interpolate the at-the-money volatility with \(\rho\) and \(\nu\) and solve for \(\alpha\), or compute the volatility at the same strike offset at each of the four nodes and interpolate the four volatilities.
Evaluate the smile at \(K - F\), convert to a price with the Black or the Bachelier formula (Interest Rate Volatility, Part 1: Swaptions & Black-76, Interest Rate Volatility, Part 2: The Bachelier (Normal) Model), and multiply by the annuity (Interest Rate Volatility, Part 6: Pricing a Swaption).
The interpolation is done in the variable that is closest to being linear. In the expiry direction that is the total variance \(\sigma^2 e\), so that the forward variance between two expiries is positive (Interpolation, Part 1: Flat, Linear & Cubic Methods), and in the tenor direction it is the volatility itself. The same decisions apply to any surface, as Interpolation, Part 3: Curves & Surfaces sets out.
What the cube must satisfy#
No arbitrage in the strike. The call price must fall with the strike and be convex, so that the risk-neutral density of the swap rate is not negative. Hagan’s approximation breaks this at long expiries and low strikes (Interest Rate Volatility, Part 5: Hagan’s Approximation), and the check has to be made for every smile in the cube and for the interpolated ones.
No arbitrage in the expiry. The total variance must not fall as the expiry rises, or a calendar spread of swaptions has a negative value.
Smoothness across the cube. A parameter that jumps between neighbouring nodes gives a hedge that jumps and a valuation that depends on the grid. The parameters are monitored over time and across the grid (Interest Rate Volatility, Part 3: SABR Model & Calibration).
Behaviour at low rates. When rates are low or negative a lognormal smile fails, and a shifted SABR or a normal model is used (Interest Rate Volatility, Part 2: The Bachelier (Normal) Model).
Extrapolation. A trade that is shorter than the first expiry or longer than the longest tenor, or struck far from the forward, is outside the data. The extrapolation is a modelling assumption, and is where the cube is least reliable.
Where the cube is used#
Product or task |
What it takes from the cube |
Page |
|---|---|---|
European swaption |
The smile for its expiry and tenor, at its strike |
|
Bermudan swaption |
The nine co-terminal volatilities at the strike of the Bermudan, to calibrate the model |
Interest Rate Mean Reversion, Part 1: The Bermudan Swaption & Its Bounds, Interest Rate Mean Reversion, Part 2: The Hull-White Model & Calibration |
Bermudan risk |
The volatility of each co-terminal swaption, bumped, for the vega by bucket |
|
CMS and CMS spread options |
The smile of each swap rate, to price a payoff on a swap rate by replication, and the pair of smiles for a spread |
Interest Rate Correlation, Part 6: Smile & Spread Smile, Interest Rate Correlation, Part 2: CMS Spread Derivatives |
Swap rate correlation |
The volatilities of the swap rates, with the implied correlation from the spread options |
Interest Rate Correlation, Part 3: Historical, Model & Implied Correlation |
Vega risk |
A vega for each node of the cube, rebucketed into hedging buckets with the Jacobian |
|
Calibration and reserves |
The fit of SABR to each node, the identifiability of its parameters, and the uncertainty in the cube |
|
Fair value hierarchy |
Which nodes are observable and which are interpolated or extrapolated |
Worked example#
The example builds a cube on the curve of Interest Rate Curves, Part 1: Instruments & Bootstrapping, with five expiries (3M, 1Y, 2Y, 5Y, 10Y) and five tenors (1Y, 2Y, 5Y, 10Y, 20Y), and the SABR parameters for each of the 25 nodes, with \(\beta = 0.5\). The parameters come from smooth functions of expiry and tenor and are invented. It prints the forward swap rates and the at-the-money normal volatilities, three smiles, and then reads the 4Y x 7Y swaption, which is not a node, by three methods against the exact smile. It checks the density of every smile, and finally it reads from the cube the nine co-terminal volatilities of a 10-year Bermudan and the two smiles of a CMS spread option.
Python code
"""A swaption volatility cube: SABR parameters on an expiry by tenor grid, smiles from the cube, interpolation to a swaption that is not quoted, no-arbitrage checks, and readings for other pages."""
import numpy as np
from scipy.optimize import brentq
from curve_example import bootstrap, forward_swap
from sabr_example import call_density, sabr_black_vol
from swaption_example import bachelier_price, black_price, normal_vol_equivalent
BETA = 0.5
EXPIRIES = [0.25, 1.0, 2.0, 5.0, 10.0]
TENORS = [1, 2, 5, 10, 20]
CURVE = bootstrap()
def node_inputs(e, t):
"""The parameters that define the smile at an expiry and tenor: ATM Black vol, rho and nu."""
atm = 0.24 + 0.26 * np.exp(-0.45 * e) * (1 - 0.35 * (1 - np.exp(-t / 6)))
rho = -0.15 - 0.25 * np.exp(-e / 3)
nu = 0.25 + 0.55 * np.exp(-e / 2)
return atm, rho, nu
def alpha_for(forward, e, atm, rho, nu):
return brentq(lambda a: float(sabr_black_vol(forward, forward, e, a, BETA, rho, nu)) - atm, 1e-4, 2.0)
def make_node(e, t):
f, a = forward_swap(CURVE, e, t)
atm, rho, nu = node_inputs(e, t)
return dict(e=e, t=t, forward=f, annuity=a, alpha=alpha_for(f, e, atm, rho, nu), rho=rho, nu=nu)
def normal_vol(node, strike, alpha=None, rho=None, nu=None):
alpha = node["alpha"] if alpha is None else alpha
rho = node["rho"] if rho is None else rho
nu = node["nu"] if nu is None else nu
black = float(sabr_black_vol(node["forward"], strike, node["e"], alpha, BETA, rho, nu))
return normal_vol_equivalent(node["forward"], strike, black, node["e"], node["annuity"])
def black_from_normal(forward, nv, e, annuity):
target = bachelier_price(forward, forward, nv, e, annuity)
return brentq(lambda v: black_price(forward, forward, v, e, annuity) - target, 1e-4, 3.0)
def bilinear(values, e, t):
"""Bilinear interpolation of a dictionary {(expiry, tenor): value} in expiry and tenor."""
e0, e1 = max(x for x in EXPIRIES if x <= e), min(x for x in EXPIRIES if x >= e)
t0, t1 = max(x for x in TENORS if x <= t), min(x for x in TENORS if x >= t)
we = 0.0 if e1 == e0 else (e - e0) / (e1 - e0)
wt = 0.0 if t1 == t0 else (t - t0) / (t1 - t0)
return (1 - we) * (1 - wt) * values[(e0, t0)] + (1 - we) * wt * values[(e0, t1)] + we * (1 - wt) * values[(e1, t0)] + we * wt * values[(e1, t1)]
if __name__ == "__main__":
cube = {(e, t): make_node(e, t) for e in EXPIRIES for t in TENORS}
print("1. The cube at its nodes: forward swap rate (%) and at-the-money normal volatility (bp), expiry down, tenor across")
print(f" {'Forward swap rate':<18}" + "".join(f"{str(t) + 'Y':>8}" for t in TENORS))
for e in EXPIRIES:
print(f" {str(e) + 'Y':<18}" + "".join(f"{cube[(e, t)]['forward'] * 100:8.3f}" for t in TENORS))
print(f"\n {'ATM normal vol':<18}" + "".join(f"{str(t) + 'Y':>8}" for t in TENORS))
atm_normal = {}
for e in EXPIRIES:
for t in TENORS:
n = cube[(e, t)]
atm_normal[(e, t)] = normal_vol(n, n["forward"]) * 1e4
print(f" {str(e) + 'Y':<18}" + "".join(f"{atm_normal[(e, t)]:8.1f}" for t in TENORS))
print("\n2. Three smiles from the cube: normal volatility (bp) by strike offset from the forward, and the SABR parameters")
offsets = (-150, -100, -50, 0, 50, 100, 150)
print(f" {'Swaption':<10} {'alpha':>7} {'rho':>7} {'nu':>6} " + "".join(f"{o:+7d}" for o in offsets))
for e, t in ((1.0, 10), (5.0, 5), (10.0, 10)):
n = cube[(e, t)]
vols = [normal_vol(n, n["forward"] + o / 1e4) * 1e4 for o in offsets]
print(f" {int(e)}Y x {t}Y {n['alpha']:7.4f} {n['rho']:+7.3f} {n['nu']:6.3f} " + "".join(f"{v:7.1f}" for v in vols))
print("\n3. A swaption that is not on the grid, 4Y x 7Y: normal volatility (bp) by four ways of reading the cube, and the error against the exact smile")
target = make_node(4.0, 7)
f_t = target["forward"]
corner_keys = [(2.0, 5), (2.0, 10), (5.0, 5), (5.0, 10)]
full_a = {k: v["alpha"] for k, v in cube.items()}
full_r = {k: v["rho"] for k, v in cube.items()}
full_n = {k: v["nu"] for k, v in cube.items()}
atm_i = bilinear(atm_normal, 4.0, 7) / 1e4
alpha_atm = alpha_for(f_t, 4.0, black_from_normal(f_t, atm_i, 4.0, target["annuity"]), bilinear(full_r, 4.0, 7), bilinear(full_n, 4.0, 7))
methods = {
"Exact smile at 4Y x 7Y": lambda o: normal_vol(target, f_t + o / 1e4),
"Interpolate alpha, rho, nu": lambda o: normal_vol(target, f_t + o / 1e4, bilinear(full_a, 4.0, 7), bilinear(full_r, 4.0, 7), bilinear(full_n, 4.0, 7)),
"Interpolate ATM vol, rho, nu": lambda o: normal_vol(target, f_t + o / 1e4, alpha_atm, bilinear(full_r, 4.0, 7), bilinear(full_n, 4.0, 7)),
"Interpolate the vol at each offset": lambda o: bilinear({k: normal_vol(cube[k], cube[k]["forward"] + o / 1e4) for k in corner_keys}, 4.0, 7),
}
print(f" {'Method':<36}" + "".join(f"{o:+8d}" for o in offsets) + f" {'largest error':>14}")
exact = None
for name, fn in methods.items():
vals = np.array([fn(o) * 1e4 for o in offsets])
if exact is None:
exact = vals
print(f" {name:<36}" + "".join(f"{v:8.1f}" for v in vals) + f" {np.max(np.abs(vals - exact)):12.2f}bp")
print("\n4. No-arbitrage check on every smile of the cube: lowest risk-neutral density for strikes from 0.2% to 10%")
grid = np.linspace(0.002, 0.10, 99)
bad = []
lows = {}
for (e, t), n in cube.items():
vf = lambda k, n=n: sabr_black_vol(n["forward"], k, n["e"], n["alpha"], BETA, n["rho"], n["nu"])
dens = call_density(n["forward"], grid, n["e"], n["annuity"], vf)
lows[(e, t)] = dens.min()
if dens.min() < -1e-6:
bad.append((e, t, dens.min(), grid[np.argmin(dens)]))
print(f" {len(bad)} of {len(cube)} smiles have a negative density somewhere on the grid")
for e, t, d, k in sorted(bad, key=lambda x: x[2])[:6]:
print(f" {e:5.2f}Y x {t:2d}Y: density {d:9.3f} at strike {k:.2%}")
print(f" Smiles with a negative density by expiry: " + ", ".join(f"{e}Y: {sum(1 for b in bad if b[0] == e)}" for e in EXPIRIES))
print("\n5. Readings from the cube that other pages use")
strike = 0.037
print(f" The nine co-terminal swaptions of a 10-year Bermudan, at a strike of {strike:.2%}")
print(f" {'Swaption':>10} {'forward':>8} {'strike - forward':>17} {'normal vol':>11}")
for e in range(1, 10):
t = 10 - e
n = make_node(float(e), t)
a_i = bilinear(full_a, float(e), t)
r_i = bilinear(full_r, float(e), t)
nu_i = bilinear(full_n, float(e), t)
print(f" {e}Y x {t}Y".rjust(11) + f" {n['forward']:8.3%} {(strike - n['forward']) * 1e4:+15.1f}bp {normal_vol(n, strike, a_i, r_i, nu_i) * 1e4:9.1f}bp")
print(" The two smiles of a CMS spread option, 5Y expiry on the 2-year and the 10-year swap rate")
print(f" {'Swap rate':<12} {'forward':>8} " + "".join(f"{o:+7d}" for o in (-100, -50, 0, 50, 100)))
for t in (2, 10):
n = cube[(5.0, t)]
print(f" {'5Y x ' + str(t) + 'Y':<12} {n['forward']:8.3%} " + "".join(f"{normal_vol(n, n['forward'] + o / 1e4) * 1e4:7.1f}" for o in (-100, -50, 0, 50, 100)))
The output is:
1. The cube at its nodes: forward swap rate (%) and at-the-money normal volatility (bp), expiry down, tenor across
Forward swap rate 1Y 2Y 5Y 10Y 20Y
0.25Y 3.898 3.735 3.636 3.750 3.791
1.0Y 3.593 3.542 3.594 3.751 3.763
2.0Y 3.489 3.528 3.626 3.800 3.753
5.0Y 3.765 3.765 3.870 3.982 3.733
10.0Y 4.118 4.118 4.118 3.873 3.565
ATM normal vol 1Y 2Y 5Y 10Y 20Y
0.25Y 178.9 167.5 154.7 152.1 149.1
1.0Y 141.7 137.0 133.3 133.8 131.0
2.0Y 117.5 117.2 116.7 119.0 115.4
5.0Y 98.7 98.2 100.0 101.9 95.1
10.0Y 97.6 97.5 97.4 91.5 84.2
2. Three smiles from the cube: normal volatility (bp) by strike offset from the forward, and the SABR parameters
Swaption alpha rho nu -150 -100 -50 +0 +50 +100 +150
1Y x 10Y 0.0683 -0.329 0.584 138.9 136.6 134.8 133.8 134.3 136.6 140.5
5Y x 5Y 0.0501 -0.197 0.295 95.8 96.9 98.3 100.0 102.1 104.7 107.8
10Y x 10Y 0.0456 -0.159 0.254 86.3 87.9 89.6 91.5 93.8 96.5 99.5
3. A swaption that is not on the grid, 4Y x 7Y: normal volatility (bp) by four ways of reading the cube, and the error against the exact smile
Method -150 -100 -50 +0 +50 +100 +150 largest error
Exact smile at 4Y x 7Y 100.4 101.2 102.3 103.8 105.8 108.4 111.5 0.00bp
Interpolate alpha, rho, nu 104.1 104.7 105.6 106.9 108.9 111.6 114.9 3.67bp
Interpolate ATM vol, rho, nu 103.6 104.2 105.1 106.4 108.3 111.0 114.3 3.19bp
Interpolate the vol at each offset 103.7 104.3 105.1 106.4 108.3 110.9 114.1 3.32bp
4. No-arbitrage check on every smile of the cube: lowest risk-neutral density for strikes from 0.2% to 10%
5 of 25 smiles have a negative density somewhere on the grid
10.00Y x 1Y: density -7.429 at strike 0.20%
10.00Y x 2Y: density -7.409 at strike 0.20%
10.00Y x 5Y: density -7.366 at strike 0.20%
10.00Y x 10Y: density -6.649 at strike 0.20%
10.00Y x 20Y: density -5.661 at strike 0.20%
Smiles with a negative density by expiry: 0.25Y: 0, 1.0Y: 0, 2.0Y: 0, 5.0Y: 0, 10.0Y: 5
5. Readings from the cube that other pages use
The nine co-terminal swaptions of a 10-year Bermudan, at a strike of 3.70%
Swaption forward strike - forward normal vol
1Y x 9Y 3.717% -1.7bp 133.7bp
2Y x 8Y 3.735% -3.5bp 118.1bp
3Y x 7Y 3.776% -7.6bp 112.4bp
4Y x 6Y 3.815% -11.5bp 106.0bp
5Y x 5Y 3.870% -17.0bp 99.3bp
6Y x 4Y 3.899% -19.9bp 98.4bp
7Y x 3Y 3.947% -24.7bp 97.7bp
8Y x 2Y 3.947% -24.7bp 96.6bp
9Y x 1Y 3.947% -24.7bp 95.6bp
The two smiles of a CMS spread option, 5Y expiry on the 2-year and the 10-year swap rate
Swap rate forward -100 -50 +0 +50 +100
5Y x 2Y 3.765% 95.1 96.5 98.2 100.4 103.0
5Y x 10Y 3.982% 99.0 100.3 101.9 104.0 106.6
Reading the output:
The matrix has a shape. The at-the-money normal volatility falls with the expiry, from 179 basis points for the 3M x 1Y to 98 for the 10Y x 1Y, and for a given expiry it varies less with the tenor. It is lowest for the 10Y x 20Y, 84. The forward swap rates are not smooth across the grid, with the same 3.765% for the 5Y x 1Y and the 5Y x 2Y, since the example curve has flat forward rates between its pillars. The cube inherits any feature of the curve.
Each smile has its own shape. The 1Y x 10Y has a minimum at the money and rises on both sides, 138.9 at -150 and 140.5 at +150, with a large \(\nu\) of 0.58. The 5Y x 5Y and the 10Y x 10Y slope upward, 95.8 to 107.8 and 86.3 to 99.5, with a smaller \(\nu\) and a negative \(\rho\). The parameters fall with the expiry, as they do in the market.
Reading an off-grid swaption depends on the nodes. The three ways of reading the 4Y x 7Y agree with one another to 0.5 basis points, 106.4 to 106.9 at the money, and all three are 2.6 to 3.1 basis points above the exact smile, 103.8. The error is not in the choice of what to interpolate. It is in the grid: the volatility falls convexly with the expiry, and a straight line between the nodes at 2Y and 5Y lies above it. A node at 3Y or 4Y would remove most of it. An error of 3 basis points of volatility is 3% of the price.
The no-arbitrage check finds a problem. The 5 smiles at the 10-year expiry have a negative density at the lowest strikes, down to -7.4 at a strike of 0.2%, and the 20 smiles at expiries up to 5 years have none. The cause is the approximation of Hagan for long expiries and low strikes. The smiles are fine in the range where they are quoted, and wrong in the tail where a floor or a low-strike receiver would be priced.
The cube gives the inputs of other pages. The nine co-terminal volatilities at a strike of 3.70% run from 133.7 basis points for the 1Y x 9Y to 95.6 for the 9Y x 1Y, and the strike is 1.7 to 24.7 basis points below the forwards, so it is read from the smile and not the at-the-money matrix. They are the calibration set of Interest Rate Mean Reversion, Part 2: The Hull-White Model & Calibration, and a change in the cube moves them and the Bermudan price. The two smiles for the CMS spread option, 5Y x 2Y and 5Y x 10Y, have at-the-money volatilities of 98.2 and 101.9 basis points and similar slopes, and feed Interest Rate Correlation, Part 2: CMS Spread Derivatives.
A valuation control view#
Know which nodes are quoted and which are interpolated: the at-the-money matrix is quoted by brokers at the standard points, the smile at fewer points. A volatility read at a node with no quote is Level 3, and the share of a book that rests on interpolated or extrapolated points should be reported. See Fair-Value Hierarchy: Levels 1, 2 & 3.
Test the interpolation against a second method: read the same off-grid swaptions by the three methods, and by a finer grid where there is one. The spread is an estimate of the interpolation uncertainty, and a candidate for a prudent valuation adjustment. See Prudent Valuation: Requirements.
Check every smile for arbitrage, including the interpolated ones: a negative density, a calendar violation or a jump in the parameters between neighbours. The long expiry and the low strike are where it fails first.
Compare the cube with the products that use it: the co-terminal volatilities that calibrate a Bermudan model should be those of the cube at the strike of the trade, and the model should reprice them (Interest Rate Mean Reversion, Part 2: The Hull-White Model & Calibration). A calibration to at-the-money volatilities is a calibration to the wrong options.
Watch the parameters over time and across the grid: a jump in \(\alpha\), \(\rho\) or \(\nu\) between days or between neighbouring nodes points to a bad quote or an unstable fit.
Report the vega by cube node and rebucket it consistently: the vega of a book to each node of the cube, and the hedging buckets that it is rebucketed into, with the residual that the bucket hedge leaves. See The Jacobian.
Keep the curve and the cube consistent: the forward swap rate and the annuity of each node come from the curve, so a change in the curve moves the strikes of the smiles, as Interest Rate Curves explains.
Next, Interest Rate Mean Reversion, Part 1: The Bermudan Swaption & Its Bounds prices an option with several exercise dates, which takes its volatilities from this cube and needs a model of how the rates move through time.