Академический Документы
Профессиональный Документы
Культура Документы
Model framework
First-passage times
Sample computations
Model framework
First-passage times
Sample computations
Papers
Model framework
First-passage times
Sample computations
Outline
What is the limit order book Model framework Assumptions Continuous time Markov chains First-passage times Generalized birth-death processes The truncated process Sample computations Mid-price up move is rst Execution probability
Model framework
First-passage times
Sample computations
best price
cancel a previously placed limit order that has not yet been
executed
Model framework
First-passage times
Sample computations
A(j) = # limit sell orders (asks) at price j B(i) = # limit buy orders (bids) at price i pA = best ask pB = best bid
A(j+1) A(j) pA
B(i) B(i-1)
pB
Model framework
First-passage times
Sample computations
Table: A sample of quotes taken from raw data VOD.L. The time-stamp is measured in seconds from midnight, the type B refers to bids, and the level is the number of ticks from best bid (counting from 1 = best bid). Rows appear when an event occurs.
type B B B B B B
level 4 1 4 2 1 4
Model framework
First-passage times
Sample computations
Sample Questions
Model framework
First-passage times
Sample computations
Model set-up
nite price grid = {1, 2, 3, . . . , n}, allowed prices in
multiples of a tick
Z+ = {0, 1, 2, 3, . . . } = possible numbers of limit orders in
Model framework
First-passage times
Sample computations
Model assumptions
market orders and cancellations are constant size Sm . market buy and sell orders arrive at independent,
quote arrive at independent, exponentially distributed times with rate proportional to the number of outstanding shares: for kSm shares, the cancellation rate is k j , j, k 0.
limit orders of size k = 1, 2, . . . , M (in multiples of Sm )
arrive at independent, exponentially distributed times with (k ) rate j , where j 1 is tick distance from opposite side best quote.
parameters Sm , , j , and j
(k )
Model framework
First-passage times
Sample computations
Ai (t) Ai (t) + k Ai (t) Ai (t) 1 Ai (t) Ai (t) 1 Bi (t) Bi (t) + k Bi (t) Bi (t) 1 Bi (t) Bi (t) 1
for i > pB (t), k 0 for i pA (t) for i = pA (t) > 0 for i < pA (t), k 0 for i pB (t) for i = pB (t) < n + 1
Model framework
First-passage times
Sample computations
Ai (t) Ai (t) + k Ai (t) Ai (t) 1 Ai (t) Ai (t) 1 Bi (t) Bi (t) + k Bi (t) Bi (t) 1 Bi (t) Bi (t) 1
for i > pB (t), k 0 for i pA (t) for i = pA (t) > 0 for i < pA (t), k 0 for i pB (t) for i = pB (t) < n + 1
Model framework
First-passage times
Sample computations
b Z+ .
we want to compute the probability density function fb,0 (t)
of b .
Model framework
First-passage times
Sample computations
probability density function of the first passage time from state 10 to 0 0.03 pdf
0.025
0.02
probability density
0.015
0.01
0.005
Model framework
First-passage times
Sample computations
Idea: From state i 2, to reach state i 2 the process must rst reach state i 1. So b = b,b1 + b1,b2 + + 1,0 where i,i1 denotes the rst-passage time from state i to state i 1, for i = 1, 2, . . . b.
Model framework
First-passage times
Sample computations
b,0 (s) = f
i=1
gi (s)
esx f (x)dx
New goal: compute gi (s), and then obtain fb,0 via Inverse Laplace Transform of b,0 f
Model framework
First-passage times
Sample computations
Recursive formulas
Model framework
First-passage times
Sample computations
Recursive formulas
gi (t) =
(1) i vi evi t + vi evi t gi+1 (t) gi (t) vi vi (2) + vi evi t gi+2 (t) gi+1 (t) gi (t) vi
hence gi (s) = i.e. gi (s) = vi + s i (1) (2) + gi+1 (s)gi (s) + gi+2 (t)gi+1 (s)gi (s) vi + s vi + s vi + s i (2) gi+2 (s)gi+1 (s)
Model framework
First-passage times
Sample computations
Recursive formulas
gi (t) =
(1) i vi evi t + vi evi t gi+1 (t) gi (t) vi vi (2) + vi evi t gi+2 (t) gi+1 (t) gi (t) vi
hence gi (s) = i.e. gi (s) = vi + s i (1) (2) + gi+1 (s)gi (s) + gi+2 (t)gi+1 (s)gi (s) vi + s vi + s vi + s i (2) gi+2 (s)gi+1 (s)
Model framework
First-passage times
Sample computations
i 2
birth rate (1) + (2) of size 1 at state 1 death rates i of size 1 at states i 1.
Model framework
First-passage times
Sample computations
() gi (s) =
for i = 2, 3, . . . , 1
Model framework
First-passage times
Sample computations
() gi (s) =
for i = 2, 3, . . . , 1
Model framework
First-passage times
Sample computations
Proposition
For each state i, the rst passage time i,i1 converges in
()
Model framework
First-passage times
Sample computations
Numerical experiments show the convergence is very rapid as : = 30 is already large enough to make the rst passage times from i = 10 of X () and X indistinguishable to 7 digits with our parameters
= 3.16 (0) = 0.71 0
(1)
= 7.46 = 0.80
(2) 0
Model framework
First-passage times
Sample computations
Assume at t = 0:
There are a orders at best ask pA (0); a = the rst time all
i = 1, . . . , S 1.
Model framework
First-passage times
Sample computations
S =
i=1
(i
(1)
+ i )
(2)
Model framework
First-passage times
Sample computations
pdf of aB
aB = a B Let fa , faB be the pdf of a , aB , resp. Then
(s) = a (S + s) + f aB f
S (1 a (S + s)) f S + s
Similarly
(s) = b (S + s) + f bA f
S (1 b (S + s)). f S + s
Model framework
First-passage times
Sample computations
pdf of aB
aB = a B Let fa , faB be the pdf of a , aB , resp. Then
(s) = a (S + s) + f aB f
S (1 a (S + s)) f S + s
Similarly
(s) = b (S + s) + f bA f
S (1 b (S + s)). f S + s
Model framework
First-passage times
Sample computations
P[aB bA < 0] =
Model framework
First-passage times
Sample computations
Sample outcomes
Table: Probability that mid-price increases at its next move, (2) (1) = 3.16, (0) = 0.71, 0 = 7.46, 0 = 0.80, Sm = 8127. Column labels indicate the number of initial shares (in multiples of Sm ) at best bid, row labels indicate the number of initial shares at best ask.
a=1 2 3 4
Model framework
First-passage times
Sample computations
a=1 2 3 4
a=1 2 3 4
Model framework
First-passage times
Sample computations
Papers