Quant Sandbox
DerivativesPortfolio & RiskFixed IncomeCorporate FinanceProbability & MeasureStochastic ModelsMarket MicrostructureGuide
Guide
Derivatives pricing0 / 17
01Forwards, calls and puts02Combining positions03Arbitrage and the forward price04Put–call parity05The one-step binomial model06Risk-neutral probabilities07Multi-step trees and backward induction08American options and early exercise09Delta and hedging10Geometric Brownian motion11The Black–Scholes formula12The Greeks: gamma, vega, theta and rho13Options on dividend-paying stocks, indices, currencies and futures14Implied volatility and the volatility smile15Stochastic volatility and the Heston model16Static replication: Breeden–Litzenberger and Carr–Madan17Exotic options: barriers, Asians and digitals
Portfolio & risk0 / 12
01Returns and volatility02Diversification and correlation03The efficient frontier and the capital market line04Risk aversion and the optimal complete portfolio05CAPM, beta and the security market line06Performance measures: Sharpe, Treynor, Jensen and information ratio07Factor models and systematic risk08The Fama–French factor models09Value at Risk and expected shortfall10Systemic risk and contagion11Portfolio constraints and the no-short-sales frontier12Estimating expected returns and covariances
Fixed income0 / 10
01Bond prices and yields02Duration and convexity03Immunization and duration matching04Spot rates, forward rates and the yield curve05Non-parallel curve moves and key-rate durations06Bond futures and the cheapest-to-deliver07Interest rate swaps08Callable bonds and negative convexity09Credit risk: default probabilities and credit spreads10Real rates, inflation and inflation-linked bonds
Corporate finance0 / 10
01Interest, compounding and discounting02Annuities, perpetuities and loan amortization03Net present value and internal rate of return04Project risk: sensitivity, scenarios and Monte Carlo NPV05The weighted average cost of capital06Capital structure and the Modigliani–Miller theorems07Dividends, payout policy and the dividend discount model08Discounted cash flow valuation09Relative valuation with multiples10Real options: the value of flexibility
Probability and measure0 / 13
01Measuring the size of sets02σ-algebras and Borel sets03Lebesgue measure and null sets04Measurable functions05The Lebesgue integral06Convergence theorems07Probability spaces and Kolmogorov's axioms08Random variables and their distributions09Expectation, variance and inequalities10Independence and product measures11Modes of convergence and the law of large numbers12Conditional probability and conditional expectation13Measure theory in option pricing
Stochastic models0 / 17
01Random walks and Brownian motion02The law of large numbers and the central limit theorem03Probability spaces, σ-algebras and random variables04Filtrations, adapted processes and stopping times05Conditional expectation and martingales06Properties of Brownian motion07The reflection principle and first passage times08The Brownian bridge09The Itô integral10Itô's lemma11Kolmogorov equations and the Feynman–Kac formula12Change of measure and Girsanov's theorem13Monte Carlo option pricing14Simulating SDEs: the Euler–Maruyama scheme15Correlated Brownian motions and multi-asset models16Mean reversion: Ornstein–Uhlenbeck and Vasicek17Jumps and the Merton jump-diffusion model
Market microstructure0 / 11
01Market makers and liquidity02The limit order book03Queue position and fill probability04Adverse selection and informed trading05The Glosten–Milgrom model06Measuring and decomposing the bid–ask spread07Informed trading and Kyle's lambda08Price impact and optimal execution09Inventory risk and quote skewing10Optimal quoting: the Avellaneda–Stoikov model11Market making profit and loss attribution
Knowledge graph

© 2026 Quant Sandbox · A study aid for quantitative finance

Privacy & dataNo cookies

This site does not use cookies and asks for no personal data. It keeps a few small settings in your browser's local storage — your chosen theme and language, the sidebar layout, and your progress and answers in the Guides — so it remembers them on your next visit. This data never leaves your device; clearing your browser storage removes it. Inputs you change can also be captured in the page URL, so you can share or bookmark a specific setup. The site uses Vercel Web Analytics, a privacy-friendly, cookieless service that records only anonymous, aggregated usage (such as page views) without identifying you or tracking you across other sites.

Guides/Market microstructure/04

Adverse selection and informed trading

Lesson 4 of 11 · 1 min read

A market maker earns the spread from customers it knows nothing about. "Market makers and liquidity" showed the income of a round trip when the mid price does not move, and "Queue position and fill probability" showed that a resting order tends to be filled just before the price moves against it. This lesson explains why: some customers trade because they know where the price is going. It measures the damage with markouts, derives what one such customer costs, and shows how that cost pushes the best spread outward.

Informed and uninformed customers

A noise trader trades for reasons unrelated to the next price move: to invest a pay cheque, raise cash, rebalance a fund, or hedge another position. Over a short horizon the mid price is as likely to rise as to fall after such a trade. An informed trader trades because it expects the mid price to move, and buys just before the price rises or sells just before it falls.

