Market Microstructure Tutorial R/Finance 2009



Similar documents
Financial Market Microstructure Theory

Asymmetric Information (2)

An introduction to asymmetric information and financial market microstructure (Tutorial)

Financial Markets. Itay Goldstein. Wharton School, University of Pennsylvania

A new model of a market maker

Finance 400 A. Penati - G. Pennacchi Market Micro-Structure: Notes on the Kyle Model

Markus K. Brunnermeier

Supervised Learning of Market Making Strategy

Department of Economics and Related Studies Financial Market Microstructure. Topic 1 : Overview and Fixed Cost Models of Spreads

Journal Of Financial And Strategic Decisions Volume 9 Number 2 Summer 1996

Lecture 3: Linear methods for classification

Implied Volatility Skews in the Foreign Exchange Market. Empirical Evidence from JPY and GBP:

The (implicit) cost of equity trading at the Oslo Stock Exchange. What does the data tell us?

Goal Market Maker Pricing and Information about Prospective Order Flow

The Effects of Market-Making on Price Dynamics

The Effects of Market-Making on Price Dynamics

INCORPORATION OF LIQUIDITY RISKS INTO EQUITY PORTFOLIO RISK ESTIMATES. Dan dibartolomeo September 2010

High-frequency trading in a limit order book

Short-sale Constraints, Bid-Ask Spreads, and Information Acquisition

Forecasting in supply chains

News Trading and Speed

2. Information Economics

Electronic Market-Makers: Empirical Comparison

problem arises when only a non-random sample is available differs from censored regression model in that x i is also unobserved

Market Microstructure: An Interactive Exercise

Trade Size and the Adverse Selection Component of. the Spread: Which Trades Are "Big"?

Forecasting Trade Direction and Size of Future Contracts Using Deep Belief Network

Decimalization and market liquidity

Simple Equity Trading

Strategic futures trading in oligopoly

Algorithmic Trading: Model of Execution Probability and Order Placement Strategy

VI. Real Business Cycles Models

WORKING PAPER SERIES 2014-ACF-02

Market Microstructure & Trading Universidade Federal de Santa Catarina Syllabus. rgencay@sfu.ca, Web: rgencay

Market Microstructure. Hans R. Stoll. Owen Graduate School of Management Vanderbilt University Nashville, TN

Trading for News: an Examination of Intraday Trading Behaviour of Australian Treasury-Bond Futures Markets

A Study of information asymmetry using Bid-Ask spread on firm value: evidence from Tehran Stock Exchange

Estimating Volatility

FINANCIAL MARKETS GROUP AN ESRC RESEARCH CENTRE

Forgery, market liquidity, and demat trading: Evidence from the National Stock Exchange in India

UNIVERSITÀ DELLA SVIZZERA ITALIANA MARKET MICROSTRUCTURE AND ITS APPLICATIONS

Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression

How To Understand And Understand Finance

Commission-free Exchange-traded Funds - Are individual investors always better off?

Trading Volume and Information Asymmetry Surrounding. Announcements: Australian Evidence

Fixed odds bookmaking with stochastic betting demands

Online Appendix to Impatient Trading, Liquidity. Provision, and Stock Selection by Mutual Funds

Math 461 Fall 2006 Test 2 Solutions

Example: Credit card default, we may be more interested in predicting the probabilty of a default than classifying individuals as default or not.

How to Win the Stock Market Game

1 Portfolio mean and variance

Behavior of Interest Rates

Algorithms for VWAP and Limit Order Trading

Market Risk Analysis. Quantitative Methods in Finance. Volume I. The Wiley Finance Series

The sample space for a pair of die rolls is the set. The sample space for a random number between 0 and 1 is the interval [0, 1].

The Proportional Odds Model for Assessing Rater Agreement with Multiple Modalities

Statistics 104: Section 6!

VALUATION IN DERIVATIVES MARKETS

For a partition B 1,..., B n, where B i B j = for i. A = (A B 1 ) (A B 2 ),..., (A B n ) and thus. P (A) = P (A B i ) = P (A B i )P (B i )

These slides follow closely the (English) course textbook Pattern Recognition and Machine Learning by Christopher Bishop

Statistical Machine Learning

Market Making with Asymmetric Information and Inventory Risk

Real Business Cycle Models

ECE302 Spring 2006 HW4 Solutions February 6,

Options pricing in discrete systems

Introduction to Algorithmic Trading Strategies Lecture 2

Optimal order placement in a limit order book. Adrien de Larrard and Xin Guo. Laboratoire de Probabilités, Univ Paris VI & UC Berkeley

Trading Aggressiveness and Market Breadth Around Earnings Announcements

Online Appendix Feedback Effects, Asymmetric Trading, and the Limits to Arbitrage

Estimating a Structural Model of Herd Behavior in Financial Markets Online Appendix

Pattern Recognition and Prediction in Equity Market

Underlier Filters Category Data Field Description

Sensex Realized Volatility Index

Lecture 14 More on Real Business Cycles. Noah Williams

THE INTRADAY PATTERN OF INFORMATION ASYMMETRY: EVIDENCE FROM THE NYSE

Power-law Price-impact Models and Stock Pinning near Option Expiration Dates. Marco Avellaneda Gennady Kasyan Michael D. Lipkin

Asset Pricing Implications of Short-sale Constraints in Imperfectly Competitive Markets

Simple Regression Theory II 2010 Samuel L. Baker

Notes on Continuous Random Variables

An Introduction to Modeling Stock Price Returns With a View Towards Option Pricing

Supply Chain Analysis Tools

Two Months in the Life of Several Gilt-edged Market Makers on the London Stock Exchange

Adaptive Arrival Price

A Simple Utility Approach to Private Equity Sales

Geostatistics Exploratory Analysis

Recursive Algorithms. Recursion. Motivating Example Factorial Recall the factorial function. { 1 if n = 1 n! = n (n 1)! if n > 1

Investors and Central Bank s Uncertainty Embedded in Index Options On-Line Appendix

AN ANALYSIS OF EXISTING ARTIFICIAL STOCK MARKET MODELS FOR REPRESENTING BOMBAY STOCK EXCHANGE (BSE)

Volatility Dispersion Presentation for the CBOE Risk Management Conference

Monte Carlo and Empirical Methods for Stochastic Inference (MASM11/FMS091)

Stock Trading Systems: A Comparison of US and China. April 30, 2016 Session 5 Joel Hasbrouck

Comparing Prediction Market Structures, With an Application to Market Making

Experimental Design. Power and Sample Size Determination. Proportions. Proportions. Confidence Interval for p. The Binomial Test

Advanced Fixed Income Analytics Lecture 1

Simple Linear Regression

Options 1 OPTIONS. Introduction

Algorithmic Trading Session 1 Introduction. Oliver Steinki, CFA, FRM

Univariate Time Series Analysis; ARIMA Models

Trading Costs and Taxes!

Transcription:

Market Microstructure Tutorial R/Finance 2009 Dale W.R. Rosenthal 1 Department of Finance and International Center for Futures and Derivatives University of Illinois at Chicago 24 April 2009 1 daler@uic.edu

Who Am I Assistant Professor of Finance at UIC Teach Investments; Market Microstructure; Commodities. B.S., Electrical Engineering, Cornell U., 1995. Ph.D., Statistics, U. Chicago, 2008. Programmer Intern, Listed Equities, Goldman Sachs, 1993 4. Strategist, Equity Derivatives, LTCM, 1995 2000. Trader/Researcher, Equity Trading Lab, Morgan Stanley, 2000-3. Self-employed Trader/Researcher/Coder, Summer 2004.

What Microstructure Is and Is Not Market microstructure studies the details of how markets work. Market microstructure is not neoclassical finance 2. often directly opposes Efficient Market Hypothesis. If you believe markets are efficient: the details of how markets work are irrelevant since... you always get efficient price (less universally-known fee). Thus microstructure embraces: the possibility of short-term alpha; and behavioral effects. 2 So you short one stock... omits a lot.

What I Cover in a Microstructure Course When I teach microstructure, I cover many topics: 1 Market Types 2 Orders and Quotes 3 Trades and Traders 4 Market Structures 5 Roll and Sequential Trade Models Play with some 6 Strategic Trader and Inventory Models of these today. 7 Prices, Sizes, and Times 8 Liquidity and Transactions Costs 9 Market Metrics Across Time 10 Electronic Markets 11 Electronic Trading Tools and Strategies

Introduction Today we ll consider models for microstructure phenomena. For these models, need to adopt a different perspective. Models are simple; lets us conduct controlled experiments. Eliminate all but one or two major factors. Question: Does this model reproduce real-life features? If so: factors we are considering probably matter. We may even have an idea about how those factors matter. Less confusion about what matters helps build better models. Newest research combining such models with time series. All models are wrong; some models are useful. George Box

Asymmetric Information Models We will examine two asymmetric information models. Asymmetry: Trades may contain private information. Sequential trade: independent sequence of traders. Traders: informed (know asset value) or not; trade once. Single market maker; learns information by trading. Strategic trader: one informed trader can trade many times. Informed trader considers own impact on later trades. Uninformed (noise) traders also submit orders. Single MM sees combined order, sets price, fills order. Some slides are for you to study later; I ll skip those.

Glosten-Milgrom (1985) Model

Glosten and Milgrom (1985) Model Most famous sequential trade model. MM quotes a bid B and ask A. Security has value V = V or V, V < V. At time t = 0, informed traders (only) learn V. Time is discretized. Trades are for one unit, occur at each time step. MM has infinite capital: no inventory/bankruptcy concerns.

Glosten-Milgrom Model: Setup { V w.p. 1 δ V V w.p. δ { Informed w.p. µ Trader type T Uninformed w.p. 1 µ. Traders take action S (buy/sell from MM), one at a time. { buy if V = V Informed traders: S sell if V = V. { buy w.p. 1/2 Uninformed traders: S sell w.p. 1/2.

Glosten-Milgrom Model: Event Trees 1 buy I ; S =? µ sell 0 V V = V ; T =? 1/2 1 δ 1 µ U; S =? sell 1/2 V =? I ; S =? 0 µ δ buy 1 V V = V ; T =? sell 1 µ U; S =? 1/2 buy 1/2 t = 0 t = 1, 2,... sell V = security value (V, V) T = trader type (Informed/Uninformed) S = trader s side (buy/sell)

Glosten-Milgrom Model: Likelihood of Buys and Sells What is P(buy), P(sell) after one trade? P(buy) = P(buy V )P(V ) + P(buy V )P(V ) (1) (1 µ)δ + (1 + µ)(1 δ) 1 + µ(1 2δ) = = 2 2 (2) P(sell) = P(sell V )P(V ) + P(sell V )P(V ) (3) = (1 + µ)δ + (1 µ)(1 δ) 2 = 1 µ(1 2δ) 2 (4)

Glosten-Milgrom Model: Likelihood of V, V After one trade, we have information via Bayes Theorem: P(V buy) = P(V buy) = P(V sell) = P(V sell) = P(buy V )P(V ) (1 δ)(1 + µ) = P(buy) 1 + µ(1 2δ) P(buy V )P(V ) δ(1 µ) = P(buy) 1 + µ(1 2δ) P(sell V )P(V ) (1 δ)(1 µ) = P(sell) 1 µ(1 2δ) P(sell V )P(V ) δ(1 + µ) = P(sell) 1 µ(1 2δ) (5) (6) (7) (8)

Glosten-Milgrom Model: Bid, Ask, Spread If competition narrows profit to 0, before trading... A = E(V buy) and B = E(V sell). A B = A = V P(V buy) + V P(V buy) (9) = V δ(1 µ) (1 δ)(1 + µ) + V 1 + µ(1 2δ) 1 + µ(1 2δ) (10) B = V P(V sell) + V P(V sell) (11) = V δ(1 + µ) (1 δ)(1 µ) + V 1 µ(1 2δ) 1 µ(1 2δ) (12) 4(1 δ)δµ(v V ) 1 µ 2 (1 2δ) 2 (13)

Glosten-Milgrom Model: Updating Bids and Asks After each trade, Bayesian update of beliefs about V. Idea: How often would we see these trades if V = V vs. V? With these ideas, we can update the bid and ask prices. Expected bid and ask after k buys and l sells: A k+l = = V P(V k + 1 buys, l sells) + V P(V k + 1 buys, l sells) (14) = V δ(1 µ)k+1 (1 + µ) l + V (1 δ)(1 + µ) k+1 (1 µ) l (1 δ)(1 + µ) k+1 (1 µ) l + δ(1 µ) k+1 (1 + µ) l (15) B k+l = = V P(V k buys, l + 1 sells) + V P(V k buys, l + 1 sells) (16) = V δ(1 µ)k (1 + µ) l+1 + V (1 δ)(1 µ) k (1 + µ) l+1 (1 δ)(1 + µ) k (1 µ) l+1 + δ(1 µ) k (1 + µ) l+1 (17)

Glosten-Milgrom Model: Simulation Example One simulation for µ = 0.3, δ = 0.5; example bids and asks. Simple case: V = V = 2 (versus V = 1). Can see price impact especially for sequence of orders. Price 1.4 1.6 1.8 2.0 SBSBBBBSBSBSSBBSBSSBBSSBBBBBBBSBSSBBBBSBSBBSBBBSBB 0 10 20 30 40 50 Time

Glosten-Milgrom Model: Simulation Averages Simulate to find the average bid and ask. 10,000 simulations; tried µ = 0.3, 0.5, δ = 0.3, 0.5. Simple case: V = V = 2 (versus V = 1). µ = 0.5 Price 1.4 1.6 1.8 2.0 Price 1.4 1.6 1.8 2.0 0 10 20 30 40 50 Time 0 10 20 30 40 50 Time µ = 0.3 Price 1.4 1.6 1.8 2.0 Price 1.4 1.6 1.8 2.0 0 10 20 30 40 50 0 10 20 30 40 50 Time Time δ = 0.3 δ = 0.5

Glosten-Milgrom Model: Other Results Basic idea: Spreads exist due to adverse selection. Buys/sells are unbalanced; but, price series is a martingale. Orders are serially correlated: buys tend to follow buys. This and the preceding line seem contradictory. Difference is akin to Pearson ρ versus Kendall τ. Trades have price impact: a buy increases B and A. Spreads tend to decline over time as MMs figure out V. Bid-ask may be such that market effectively shuts down 3 If uninformed were price sensitive, spreads would be wider. Code in THE SECRET DIRECTORY (glosten-milgrom.r). Fun: Add very rare third trader, govt, who always buys at V. Stunning: still converging after 50,000 trades. 3 We find ourselves in the game-theoretic Paradox of Trade.

Kyle (1985) Model

One-Period Kyle (1985) Model Kyle (1985) proposed a model with a single informed trader. The informed trader: Considers price impact in setting trade size; Learns security s terminal value v; and, Submits order for quantity x. Liquidity ( noise ) traders submit net order u. The single market maker (MM): Observes total order y = x + u; Makes up the difference; and, Sets the market clearing price p. All trades happen at one price; no bid-ask spread. All trading occurs in one period.

One-Period Kyle Model: Informed Trader vs. MM The informed trader would like to trade aggressively. Q1: What sort of function maps v to order size? A: Linear function? (Yes.) MM knows larger net orders are more likely to be informed. Thus MM sets price increasing in net order size. Q2: What sort of function maps order size to MM s price? A: Linear function? (Yes.)

One-Period Kyle Model: Setup Security value v N(p 0, Σ 0 ) (18) Noise order u N(0, σ 2 u) u v (19) MM assumes: informed order x = βv + α (20) Net order y = x + u (21) Informed assumes: trade price p = }{{} λ y + µ (22) illiquidity Informed trader profit π = (v p)x (23) = (v λ(x + u) µ)x (24)

One-Period Kyle Model: Optimize, Compute Statistics If we combine the previous formulæ, we get a little further: E(π) = E((v λ(x + u) µ)x) = (v λx µ)x } {{ } (25) E(u)=0;x non-random x = argmax E(π) = v µ x R 2λ if λ > 0 (26) β = 1 2λ, α = µ 2λ (27) E(y) = α + βe(v) = µ 2λ + p 0 2λ (28) Var(y) = Var(x) + Var(u) = β 2 Var(v) + Var(u) (29) = β 2 Σ 0 + σ 2 u (30) Cov(y, v) = Cov(α + βv, v) = βσ 0 (31)

One-Period Kyle Model: Find Linear Parameters Now solve for the linear MM pricing and trader order parameters. MM earns no expected profit 4, prices trade at p = E(v y). Since v, y normal, form of E(v y) is like linear regression. Cov(v, y) p = E(v y) = E(v) + (y E(y)) Var(y) (32) βσ 0 = p 0 + σu 2 + β 2 (y α βp 0 ) Σ 0 (33) Use (33), (27), and (22) to solve for α, β, µ, λ: σ u α = p 0 ; β = σ u ; µ = p 0 ; λ = Σ0 Σ0 4 Due to competition, again. Σ0 2σ u. (34)

One-Period Kyle Model: MM Price; Informed Order, Profit MM trade price p = E(v y) = λy + µ = Σ0 2σ u y + p 0 (35) Value uncertainty Var(v y) = σ2 uσ 0 σu 2 + β 2 = Σ 0 Σ 0 2 (36) Informed order Expected profit x = βv + α = (v p 0)σ u Σ0 (37) E(π) = (v λx µ)x = (v p 0) 2 σ u 2 Σ 0 (38)

One-Period Kyle Model: Commentary What can we learn from the one-period Kyle model? Trade price linear in net order size, security volatility. Trade price inverse to noise order volatility. Informed order linear in security s deviation from mean. Expected profit quadratic in security s deviation from mean. Large deviations matter much more than small deviations 5. Informed order, expected profit linear in noise order volatility 6. Var(v y) = Σ 0 2 Half of information7 leaks after one trade. Negative net order (i.e. u < x) yields negative price. (!) 5 Except data errors and adverse selection will hurt you. 6 Use uninformed orders to hide. 7 Information in a Fisher sense.

One-Period Kyle Model: Illiquidity Parameter Finally: Consider the illiquidity parameter. Illiquidity parameter λ = Σ0 2σ u. Σo /σ u is ratio of volatilities. Value uncertainty vs. noise order uncertainty. λy = y Σ 0 2σ u : like liquidity risk: Scaled by volatility of security; and, y/σ u is similar/proportional to percentage of volume. Nice: Demanding liquidity has a cost. Full course covers more such ideas.

Multi-Period Kyle (1985) Model Kyle also discussed a multi-period model. Slice time t {0, 1} into N bins, n = 1,..., N: Time: t n = 1/N, t n = n/n. (39) Noise order: u n N(0, σ 2 u t n ). (40) Informed order: x n = β n (v p n 1 )/N. (41) Price change: p n = λ n ( x n + u n ). (42) E(Later profit): E(π n p t<n ) = α n 1 (v p n 1 ) 2 + δ n 1 (43) Competition p n = E(v x 1 + u 1,..., x n + u n ) Informed orders not autocorrelated, by construction.

Multi-Period Kyle Model: Further Definitions Use the following definitions: Strategy: X = (x 1,..., x N ). (44) Pricing rule: P = (p 1,..., p N ). (45) X chosen to always maximize expected future profit: E(π n (X, P) v, p 1,..., p n 1 ) E(π n (X, P ) v, p 1,..., p n 1 ) n = 1,..., N. (46)

Multi-Period Kyle Model: Dynamics Equations Model dynamics are given by difference equations for n = 1,..., N: δ n 1 = δ n + α n λ 2 nσ 2 u t n ; (47) α n 1 = 1/(4λ n (1 α n λ n )); (48) β n t n = 1 2α nλ n 2λ n (1 α n λ n ) ; (49) λ n is the middle root of the cubic equation: λ n = β n Σ n /σ 2 u; and, (50) Σ n = (1 β n λ n t n )Σ n 1. (51) (1 λ 2 nσ 2 u t n /Σ n )(1 α n λ n ) = 1 2. (52)

Multi-Period Kyle Model: Solving for Dynamics Solving for the model dynamics is a bit crusty: 1 Guess Σ N (call the guess Σ N ). 2 Use α N = δ N = 0 to get λ N = 3 Set n = N. 4 Solve for β n and Σ n 1. 5 Find α n 1 for λ n. Σ N σ u 2 tn. 6 Solve (52) 8, using middle root for λ n 1. 7 n = n 1; if n > 0, go to step 4. 8 If Σ 0 Σ 0 > ɛ: try another Σ N, go to step 1. 9 Solve for β 0 8 Numerically or via Cardano s formula.

Multi-Period Kyle Model: Simulation We can simulate the Kyle model to see its behavior. Use p 0 = 2, Σ 0 = 0.4, and σ u = 0.5. Run one simulation. What do we get? The parameter evolution is not so surprising. The action evolution is more illuminating.

Multi-Period Kyle Model: Evolution of Parameters I 0.00 0.04 0.08 0.12 0 10 20 30 40 50 Time alpha 0.0 0.1 0.2 0.3 0.4 delta 0 10 20 30 40 50 Time beta 0 5 10 15 20 25 0 10 20 30 40 50 Time

Multi-Period Kyle Model: Evolution of Parameters II 9 1.05 1.10 1.15 1.20 0 10 20 30 40 50 Time Sigma 0.0 0.1 0.2 0.3 0.4 lambda 0 10 20 30 40 50 Time 9 E.B.

Multi-Period Kyle Model: Evolution of Actions u Orders -0.010 0.000 0.010 i i u i ui i i i i i i i i i i i i i i i i i i i i i i i i u ui i i i i i ui i i i i i i i i i i i i i i i u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u u 0 10 20 30 40 50 True Price Time Trade Prices 2.0 2.1 2.2 2.3 2.4 0 10 20 30 40 50 Time

Multi-Period Kyle Model: Commentary A few details nobody has previously noted 10 : Informed orders 11 are larger after negative uninformed trades. Informed orders decrease after larger net orders, price moves. Recall: one leads to the other; confounding lives here. Informed order size increases slightly with time. Trade price moves toward the true value. Trade price may not converge to true value by end of trading. Code in THE SECRET DIRECTORY (kyle.r). 10 As with the Glosten-Milgrom model, I have yet to see plots from anybody else who has simulated the Kyle model. 11 Informed trades are shown as i s; uninformed trades as u s.

If You Want More: to Read Journals (and associated societies): Journal of Financial Markets Journal of Business and Economic Statistics/ASA Journal of Financial Econometrics/SoFiE Journal of Financial Economics Journal of Financial and Quantitative Analysis Review of Financial Studies/SFS Books: O Hara, Market Microstructure Theory Harris, Trading and Exchanges Hasbrouck, Empirical Market Microstructure Weisberg, Applied Regression Analysis Montgomery, Design and Analysis of Experiments McCullagh and Nelder, Generalized Linear Models Box, Jenkins, Reinsel, Time Series Analysis Osborne and Rubinstein, A Course in Game Theory

If You Want More: to Interact With Seminars (times may change next year) UIC Northwestern U. Chicago Finance MSCS Finance IEMS Stat E&S Stat FinMath Fri Wed Wed Tue Wed Thu Mon Fri 10:30 4:15 11:00 4:00 11:00 1:20 4:00 4:30 Center Events:, NWU Zell, UofC Stevanovich Conferences: ASSA, SoFiE, Oxford-Man Institute

If You Want: to Support Work Like This Talk to academics at the conference; some glad to consult. Take courses through UIC External Ed: Market Microstructure and Electronic Trading Commodities, Energy, and Related Markets Fixed Income/Structured Products Empirical Methods for Finance Univariate and Mutivariate Time Series Analysis Donate to the ICFD.