Inventory Random Walk Hitting a Risk Limit

Last updated: November 29, 2026

Quick Overview

A market maker's inventory moves up 1 share with probability p and down 1 with probability 1 - p on each fill, starting at 0, and the desk flattens when inventory reaches plus or minus L. Find the probability the long limit is hit first and the expected number of fills until a limit is hit, for p = 1/2 and for p = 0.55 with L = 10.

Virtu Financial
Statistics & Math
Quantitative Researcher
Virtu Financial
November 29, 2026
Quantitative Researcher
Onsite
Statistics & Math
Hard

0

0

0 solved


A market maker's inventory moves up 1 share with probability p and down 1 with probability 1 - p on each fill, starting at 0, and the desk flattens when inventory reaches plus or minus L. Find the probability the long limit is hit first and the expected number of fills until a limit is hit, for p = 1/2 and for p = 0.55 with L = 10.

Virtu's market making runs under tight per-symbol inventory limits, and order flow imbalance pushes inventory in one direction. This question checks gambler's ruin fluency, solving linear recurrences with boundary conditions, and turning results into a quoting insight such as inventory skew.

What the Interviewer Expects
  • Set up the hitting probability recurrence with boundary conditions
  • Solve the symmetric and biased cases in closed form
  • Derive the expected duration L^2 for the symmetric case
  • Compute the biased duration numerically or by formula
  • Relate the result to skewing quotes to restore balance
Key Topics to Cover
gambler's ruin
Markov chains
difference equations
inventory risk
martingales
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • How would you choose p as a function of inventory (skew) to keep expected time to the limit long?
  • What if each fill size is random rather than 1?
  • How does a continuous-time Brownian approximation compare for large L?
  • How would you set L across symbols with different volatility?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

Shift states so inventory i maps to k = i + L in {0, ..., 2L} with N = 2L, start at k = L, absorbing at 0 and N. Let q = 1 - p and r = q/p....

Approach

Hitting probability hk=p hk+1+q hk−1h_k = p\,h_{k+1} + q\,h_{k-1}, h0=0h_0 = 0, hN=1h_N = 1. Expected duration Dk=1+pDk+1+qDk−1D_k = 1 + p D_{k+1} + q D_{k-1}, D0=DN=0D_0 = D_N = 0. Both are second order linear recurrences with constant ...


Submit Your Answer
Markdown supported

Related Questions