Huang-Stoll Bid-Ask Spread Decomposition Lab
Decompose the quoted bid-ask spread into adverse selection ($\alpha$), inventory holding ($\beta$), and order processing ($\gamma$) components using Roger Huang and Hans Stoll's (1997) structural econometric model.
Model Controls
Huang & Stoll (1997)Microstructure Moments & Econometric Estimates
Analytical & Empirical| Parameter / Econometric Measure | Theoretical Formula | Calculated Equilibrium Value |
|---|
Dealer Profit Sensitivity Matrix
Expected Dealer Net Margin per Trade ($) across Order Flow Autocorrelation ($\pi$) and Adverse Selection ($\alpha$).
Inventory Risk Friction Matrix
Inventory Holding Cost per Share ($) across Quoted Spread ($S$) and Inventory Holding Share ($\beta$).
Huang & Stoll (1997) Microstructure Masterclass
1. Economic Foundations of the Bid-Ask Spread
In financial markets, the quoted bid-ask spread is not pure monopolistic dealer profit. Instead, competitive market makers quote spreads to compensate for three distinct economic frictions identified in modern microstructure theory:
1. Adverse Selection ($\alpha$)
Pioneered by Bagehot (1971), Glosten & Milgrom (1985), and Kyle (1985). Liquidity providers regularly trade against informed investors who possess superior private signals. Because dealers lose money to informed traders, they must widen the spread on all incoming orders to break even.
2. Inventory Holding Risk ($\beta$)
Pioneered by Demsetz (1968), Ho & Stoll (1981), and Avellaneda & Stoikov (2008). Market makers must absorb order imbalances. Holding long or short inventory exposes the dealer to price volatility and capital financing costs, requiring quote skewing and a risk premium.
3. Order Processing & Profit ($\gamma$)
Covers exchange connection, colocation, clearing fees, regulatory compliance, technology infrastructure depreciation, and the dealer's competitive return on equity: $\gamma = 1 - \alpha - \beta$.
2. Structural Equations of the Huang-Stoll Model
Let $Q_t \in \{-1, +1\}$ denote the trade indicator (+1 for buyer-initiated trades, -1 for seller-initiated trades). Unobserved true fundamental value evolves with permanent information shocks:
The quoted midpoint $M_t$ reflects both fundamental value $V_t$ and the dealer's accumulated inventory adjustment. In increments, the midpoint equation is:
Transaction prices occur at $P_t = M_t + \frac{S}{2} Q_t$. First differencing transaction prices yields the complete observable return series:
3. Econometric Identification & Roll (1984) Contrast
Richard Roll (1984) assumed market efficiency without adverse selection or inventory risk ($\alpha = 0, \beta = 0$). Under pure order processing bounce, serial price covariance is simply $\text{Cov}(\Delta P_t, \Delta P_{t-1}) = -(S/2)^2$, yielding the celebrated Roll spread formula $S_{\text{Roll}} = 2\sqrt{-\text{Cov}}$.
However, when adverse selection ($\alpha > 0$) and order flow persistence ($\pi > 0$) exist, trade covariance becomes positive, often causing the sample covariance of returns to be positive and the Roll model to fail (yielding imaginary spreads). The Huang-Stoll model resolves this fundamental failure by explicitly controlling for order flow autocorrelation $\pi$ and separating temporary inventory mean-reversion from permanent adverse selection shifts.
Interactive Spread Decomposition Mastery Quiz
Related Market Microstructure Simulators
Kyle's Lambda & Microstructure Lab
Model Pete Kyle's (1985) informed insider trading equilibrium, Glosten-Milgrom Bayesian pricing, and adverse selection spreads.
Avellaneda-Stoikov Market Making Lab
Model high-frequency market making, reservation price skewing, inventory penalty control, and optimal limit quote schedules.
Hasbrouck Information Share Lab
Decompose multi-venue price discovery into permanent common random-walk variance and Gonzalo-Granger Component Share.
Yang-Zhang Range Volatility Lab
Estimate historical volatility with 8x to 14x greater efficiency using Dennis Yang and Qiang Zhang's (2000) jump- and drift-adjusted OHLC model.