Basic Prerequisites: Bayesian Statistics and 02 · Informed vs Uninformed.


1. Intuition & Practical Objective

Glosten–Milgrom (1985) built the smallest market where the spread is endogenous: one risky asset worth either or ; a risk-neutral, competitive market maker; and a random stream of traders who are either informed (know the state) or uninformed (trade noise). The maker’s only tool is a price rule. The model’s striking conclusions, all verified against Hasbrouck Ch 5 and Foucault Ch 3:

  1. The spread exists purely because of potential informed trading. With zero informed traders () the spread collapses to zero even though the maker still does all the mechanics.
  2. Quotes are “regret-free” conditional means. The maker sets ask = expected value given a buy just hit it and bid = expected value given a sell just hit it. Because a buy is mildly informative, the maker marks the ask up and the bid down - and the gap between the two is the spread.
  3. Transaction prices are a martingale with respect to the maker’s information: prices adapt as fast as the maker learns, so the trade-price series cannot be predicted. Yet the observable tick-by-tick moves convey information - that is price discovery.

The practical objective: implement the market maker’s inference + quoting policy, run it, and watch the belief and the spread evolve through hundreds of trades - a faithful, working rendition of the primary paper.


2. Mathematical Ground Truth & Derivations

Let , prior , and = probability a given trader is informed. Uninformed buy/sell with probability ; informed buy if , sell if .

Arrival law of a Buy order:

Bayes update (Hasbrouck eq. 5.1/5.5; Foucault eq. 3.16–3.17):

Zero-profit (competitive, regret-free) quotes (Hasbrouck eq. 5.2/5.6; Foucault eq. 3.5/3.7):

Vanishing spread as learning converges. With and a value dispersion of :

which at gives the celebrated first-trade spread

The spread is widest at maximal uncertainty (), shrinks toward as or (the maker learns the value), and is zero for all when - adverse selection alone generates the entire spread. Hasbrouck’s equivalent formula (with ) is , identical at to .

Net wealth-transfer identity (Hasbrouck eq. 5.4): expected gains from uninformed exactly balance expected losses to informed,


3. Computational Implementation - the sequential Bayesian market maker (stdlib only)

Simulate the maker learning. With true value , : the maker starts at , quotes ask /bid , and after thousands of informed-biased buys drives and the spread to . Ran and verified.

The output is exactly the model’s three claims: (1) spread grows linearly in (and is at ), (2) the quoted values track , and (3) over time the competing maker learns the truth - price converges to and the spread vanishes. This is price discovery: transaction prices are martingales for the maker, yet they converge to the true value.


4. Failure Modes & First-Principles Breakdowns

  1. Missing why the spread is asymmetric. In general , so and are not symmetric about the unconditional mean. Quoting mid is wrong once flow is one-sided - the mid should equal only when (Hasbrouck Ch 5; Foucault Ch 3).
  2. Forgetting the quotes are conditional, not point estimates. is an expected value given a specific order. A maker who treats the ask as “value + constant fee” has thrown away the information content of the order that just filled them.
  3. The martingale does not mean “no information.” Transaction prices being a martingale w.r.t. the maker’s info does not imply trades are uninformative - it is precisely because they are informative that the maker marks them into the quotes. Conflating the two is the classic misread of GM.

5. References

  • Glosten & Milgrom (1985), JFE 14(1), 71–100
  • Hasbrouck (2007), Empirical Market Microstructure
  • Foucault, Pagano & Röell (2013), Market Liquidity
  • Bagehot (1971) (= Walter Bagehot pseudonym), The only game in town, Financial Analysts Journal 27(2), 12–14

6. Connected Graph Bridges