Building a Factor Risk Model: The Optimizer

· Factor Risk Models, Part 5

Rolling the model back to a formation date two years before the end of the sample, drawing a random 30-stock portfolio, and reshaping it three ways with a small active-set QP. Every prediction is then graded on the 104 weeks the model never saw.

financerisk-modelsfactor-risk-model

Building a Factor Risk Model: The Data

Setting up a client-side data pipeline for a Barra-style fundamental factor risk model. We load parquet files into DuckDB WASM and explore our security universe and financial data directly in the browser.

financerisk-modelsfactor-risk-model

Market Efficiency

· Investments 101, Part 12

The efficient market hypothesis, its three forms, the evidence for and against it, the Grossman-Stiglitz paradox, and what it all means for investors.

financemarketsinvestments-101

Portfolio Optimization

· Investments 101, Part 11

The covariance matrix for N assets, why covariances dominate portfolio risk, alpha as a gradient for improving the Sharpe ratio, tilting toward positive alpha, and the CAPM as an optimality condition.

financeportfoliosinvestments-101

CAPM & Factor Models

· Investments 101, Part 10

From tangent portfolio to market portfolio, why diversifiable risk earns no premium, beta, the CAPM and Security Market Line, alpha, multi-factor models (Fama-French), and arbitrage pricing theory.

financeportfoliosinvestments-101

Diversification & Portfolio Risk

· Investments 101, Part 8

Covariance, correlation, the two-asset portfolio variance formula, the diversification curve, systematic vs. idiosyncratic risk, and why diversification is the closest thing to a free lunch in finance.

financeportfoliosinvestments-101

Portfolio Returns

· Investments 101, Part 7

Portfolio weights, the weighted-average return formula, buying on margin, short selling, leverage, rebalancing, and how the major stock indexes are built.

financeportfoliosinvestments-101

Risk & Return

· Investments 101, Part 6

Expected return, variance, standard deviation, the normal model, Value at Risk, the Sharpe ratio, and why measuring risk is harder than measuring return.

financeriskinvestments-101

Stocks & Valuation

· Investments 101, Part 5

The dividend discount model, multi-stage growth, implied returns, P/E ratios, and why small input changes produce big price swings.

financestocksinvestments-101

Duration & Convexity

· Investments 101, Part 4

Macaulay duration, modified duration, and convexity: the math behind how sensitive a bond's price is to interest rate changes.

financebondsinvestments-101

Bond Pricing & Yield

· Investments 101, Part 3

How to price a bond from first principles, why prices and yields move in opposite directions, and what the shape of the yield curve is trying to say.

financebondsinvestments-101