Quant Interview Cheat Sheet
Formulas, identities and fast methods — the reference sheet to keep open while you prepare.
By LeetQuidity · Published July 19, 2026 · Last updated July 19, 2026 · Free to use, print and link to
This is a reference sheet, not a course. It collects the standard results a quant interview actually draws on — counting, probability and Bayes, the distributions worth knowing cold, expectation and variance identities, waiting times and stopping rules, random walks, the dice, coin and card numbers interviewers build questions on top of, mental math, and market-making basics — plus a one-line note on when each one is the right tool.
Everything here has been checked by exact enumeration or simulation. Where a result depends on a convention or an assumption, the note says so, because getting that part right is usually what the interviewer is actually testing.
1. Counting and combinatorics
Decide two things before reaching for a formula: does order matter, and are repeats allowed. Almost every counting error is really a mis-answered version of one of those two questions.
Order matters, no repeats. Podium finishes, passwords, seat assignments.
Order does not matter, no repeats. Committees, poker hands, subsets.
Each of slots independently picks one of options.
Non-negative integer solutions of — i.e. identical items into labelled boxes. Require every box non-empty and it becomes .
Distinct arrangements of a word with repeated letters, or splitting items into labelled groups of sizes .
Fix one item to kill the rotational symmetry. This anchoring trick reappears constantly in circle problems.
Choosing who is in equals choosing who is out.
Condition on whether a distinguished item is included. The template for most combinatorial recursions.
The number of subsets of an -set.
Split a selection across two pools and sum over how many come from the first.
Condition on the largest element chosen.
For three: .
Use it when the complement is not simpler. Truncating after the first term gives the union bound.
is the nearest integer. , and fast — the "nobody gets their own hat" probability is essentially from onwards.
Inclusion–exclusion over which targets are missed. This is the engine behind "every face appears" and occupancy questions.
Right/up steps from to : choose which of the steps are up.
. Counts paths that never cross the diagonal, balanced bracketings, and non-crossing pairings.
Within 1% by . Use it to compare factorial-scale quantities without computing them.
2. Probability rules, conditioning and Bayes
Conditioning changes the denominator. If you can say out loud exactly which outcomes remain in your universe, the arithmetic is usually trivial.
The sequential view of any without-replacement draw.
Independent is not the same as mutually exclusive. Two disjoint events of positive probability are maximally dependent: one occurring rules the other out.
Partition on the piece of information you wish you had.
Posterior odds = prior odds × likelihood ratio. Far faster than the fraction form under time pressure, and it composes: independent pieces of evidence multiply their likelihood ratios.
Almost always faster than a union. The trigger words are at least, some, any, collision, max, min.
A free upper bound with no independence assumption. Good enough for most rare-event sanity checks.
Prevalence , sensitivity , specificity . Rebuild it as counts out of 10,000 rather than algebra and the base-rate fallacy disappears.
Neither implies nor is implied by unconditional independence. Coin flips from an unknown-bias coin are conditionally independent given the bias and dependent without it.
3. Discrete distributions
Nine times out of ten the question is not "what is the formula" but "which distribution is this". The deciding features are: fixed trials or waiting, with or without replacement, and one success or many.
Mean , variance — maximised at . One trial; the atom every indicator argument is built from.
Mean , variance . Fixed number of independent trials, count the successes. Heads in flips; reds in draws with replacement.
Mean , variance . Memoryless: .
Mean , same variance . Identical process, different convention — read the question to see which one it wants. The two means differ by exactly 1.
Mean , variance . It is a sum of independent geometrics, which is why both moments are just times the geometric ones.
Population with successes, drawn without replacement. Mean — same as the binomial. Variance ; that last finite-population correction is what makes it tighter than the binomial. This is the card-problem distribution.
Mean , variance — equal, which is the diagnostic. The limit of as , with . Sums of independent Poissons are Poisson.
Mean , variance . A fair -sided die.
4. Continuous distributions
For continuous variables the survival function is usually the faster object to reason about than the density.
Mean , variance .
Mean , variance . The only continuous memoryless law. Gaps between Poisson arrivals; the minimum of independent exponentials is exponential with the summed rate.
Roughly 68% / 95% / 99.7% of mass lies within 1 / 2 / 3 standard deviations.
Two-sided 90% / 95% / 99% intervals use / / .
Variances add; standard deviations do not. Scaling time by scales volatility by .
Mean , variance . Time until the -th Poisson arrival.
The conjugate prior for a coin bias: a prior plus heads and tails gives a posterior. A uniform prior is , which is why the posterior mean after heads in flips is (Laplace).
The mean sits above the median . This gap is the volatility drag that makes compounded returns lag their arithmetic average.
5. Expectation and variance identities
Linearity of expectation is the highest-yield identity in the entire subject: it needs no independence, so almost any "expected number of ..." question collapses into a sum of indicator probabilities.
No independence required. Write the quantity as a sum of indicators, price each indicator with a probability, and add.
The bridge that turns counting into expectation.
Shifts move the mean and leave the variance alone.
And in general — see Jensen below.
Unlike expectation, variances add only when the terms are uncorrelated. Forgetting the covariance term is the single most common quant-interview slip.
Zero correlation is not independence: with , and are uncorrelated and completely dependent. Correlation only measures the linear part.
Condition on the first step, the hidden state, or the piece of information you wish you had — then average it away.
Read it as within-group variation plus between-group variation.
The fastest route to the expected maximum of several draws, because is easy and the full pmf is not.
Requires to be a stopping time for the i.i.d. sequence, with . It breaks if is allowed to look at the it is about to include — which is exactly how "guaranteed profit" betting systems smuggle in their error.
Convex payoffs love variance; concave utilities hate it. Reversed for concave .
Distribution-free, therefore loose. If you know the shape, use it instead.
Equivalently .
6. Waiting times, streaks and stopping rules
Every waiting-time question is a first-step analysis in disguise. Define the state as "how much progress survives a failure", write one equation per state, solve.
Variance . Expected rolls to a first six: 6.
With . For a fair die, rolls to see all six faces. Variance — the distribution has a long right tail, so the mean understates the typical bad case.
For a fair coin this is : 6 flips for , 14 for , 30 for .
Self-overlapping patterns wait longer. After a failed you keep nothing; after a failed you still hold an . Attack any of these with states indexed by the length of the currently matching prefix.
Crosses 50% at — for that is . Expected draws to the first repeat .
Solve backwards from the last decision. One reroll of a fair die: continuation value is 3.5, so keep 4, 5, 6 and reroll otherwise, giving .
Success probability tends to . The lesson interviewers want is that "observe, then commit" beats both greed and patience.
The reason most "is this game fair?" answers are one line. It needs the boundedness or integrability condition — dropping it is precisely why the double-your-bet martingale system is not free money.
7. Random walks and gambler's ruin
Set up: you start at , move up 1 with probability and down 1 with probability , and stop on hitting or . Nearly every wealth, streak, or barrier story reduces to this.
Linear in the starting point. Your chance of doubling before busting is just your fraction of the total stake.
Maximised in the middle, and surprisingly long: from 50 with barriers at 0 and 100 the game lasts 2,500 steps on average.
A small edge compounds hard: with the probability approaches for large , so an infinitely rich opponent still cannot ruin you with certainty.
Valid for .
Reflect the start across the barrier. This one bijection gives the ballot problem, Catalan paths, and first-passage counts.
For votes for A and for B, counted in random order.
Decays slowly, which is why symmetric walks keep coming back.
Distance grows like , not .
A free sanity check: after an odd number of steps you cannot be at the origin.
A symmetric walk returns to its start with probability 1 on a line or a grid, but only about 34% of the time in three dimensions.
8. Coins, dice and cards — standard results
These are the numbers worth having cached, because interviewers use them as the scaffolding for harder questions rather than as the question itself.
For an -sided die: , .
Variance scales with because the dice are independent; the standard deviation scales with .
Triangular. is the mode.
Then use the tail sum. For two fair d6, .
By symmetry . Note that "beats" can be intransitive once the dice are non-standard — that is the Efron dice trap.
Linearity over one indicator per face — the indicators are dependent and it does not matter.
Grows like : 4 flips give 1.5, 100 flips give about 8.
orderings.
Linearity, no hypergeometric needed.
The marked cards cut the deck into gaps of equal expected length. First ace in a 52-card deck: .
9. Five-card poker hand counts
Out of hands. Worth knowing cold: interviewers use these as a correctness check on a counting argument you just built.
0.00015%
0.0015%. Ten starting ranks × 4 suits.
0.024%. .
0.144%. .
0.197%. , minus the 40 straight flushes.
0.393%. , minus 40.
2.113%. .
4.754%. .
42.257%. .
50.118%. The nine counts above sum with this to exactly — that is your check.
10. Geometric and continuous probability
Reduce the question to a ratio of lengths, areas or angles. Then look for a symmetry that lets you anchor on one point and multiply by .
Anchor on each point in turn and ask whether the other fall in the semicircle clockwise from it; the cases are disjoint up to a measure-zero tie. For an arc covering a fraction of the circle, the same argument gives .
The complement of "all three in a semicircle", which is .
Uniform in area, not in radius — the density of the radius is proportional to . Half the area sits outside .
Random endpoint pair gives ; uniform distance from the centre along a radius gives ; uniform midpoint in the disk gives . The lesson is to state the sampling rule before computing — say this out loud in an interview.
So and . The points cut the interval into gaps, each with mean length .
And , .
Two uniform cut points; the condition is that no piece exceeds .
Needle of length , lines spaced apart.
11. Lattice paths, grids and parity
Encode the walk as a word in its step letters. Counting the words is then pure combinatorics, and constraints become forbidden prefixes.
Multiply the two legs. For a forbidden point, subtract this from the total.
Dyck paths. Derived from the reflection principle: .
Choose two of the vertical lines and two of the horizontal lines.
When a tiling or reachability question smells impossible, look for a two-colouring the move preserves. Counting the colour imbalance usually finishes the proof in one line.
12. Statistics and regression essentials
Enough to hold a conversation about estimation, error bars and linear fits — the layer that separates a research interview from a puzzle interview.
Four times the data halves the error bar.
The (Bessel) corrects for having spent one degree of freedom estimating .
Needs finite variance. Convergence is fast for symmetric distributions and slow for heavy-tailed ones — which is the caveat interviewers are listening for.
Apply a continuity correction. Rule of thumb: and both above roughly 10.
Large , small . Better than the normal in the rare-event tail.
Use rather than for small .
The fitted line always passes through , and .
With , predictions are pulled toward the mean. The name of the technique comes from this effect, not the other way round.
As the idiosyncratic term vanishes and volatility floors at . Diversification removes specific risk, never common risk.
13. Mental math and estimation
Timed arithmetic screens reward recall and decomposition, not cleverness. The table below is the recall half; everything under it is the decomposition half.
cycles, and every multiple of is a rotation of the same six digits.
16% of 25 is the same as 25% of 16, which is 4.
. The workhorse for any pair straddling a round number.
.
.
.
From , — correct to four decimals in one step.
Good while stays well below 1. Add for a second digit.
The rule of 72: 6% a year doubles in about 12 years.
A 10% loss then a 10% gain is , not flat. The cross term is where money goes.
So and — the fastest way to size anything exponential.
Also: 1 mile ≈ 1.61 km, a year ≈ 2,000 working hours, and a typical rich-country household is 2–3 people. Estimate in orders of magnitude, state your assumptions, and quote a range.
14. Market making and betting basics
Making a market means committing to buy at your bid and sell at your ask. Everything below follows from taking that commitment seriously.
Compute this first and say it out loud before quoting anything.
You must be happy to trade on either side. If you would not, your fair is wrong or your spread is too tight.
The conditioning is the whole point. If a counterparty only lifts you when they know something, then and the naive overstates your edge.
Widen for high payoff variance, informed counterparties, large size, thin markets, and inventory you already do not want. Tighten to win flow when you are confident and flat.
Getting filled is itself information. The trades you win are disproportionately the ones you should have lost.
Move the midpoint against your position so you are more likely to trade out than in. Skewing is a different lever from widening; use the right one.
Raw implied probabilities sum above 1; the excess is the bookmaker margin. Normalise before comparing to your own estimate.
At net odds to 1. Even money needs 50%, 2-to-1 needs 33.3%.
Net odds , win probability , . For an even-money bet this is . Kelly maximises long-run log growth, not expected wealth, and it is brutally sensitive to a mis-estimated — which is why practitioners size at a half or a quarter of it.
Geometric growth sits below the arithmetic mean. A / pair averages arithmetically and exactly compounded. Repeated betting is a log-growth problem, not an expected-value problem.
Then adjust for risk: a fair-EV bet with ruinous variance is still a bad bet if you cannot survive the left tail.
15. Interview attack patterns
Recognition beats recall. These are the cues that tell you which method to reach for before you have finished reading the question.
Take the complement. Count the clean failure case and subtract from 1.
One indicator per thing that could be counted, then linearity. Dependence between the indicators does not matter.
First-step analysis. Choose states by asking what progress survives a failure.
Work with the CDF, then the tail sum . Never build the full pmf.
With replacement is binomial; without is hypergeometric. Deciding this first fixes most of the problem.
Markov states indexed by the length of the currently matching prefix. Overlapping patterns wait longer.
Gambler's ruin. Identify , , and , then quote the ratio.
Use symmetry before algebra. If two outcomes are exchangeable they are equally likely, full stop.
Compute the EV. Then, unprompted, comment on variance and on whether you could survive a losing run.
Natural frequencies out of 10,000, or Bayes in odds form. Avoid the fraction form under pressure.
Reduce to a ratio of lengths, areas or angles, and state your sampling rule explicitly.
State your fair value, then your spread, then defend both. Expect to be traded against and to be asked why you did not go wider.
Bound it above and below, then narrow. An interviewer would rather see a defended range than a confident wrong point estimate.
Decide whether order matters and whether repeats are allowed. The formula follows from those two answers.
Switch from expected value to log growth. Positive EV with full-bankroll sizing still goes to zero.
Shrink the problem. Solve by hand, find the pattern, then generalise — and narrate it, because the process is what is being graded.
How to use this sheet
Read it once end to end so you know what is on it, then stop reading it. A cheat sheet is a lookup table for a memory you are actively building, not a substitute for building one. The value is in noticing, mid problem, that you already have the tool.
Print it or save it as a PDF — the layout is built for it, and the navigation drops out. Keep it beside your practice, and every time you reach for a line on it, note which one. The lines you keep reaching for are your actual study list.
Where to go from here
Knowing the formulas is the easy half. If you want to find out which of these you can actually apply under time pressure, the LeetQuidity Quant Readiness Test is free and tells you which topics to work on first. If you would rather be taught the reasoning behind this sheet — the derivations that produce each line, with worked examples and practice — that is what the curriculum is for.
Keep going
Found an error? These are standard results, but transcription slips happen — tell us and we will fix it and update the date at the top. This page is free to use, print, and link to.