Learn / Library / Expected value
Order flow side switches
A market maker receives orders in sequence. Each order is independently a buy with probability and a sell with probability . Count the times that consecutive orders are on opposite sides. What is the expected value of this count? Give a fraction a/b in lowest terms.
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Compute the chance that one consecutive pair differs, then sum over all pairs.
Solution
- There are consecutive pairs of orders.
- A pair differs if it is buy then sell or sell then buy, with probability .
- Each pair has an indicator with expectation , and linearity does not need independence between pairs.
- The total is .
Answer: