QQuant, Built

A forty-three-part course in quantitative finance, in film and in code

Quant, Built

In 1900 Louis Bachelier wrote that the expectation of the speculator is zero. Pricing says that is exactly right, once you discount and change measure. Investing says it is not quite right: someone is paid to take the other side. The course is the argument between those two sentences, from a first random walk to the research frontier, and it builds its own quant firm along the way.

43 parts43 hours of lectures 759 chapters43 runnable labs 4 tracks

Contents

Each part opens as lecture notes: the text of every chapter, its key results, an interactive, a lab, problems with solutions and its reading. The label is the level at which a part can first be followed.

Act IMarkets and Money

What a price is, how a trade is made and settled, and what a share is a claim on.

Act IIThe Mathematical Toolkit

Martingales and measure, stochastic calculus, econometrics, time series and control: the language of the rest.

Act IIIDerivatives (Q)

Pricing by replication: from one-period arbitrage to the volatility surface, rates, credit and XVA.

9No ArbitrageWhen two portfolios pay the same thing, they must cost the same. How much of finance follows from that alone?Undergraduate64 min10Black–Scholes–MertonCan an option be manufactured from the stock and cash, and what does the manufacturer earn?Undergraduate61 min11Trading OptionsAn option position earns from movement and pays for time. How is that trade actually run?Undergraduate65 min12The Volatility SurfaceBlack-Scholes says one volatility per stock. The market quotes a different one for every strike and expiry. What is that surface, and what shapes can it not take?Master's61 min13Stochastic Volatility and JumpsIf volatility itself is random, what smile does that produce, and can one model fit both the smile and the way it moves?Master's62 min14Rough and Path-Dependent VolatilityThe skew of short-dated options explodes like a power of maturity. Is volatility rough, and does it matter for prices?Master's64 min15Exotics and Structured ProductsA note pays a 15% coupon unless the index falls through a barrier. What has the buyer sold, and who is on the other side?Master's65 min16Computing PricesThe same price can be computed by simulation, by a grid, or by a Fourier integral. Which machine, for which product, to what accuracy?Master's66 min17Deep Pricing and HedgingCan a network learn to price and to hedge, and how would you know whether to trust it?Master's64 min18Money, Bonds and the CurveGovernment bonds are called safe, and in 2022 long ones fell further than stocks. What is a bond's risk, and what moves the curve?Undergraduate65 min19Term-Structure ModelsHow do you price an option on an interest rate when the thing you discount with is the thing that is random?Master's60 min20CreditWhat is a promise to pay worth, and why did so many promises fail together in 2008?Undergraduate69 min21Counterparty Risk, XVA and ClearingEvery derivative is also a loan to whoever owes you. What is that loan worth, and who should stand in the middle?Master's55 min22FX, Commodities and the BasisTwo currencies, two interest rates, one forward price. Why does the arbitrage that ties them together stop working, and what is carry?Undergraduate59 min

Act IVReturn Premia (P)

What risk is paid, which factors are real, and how not to fool yourself with a backtest or a model.

Act VPortfolios, Strategies and the Firm

Turning forecasts into positions, positions into a book, and a book into a business.

Act VIMarket Microstructure

Who trades with whom, the order book, impact and execution, market making, and crypto's market design.

Act VIIThe System

Measuring risk, how leverage and liquidity turn losses into crises, and markets full of machines.

FinaleCan You Beat the Market?

The evidence, the arithmetic, and what the series built.

How to use the course

1 · Read or watch

Each part is a 50-65 minute lecture built in code: derivations in full, models trained on screen, every number computed or cited. Its page carries the lecture as text, chapter by chapter, so you can follow along with the film or read it on its own.

2 · Run the lab

One lab per part, on the series' own library, the House. Seeded, a few seconds each, no data to download. Each ends with three things to change.

3 · Work the problems

Desk questions in the trading-interview tradition and a tiered problem set per part, the last two at qualifying-exam level, all with worked solutions.

4 · Read on

Every part lists its textbook sections and papers, and what the literature has not settled.

Four tracks through the same material

Every chapter has a home level. A track is the set of chapters to watch at that level; on each part's page a button shows them.

What runs through all of it

The House

The series' own quant firm, built desk by desk: about fifty tested modules in numpy and scipy, from Black-Scholes to a limit-order-book simulator. The labs call it; so do the films.

P and Q

Every result says which measure it lives under. Prices and implied quantities are Q; forecasts, premia and realized quantities are P.

The evaluation protocol

Research uses data to the end of 2020. A strategy is registered before a fresh test, with its costs and its count of trials; the course teaches the protocol and how little five years can prove.

Crisis files and firm files

Each idea is shown where it broke (1987, 1998, 2008, 2020, 2022) and in the hands of the firms whose business it is, from the public record.

The course in one picture

Setup

Run the labs (two minutes)

git clone https://github.com/Sir-Teo/explainer-videos.git
cd explainer-videos
pip install numpy scipy matplotlib numba
python -m videos.quant.labs 10          # Lab 10: delta hedging
python -m videos.quant.labs --all       # all forty-three

Build the films

bash tools/setup_linux.sh && source .venv/bin/activate
python -m explainer.quant.data          # public market data, checksummed
python -m videos.quant.quant10.compute  # Part 10's numbers
python tools/make.py quant10            # the narrated film

The plan of record is SYLLABUS.md; the textbook coverage maps and every part's paper list are on the reading page. The films are in English and Chinese; each part's page carries its Chinese notes.