Cross-section shrinkage lab (ETF panel)

Cross-section shrinkage study on ETF panels PCA spectrum R² vs K pseudo-OOS validation ridge diagnostics for robust signal construction

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.

Live Yahoo Finance panel. Daily adjusted closes from Yahoo Finance; excess returns use ^IRX as a simple short-rate proxy. Metrics are computed in this repository for a liquid ETF sleeve and are intended as a transparent lab snapshot.Updated: 2026-11-13T07:56:55ZWindow: 2013-07-19 → 2026-11-12Days × assets: 3350 × 20CV fold chart uses K = 10 PCsPanel: SPY, QQQ, IWM, VTV, VUG, MTUM, QUAL, USMV, EFA, EEM, VEA, TLT, LQD, HYG, VNQ, GLD, XLE, XLF, XLK, XLV

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.

QuantifiedTrader logoQuantifiedTrader

Independent quantitative research on trading methods, backtesting, and market analytics.

Research disclaimer

QuantifiedTrader is operated by an independent quantitative research group. We study, document, and compare different methods of trading, portfolio construction, risk management, and investment analysis. Our work is exploratory and academic in nature—we build tools, run backtests, and publish findings to advance understanding, not to promote any particular strategy or product.

Not investment advice. Nothing on this website constitutes investment, trading, financial, tax, legal, or other professional advice. We do not recommend, endorse, or solicit the purchase or sale of any security, derivative, or financial instrument, nor do we suggest that any strategy, model, or result presented here is suitable for any individual or institution. Any examples, simulations, or performance figures are illustrative research outputs only.

No client or advisory relationship. We do not provide investment advisory, brokerage, portfolio-management, custody, or asset-management services to any person or entity. Browsing this site, using our tools, or contacting us does not create a client, fiduciary, or advisory relationship. We do not manage money on behalf of third parties and do not act as agents for any financial institution.

Research & education only. Content, datasets, backtests, charts, code, and software made available here are for informational and educational research. Materials may be incomplete, simulated, hypothetical, or derived from third-party sources that we do not control. Past performance, backtested results, and historical analyses are not indicative of future results. Market conditions change; models may fail; assumptions may be wrong. You are solely responsible for evaluating any information and for all decisions you make.

No responsibility or liability. To the fullest extent permitted by applicable law, QuantifiedTrader and its contributors disclaim all responsibility and liability for any loss, damage, cost, or expense—direct or indirect—arising from access to, use of, or reliance on this website, its content, or its tools. All materials are provided “as is” and “as available,” without warranties of any kind, whether express or implied, including but not limited to accuracy, completeness, fitness for a particular purpose, or non-infringement.

Non-commercial research sharing. This site does not aim to profit from the knowledge, tools, or datasets published here. Materials are shared for non-commercial research and learning, subject to applicable open-source or site terms where noted. We are a research collective, not a commercial product or service provider.

Contact. For questions about this notice, the site, or published research materials, contact support@quantedx.com. Correspondence is for administrative and research purposes only and does not constitute advice or create any professional obligation on our part.

© 2026 QuantifiedTrader. All rights reserved.