The market maker's quotes are the best bid and ask in the book described in "The limit order book", and anyone can hit them. The maker cannot tell the two kinds of customer apart at the moment of the trade. It sells to the informed buyer at the ask, the price then rises, and the maker is short something worth more than it received. This is adverse selection: the trades the maker gets are not a random sample, because the customers who most want to trade with it are the ones who expect to profit.

Markouts

A markout measures this after the fact. Take a fill at time ttt and a horizon hhh. Let ε=+1\varepsilon = +1ε=+1 if the maker bought and ε=−1\varepsilon = -1ε=−1 if it sold, and let mmm be the mid price. The markout is the mid price move after the fill, signed from the maker's side:

Mh=ε (mt+h−mt).M_h = \varepsilon\,(m_{t+h} - m_t).Mh​=ε(mt+h​−mt​).

A positive markout means the price moved in the maker's favour. Marked to the mid at t+ht+ht+h, one unit bought at the bid mt−δm_t - \deltamt​−δ is worth δ+Mh\delta + M_hδ+Mh​ to the maker: the half-spread it captured, plus the markout. After noise fills the average markout is zero, so the maker keeps the half-spread δ\deltaδ. After informed fills the average markout is negative, and it takes back part or all of that δ\deltaδ.

A model of the maker's income

The maker quotes symmetrically, bid m−δm - \deltam−δ and ask m+δm + \deltam+δ, with half-spread δ\deltaδ in cents. Customers arrive at rate λ\lambdaλ per second, and a share π\piπ of them is informed.

  • A noise customer buys or sells with equal chance and accepts a price δ\deltaδ away from the mid with probability e−kδe^{-k\delta}e−kδ: the wider the quote, the fewer customers take it. The maker earns δ\deltaδ per fill, so one noise arrival is worth δ e−kδ\delta\,e^{-k\delta}δe−kδ on average.
  • An informed customer knows the value change ΔV\Delta VΔV over the next hhh seconds. With volatility σ\sigmaσ in cents per s\sqrt{\text{s}}s​, ΔV\Delta VΔV is normal with mean 0 and standard deviation s=σhs = \sigma\sqrt{h}s=σh​. It buys at the ask when ΔV>δ\Delta V > \deltaΔV>δ and sells at the bid when ΔV<−δ\Delta V < -\deltaΔV<−δ; otherwise the spread eats its profit and it stays out.

The expected loss to an informed customer

Suppose the informed customer buys at m+δm + \deltam+δ because ΔV>δ\Delta V > \deltaΔV>δ. After hhh seconds the maker, who sold, has lost the amount by which the value exceeds what it was paid, net of the spread:

loss=ΔV−δwhen ΔV>δ, and 0 otherwise.\text{loss} = \Delta V - \delta \quad\text{when } \Delta V > \delta, \text{ and } 0 \text{ otherwise.}loss=ΔV−δwhen ΔV>δ, and 0 otherwise.

Its expectation is the partial expectation E[(ΔV−δ)+]E[(\Delta V - \delta)^+]E[(ΔV−δ)+]. Write ΔV=sZ\Delta V = sZΔV=sZ with ZZZ standard normal, density φ\varphiφ and distribution function Φ\PhiΦ, and put a=δ/sa = \delta/sa=δ/s:

E[(ΔV−δ)+]=s∫a∞(z−a) φ(z) dz=s[∫a∞z φ(z) dz−a (1−Φ(a))].E[(\Delta V - \delta)^+] = s\int_a^\infty (z - a)\,\varphi(z)\,dz = s\left[\int_a^\infty z\,\varphi(z)\,dz - a\,(1 - \Phi(a))\right].E[(ΔV−δ)+]=s∫a∞​(z−a)φ(z)dz=s[∫a∞​zφ(z)dz−a(1−Φ(a))].

Since φ′(z)=−z φ(z)\varphi'(z) = -z\,\varphi(z)φ′(z)=−zφ(z), the first integral equals φ(a)\varphi(a)φ(a). Therefore

L(δ)=E[(ΔV−δ)+]=s φ(δ/s)−δ (1−Φ(δ/s)).L(\delta) = E[(\Delta V - \delta)^+] = s\,\varphi(\delta/s) - \delta\,\bigl(1 - \Phi(\delta/s)\bigr).L(δ)=E[(ΔV−δ)+]=sφ(δ/s)−δ(1−Φ(δ/s)).

By symmetry the sell side costs the same, so one informed arrival costs the maker 2L(δ)2L(\delta)2L(δ) in expectation. With a zero spread L(0)=s φ(0)=s/2π≈0.399 sL(0) = s\,\varphi(0) = s/\sqrt{2\pi} \approx 0.399\,sL(0)=sφ(0)=s/2π​≈0.399s, and LLL falls towards zero as δ\deltaδ grows past a few multiples of sss.

