Basic Prerequisites: Linear Algebra & Matrices (OLS, projections, eigen-decomposition) and Econometrics & Time Series (regression, covariance, stationarity). (these are the folder-level prerequisites for pages 02–06; page 01 states its own, smaller, entry requirements)


1. Intuition & Practical Objective

Rather than predicting each of 3,000 stocks independently, quantitative asset pricing projects stocks onto a low-dimensional basis of systematic risk factors. The claim of the whole folder, from Fama–French 1992: two easily measured variables - size and book-to-market - capture the cross-sectional variation in average stock returns that the CAPM’s single beta alone could not. Once you know a stock’s loadings (exposures, s) onto a handful of priced factors - market, size, value, profitability, investment - you can explain up to ~90% of its return variance and, crucially, isolate whether an active manager’s performance is true idiosyncratic skill (alpha) or merely repackaged systematic factor risk (beta).

This folder is the quantitative engine layer beneath the accounting-based factor catalog of Quantitative Fundamental Investing. That folder asks which fundamental characteristics pay (value, profitability, investment, quality); this folder asks how you turn those characteristics into an econometrically valid, tradeable, risk-budgeted factor model. It is a hub: it (a) gives the model & formula lookup below, and (b) routes you to six sub-pages that walk from raw intuition through the Fama–French construction, the cross-sectional (Barra/Axioma) machinery, the failure modes, and the extensions.

The one-sentence essence. “Regress returns onto a few priced factors to decompose total return into systematic (factor-compensated beta) and idiosyncratic (alpha + noise) pieces - where the factors are built by sorting the cross-section on real fundamental characteristics and then long-shorting the extreme deciles.”

Audience arc: beginner learns why a single beta fails and what a factor is; intermediate learns how SMB/HML/RMW/CMA are constructed and estimated by time-series regression; expert reads cross-sectional GLS/WLS models, covariance factorization, and the factor-zoo/crowding failure modes. The sub-pages below are ordered for exactly that climb.


2. Mathematical Ground Truth & Model Lookup

Quick lookup. The folder’s key formulas in one table; each is derived on the sub-pages.

Model / quantityFormulaNote
FF3 time-series regressionFF 1993
FF5 model addedFF 2015, eq. 5
2×3 sortsNYSE breakpoints
SMBaverage of the size factors from the B/M, profitability & investment sortsFF 2015
Cross-sectional (Barra) fit, WLS/GLS per period
Factor covariancesystematic + specific
PCA factor numbereigenvalues of ; Kaiser / Bai–Ng selection

Notation: asset return at ; risk-free rate; market return; market excess; the Fama–French factor returns; the cross-sectional matrix of standardized factor exposures; factor returns; factor covariance; diagonal idiosyncratic covariance; the pricing-error/intercept.

Fama–French 3-factor time-series regression (Fama & French 1993; Tsay §9.3.2):

Fama–French 5-factor model (FF 2015, eq. 5; add profitability and investment):

with = robust-minus-weak operating profitability and = conservative-minus-aggressive investment.

Factor construction by 2×3 independent sorts (FF 2015; NYSE-only breakpoints): split on median size (S/B), and on 30th/70th percentile B/M → six value-weighted portfolios; then

and SMB averages the size factors from the B/M, profitability, and investment sorts. (Verified in §3.)

Cross-sectional factor model (Barra/Axioma; Tsay §9.3.1 eq. 9.1–9.8): each period

a WLS/GLS (Tsay eq. 9.7) with the factor-mimicking portfolio weights (Tsay §9.3.1).

General factor-model covariance (Tsay eq. 9.1–9.4): if with , ,

which replaces the pairwise covariances with factor covariances (the practical point of a risk model).

Statistical factor model / PCA (Tsay §9.5; ESL Ch 14): orthogonal-factor model with , , so (Tsay eq. 9.17); communality plus unique variance splits each asset’s variance, and PCA loadings are (Tsay eq. 9.19).


3. Computational Implementation - the factor engine

This runs on the standard library only (no numpy/scipy). It builds SMB and HML by a 2×3 independent sort on a synthetic cross-section and reports the realized long-short spreads - the machine that every factor model in this folder reduces to.

(Every number on every sub-page was re-executed and reproduced exactly from this engine and its siblings; the full construction is derived on 03 · Factor Construction.)


4. Failure Modes & First-Principles Breakdowns

Hub signposts - the folder’s failure-mode analysis lives in 05 · Failure Modes & Practice. In one line each:

  1. Factor crowding & liquidity black holes - when many funds crowd the same factor (the Quant Quake of August 2007), a forced deleveraging by one fund cascades into same-side liquidations across the whole factor, producing unprecedented drawdowns in supposedly market-neutral books.
  2. Multicollinearity in style factors - overlapping factors (five variants of value/momentum) make nearly singular: betas swing wildly and their standard errors explode (the factor zoo).
  3. Data-mining / multiple testing - with hundreds of candidate characteristics, some premium will look significant by chance; backtested factor premiums must be discounted (Green–Hand–Zhang; see Backtesting Hygiene & Deflated Sharpe).

5. References

  • Fama, Eugene & French, Kenneth: “The Cross-Section of Expected Stock Returns” (Journal of Finance, 1992)
  • Fama & French: “Common Risk Factors in the Returns on Stocks and Bonds” (JFE, 1993)
  • Fama & French: “A Five-Factor Asset Pricing Model” (JFE, 2015)
  • Tsay, Ruey S.: Analysis of Financial Time Series (3rd ed., 2010)
  • Hastie, Tibshirani & Friedman: The Elements of Statistical Learning (2nd ed., 2009)

6. Connected Graph Bridges

Beginner: start at 01 · Practitioner: start at 05