Probability a Leveraged Position Hits Liquidation Before Take Profit

Last updated: November 29, 2026

Quick Overview

A trader's position is $20 above its liquidation price and $10 below a take-profit price. Each tick the price moves up or down by $1. Find the probability of take profit before liquidation for a fair walk and for an up-tick probability of 0.49, and the expected ticks in the fair case.

Coinbase
Statistics & Math
Quantitative Researcher
Coinbase
November 29, 2026
Quantitative Researcher
Technical Screen
Statistics & Math
Medium

0

0

0 solved


A trader's position is $20 above its liquidation price and $10 below a take-profit price. Each tick the price moves up or down by $1. Find the probability of take profit before liquidation for a fair walk and for an up-tick probability of 0.49, and the expected ticks in the fair case.

Coinbase offers derivatives and perpetual futures through its international and US derivatives venues, where liquidation risk is a core concern for both users and the risk engine. Quantitative screens use gambler's ruin variations to test random walk intuition and how a small drift changes outcomes over many steps.

What the Interviewer Expects
  • Maps the setup to gambler's ruin with absorbing barriers
  • Gets k/N = 2/3 for take profit in the fair case
  • Derives or applies the biased formula correctly
  • Computes expected duration k(N-k) = 200 ticks
  • Explains why a 1% bias moves the answer so much
  • Can verify with simulation
Key Topics to Cover
gambler's ruin
random walks
martingales
absorbing barriers
liquidation risk
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 does the answer change if the take-profit distance doubles?
  • How would you model price with volatility instead of fixed ticks?
  • How does funding rate on a perpetual enter this picture?
  • Derive the expected duration formula.
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 so liquidation is at 0. The position starts at k=20k = 20 and take profit is at N=30N = 30. Each tick is +1+1 with probability pp and −1-1 with probability q=1−pq = 1-p. We want PkP_k, the probability...

Approach

Set up the recurrence Pk=pPk+1+qPk−1P_k = p P_{k+1} + q P_{k-1} with P0=0P_0 = 0, PN=1P_N = 1, and solve. For the fair case, price is a martingale, so optional stopping gives the answer directly....


Submit Your Answer
Markdown supported

Related Questions