Income rate and the best spread

Noise arrivals come at rate λ(1−π)\lambda(1-\pi)λ(1−π) and informed arrivals at rate λπ\lambda\piλπ, so the maker's expected income per second is

R(δ)=λ[(1−π) δ e−kδ−2π L(δ)].R(\delta) = \lambda\Bigl[(1-\pi)\,\delta\,e^{-k\delta} - 2\pi\,L(\delta)\Bigr].R(δ)=λ[(1−π)δe−kδ−2πL(δ)].

Without informed customers, π=0\pi = 0π=0 and R(δ)=λ δ e−kδR(\delta) = \lambda\,\delta\,e^{-k\delta}R(δ)=λδe−kδ. Its derivative is λ e−kδ(1−kδ)\lambda\,e^{-k\delta}(1 - k\delta)λe−kδ(1−kδ), which is zero at δ=1/k\delta = 1/kδ=1/k: this is the best half-spread when everyone is noise.

For π>0\pi > 0π>0 we need L′(δ)L'(\delta)L′(δ). Differentiating LLL with a=δ/sa = \delta/sa=δ/s gives −aφ(a)−(1−Φ(a))+aφ(a)-a\varphi(a) - (1 - \Phi(a)) + a\varphi(a)−aφ(a)−(1−Φ(a))+aφ(a), so L′(δ)=−(1−Φ(δ/s))L'(\delta) = -(1 - \Phi(\delta/s))L′(δ)=−(1−Φ(δ/s)): widening the spread by a small step saves the maker exactly the probability that an informed customer still trades on one side. Setting R′(δ)=0R'(\delta) = 0R′(δ)=0 gives the first-order condition

(1−π) e−kδ (kδ−1)=2π (1−Φ(δ/s)).(1-\pi)\,e^{-k\delta}\,(k\delta - 1) = 2\pi\,\bigl(1 - \Phi(\delta/s)\bigr).(1−π)e−kδ(kδ−1)=2π(1−Φ(δ/s)).

The right side is positive, so the left side must be too, which requires kδ>1k\delta > 1kδ>1: the best half-spread lies above $1/k$, and it moves outward as $\pi$ or $s$ grows. There is also a second effect. At δ=0\delta = 0δ=0 the income is −2πλL(0)<0-2\pi\lambda L(0) < 0−2πλL(0)<0, so a maker with no spread loses money. The smallest half-spread δ0\delta_0δ0​ with R(δ0)=0R(\delta_0) = 0R(δ0​)=0 is the break-even spread: the noise income exactly pays for the informed loss. Below it the average arrival costs the maker money, whatever the volume.

Worked example

Income at half-spreads of 2¢ and 2.3¢

  1. Take λ=4\lambda = 4λ=4 arrivals a second, k=0.5k = 0.5k=0.5 per cent, σ=1\sigma = 1σ=1¢ per s\sqrt{\text{s}}s​, h=3h = 3h=3 s and π=0.2\pi = 0.2π=0.2. The informed customers' view has standard deviation:

    s=σh=3\displaystyle s = \sigma\sqrt{h} = \sqrt{3}s=σh​=3​=1.7321
  2. A noise arrival at δ=2\delta = 2δ=2¢ earns, on average:

    δ e−kδ=2 e−1\displaystyle \delta\,e^{-k\delta} = 2\,e^{-1}δe−kδ=2e−1=0.7358
  3. An informed arrival costs one side's partial expectation. With z=2/3=1.1547z = 2/\sqrt{3} = 1.1547z=2/3​=1.1547 we have φ(z)=0.2048\varphi(z) = 0.2048φ(z)=0.2048 and 1−Φ(z)=0.12411 - \Phi(z) = 0.12411−Φ(z)=0.1241:

    L(2)=1.7321⋅0.2048−2⋅0.1241\displaystyle L(2) = 1.7321 \cdot 0.2048 - 2 \cdot 0.1241L(2)=1.7321⋅0.2048−2⋅0.1241=0.1066
  4. Net income per arrival is the noise share of the first minus both sides of the second:

    0.8⋅0.7358−2⋅0.2⋅0.1066\displaystyle 0.8 \cdot 0.7358 - 2 \cdot 0.2 \cdot 0.10660.8⋅0.7358−2⋅0.2⋅0.1066=0.546
  5. With four arrivals a second the income rate is, in cents per second (131.04¢ a minute):

    R(2)=4⋅0.546\displaystyle R(2) = 4 \cdot 0.546R(2)=4⋅0.546=2.1839
  6. Moving out to δ=2.3\delta = 2.3δ=2.3¢ gives 2.3 e−1.15=0.72832.3\,e^{-1.15} = 0.72832.3e−1.15=0.7283 and L(2.3)=0.0743L(2.3) = 0.0743L(2.3)=0.0743, so the income rate rises:

    R(2.3)=4 (0.8⋅0.7283−0.4⋅0.0743)\displaystyle R(2.3) = 4\,(0.8 \cdot 0.7283 - 0.4 \cdot 0.0743)R(2.3)=4(0.8⋅0.7283−0.4⋅0.0743)=2.2116
  7. Without informed customers the same δ=2\delta = 2δ=2¢ would have earned 4⋅2e−1=2.94304 \cdot 2e^{-1} = 2.94304⋅2e−1=2.9430, so the informed share costs:

    2.9430−2.1839\displaystyle 2.9430 - 2.18392.9430−2.1839=0.7591

