Linear Regression (OLS) in Factor Models

Estimate factor loadings (betas) by regressing asset returns on one or more risk factors.

beginnerregressionbetafactor modelols

Mental model

Regression estimates how much observed return variation is associated with chosen factors.

In a simple factor model r_t = α + β f_t + ε_t, β measures how sensitive the asset is to the factor.

Ordinary least squares (OLS) estimates α and β by minimising the sum of squared residuals between model and observed returns.

INTERACTIVE INTUITION

Explore the mechanism

Which part of an asset's return variation is associated with each factor, and how uncertain is that estimate?

This scatter plot shows a single-factor model rₜ = α + β fₜ + εₜ. The blue line is the OLS fit; the amber line is the true factor relation. Noise and sample size determine how close the estimated beta is to the true beta.

β̂ ≈ 0.794 · R² ≈ 0.398n = 80 · corr(f, r) ≈ 0.631
Factor return fₜAsset return rₜ-5.0%-2.5%0.0%2.5%5.0%-6.6%-3.7%-0.7%2.2%5.1%observed (fₜ, rₜ)OLS fit α̂ + β̂ ftrue relation α + β fβ̂ fluctuates around β; noise and n drive stability.
Numbers
True β = 1.000 · estimated β̂ ≈ 0.794
α̂ ≈ 0.0009 (true α = 0)
corr(f, r) ≈ 0.631 · R² ≈ 0.398
Relative beta error ≈ -20.6%
Interpretation

The amber dashed line is the true factor relation rₜ = α + β fₜ. The blue solid line is the OLS regression fit α̂ + β̂ fₜ to the simulated points.

When idiosyncratic volatility is small and n is large, β̂ tracks β closely and R² is high. With more noise or fewer observations, the cloud thickens, β̂ wanders, and R² falls. The core idea: in a factor model, regression is the mechanism that turns a noisy scatter of (fₜ, rₜ) into an estimated beta and a measure of how much of the asset’s variation the factor actually explains.

UNDERSTAND

What to notice

In practice, sampling noise, limited history, and correlated factors all affect how stable estimated betas and R² appear.

FORMALIZE

The quantitative structure

Notation

y
vector of asset returns
X
matrix of factor returns and optional intercept
beta
vector of factor loadings
epsilon
unexplained residual

Linear factor model

y = X beta + epsilon

Returns are decomposed into factor-linked variation and a residual.

OLS estimator

beta_hat = (X'X)^(-1) X'y

OLS chooses coefficients that minimize the sum of squared residuals when the inverse exists.

This model assumes

  • The relationship is linear in the included regressors.
  • Regressors have sufficient independent variation and the error has conditional mean zero for unbiased estimation.
TRANSFER

Where it appears

  • estimating market and style-factor exposures
  • attributing portfolio returns
  • building hedge ratios
CHALLENGE

Where the intuition breaks

What this view leaves out

  • OLS coefficients can be unstable or misleading when relationships are nonlinear, residuals are dependent or heteroskedastic, regressors are endogenous, or regimes change.

Common mistakes

“A significant regression coefficient proves that the factor causes the return.”

Not quite.

OLS estimates conditional association; causal interpretation requires additional identification assumptions.

CONNECT

Where this concept sits

Follow the strongest prerequisites, applications, extensions, and contrasts.

Connections for Linear Regression (OLS) in Factor Models

Built on · Returns and Log-Returns

Factor regressions typically explain asset returns using market or factor-return series.

Explore concept
SOURCES

References

  1. NIST/SEMATECH e-Handbook, Linear Least Squares Regression (opens in a new tab)
← Explore all concepts