Free datasets for quantitative finance research: factors, rates, prices and fundamentals
Most of the research discussed on Out of Sample can be reproduced with free data. This page lists the public datasets we use or recommend, grouped by what they contain, with a line on what each is good for and the trap to avoid. It complements the broader resources page, which also covers software and communities.
Every provider sets its own terms of use. Most allow research and education, many forbid redistribution of the raw files: read the conditions on each site before publishing derived data.
Factor returns
- Kenneth R. French Data Library
The reference source for the Fama-French factors (market, size, value, profitability, investment) and momentum, plus thousands of sorted portfolios, monthly and daily, for the US and international regions. Used in our articles on the five-factor model, momentum crashes and the value premium. Pitfall: the files are revised when the underlying databases change, so record the download date.
- AQR datasets
Factor series published by AQR Capital Management alongside its research: quality minus junk, betting against beta, value and momentum across asset classes, among others. Useful to compare a factor's construction with French's version.
- JKP factors
Returns for over a hundred published factors in many countries, built with one common methodology from the study "Is There a Replication Crisis in Finance?" by Jensen, Kelly and Pedersen. Good for testing whether an anomaly survives outside the US.
- q-factors
The factors of the investment-based "q-factor" model of Hou, Xue and Zhang, an alternative to Fama-French with its own definitions of investment and profitability.
- Open Source Asset Pricing
Code and data replicating a large set of cross-sectional predictors from the academic literature, with the signal construction published openly. Best used to check exactly how a signal was defined.
Interest rates and macro series
- FRED, Federal Reserve Bank of St. Louis
Hundreds of thousands of economic and financial time series, from Treasury yields and credit spreads to inflation and unemployment, downloadable as CSV or through an API. The usual source for a risk-free rate or a macro regime variable. Pitfall: macro series are revised; for realistic backtests, use the vintage data in ALFRED.
- US Treasury daily par yield curve
The official daily par yields by maturity, the input for curve and carry strategies on US government bonds.
- Federal Reserve fitted nominal yield curve
Smoothed zero-coupon yields and forward rates estimated by Federal Reserve staff, convenient when you need a continuous curve rather than a few quoted maturities.
- ECB Data Portal
Euro area rates, yield curves, exchange rates, money and credit statistics from the European Central Bank.
- BIS statistics
Cross-country data from the Bank for International Settlements: policy rates, credit to the private sector, property prices, effective exchange rates and derivatives activity.
Long-run prices and volatility
- Robert Shiller's online data
Monthly US stock prices, dividends and earnings back to 1871, with the cyclically adjusted price-earnings ratio (CAPE). The standard series for long-horizon valuation studies. Pitfall: early observations are reconstructed averages, not traded prices.
- Cboe VIX historical data
Daily history of the VIX index and related volatility indices, for volatility-regime filters and option-related research.
Company fundamentals
- SEC EDGAR
The filings of every US-listed company, including the structured financial statement data extracted from XBRL. Free and authoritative, but cleaning it into a point-in-time database is real work: use the filing date, not the period end, to avoid look-ahead bias.
- Aswath Damodaran's data
Annual industry-level datasets from the NYU Stern professor: costs of capital, margins, multiples and equity risk premiums by sector and region. Useful for sanity checks and valuation inputs, not for stock-level backtests.
Four rules before you backtest
- Survivorship. A list of today's index members ignores the companies that disappeared. Free price data rarely includes delisted stocks; factor libraries do, which is one reason to start from them.
- Point in time. Use data as it was known on the date of the trade: original macro releases, filing dates for accounts, historical index membership.
- Revisions. Note the download date and keep a copy of the file you used; many series change after the fact.
- Costs. None of these datasets include trading costs, borrow fees or taxes. Add them before trusting a result, as our article on how systematic funds work explains.
Definitions of the terms used here, from look-ahead bias to factor, are in our glossary.