5. The Two Fears: Inventory Risk & Adverse Selection
Why does a spread exist at all? Two Nobel-grade answers: because holding things is risky (Ho–Stoll), and because some of your customers know more than you (Glosten–Milgrom, Kyle).
Fear #1 — Inventory risk (Ho & Stoll, 1981)
Ho and Stoll gave the first rigorous treatment of Rosa's first fear: a risk-averse dealer facing random buy and sell arrivals should not quote symmetrically around fair value once they hold a position. Holding inventory exposes the dealer to price moves they have no opinion about; a rational dealer charges for that exposure by skewing quotes — long inventory pushes both bid and ask down (eager to sell, reluctant to buy more), short inventory pushes both up. The skew grows with risk aversion, variance, and the time you expect to hold the position. Avellaneda–Stoikov (Chapter 6) turned this insight into the closed-form equations everyone uses today.
Fear #2 — Adverse selection (Glosten & Milgrom, 1985)
Glosten and Milgrom proved something stranger: even a risk-neutral market maker with zero costs and zero profit must quote a positive spread, purely because of information asymmetry. In their model, each arriving trader is informed with probability μ (they know the asset's true value) or a noise trader with probability 1−μ (they trade for liquidity reasons). The MM can't tell them apart. But the MM knows that a buy order is more likely to come from someone who knows the value is high — so the very act of receiving a buy order should raise the MM's estimate of value. The zero-profit quotes are conditional expectations:
The ask sits above the unconditional expectation and the bid below it; the gap is the pure adverse-selection spread. Each trade then updates the MM's beliefs (Bayes' rule), which is precisely how prices come to reflect information over time.
Glosten–Milgrom by the numbers
The model becomes unforgettable with one concrete case. Take a binary contract (a Kalshi-style YES) whose true value is $1 or $0 with equal prior probability. A fraction μ of arriving traders are informed (they know the answer); the rest flip a coin. Bayes' rule gives the zero-profit quotes in closed form — and at a 50/50 prior they collapse to something beautiful:
The spread equals the informed fraction. If 20% of your counterparties know the outcome, the break-even market is 40¢ bid / 60¢ ask — a 20¢ spread on a 50¢ contract, with zero risk aversion and zero fees. And the model doesn't stop at one trade: after each fill the market maker updates the prior (a buy moves it up to the old ask, a sell down to the old bid) and posts fresh quotes around the new belief. Run it yourself:
Kyle (1985): how much does flow move price?
Kyle modeled a single informed trader hiding inside noise-trader flow, with a market maker setting price as a linear function of the net order flow:
λ (lambda) is the price impact per unit of flow — the inverse of market depth. Kyle showed λ rises with the variance of the true value and falls with the amount of noise trading: the more uninformed flow there is to hide in, the deeper the market. For a practitioner, λ is something to estimate continuously: when your fills start predicting price moves (your post-fill markouts go negative), the flow has turned toxic and your quotes are too tight.
The simulation below makes adverse selection visceral. Noise traders hit your quotes at random — you collect the spread. Informed traders only hit you just before the price jumps in their favor — every informed fill is money out. Slide μ and watch the business die.
The complete anatomy of a spread
Empirically, real spreads decompose into three components — and this decomposition is your profitability audit:
| Component | Compensates for | Theory |
|---|---|---|
| Order-processing cost | Fees, infrastructure, capital | — |
| Inventory risk premium | Variance of held positions | Ho–Stoll · Avellaneda–Stoikov |
| Adverse-selection premium | Trading against informed flow | Glosten–Milgrom · Kyle |
4. A Brief History of Market Making
From men in colored jackets shouting in pits, to algorithms quoting in microseconds, to community-owned vaults quoting on-chain. Click each event to expand it.
6. The Mathematics of Optimal Quoting
Avellaneda–Stoikov (2008): the two formulas that run half the market making bots on Earth — derived gently, then driven with sliders.