Cross-section shrinkage lab (ETF panel)
Abstract
A cross-section of ETF excess returns can be fit almost perfectly by enough principal components, and that fit can still be useless on the next year of data. This lab measures that gap on a Yahoo Finance panel of equity, bond, credit, REIT, and commodity ETFs. The objects are the eigenvalue spectrum of the covariance matrix, the cross-sectional of average excess returns on the leading eigenvectors as the factor count grows, a ridge penalty on those coefficients, and calendar folds that estimate the rotation without the evaluation year.
It is a reduced-form diagnostic of dimension and shrinkage. It is not a full asset-pricing test with traded factors, characteristic controls, or a multiple-testing correction across anomalies.
Cross-Sectional R² on Principal Components
Daily simple returns from 2005 are converted to excess returns by subtracting a daily Treasury proxy from : . Let be the matrix of excess returns on the ETF panel and the vector of sample mean excess returns.
The sample covariance is decomposed as with eigenvalues in descending order. The first eigenvectors are the regressors in a cross-sectional projection of . With an intercept,
estimated by least squares. Cross-sectional fit is
In-sample is weakly increasing in and hits 1 when spans the cross-section. That curve is a complexity diagnostic, not evidence that the extra components are compensated risks.
Ridge in PC space. For penalty , coefficients on the demeaned projection solve
and . The effective degrees of freedom are , where are the singular values of . As rises, noisy directions are pulled toward zero and the effective dimension falls.
Calendar folds. For each year , eigenvectors and coefficients are estimated on all days through . They are applied to the vector of mean excess returns in year , which was not used in the rotation. The fold statistic is of that held-out mean vector. A pseudo out-of-sample curve averages those folds. When in-sample keeps rising in while the fold curve peaks and falls, additional components are fitting noise in .
How to Read the Spectrum
A steep eigenvalue decay means a few directions dominate covariance. A flat tail means many components are small and unstable as regressors for . The relevant comparison is not the maximum in-sample , which rewards , but the that maximises the calendar-fold curve.
If the ridge profile shows that a modest removes most of the gap between in-sample and fold , the unpenalised least-squares coefficients on the weaker PCs are the fragile part of the fit. If even strong shrinkage cannot lift fold , average excess returns in this panel are not well aligned with the leading covariance eigenvectors — a statement about this ETF universe, not a rejection of a named factor model.
Per-ETF summary statistics on the chart page are descriptive (mean, volatility). They are not the left-hand side of a second-stage Fama–MacBeth regression with standard errors.
Estimated Spectrum, Fit, and Shrinkage
The charts below plot the objects defined above on the current Yahoo Finance panel: eigenvalue decay, in-sample versus calendar-fold cross-sectional against , the ridge weight profile, effective degrees of freedom against the penalty, and the fold-level series.
Refresh the JSON with npm run data:shrinking-cross-section (Python and yfinance). The meta banner states whether the file is a live panel or a schematic placeholder; read the curves only when the banner says the panel is live.
What this shows: Model-complexity trade-off on the ETF panel: in-sample cross-sectional R² vs K principal directions, mean pseudo-OOS R² across one-year-ahead folds, and a finite-sample-shrunk OOS curve.
How to read it: K is the number of PC columns from the full-sample covariance used for the in-sample curve; OOS curves refit eigenvectors each fold on training data only, then map train gammas to the next calendar year’s realized mean excess returns.
Scope and Reproducibility
The estimator uses one covariance eigendecomposition and cross-sectional projections of mean excess returns. It does not estimate betas in a first-pass time-series regression, does not apply a Shanken correction, and does not use firm characteristics. Adding those steps would be a different study.
ETF total returns embed fees, sampling of the underlying, and, for bond funds, roll-down. A component that looks “priced” can be a duration or credit mix. Re-run the pipeline when the price history is extended so the fold count and the spectrum stay aligned with the sample the charts display.