Skip to content
LeetQuant
F0 Introduction and Diagnostic

F0 · Introduction and Diagnostic · Lesson 2 of 5

Thinking Out Loud Under Pressure

A five-step routine for any question, sanity checks that catch errors, what to do when stuck, and how to answer betting questions.

15 min

A routine for every question

  1. Clarify. Restate the problem and confirm assumptions: fair coin? with replacement? are ties possible? This catches misunderstandings and shows care.
  2. Plan. Say which tool you will use: conditioning, linearity, symmetry, a recursion, a known result.
  3. Solve. Narrate the key steps, not every piece of arithmetic. Write intermediate results down.
  4. Check. Test the answer against bounds, limiting cases and intuition.
  5. Extend. Mention how the answer changes if a parameter changes. Interviewers often ask, and offering it first is a good signal.

Sanity checks that catch most errors

  • Bounds. Probabilities lie in [0,1][0, 1]; an expected maximum lies between the mean and the largest value.
  • Limiting cases. Set a parameter to 0, 1 or infinity and see if the formula gives the obvious answer.
  • Symmetry. If two players are interchangeable, their chances must match.
  • Complement. P(A)P(A) and P(not A)P(\text{not } A) computed separately should add to 1.
  • A quick simulation in your head. Ten flips, a handful of rolls: does the answer look plausible?
  • Units and scaling. Does doubling the horizon scale volatility by 2\sqrt2? Does the answer have the right units?

When you are stuck

Do not go silent. Say what you are trying, then:

  • Solve a smaller case (two dice instead of five, three people instead of a hundred).
  • Simplify the problem by dropping a condition, then add it back.
  • Look for a known problem with the same structure.
  • Offer a brute-force or simulation approach, then look for a shortcut.

If the interviewer offers a hint, take it and build on it. Recovering well from a hint is a positive signal; ignoring one is a negative one.

Worked example

would you take this bet?

You pay 20 to roll a fair die and receive 2X2^X, where XX is the result. Would you play?

Show solution

Expected value: E[2X]=16(2+4+8+16+32+64)=21\mathbb{E}[2^X] = \tfrac16(2 + 4 + 8 + 16 + 32 + 64) = 21, so the bet is worth +1+1 per play.

Risk: E[4X]=16(4+16+64+256+1024+4096)=910\mathbb{E}[4^X] = \tfrac16(4 + 16 + 64 + 256 + 1024 + 4096) = 910, so the variance is 910−212=469910 - 21^2 = 469 and the standard deviation about 21.721.7. The edge is under 5% of the standard deviation, and you lose money on four of the six faces.

Answer: yes, if you can play many times and the stake is small relative to your capital; you would need hundreds of plays before the edge reliably shows. Saying both the EV and the risk, and how you would size the bet, is what the interviewer wants to hear.

Knowledge check

An interviewer asks a probability question that could be read two ways. What should you do first?

Knowledge check

You compute the expected maximum of three dice as 3.2. What does a sanity check tell you?

Knowledge check

You are stuck on a puzzle with 100 people. What is the most productive next step?

Practice problems

Finished reading?

Answer the 3 knowledge checks to complete this lesson (0 done).