Decoding Yield Curves: The Covariance Matrix and its Ripple Effect on PCA-based Decomposition
Investigating the impact of covariance matrix estimator choice on yield curve decomposition with PCA
The decomposition of yield curves using principle component analysis (PCA) is a common procedure, allowing for yield curve dynamics to be explained in a small number of underlying drivers. The first three principle components are commonly used and are given economic interpretations as in Litterman and Scheinkman, 1991 and Kavir Patel, 2018.
PC1 - Level: The first principle component tends to have equal values across all maturities, so controls the overall level of the curve.
PC2 - Slope: The second component usually has a positive relationship with maturity, which allows this component to determine the slope of the curve and the bulk of the differences in yield between short and long maturities.
PC3 - Curvature: The third and usually last component tends to determine how bowed the curve is, leading to it being referred to as curvature.
These three components can be visualised by plotting the loadings on each principle component for each maturity, the eigenvectors of the covariance matrix, against maturity, as in Figure 2.
The use of PCA to decompose the yield curve into factors with distinct economic interpretations raises some questions on how the reliability of the decomposition, as the decomposition is com- pletely informed by historical data.
This question is explored by Rodger Lord, 2007, where the authors investigate the circumstances under which the economic interpretations are consistent with their Level, Slope and Curvature des- ignations, concluding that there are some years in which there are no economic interpretations for the components. While Rodger Lord, 2007 use the shape and sign changes in the eigenvectors to determine if the economic interpretation is valid, Hou, 2022 uses a comparison against the model developed by Nelson and Siegel, 1987, which explicitly models the components, to test if the PCA based components are poorly estimated, also concluding that there are time periods where the interpretations of the components are inconsistent with their usual interpretations.
This investigation aims to determine impact of the choice of covariance estimator on the estimation of the principle components of bond yields and whether specific estimators provide more consistency on historic data.
Approach
Two approaches are explored to quantify how well estimated the principle components are:
Sign change of eigenvectors: This borrows the method and sign change rules used by Rodger Lord, 2007, which checks if ”first three factors have respectively zero, one and two sign changes”, in which case the level, slope and curvature are assumed to be estimated in accor- dance with their economic interpretations. Applying these rules to the results in Figure 2 we can see that the decomposition is valid
Visual Inspection: Inspection of graphs of eigenvectors against maturity to try find any insights that may have been missed by either of the other methods.
These approaches are applied to the decomposition of a set of rolling sub-ranges of yields from the US treasury yields data from the Board of Governors of the Federal Reserve System.
Results
Eigenvector sign change analysis
The choice of covariance estimator had a small but consistent impact on the reliability of PCA in generating eigenvectors that are consistent with the sign change assumptions. This can be seen in Table 1, where the constant correlation shrinkage covariance estimator consistently outperformed the sample covariance estimator while the simple shrinkage estimator consistently underperformed.
The Ledoit-Wolf estimator performed identically to the sample covariance estimator, suggesting that the optimiser had (correctly) inferred that there was little to no benefit in shrinkage towards the diagonal matrix, as in the simple shrinkage estimator.
The other, more intuitive pattern in Table 1 is that performance across all estimators improved with longer sample windows, illustrating how the decomposition is unreliable over shorter time frames. The patterns in the performance of the estimators can also be explored over time, by plotting whether or not each estimation is valid on a rolling basis through the dataset, as in Figure 3 and Figure 4. These plots how how the errors in the estimation are highly correlated across estimators and across sample size ranges, with most of the estimators performing poorly on the same time periods.
These results raise a question: Is the poor performance on small sample sizes due to the short time period sampled, or the small number of samples? This can be investigated by re-running the analysis with the same sample sizes, but with quarterly rather than monthly data, so each slice contains the same number of observations but three times the elapsed time. Comparing these quarterly results in Table 2 to the monthly results in Table 1 suggests that the poor performance on short time windows is largely due to the length of time rather than the number of samples, likely due to insufficient variation in yields over the shorter periods of one-to-two years to provide the required information.
Visual Inspection
We can use visual inspection to understand the results of the sign change analysis in more detail and to find other inconsistencies in the PCA results that were not found by the sign change measure.
Figure 5 and Figure 6 show examples of eigenvectors in one of the sample periods that the constant correlation shrinkage estimator produced valid sign changes but the sample covariance matrix did not. We can see that the cause of the issue is the 3 sign changes in the curvature vector in the sample covariance graph.
We can also see some interesting ways that the eigenvectors can be correct from a sign change perspective, but lack the properties to make them useful in practice. The sample covariance matrix tended to produce very flat eigenvectors when estimated on short time spans of data, as in Figure 7. This lack of structural difference between the eigenvectors after the first few months of maturity limits their usefulness, as they suggest near equal impacts from the principle components on medium and long term bonds.
Conclusion
The main findings are:
Decompositions are unreliable over short periods: Short time periods do not provide the required information to estimate the principle component loadings reliably.
Time period matters more than samples: Poor results over short time periods seem attributable to a lack of time, rather than the small sample sizes. The same small sample sizes spread over
a longer period performed much better, and practically as well as more frequent samples over the same longer period.
The constant correlation shrinkage estimator performs well: The constant correlation shrink- age estimator consistently outperformed the other estimators, including the sample covariance matrix.
The simple shrinkage estimator performs poorly: The simple shrinkage estimator consistently underperformed the sample covariance matrix. This lead to other estimators such as the Ledoit-Wolf estimator, which also shrinks between the sample and diagonal matrix, to pre- form poorly as well, with limited shrinkage benefits.