Markov Chains in Quant Interviews

State, transition, stationarity, absorption — four ideas cover almost every Markov-chain question a quant loop will throw at you.

Markov chains are the workhorse behind a huge family of quant interview questions — dice games, random walks, waiting times, board games, credit-rating migrations. The good news: interviews use a small, repeatable toolkit. If you can set up a transition matrix, find a stationary distribution, and solve an absorption problem, you can handle nearly everything asked.

The four ideas that cover the ground

  • The Markov property. The future depends only on the current state. The interview skill is choosing a state space that MAKES the problem Markov — e.g. for "expected flips until HTH", the state is your current progress into the pattern, not the whole history.
  • First-step analysis. Condition on the first transition and write recursions for hitting times/probabilities: $h_i = 1 + \sum_j P_{ij} h_j$. This one template solves most "expected number of steps until X" questions.
  • Stationary distributions. Solve $\pi P = \pi$ with $\sum_i \pi_i = 1$. For a quick sanity check on symmetric chains, stationary mass is proportional to degree.
  • Absorbing chains. Gambler's-ruin-shaped questions: probability of hitting A before B, expected time to absorption.

Worked example

A mouse moves between rooms A↔B↔C in a line, each minute moving to a uniformly random adjacent room. Long-run fraction of time in B? The chain's stationary distribution weights each room by its number of doors: A and C have 1, B has 2, total 4 — so $\pi_B = 2/4 = 1/2$. Interviewers love this degree shortcut because the honest linear-algebra route takes five times longer; knowing both (and when the shortcut is valid — random walk on a graph) reads as real fluency.

Where it shows up by firm type

Trading firms wrap Markov chains in dice/coin games and racing puzzles (state = progress). Quant research loops ask for stationary distributions, mixing intuition, and occasionally reversibility. ML-leaning firms connect chains to PageRank and MCMC. The stochastic-process question bank maps the whole family.

Practice with solutions

More topic guides

Frequently asked questions

What Markov chain concepts do quant interviews test?

Four cover nearly everything: choosing a state space that makes the problem Markov, first-step analysis for hitting times and probabilities, stationary distributions (πP = π), and absorbing chains of the gambler's-ruin type.

What is a stationary distribution intuitively?

The long-run fraction of time the chain spends in each state — the distribution that is unchanged by one more step. For a random walk on a graph it is proportional to each node's degree, a shortcut interviewers frequently reward.

What is first-step analysis?

Conditioning on the first transition to get a recursion: the expected time from state i equals 1 plus the transition-weighted average of expected times from the next states. One template that solves most 'expected number of steps' interview questions.

Where can I practice Markov chain interview questions?

QuantVault's stochastic-process and probability banks include Markov chain problems — stationary distributions, absorption, pattern races — each with full worked solutions, and about 400 problems are free.

Practice the real thing

QuantVault has 2,800+ quant interview problems with full solutions, intuition, and hints, firm-by-firm interview funnels, and an auto-graded coding judge. Start free.