Lesson 3 · 22 min
Asset classes & ETF proxies
Equities, bonds, commodities, FX, and crypto — how Quant Buffet represents each in backtests.
An asset class is a category of investments that responds to the same economic forces. Real portfolios mix them so that no single force can sink everything at once. In Quant Buffet you trade ETF proxies from backtest.universes — liquid, cheap to simulate, and comparable across the whole library.
Equities
Ownership in companies. Quant Buffet uses liquid ETF proxies (SPY, QQQ, sector XLE/XLK…).
Lab tickers: SPYQQQIWMXLKEFA
Risk note: High growth potential; drawdowns can be sharp.
Why ETFs instead of single stocks?
- Liquidity — SPY turns over tens of billions of dollars a day, so a slippage model of a couple of basis points is realistic.
- Diversification — one ticker gives you hundreds of underlying names.
- Survivorship — the index sheds failing members for you; the ETF keeps trading.
- Consistency — one data source for the entire whitelist.
- Teaching focus — you learn the *strategy logic*, not ticker-specific noise.
What each class actually does under stress
| Class | Lab proxy | Main driver | Roughly worst historical fall |
|---|---|---|---|
| US large-cap equity | SPY, VOO | Earnings + risk appetite | ≈ -55% (2007–2009) |
| US tech / growth | QQQ, XLK | Long-duration earnings, rates | ≈ -83% Nasdaq (2000–2002) |
| Long Treasuries | TLT | Interest rates, inflation | ≈ -48% from 2020 peak into 2023 |
| Cash equivalents | BIL | Policy rate | Effectively flat |
| Gold | GLD | Real rates, crisis demand | ≈ -45% (2011–2015) |
| Broad commodities | DBC, GSG | Growth + supply shocks | ≈ -75% (2008–2020) |
| Emerging equity | EEM, VWO | Dollar, global growth | ≈ -65% (2007–2008) |
| Crypto | BTC-USD | Liquidity and sentiment cycles | ≈ -84% (2017–2018) |
Real example: 2022 broke the classic hedge
For two decades, "stocks fall so bonds rise" was close enough to true — SPY and TLT spent most of 2000–2020 negatively correlated, which is exactly why 60/40 portfolios felt safe. Then inflation arrived. In calendar 2022 the S&P 500 lost roughly 18% *and* long Treasuries lost roughly 31%, giving a 60/40 investor something like -17% with no shelter anywhere. Meanwhile energy was the best sector in the market: XLE returned roughly +64% while XLK fell about -28%.
Two durable lessons come out of that year. First, correlation is a regime property, not a constant — a strategy that assumes bonds will always hedge equities is assuming a monetary regime. Second, **diversification across *drivers* beats diversification across tickers**: holding SPY, QQQ and XLK is one bet wearing three names, while holding SPY, TLT, GLD and DBC is four.
Real example: the year gold earned its place
In 2008 SPY returned roughly -37% while GLD returned roughly +5%. That single year is why gold appears in so many RISK_ON_OFF books. But 2011–2015 is the counterweight: gold fell about 45% from its peak while equities rose steadily. An asset that helps in crises and hurts in expansions is doing its job — you just have to size it as insurance rather than as a return engine.
Named books in code
from backtest.universes import US_SECTORS_FULL, BONDS, MULTI_ASSET, RISK_ON_OFF
# Books are plain Python lists — inspect, slice, or combine them
# RISK_ON_OFF = ["SPY", "QQQ", "TLT", "IEF", "GLD", "BIL"]
# MULTI_ASSET = ["SPY", "EFA", "EEM", "VNQ", "DBC", "GLD", "TLT", "IEF", "HYG"]
# Sector rotation plus a safety sleeve (lab limit: 15 symbols)
ASSETS = ["XLK", "XLF", "XLE", "XLV", "TLT", "GLD", "BIL"]| Book constant | Contents in spirit | Typical strategy use |
|---|---|---|
RISK_ON_OFF | Equity, duration, gold, cash | Switch between offence and defence |
US_SECTORS_FULL | All 11 SPDR sectors | Industry momentum & rotation |
GLOBAL_EQUITY | US, developed, EM, Japan, China | Cross-country momentum |
BONDS | Short to long duration plus credit | Duration timing, risk parity |
COMMODITIES | Metals, energy, agriculture | Inflation and crisis hedges |
MULTI_ASSET | Nine sleeves across four classes | Balanced allocation research |
CRYPTO_PROXY | BTC-USD, ETH-USD | Crypto momentum papers |
Costs are part of the asset, not a footnote
| ETF | Approx. expense ratio | Note |
|---|---|---|
VOO | ≈ 0.03% | Cheapest broad US exposure |
SPY | ≈ 0.09% | Oldest and most liquid US ETF (1993) |
XLE and other sectors | ≈ 0.09% | Cheap enough for monthly rotation |
TLT | ≈ 0.15% | Duration exposure |
GLD | ≈ 0.40% | Physical gold custody |
EEM vs VWO | ≈ 0.70% vs ≈ 0.08% | Nearly identical exposure, very different fee |
Before Lesson 4 — you should be able to
- Name the driver behind each asset class, not just its ticker.
- Explain why 2022 is the standard counter-example to bond hedging.
- Distinguish diversifying across tickers from diversifying across risks.
- Pick a named book from
backtest.universesthat matches a strategy's economic story.