Interest Rate Correlation, Part 3: Historical, Model & Implied Correlation#
There is more than one number that is called “the correlation between the 2-year and the 10-year swap rate”. One is estimated from history, one is a parameter of the model, and one is backed out from the price of an option. They need not be equal, and a controller has to know which one is being used. This page sets out the three, the error of a historical estimate, the trap of correlating levels, and how an implied correlation is found. It is the third of seven pages.
Three correlations#
Historical correlation is estimated from observed changes in the two rates, over a window of days. It describes the past, and it has a sampling error that falls slowly with the length of the window. Estimators differ: equal weights over a window, or exponential weights that give more to recent days.
Model correlation is the parameter of the pricing model. It might be a single number, a matrix between forward rates (Interest Rate Correlation, Part 4: Parameterising Correlation), or a function of expiry. It is chosen to make the model reproduce prices, so it is closest to the implied correlation in practice. The historical estimate often sets its starting point and its plausible range.
Implied correlation is the value that makes the model reproduce a quoted price. For a spread option it is found by solving for \(\rho\) in the spread option formula of Interest Rate Correlation, Part 1: Correlation as a Pricing Parameter. It describes what the market prices today for the life of the option, including any premium for the risk of the correlation changing. It is only as good as the price: a quote with a wide bid-offer gives a wide range of implied correlation.
CMS spread options are among the few liquid instruments in which the correlation of two swap rates is the main source of uncertainty, so their prices are the best source of implied information. Swaptions and caps do not identify it.
Estimation#
For daily changes \(x_t\) and \(y_t\) in two rates, the equal-weight estimate over \(n\) days is the sample correlation. For a true correlation \(\rho\) its standard error is approximately
so a high correlation is estimated more precisely than a low one, and the error falls with the square root of the window. An exponentially weighted estimate with decay \(\lambda\) puts weight \(\lambda^k\) on the observation \(k\) days ago. It reacts faster, and its effective window is about \(1/(1 - \lambda)\) days, so its error is larger for the same reaction time.
Changes and levels#
The correlation of the levels of two rates is not the correlation of their changes. Two rates that have drifted in the same direction for years have levels that are highly correlated, whether or not their daily moves are related. Two independent random walks are correlated in levels, spuriously, and by a random amount. A model prices from the changes over the option’s life, so only the correlation of changes is relevant.
Implied correlation#
The spread option price falls as the correlation rises (Interest Rate Correlation, Part 1: Correlation as a Pricing Parameter), so the price determines the correlation uniquely, and it can be found by a one-dimensional root search (Root Finding: Implied Volatility). Two limits apply. The price cannot be below its value at a correlation of 1, or above its value at -1, so a quote outside them has no implied correlation. And the price becomes less sensitive to the correlation as it falls toward -1, and more sensitive near 1, so the implied correlation is determined best where the correlation is high.
Worked example#
The example simulates five years of daily changes in the two swap rates with a true correlation of 0.85 and volatilities that match the normal volatilities of Interest Rate Correlation, Part 1: Correlation as a Pricing Parameter. It compares the correlation of the changes with that of the levels, and with that of independent random walks, measures the sampling error of windows from 20 to 1,000 days against the formula, compares four estimators, and then finds the implied correlation from a spread option price, and how it moves when the quote is wrong by 1% or 2%.
Python code
"""Historical and implied correlation between two swap rates: sampling error, levels against changes, and inversion of a spread option price."""
import numpy as np
from scipy.optimize import brentq
from corr_parameter_example import EXPIRY, NOTIONAL, SIGMA_2, SIGMA_10, inputs, spread_option
TRUE_RHO = 0.85
DAILY_VOL_2, DAILY_VOL_10 = 6.6e-4, 5.5e-4 # daily changes of 6.6bp and 5.5bp, which are normal vols of about 105bp and 88bp a year
def simulate_history(days, rng, rho=TRUE_RHO):
"""Daily changes of the 2Y and 10Y swap rates with a constant true correlation."""
z1 = rng.standard_normal(days)
z2 = rho * z1 + np.sqrt(1 - rho**2) * rng.standard_normal(days)
return DAILY_VOL_2 * z1, DAILY_VOL_10 * z2
def ewma_correlation(d2, d10, lam):
"""Exponentially weighted correlation, with weights lam^k on the observation k days ago."""
w = lam ** np.arange(len(d2))[::-1]
w = w / w.sum()
cov = np.sum(w * d2 * d10)
return cov / np.sqrt(np.sum(w * d2**2) * np.sum(w * d10**2))
if __name__ == "__main__":
rng = np.random.default_rng(12)
days = 1260
d2, d10 = simulate_history(days, rng)
print(f"{days} days of simulated daily changes with true correlation {TRUE_RHO}\n")
print(f"Correlation of the changes: {np.corrcoef(d2, d10)[0, 1]:.3f}")
lvl2, lvl10 = 0.04 + np.cumsum(d2), 0.04 + np.cumsum(d10)
print(f"Correlation of the levels of the same two series: {np.corrcoef(lvl2, lvl10)[0, 1]:.3f}")
levels = []
for _ in range(500):
a, b = np.cumsum(rng.standard_normal(days)), np.cumsum(rng.standard_normal(days))
levels.append(np.corrcoef(a, b)[0, 1])
print(f"Two independent random walks, correlation of their levels over {days} days: "
f"mean {np.mean(levels):+.2f}, standard deviation {np.std(levels):.2f}, range {np.min(levels):+.2f} to {np.max(levels):+.2f}")
print("\nSampling error of a window of changes, from 2,000 independent windows")
print(f"{'Window':>7} {'Mean':>7} {'Std dev':>8} {'Theory':>8} {'5th pct':>8} {'95th pct':>9}")
for window in (20, 60, 120, 250, 1000):
est = []
for _ in range(2000):
a, b = simulate_history(window, rng)
est.append(np.corrcoef(a, b)[0, 1])
est = np.array(est)
theory = (1 - TRUE_RHO**2) / np.sqrt(window)
print(f"{window:>7} {est.mean():7.3f} {est.std():8.3f} {theory:8.3f} {np.percentile(est, 5):8.3f} {np.percentile(est, 95):9.3f}")
print("\nEstimates from the last observations of the one history above")
for label, value in (("Equal weights, 60 days", np.corrcoef(d2[-60:], d10[-60:])[0, 1]),
("Equal weights, 250 days", np.corrcoef(d2[-250:], d10[-250:])[0, 1]),
("EWMA, lambda 0.94", ewma_correlation(d2, d10, 0.94)),
("EWMA, lambda 0.99", ewma_correlation(d2, d10, 0.99))):
print(f" {label:<26} {value:.3f}")
rolling = np.array([np.corrcoef(d2[i - 60:i], d10[i - 60:i])[0, 1] for i in range(60, days)])
print(f"Rolling 60-day estimate over the history: minimum {rolling.min():.2f}, maximum {rolling.max():.2f}, true {TRUE_RHO}")
# Implied correlation: the value that reproduces a quoted spread option price. The spread option is solved as a root-finding problem.
market = spread_option(TRUE_RHO)
solve = lambda price: brentq(lambda r: spread_option(r) - price, -0.99, 0.9999)
print(f"\nImplied correlation from a spread option priced at {NOTIONAL * market:,.0f}: {solve(market):.4f}")
print(f"{'Quote error':>12} {'Price':>10} {'Implied correlation':>20}")
for error in (-0.02, -0.01, 0.0, 0.01, 0.02):
price = market * (1 + error)
print(f"{error:12.0%} {NOTIONAL * price:10,.0f} {solve(price):20.4f}")
print(f"\nA price below the minimum, {NOTIONAL * spread_option(1.0):,.0f} (correlation 1), has no implied correlation. "
f"A quote of {NOTIONAL * spread_option(1.0) * 0.98:,.0f} is rejected.")
The output is:
1260 days of simulated daily changes with true correlation 0.85
Correlation of the changes: 0.851
Correlation of the levels of the same two series: 0.932
Two independent random walks, correlation of their levels over 1260 days: mean -0.01, standard deviation 0.50, range -0.90 to +0.95
Sampling error of a window of changes, from 2,000 independent windows
Window Mean Std dev Theory 5th pct 95th pct
20 0.845 0.070 0.062 0.709 0.932
60 0.846 0.039 0.036 0.776 0.901
120 0.849 0.025 0.025 0.804 0.887
250 0.850 0.018 0.018 0.818 0.877
1000 0.851 0.009 0.009 0.836 0.864
Estimates from the last observations of the one history above
Equal weights, 60 days 0.871
Equal weights, 250 days 0.870
EWMA, lambda 0.94 0.855
EWMA, lambda 0.99 0.869
Rolling 60-day estimate over the history: minimum 0.73, maximum 0.91, true 0.85
Implied correlation from a spread option priced at 509,631: 0.8500
Quote error Price Implied correlation
-2% 499,438 0.8582
-1% 504,534 0.8541
0% 509,631 0.8500
1% 514,727 0.8458
2% 519,823 0.8416
A price below the minimum, 237,510 (correlation 1), has no implied correlation. A quote of 232,760 is rejected.
Reading the output:
The correlation of levels is misleading. The levels of the same two series have a correlation of 0.932, against a true 0.85 for the changes. Two independent random walks have level correlations that average zero, with a standard deviation of 0.50 and values from -0.90 to +0.95 over the same five years. A level correlation says almost nothing about the changes.
The sampling error follows the formula. The standard deviation of the estimate is 0.070 at 20 days and 0.009 at 1,000, against a theory of 0.062 and 0.009. A 60-day estimate has a 90% range of 0.78 to 0.90, which is too wide for a price that is sensitive to the second decimal.
A particular history gives a particular answer. The four estimators from the one history give 0.855 to 0.871, all above the true 0.85, because the recent stretch of this history happened to be above its average of 0.851. The rolling 60-day estimate ranges from 0.73 to 0.91, though the true value never changed. A parameter that is re-estimated from a short window moves for no reason.
The implied correlation recovers the true value of 0.8500 from the price. A quote that is 1% too low gives 0.8541 and one that is 1% too high gives 0.8458, so a 1% error in the price is a 0.004 error in the correlation.
A price below the minimum has no solution. At a correlation of 1 the option is worth 237,510. A quote of 232,760 is lower than that, and cannot be explained by any correlation. It is a data error, or a sign that the volatilities are inconsistent with the option.
A valuation control view#
State which correlation a parameter is: historical, model or implied, and for which window, tenor pair and expiry. Numbers from the three sources are not interchangeable.
Use changes, never levels: and check the data. A correlation of levels near one is not evidence about the correlation that a price needs.
Report the estimation error with the estimate: at 250 days the 90% range is about 0.82 to 0.88, which is a larger price range than a typical bid-offer. A shorter window is noisier and a longer one slower to reflect a change.
Compare the three sources: the historical estimate, the model parameter and the implied value from any quote. A model parameter that is far from both is a finding, and a persistent gap between historical and implied correlation is itself information.
Know the quality of the quote behind an implied value: the bid-offer of the option, the source, and whether it is a trade or an indicative price. A 1% price error is 0.004 of correlation here, and larger where the price is less sensitive.
Reject prices outside the bounds: an implied correlation outside [-1, 1] is not a result. See Root Finding: Implied Volatility.
Next, Interest Rate Correlation, Part 4: Parameterising Correlation sets out how the model correlation is parameterised.