The best half-spread with no informed customers is 1/k=21/k = 21/k=2¢. With 20% informed it is about 2.29¢, so the informed customers cost the maker about a quarter of its income at 2¢ and also push the best quote outward.

The figure draws R(δ)R(\delta)R(δ) in cents per minute. The dashed curve is the same flow with no informed customers; the solid curve is the current informed share. Vertical lines mark the break-even half-spread and the best half-spread. At the defaults (20% informed, volatility 1) the dashed curve peaks at 2¢, the solid curve peaks at 2.29¢ with 132.7¢ a minute, and the break-even is 0.32¢. At the handle's starting position of 2¢ the maker earns 141.3¢ from noise customers and loses 10.2¢ to informed ones, 131.0¢ net. Drag the handle along the chart, then raise the informed share to 40%: the best half-spread moves to 2.64¢ and the break-even to 0.74¢. Set volatility to 2 at 20%: the best half-spread is 2.85¢ and the net income at 2¢ falls to 83.1¢.

Spread income under toxic flowOpen in Market Making
20%
00.4
1.00
0.252

Income in ¢ per minute for unit-size quotes; half-spread in ¢. The vertical lines mark the break-even half-spread (left) and the income-maximising half-spread (right).

Without informed customers (¢/min)With informed customers (¢/min)
Noise income (¢/min)
141.3
Lost to informed (¢/min)
10.2
Net income (¢/min)
131.0
Best half-spread (¢)
2.29
Break-even half-spread (¢)
0.32

Toxic flow in practice

Real makers cannot observe π\piπ or sss, but they can compute markout curves: the average of MhM_hMh​ for horizons from a fraction of a second to minutes, split by counterparty, venue, order size or strategy. A flow whose markout curve falls and stays negative is called toxic; a flow whose curve stays near zero is benign. Makers quote tighter, in more size, to the second kind, and wider or not at all to the first.

This is why flow is segmented. Brokers and venues separate retail orders, which rarely carry information about the next few seconds, from fast professional orders, and a maker can afford a narrow spread on the former. Wholesale market makers pay brokers for retail order flow because its markouts are close to zero. The informed customers do not disappear; they are priced in the spread everyone else sees.

A markout depends on the horizon hhh. Too short, and the information has not reached the price yet; too long, and unrelated noise swamps the average. Desks look at the whole curve, not one number.

Summary

  • A market maker cannot tell informed from noise customers at the time of the trade, so its fills are adversely selected.
  • The markout Mh=ε (mt+h−mt)M_h = \varepsilon\,(m_{t+h} - m_t)Mh​=ε(mt+h​−mt​) is zero on average for noise fills and negative for informed fills.
  • One informed arrival costs 2L(δ)2L(\delta)2L(δ) with L(δ)=s φ(δ/s)−δ (1−Φ(δ/s))L(\delta) = s\,\varphi(\delta/s) - \delta\,(1 - \Phi(\delta/s))L(δ)=sφ(δ/s)−δ(1−Φ(δ/s)) and s=σhs = \sigma\sqrt{h}s=σh​.
  • Income is R(δ)=λ[(1−π) δe−kδ−2πL(δ)]R(\delta) = \lambda[(1-\pi)\,\delta e^{-k\delta} - 2\pi L(\delta)]R(δ)=λ[(1−π)δe−kδ−2πL(δ)]; the best half-spread moves above 1/k1/k1/k as the informed share grows, and below the break-even spread the maker loses money on average.
Try itOpen the market making lab
3 questions on this lesson at the end of the series
Previous · 03Queue position and fill probabilityNext · 05The Glosten–Milgrom model
Connections

Adverse selection and informed trading

Open the full graph
Builds on
07.03Queue position and fill probability07.01Market makers and liquidity07.02The limit order book
Leads to
07.05The Glosten–Milgrom model07.07Informed trading and Kyle's lambda07.10Optimal quoting: the Avellaneda–Stoikov model07.11Market making profit and loss attribution
See it in the knowledge graph
Labs for this lesson
Market Making