This is an original, corrected, and expanded study guide inspired by the quantitative interview topics in Max Dama’s On Automated Trading notes. Several mathematical errors from the original circulating notes have been fixed, missing derivations have been worked out in full, and every problem has been restated in clear, self-contained form.
Q: A bag contains 100 coins: 98 are fair (50% Heads, 50% Tails), 1 is double-headed (HH), and 1 is double-tailed (TT). You draw one coin uniformly at random, flip it once, and observe Heads. What is the posterior probability that you drew the double-headed coin?
Answer: Applying Bayes’ Theorem: Out of the 100 coins, 98 yield Heads with probability , 1 yields Heads with probability , and 1 yields Heads with probability . Let denote observing Heads, and denote selecting the double-headed coin:
Intuitively, there are 200 equally likely coin faces in the bag, exactly 100 of which are Heads, and 2 of those 100 belong to the double-headed coinโgiving a probability.
Q: Suppose 10,000 fair coins are tossed (scoring 1 for Heads and 0 for Tails). You are offered an even-money (1-to-1) wager that the total number of Heads is strictly below 5,000, and you may stake any integer dollar amount from $1 to $100. How much should you wager? How does your optimal wager change if you learn ahead of time that the total number of Heads is strictly below 5,100?
Answer: First, compute the probability of landing on the exact midpoint of 5,000 Heads:
By symmetry of the binomial distribution, the probability of getting strictly fewer than 5,000 Heads is:
Because your win probability is under 50% on an even-money payout, the wager has negative expected value. You should bet $0.
With the side information that : Since the standard deviation is , a threshold of 5,100 lies above the mean, which has cumulative probability . Conditioning on , your updated probability of winning the bet becomes:
Now you have a positive edge. Applying the Kelly Criterion ( for even-money bets):
You should stake 1.52% of your bankroll.
(Note: If instead the bet itself pays out whenever , your win probability is , and the Kelly fraction is of your bankroll).
Q: You roll a fair six-sided die repeatedly and keep a running sum, stopping as soon as the cumulative total exceeds 63. What is the probability that the penultimate (second-to-last) roll was a specific value ?
Answer: The probability is uniformly for each value 1 through 6. Because the Markov chain over the running sum reaches a nearly uniform stationary distribution over residues long before reaching 63, and the penultimate roll is completed before the final stopping roll is conditioned upon, each face remains equally likely ().
Q: Six sealed envelopes containing $2, $4, $8, $16, $32, and $64 are arranged in a row in strictly sorted order (either ascending or descending, with equal probability). Two adjacent envelopes are selected, shuffled, and dealt to you and a counterparty. You open yours and find $16. Should you offer to swap envelopes?
Answer: Consider the four equally likely ways you can hold the $16 envelope (two under ascending order, two under descending order):
In a two-player rational trading game (the Adverse Selection / No-Trade Theorem), if the counterparty also peeks inside their envelope before accepting a swap, they will never accept when they hold $32 and will always accept when they hold $8! Thus, an optional mutual trade has negative expected value (you only get filled when the counterparty has $8). If the swap is unilateral (forced without the counterparty’s consent), then since $16 is an interior value, swapping yields .
Q: Suppose you draw a random count from one probability distribution, and then draw independent and identically distributed samples from a second distribution (independent of ). How do you price the fair value of their sum?
Answer: By Wald’s Identity, when is independent of the sequence, the expected value of the random sum is simply the product of the two expectations:
Q: Derive the log-utility optimal fraction of your bankroll to stake on a fair coin toss that pays on Heads and loses on Tails ().
Answer: Using the Kelly Criterion where net payout odds per unit risked are and win probability is :
Note that this fraction is scaled relative to a loss of ; the fraction of total capital exposed to loss on a Tails outcome is .
Q: How does your research and risk-management approach differ between a 25-factor quantitative trading model and a 100-factor model? If the 100-factor model shows 25% higher backtested performance, how would you evaluate whether to deploy it?
Answer: Moving from 25 factors to 100 factors dramatically increases degrees of freedom and the risk of in-sample overfitting (the curse of dimensionality). A 25% improvement in backtested return or Sharpe ratio across 4x as many features is easily explained by fitting historical noise rather than genuine out-of-sample signal. To evaluate it rigorously:
Q: An asset begins at price , rises by , and subsequently falls by (with ). How does the final price compare to ?
Answer: It is strictly less than (known as volatility drag). Because the percentage drop is applied to the larger post-gain base :
Q: Starting with a $100 bankroll, you are offered 100 sequential bets on a biased coin that lands Heads with 90% probability. Staking dollars loses on Tails and returns on Heads. What fraction of your bankroll should you wager on each toss?
Answer: The optimal fraction depends on whether “returns ” means net profit of (2-to-1 odds, ) or gross payout of (net profit , 1-to-1 odds, ):
Q: Make a two-sided market (Bid/Ask) on the total number of manhole covers in New York City.
Answer: We construct a Fermi estimate from road mileage: New York City has roughly 8.5 million residents and approximately 6,000 miles of paved streets. Utility access covers (sewer, water, electrical, telecom) appear roughly every 100 feet along city streets, which equates to about covers per mile: . Accounting for estimation variance, a reasonable initial market is 200,000 Bid at 450,000 Ask.
Q: Estimate the probability of obtaining exactly 500 Heads in 1,000 flips of a fair coin to within 5% accuracy using mental math.
Answer: Apply Stirling’s approximation, :
Since and , . Thus (the exact value is ).
Q: To pass a three-game tennis challenge against two opponentsโa stronger player A and a weaker player Bโyou must win two consecutive games. Should you choose the schedule A-B-A or B-A-B?
Answer: Let and be your single-game win probabilities against A and B, where . To win two games in a row out of three, you must win the middle game (Game 2) and at least one of the outer games (Game 1 or Game 3):
Because , we have , which makes A-B-A strictly better! (Correction note: While intuition often suggests facing B in the middle game, playing the stronger opponent A in the mandatory middle game actually gives a lower total probability because . Facing A-B-A maximizes your chance of winning the crucial middle match against the weaker opponent B!)
Q: Two players take turns rolling a fair six-sided die. Player 1 rolls first and wins immediately on a 1; otherwise Player 2 rolls and wins immediately on a 6; otherwise play returns to Player 1, and so on. Find each player’s winning probability.
Answer: Let be Player 1’s probability of winning from the start of a round:
Player 2’s winning probability is .
Q: Cards from a standard 52-card deck (26 red, 26 black) are turned over one at a time. At any point before the deck runs out, you may call “Stop” and bet on the color of the very next card (+$1 if red, -$1 if black). What is the fair price to play this game under an optimal stopping rule?
Answer: $0. The fraction of red cards remaining in the deck at step forms a martingale. By Doob’s Optional Stopping Theorem, for any bounded stopping time , the expected proportion of red cards at time equals the initial proportion (), meaning no card-counting strategy can achieve a positive expected payoff.
Q: A medical screening test for a rare condition (prevalence 0.5% in the general population) has 99% sensitivity (true positive rate) and 99% specificity (true negative rate). If a randomly tested individual receives a positive result, what is the probability they actually have the condition?
Answer: By Bayes’ Theorem:
Because the base rate () is smaller than the false-positive rate (), roughly two-thirds of positive screens are false positives.
Q: Three pancakes are stacked on a plate: one is browned on both sides, one is browned on one side and pale on the other, and one is pale on both sides. You look at the top face of a randomly chosen pancake and see that it is browned. What is the probability that its underside is also browned?
Answer: Count the equally likely faces rather than pancakes: there are 6 pancake sides in total, 3 of which are browned. Two of those 3 browned faces belong to the double-browned pancake, where the opposite face is also browned. Therefore, the probability is .
Q: Rolling a fair six-sided die repeatedly, find the expected number of rolls needed to observe: (a) a single 6, (b) two consecutive 6s (6-6), and (c) a 6 immediately followed by a 5 (6-5).
Answer:
(a) First 6 ():
(b) Consecutive 6-6 (): Let be the expected remaining rolls after just rolling a single 6:
Solving yields rolls (because rolling anything other than 6 resets you completely).
(c) Sequence 6-5 (): Let be the expected remaining rolls after rolling a 6:
(Because rolling another 6 keeps you in state rather than resetting from scratch!) Solving yields rolls.
Q: You roll a fair six-sided die and receive a dollar payout equal to the final face shown. After the initial roll, you may choose to re-roll up to two additional times (for a maximum of 3 total rolls), forfeiting any prior roll whenever you re-roll. What is the fair value of this game?
Answer: Solve by backward induction:
The fair value of the game is $4.67 ( dollars).
Q: Two players alternate flipping a fair coin, and the first player to flip Heads wins $1. How much should you be willing to pay to go first rather than second?
Answer: Let be the expected payoff of the first player:
Since the second player’s expected payoff is , the advantage of moving first is , or $0.33.
Q: Out of 5 coinsโfour fair coins and one double-headed coinโyou pick one at random and flip it 5 times, observing 5 consecutive Heads. What is the probability that you selected the double-headed coin?
Answer: By Bayes’ Theorem:
Rapid mental calculation benchmarks:
Q: A swimmer is at the exact center of a circular lake of radius , while a predator on the shoreline can run along the perimeter at twice the swimmer’s maximum swimming speed ( vs. ). Assuming the predator always moves along the shore toward the point closest to the swimmer, can the swimmer reach dry land before the predator arrives?
Answer: Yes. Even if the swimmer simply swims in a straight radial line directly opposite the predator’s starting position, the swimmer only needs to cover distance (taking time ), whereas the predator must run halfway around the circumference, a distance of (taking time ). Because , the swimmer reaches the shore well ahead of the predator.
Q: The hour and minute hands of an analog clock overlap at 12:00 midnight. At what exact time do they next overlap?
Answer: The minute hand sweeps per hour, while the hour hand sweeps per hour, giving a relative angular speed of per hour. The hands next overlap when the minute hand gains a full lap on the hour hand:
They next overlap at 1:05:27.27 AM.
Q: Three duelistsโA (100% accuracy), B (66% accuracy), and C (33% accuracy)โfire in circular turn order starting with the weakest shooter C, followed by B, then A, until only one survives. What is C’s optimal first move?
Answer: C should intentionally miss (fire into the ground/air) on the first turn.
Q: Solve for positive real in the infinite power tower .
Answer: Because the infinite exponent tower converges to 2, substituting 2 for the exponent tower above the base yields:
Q: Evaluate the nested radical .
Answer: Let denote the limit of the nested radical:
Since , the value is .
Q: A stick of unit length is broken at two points chosen independently and uniformly at random along its length. What is the probability that the three resulting pieces can form a triangle?
Answer: 25% (). By the Triangle Inequality, three segments of total length 1 form a triangle if and only if each segment has length strictly less than . Plotting the two uniform break points , the valid region where , , and consists of two triangles each of area , giving a total probability of .
Q: Three points are chosen independently and uniformly at random on the circumference of a circle. What is the probability that all three lie on some common semicircle?
Answer: 75% (). In general, for independent uniform points on a circle, each point defines a clockwise semicircle starting at that point of length ; the probability that all other points fall within it is . Since these events are mutually exclusive (assuming the points don’t span the entire circle), the total probability is . Setting gives .
Q: Given two concentric circles, a chord of the outer circle of length 8 is tangent to the inner circle. What is the area of the annulus (ring) between the two circles?
Answer: Let and be the outer and inner radii. The radius drawn to the point of tangency is perpendicular to the chord and bisects it into two segments of length 4. By the Pythagorean Theorem on the resulting right triangle:
Therefore, the area of the annulus is .
Q: Cup A contains 1 cup of pure milk and Cup B contains 1 cup of pure water. You transfer 1 teaspoon of milk from Cup A into Cup B, stir thoroughly, and then transfer 1 teaspoon of the mixture from Cup B back into Cup A. Does Cup A now contain more water than Cup B contains milk, or vice versa?
Answer: They are identical. Because both cups begin and end with the exact same total liquid volume (1 cup each), whatever volume of water now resides in Cup A must have displaced an identical volume of milk that now resides in Cup B.
Get the curated offline edition of Kaue's Way of Lifeโa practical field guide to optimizing ๐ Health, ๐ฐ Wealth, โค๏ธ Love, and ๐ง Meaning.
Get notified when I publish new essays, book summaries, and practical guides on living well. No spamโunsubscribe anytime.
Have a question, perspective, or suggestion? Share your thoughts below.
Updated on 2026 Oct 11.
DISCLAIMER: The content on this site is for informational and educational purposes only and does not constitute medical, psychological, financial, investment, tax, or legal advice. The ideas, curation, and opinions presented here are my own and do not represent those of my employer. Book, lecture, and article summaries are independent educational commentary and remain the intellectual property of their respective authors. AI tools may be used to assist with editing, formatting, and synthesis; while every effort is made to ensure accuracy, errors may occur. PRIVACY: This site uses third-party services for cookieless analytics (Google Analytics), optional newsletter subscriptions (Mailchimp), comments (Disqus), live chat (Tawk.to), and embedded media (YouTube), which may process visitor IP addresses and cookies in accordance with their respective privacy policies.