Quoto

Learn / Library / Expected value

Order flow side switches

Expected valueMedium

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.

A whole number, a decimal, a fraction like 3/8 or a percent.

Hint

Compute the chance that one consecutive pair differs, then sum over all pairs.

Solution
  1. There are consecutive pairs of orders.
  2. A pair differs if it is buy then sell or sell then buy, with probability .
  3. Each pair has an indicator with expectation , and linearity does not need independence between pairs.
  4. The total is .

Answer: