Glosten and Milgrom (1985) derive the bid-ask spread from adverse selection alone. A fraction p of arriving traders know a binary asset value V ∈ {V_L, V_H}; the rest trade at random. A competitive market maker quotes
ask = E[V | buy], bid = E[V | sell],
updating by Bayes on the direction of the order. The spread is what is left.
Two modelling conventions, both visible in the statements. The sell event is Bᶜ: every arriving trader either buys or sells, so there is no no-trade outcome, and bid = E[V | Bᶜ]. And the quotes are posited to be those conditional expectations — Glosten-Milgrom's derivation of them from a competitive market maker's zero expected profit is not formalized here.
The four stages below are marked by section headers. The fourth is what makes the other three a single theorem rather than three separate ones: cond_toReal_eq is Bayes pushed through .toReal, and that is what identifies the model's posterior μ[H | B] with the real function postBuy stage 3 reasons about. toReal sends ∞ ↦ 0 and x/0 ↦ 0, so every conversion below carries its ≠ ∞ side condition.
The ℝ≥0∞ stages state the trade probabilities additively — 2·P = 1 + p, 2·P + p = 1 — so that no step ever forms a difference in a type where subtraction truncates. The textbook form does follow from the additive one (ENNReal.eq_sub_of_add_eq, given p ≠ ∞); it is the proofs, not the statements, that the additive form buys.
The hypothesis 0 < θ < 1
The usual statement of the result omits it. It is not a technical convenience, and the two endpoints fail for different reasons.
With p < 1 a degenerate prior leaves nothing to be adversely selected: both posteriors coincide, the spread is exactly 0, and ask - bid > 0 is false.
A degenerate prior with p = 1 is worse, in two ways both machine-checked here. One of the two trade events becomes null, and quote_eq_zero_of_null shows what cond then returns: not a bad price but the zero measure, whose integral is 0. And spread_junk_at_corner evaluates the closed form at θ = 1, p = 1 — it returns the entire V_H - V_L, the largest spread there could be, at the one point where the true spread is 0, because 0/0 = 0. Nothing errors in either case. Excluding the endpoints excludes both at once.
The derivation demands the hypothesis independently: two_mul_cond_buy_high needs μ H ≠ 0 and two_mul_cond_buy_low_add needs μ Hᶜ ≠ 0, so their hypotheses cannot be jointly satisfied without 0 < θ < 1.
A model satisfying all of them — so the theorem is not vacuous — is in MathFin.Markets.Microstructure.GlostenMilgromModel.
Main definitions
payoff: the two-valued asset, VL + indicator H (VH - VL), equal to VH on the high event H and VL off it.postBuy, postSell: the posterior probability that the value is high after a buy, (1 + p) θ / (1 + p (2θ - 1)), and after a sell, (1 - p) θ / (1 - p (2θ - 1)).
Main results
two_mul_cond_buy_high, two_mul_cond_buy_low_add: the trade probabilities, derived from the trader mix.payoff, spread_eq: the quotes as integrals, and the payoff cancelling.postBuy, postSell, post_sub_post: the posteriors and the closed form 4pθ(1-θ) / (1 - p²(2θ-1)²).cond_toReal_eq: Bayes in ℝ — the seam.postBuy_eq, postSell_eq: the model's posteriors are postBuy/postSell.spread_pos_of_model: ∫ V ∂μ[|buy] > ∫ V ∂μ[|sell], from the model's own primitives.quote_eq_zero_of_null, spread_junk_at_corner: what the excluded endpoints actually do — a quote that is not a quote, and a closed form returning the whole value range.
References
- L. R. Glosten and P. R. Milgrom, Bid, ask and transaction prices in a specialist market with heterogeneously informed traders [GlostenMilgrom1985].
Tags
Glosten–Milgrom model, bid–ask spread, adverse selection, market maker, informed trader, market microstructure, Bayesian updating, MSC 91B26, JEL D82, JEL G14