Lesson 3 · 22 min

Asset classes & ETF proxies

Equities, bonds, commodities, FX, and crypto — how Quant Buffet represents each in backtests.

ETFsRiskUniversesCorrelation

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

ClassLab proxyMain driverRoughly worst historical fall
US large-cap equitySPY, VOOEarnings + risk appetite≈ -55% (2007–2009)
US tech / growthQQQ, XLKLong-duration earnings, rates≈ -83% Nasdaq (2000–2002)
Long TreasuriesTLTInterest rates, inflation≈ -48% from 2020 peak into 2023
Cash equivalentsBILPolicy rateEffectively flat
GoldGLDReal rates, crisis demand≈ -45% (2011–2015)
Broad commoditiesDBC, GSGGrowth + supply shocks≈ -75% (2008–2020)
Emerging equityEEM, VWODollar, global growth≈ -65% (2007–2008)
CryptoBTC-USDLiquidity 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

python
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 constantContents in spiritTypical strategy use
RISK_ON_OFFEquity, duration, gold, cashSwitch between offence and defence
US_SECTORS_FULLAll 11 SPDR sectorsIndustry momentum & rotation
GLOBAL_EQUITYUS, developed, EM, Japan, ChinaCross-country momentum
BONDSShort to long duration plus creditDuration timing, risk parity
COMMODITIESMetals, energy, agricultureInflation and crisis hedges
MULTI_ASSETNine sleeves across four classesBalanced allocation research
CRYPTO_PROXYBTC-USD, ETH-USDCrypto momentum papers

Costs are part of the asset, not a footnote

ETFApprox. expense ratioNote
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.universes that matches a strategy's economic story.