Skip to content
Work Free practice Coding course Blog Method Results Why me About Enquire Book a call

Practice · Quant prep · Probability

Probability interview questions

122 questions with worked solutions. Expected value, conditioning, random walks, order statistics and the classic puzzles.

22 easy · 59 medium · 41 hard · Question type reported at: CitadelHudson River TradingTwo Sigma

Sit the probability screen: 8 questions, easy to hard Practise timed: 30 questions · 90s each All Quant prep topics


1 Easy Type asked atCitadelHudson River Trading
A fair coin is tossed three times. What is the probability of at least one head?
Show answer
Answer: 78\tfrac78
The complement is three tails, probability 18\tfrac18. So 1−18=781-\tfrac18=\tfrac78.
2 Easy Type asked atCitadelHudson River Trading
Two fair dice are rolled. What is the probability the sum is 7?
Show answer
Answer: 16\tfrac16
Six of the 36 outcomes sum to 7: (1,6),(2,5),…,(6,1)(1,6),(2,5),\dots,(6,1). So 6/36=166/36=\tfrac16.
3 Easy Type asked atCitadelHudson River Trading
Two fair dice are rolled. What is the probability the sum is at least 10?
Show answer
Answer: 16\tfrac16
Sums of 10, 11, 12 occur in 3+2+1=63+2+1=6 ways out of 36.
4 Easy Type asked atCitadelHudson River Trading
What is the expected value of one roll of a fair six-sided die?
Show answer
Answer: 3.53.5
16(1+2+⋯+6)=216=3.5\tfrac16(1+2+\dots+6)=\tfrac{21}{6}=3.5.
5 Easy Type asked atCitadelHudson River Trading
How many rolls of a fair die do you expect to need to see the first six?
Show answer
Answer: 66
The count is geometric with success probability p=16p=\tfrac16, so the mean is 1/p=61/p=6.
6 Medium Type asked atCitadelHudson River Trading
How many rolls of a fair die do you expect to need to see two sixes in a row?
Show answer
Answer: 4242
Let E0E_0 be the expected remaining rolls when the last roll was not a six, E1E_1 when it was. Then E0=1+56E0+16E1E_0=1+\tfrac56E_0+\tfrac16E_1 and E1=1+56E0E_1=1+\tfrac56E_0. Substituting gives 136E0=76\tfrac1{36}E_0=\tfrac76, so E0=42E_0=42.
7 Medium Type asked atCitadelHudson River Trading
How many tosses of a fair coin do you expect before you first see two heads in a row (HH)?
Show answer
Answer: 66
With states "no progress" (E0E_0) and "last toss H" (E1E_1): E0=1+12E1+12E0E_0=1+\tfrac12E_1+\tfrac12E_0, E1=1+12E0E_1=1+\tfrac12E_0. Solving gives E0=6E_0=6.
8 Medium Type asked atCitadelHudson River Trading
How many tosses of a fair coin do you expect before you first see a head followed immediately by a tail (HT)?
Show answer
Answer: 44
Wait for the first H (expected 2 tosses), then wait for the first T after it (another 2). Once you have an H, a later T always completes HT, so 2+2=42+2=4. It is less than HH because HT never loses progress.
9 Medium Type asked atCitadelHudson River Trading
A family has two children, and at least one of them is a boy. What is the probability both are boys?
Show answer
Answer: 13\tfrac13
Equally likely families: BB, BG, GB, GG. "At least one boy" removes GG and leaves three, of which one is BB.
10 Easy Type asked atCitadelHudson River Trading
A family has two children and the older one is a boy. What is the probability both are boys?
Show answer
Answer: 12\tfrac12
Only BB and BG remain possible, so the answer is 12\tfrac12. The information is about a specific child, which changes the conditioning.
11 Easy Type asked atCitadelHudson River Trading
In the Monty Hall game you pick a door; the host, who knows where the car is, opens another door showing a goat and offers a switch. What is your probability of winning if you switch?
Show answer
Answer: 23\tfrac23
Your first pick is right with probability 13\tfrac13. Switching wins exactly when it was wrong, which happens with probability 23\tfrac23.
12 Medium Type asked atCitadelHudson River Trading
What is the smallest number of people needed for the probability that two share a birthday to exceed 12\tfrac12? (Ignore leap years.)
Show answer
Answer: 2323
P(all distinct)=∏k=0n−1365−k365P(\text{all distinct})=\prod_{k=0}^{n-1}\tfrac{365-k}{365} first drops below 12\tfrac12 at n=23n=23, where it is about 0.4930.493.
13 Medium Type asked atCitadelHudson River Trading
A stick of length 1 is broken at two points chosen independently and uniformly. What is the probability the three pieces form a triangle?
Show answer
Answer: 14\tfrac14
A triangle forms iff every piece is shorter than 12\tfrac12. In the unit square of break points this region has area 14\tfrac14.
14 Medium Type asked atCitadelHudson River Trading
X,YX,Y are independent and uniform on [0,1][0,1]. What is E[max⁡(X,Y)]\mathbb E[\max(X,Y)]?
Show answer
Answer: 23\tfrac23
P(max⁡≤t)=t2P(\max\le t)=t^2, so the density is 2t2t and E=∫012t2 dt=23\mathbb E=\int_0^1 2t^2\,dt=\tfrac23.
15 Easy Type asked atCitadelHudson River Trading
X,YX,Y are independent and uniform on [0,1][0,1]. What is E[min⁡(X,Y)]\mathbb E[\min(X,Y)]?
Show answer
Answer: 13\tfrac13
min⁡+max⁡=X+Y\min+\max=X+Y, so E[min⁡]=1−23=13\mathbb E[\min]=1-\tfrac23=\tfrac13.
16 Medium Type asked atCitadelHudson River Trading
Five numbers are drawn independently and uniformly from [0,1][0,1]. What is the expected value of the largest?
Show answer
Answer: 56\tfrac56
For nn uniforms E[max⁡]=nn+1\mathbb E[\max]=\tfrac{n}{n+1}. The nn points split [0,1][0,1] into n+1n+1 gaps of equal expected length.
17 Medium Type asked atCitadelHudson River Trading
X,YX,Y are independent and uniform on [0,1][0,1]. What is E∣X−Y∣\mathbb E|X-Y|?
Show answer
Answer: 13\tfrac13
∣X−Y∣=max⁡−min⁡|X-Y|=\max-\min, so E=23−13=13\mathbb E=\tfrac23-\tfrac13=\tfrac13.
18 Medium Type asked atCitadelHudson River Trading
Three points are placed independently and uniformly on a circle. What is the probability they all lie in some semicircle?
Show answer
Answer: 34\tfrac34
For nn points the answer is n/2n−1n/2^{n-1}: each point can be the "first" of a clockwise semicircle containing the rest, with probability 2−(n−1)2^{-(n-1)}, and these events are disjoint. For n=3n=3, 34\tfrac34.
19 Hard Type asked atCitadelHudson River Trading
Four points are placed independently and uniformly on a circle. What is the probability they all lie in some semicircle?
Show answer
Answer: 12\tfrac12
Using n/2n−1n/2^{n-1} with n=4n=4 gives 4/8=124/8=\tfrac12.
20 Medium Type asked atCitadelHudson River Trading
How many rolls of a fair die do you expect to need until every face has appeared at least once?
Show answer
Answer: 14.714.7
Coupon collector: 6(1+12+13+14+15+16)=6⋅2.45=14.76\left(1+\tfrac12+\tfrac13+\tfrac14+\tfrac15+\tfrac16\right)=6\cdot2.45=14.7.
21 Medium Type asked atCitadelHudson River Trading
You start with £3 and bet £1 on each toss of a fair coin until you reach £10 or go broke. What is the probability you reach £10?
Show answer
Answer: 0.30.3
Your wealth is a martingale; by optional stopping 10p=310p=3, so p=0.3p=0.3.
22 Hard Type asked atCitadelHudson River Trading
In the same game (start £3, stop at £0 or £10, fair coin), what is the expected number of tosses?
Show answer
Answer: 2121
Wn2−nW_n^2-n is also a martingale, which gives E[T]=k(N−k)=3⋅7=21\mathbb E[T]=k(N-k)=3\cdot7=21.
23 Hard Type asked atCitadelHudson River Trading
You start with £1 and bet £1 on a coin that lands heads with probability 0.60.6, until you reach £3 or go broke. What is the probability you reach £3?
Show answer
Answer: 919\tfrac{9}{19}
With r=q/p=23r=q/p=\tfrac23, P=1−rk1−rN=1−231−827=1/319/27=919≈0.474P=\dfrac{1-r^k}{1-r^N}=\dfrac{1-\tfrac23}{1-\tfrac{8}{27}}=\dfrac{1/3}{19/27}=\tfrac{9}{19}\approx0.474.
24 Easy Type asked atCitadelHudson River Trading
Two cards are drawn from a standard deck without replacement. What is the probability both are aces?
Show answer
Answer: 1221\tfrac1{221}
452⋅351=1221≈0.0045\tfrac4{52}\cdot\tfrac3{51}=\tfrac1{221}\approx0.0045.
25 Medium Type asked atCitadelHudson River Trading
What is the probability a five-card poker hand is a flush (including straight flushes)?
Show answer
Answer: ≈0.00198\approx0.00198
Choose a suit and five of its 13 cards: 4(135)=51484\binom{13}{5}=5148 hands out of (525)=2,598,960\binom{52}{5}=2{,}598{,}960.
26 Medium Type asked atCitadelHudson River Trading
What is the probability of at least one six in four rolls of a fair die?
Show answer
Answer: ≈0.518\approx0.518
1−(56)4=1−6251296=67112961-\left(\tfrac56\right)^4=1-\tfrac{625}{1296}=\tfrac{671}{1296}. This is the de Méré bet, slightly favourable.
27 Medium Type asked atCitadelHudson River Trading
What is the probability of at least one double six in 24 rolls of two dice?
Show answer
Answer: ≈0.491\approx0.491
1−(3536)24≈0.4911-\left(\tfrac{35}{36}\right)^{24}\approx0.491. De Méré's second bet, slightly unfavourable.
28 Medium Type asked atCitadelHudson River Trading
A disease affects 1% of a population. A test detects it 99% of the time and gives a false positive 5% of the time. Given a positive test, what is the probability of having the disease?
Show answer
Answer: 16\tfrac16
Bayes: 0.01⋅0.990.01⋅0.99+0.99⋅0.05=0.00990.0594=16\dfrac{0.01\cdot0.99}{0.01\cdot0.99+0.99\cdot0.05}=\dfrac{0.0099}{0.0594}=\tfrac16.
29 Easy Type asked atCitadelHudson River Trading
An urn holds 3 red and 2 blue balls. Two are drawn without replacement. What is the probability they are the same colour?
Show answer
Answer: 0.40.4
35⋅24+25⋅14=620+220=25\tfrac35\cdot\tfrac24+\tfrac25\cdot\tfrac14=\tfrac{6}{20}+\tfrac{2}{20}=\tfrac25.
30 Medium Type asked atCitadelHudson River Trading
Ten letters are placed at random into their ten addressed envelopes. What is the expected number in the correct envelope?
Show answer
Answer: 11
Each letter is correct with probability 110\tfrac1{10}; by linearity of expectation the total is 10⋅110=110\cdot\tfrac1{10}=1, for any nn.
31 Hard Type asked atCitadelHudson River Trading
A 52-card deck is shuffled. Approximately what is the probability that no card is in its original position?
Show answer
Answer: ≈1/e≈0.368\approx1/e\approx0.368
Derangements: P=∑k=052(−1)kk!P=\sum_{k=0}^{52}\tfrac{(-1)^k}{k!}, which is 1/e1/e to many decimal places.
32 Medium Type asked atCitadelHudson River Trading
A fair die is rolled six times. What is the expected number of distinct faces seen?
Show answer
Answer: ≈3.99\approx3.99
Each face is missed with probability (56)6\left(\tfrac56\right)^6, so E=6(1−(56)6)≈3.99\mathbb E=6\left(1-\left(\tfrac56\right)^6\right)\approx3.99.
33 Medium Type asked atCitadelHudson River Trading
XX counts trials up to and including the first success, with success probability 14\tfrac14 each trial. What is Var⁡(X)\operatorname{Var}(X)?
Show answer
Answer: 1212
For a geometric variable Var⁡=1−pp2=3/41/16=12\operatorname{Var}=\dfrac{1-p}{p^2}=\dfrac{3/4}{1/16}=12.
34 Medium Type asked atCitadelHudson River Trading
You roll a die and may roll once more, keeping only the second result. With optimal play, what is your expected payout (face value)?
Show answer
Answer: 4.254.25
Reroll iff the first roll is below the value of rerolling, 3.53.5: keep 4, 5, 6. E=4+5+66+12⋅3.5=4.25\mathbb E=\tfrac{4+5+6}{6}+\tfrac12\cdot3.5=4.25.
35 Hard Type asked atCitadelHudson River Trading
As before, but you may roll up to three times in total, keeping the last roll. What is the optimal expected payout?
Show answer
Answer: 143≈4.67\tfrac{14}{3}\approx4.67
With two rolls left the value is 4.254.25, so on the first roll keep only 5 or 6: 5+66+46⋅4.25=286=143\tfrac{5+6}{6}+\tfrac46\cdot4.25=\tfrac{28}{6}=\tfrac{14}{3}.
36 Easy Type asked atCitadelHudson River Trading
You are paid the square of a fair die roll. What is the expected payout?
Show answer
Answer: 916≈15.17\tfrac{91}{6}\approx15.17
16(1+4+9+16+25+36)=916\tfrac16(1+4+9+16+25+36)=\tfrac{91}{6}. Note this is more than 3.523.5^2, by Jensen.
37 Medium Type asked atCitadelHudson River Trading
Two fair dice are rolled. What is the expected value of the larger?
Show answer
Answer: 16136≈4.47\tfrac{161}{36}\approx4.47
P(max⁡=k)=2k−136P(\max=k)=\tfrac{2k-1}{36}, so E=136∑k=16k(2k−1)=16136\mathbb E=\tfrac1{36}\sum_{k=1}^6k(2k-1)=\tfrac{161}{36}.
38 Easy Type asked atCitadelHudson River Trading
Two fair dice are rolled. What is the expected value of their product?
Show answer
Answer: 12.2512.25
Independence gives E[XY]=E[X] E[Y]=3.52\mathbb E[XY]=\mathbb E[X]\,\mathbb E[Y]=3.5^2.
39 Medium Type asked atCitadelHudson River Trading
Two fair dice are rolled. What is the expected absolute difference?
Show answer
Answer: 3518≈1.94\tfrac{35}{18}\approx1.94
Differences 0 to 5 occur 6, 10, 8, 6, 4, 2 times. 0+10+16+18+16+1036=7036\tfrac{0+10+16+18+16+10}{36}=\tfrac{70}{36}.
40 Hard Type asked atCitadelHudson River Trading
A needle of length 1 is dropped at random on a floor ruled with parallel lines 1 apart. What is the probability it crosses a line?
Show answer
Answer: 2π≈0.637\tfrac2\pi\approx0.637
Buffon: with centre distance x∼U[0,12]x\sim U[0,\tfrac12] and angle θ∼U[0,π2]\theta\sim U[0,\tfrac\pi2], it crosses iff x≤12sin⁡θx\le\tfrac12\sin\theta. The probability is 4π∫0π/212sin⁡θ dθ=2π\tfrac{4}{\pi}\int_0^{\pi/2}\tfrac12\sin\theta\,d\theta=\tfrac2\pi.
41 Medium Type asked atCitadelHudson River Trading
A game pays 2n2^n if the first head appears on toss nn of a fair coin. What is the expected payout?
  1. 22
  2. 44
  3. log⁡2\log_2 of the stake
  4. Infinite
Show answer
Answer: Infinite
∑n≥12n⋅2−n=∑1=∞\sum_{n\ge1}2^n\cdot2^{-n}=\sum 1=\infty. The St Petersburg paradox: nobody would pay very much, which is why utility and finite bankrolls matter.
42 Medium Type asked atCitadelHudson River Trading
A coin is tossed until either HHH or THH appears. What is the probability HHH comes first?
Show answer
Answer: 18\tfrac18
HHH wins only if the first three tosses are HHH. Any earlier T means that the first HH to follow completes THH before HHH can.
43 Medium Type asked atCitadelHudson River Trading
How many tosses of a fair coin do you expect before you first see three heads in a row?
Show answer
Answer: 1414
For kk heads in a row the answer is 2k+1−22^{k+1}-2; for k=3k=3, 14.
44 Easy Type asked atCitadelHudson River Trading
Customers arrive as a Poisson process at 2 per hour. What is the probability of no arrivals in a given hour?
Show answer
Answer: e−2≈0.135e^{-2}\approx0.135
P(N=0)=e−λt=e−2P(N=0)=e^{-\lambda t}=e^{-2}.
45 Easy Type asked atCitadelHudson River Trading
A bulb's lifetime is exponential with mean 1000 hours. It has already lasted 500 hours. What is its expected remaining lifetime?
Show answer
Answer: 10001000 hours
The exponential distribution is memoryless, so the remaining life is again exponential with mean 1000.
46 Medium Type asked atCitadelHudson River Trading
X,YX,Y are independent Exp⁡(1)\operatorname{Exp}(1). What is E[max⁡(X,Y)]\mathbb E[\max(X,Y)]?
Show answer
Answer: 32\tfrac32
min⁡\min is Exp⁡(2)\operatorname{Exp}(2) with mean 12\tfrac12; after it, by memorylessness, the other needs another 11 on average. 12+1=32\tfrac12+1=\tfrac32.
47 Easy Type asked atCitadelHudson River Trading
Z∼N(0,1)Z\sim N(0,1). Approximately what is P(Z>1.96)P(Z>1.96)?
Show answer
Answer: 0.0250.025
1.961.96 is the two-sided 95% point, so each tail holds 2.5%.
48 Medium Type asked atCitadelHudson River Trading
X,YX,Y are independent standard normals. What is corr⁡(X,X+Y)\operatorname{corr}(X,X+Y)?
Show answer
Answer: 12≈0.707\tfrac1{\sqrt2}\approx0.707
cov⁡=var⁡X=1\operatorname{cov}=\operatorname{var}X=1 and sd⁡(X+Y)=2\operatorname{sd}(X+Y)=\sqrt2, so 1/21/\sqrt2.
49 Hard Type asked atCitadelHudson River Trading
A stick is broken at a uniform point, then the longer piece is broken at a uniform point. What is the probability the three pieces form a triangle?
Show answer
Answer: 2ln⁡2−1≈0.3862\ln2-1\approx0.386
The longer piece LL is uniform on [12,1][\tfrac12,1]. Breaking it at aa, all three pieces are below 12\tfrac12 iff a∈(L−12,12)a\in(L-\tfrac12,\tfrac12), a window of length 1−L1-L, so the conditional probability is 1−LL\tfrac{1-L}{L}. Then ∫1/212⋅1−LL dL=2ln⁡2−1\int_{1/2}^{1}2\cdot\tfrac{1-L}{L}\,dL=2\ln2-1.
50 Medium Type asked atCitadelHudson River Trading
A fair coin is tossed 10 times. What is the expected number of runs (maximal blocks of identical outcomes)?
Show answer
Answer: 5.55.5
Runs =1+=1+ number of changes between consecutive tosses. Each of the 9 adjacent pairs differs with probability 12\tfrac12: 1+92=5.51+\tfrac92=5.5.
51 Easy Type asked atCitadelHudson River Trading
A simple symmetric random walk starts at 0. What is the probability it is back at 0 after exactly 2 steps?
Show answer
Answer: 12\tfrac12
It returns iff the two steps differ: UD or DU, 2 of 4 paths.
52 Easy Type asked atCitadelHudson River Trading
Two cards are drawn from a deck without replacement. What is the probability they are of different suits?
Show answer
Answer: 1317\tfrac{13}{17}
Whatever the first card, 39 of the remaining 51 are another suit: 3951=1317\tfrac{39}{51}=\tfrac{13}{17}.
53 Easy Type asked atCitadelHudson River Trading
A fair coin is flipped until the first head appears. What is the expected number of flips?
Show answer
Answer: 22
The count is geometric with p=12p=\tfrac12, so the mean is 1/p=21/p=2.
54 Medium Type asked atCitadelHudson River Trading
Three fair dice are rolled. What is the probability that all three show different numbers?
Show answer
Answer: 59≈0.556\tfrac59\approx0.556
6⋅5⋅463=120216=59\tfrac{6\cdot5\cdot4}{6^3}=\tfrac{120}{216}=\tfrac59.
55 Medium Type asked atCitadelHudson River Trading
Two cards are drawn from a standard deck without replacement. What is the probability that both are hearts?
Show answer
Answer: 117≈0.0588\tfrac1{17}\approx0.0588
1352⋅1251=14⋅417\tfrac{13}{52}\cdot\tfrac{12}{51}=\tfrac14\cdot\tfrac4{17}.
56 Medium Type asked atCitadelHudson River Trading
XX is uniform on [0,1][0,1]. What is E[X∣X>12]E[X\mid X>\tfrac12]?
Show answer
Answer: 34\tfrac34
Conditioned on X>12X>\tfrac12, XX is uniform on (12,1)\left(\tfrac12,1\right), whose mean is the midpoint.
57 Medium Type asked atCitadelHudson River Trading
A stick of length 1 is broken at a uniformly random point. What is the expected length of the longer piece?
Show answer
Answer: 34\tfrac34
The longer piece is max⁡(U,1−U)\max(U,1-U), which is uniform on [12,1]\left[\tfrac12,1\right]: mean 34\tfrac34.
58 Medium Type asked atCitadelHudson River Trading
Four people each take a hat at random from four hats. What is the probability that nobody takes their own?
Show answer
Answer: 38\tfrac38
Derangements of 4 objects: D4=9D_4=9 out of 4!=244!=24.
59 Medium Type asked atCitadelHudson River Trading
Two players take turns rolling a fair die, and the first to roll a six wins. What is the probability that the player who rolls first wins?
Show answer
Answer: 611\tfrac6{11}
Let pp be the first player's chance. The first roll wins at once with probability 16\tfrac16; otherwise both players miss (probability 2536\tfrac{25}{36}) and the game restarts. So p=16+2536pp=\tfrac16+\tfrac{25}{36}p, giving p=611p=\tfrac6{11}. Going first is worth about nine percentage points over a coin toss, which is why the order of play gets negotiated in real games.
60 Medium Type asked atCitadelHudson River Trading
Ten balls are thrown independently into ten boxes, each ball landing in any box with equal probability. What is the expected number of empty boxes?
Show answer
Answer: 10(0.9)10≈3.4910(0.9)^{10}\approx3.49
A given box stays empty with probability 0.910≈0.3490.9^{10}\approx0.349. By linearity, the expected number of empty boxes is 10×0.349≈3.4910\times0.349\approx3.49. No box needs to be independent of any other for this to work, and they are not. Roughly a third of the boxes stay empty, close to the 1/e1/e you get as the number of boxes grows.
61 Hard Type asked atCitadelHudson River Trading
Ten distinct numbers arrive one at a time in random order. A number is a *record* if it exceeds everything before it. What is the expected number of records?
Show answer
Answer: H10≈2.93H_{10}\approx2.93
The kk-th arrival is a record exactly when it is the largest of the first kk, and by symmetry that happens with probability 1k\tfrac1k. The indicators are not independent, but expectation is additive regardless, so the mean is H10=1+12+⋯+110≈2.93H_{10}=1+\tfrac12+\dots+\tfrac1{10}\approx2.93. Records are logarithmically rare: a thousand numbers produce only about 7.57.5 of them, which is why "best so far" events feel so much scarcer than people expect.
62 Hard Type asked atCitadelHudson River Trading
You interview 100 candidates in random order and must accept or reject each on the spot, with no recalls. You reject the first rr outright, then take the first candidate better than all of them. Which rr maximises the chance of hiring the very best?
Show answer
Answer: r=37r=37
Conditioning on the position kk of the best candidate, the strategy succeeds when k>rk>r and the best of the first k−1k-1 lies in the rejected block, which has probability rk−1\tfrac{r}{k-1}. Summing, P(r)=r100∑k=r+11001k−1≈xln⁡(1/x)P(r)=\tfrac{r}{100}\sum_{k=r+1}^{100}\tfrac1{k-1}\approx x\ln(1/x) with x=r/100x=r/100. That is maximised at x=1/ex=1/e, giving r=37r=37 and a success probability of about 37%37\% — strikingly high for a problem where you see each candidate once.
63 Hard Type asked atCitadelHudson River Trading
How many tosses of a fair coin are expected before the pattern HTH first appears?
Show answer
Answer: 1010
Imagine a gambler arriving before every toss, betting £1 on H, then on T, then on H, doubling through and stopping on any loss. This is a fair game, so the casino's expected profit is zero: after E[T]\mathbb E[T] tosses it has taken E[T]\mathbb E[T] pounds in stakes and must pay out what the winners hold. When HTH completes, one gambler has run the full three-step parlay and holds £8£8, and one has just matched the trailing H and holds £2£2. So E[T]=8+2=10\mathbb E[T]=8+2=10. The overlap is what costs you: HTH can begin again on its own last letter.
64 Hard Type asked atCitadelHudson River Trading
How many tosses of a fair coin are expected before the pattern HHT first appears?
Show answer
Answer: 88
Same accounting as for HTH. When HHT completes, only the gambler who backed the whole pattern is still solvent, holding £8£8; nobody is mid-parlay, because a T cannot start HHT. So E[T]=8\mathbb E[T]=8. Two patterns of the same length need not have the same waiting time — HHT has no self-overlap and so arrives sooner than HTH, which is the fact that makes the next problem possible.
65 Hard Type asked atCitadelHudson River Trading
Your opponent chooses the pattern HHT. You then choose your own three-toss pattern, and whichever appears first in a sequence of fair tosses wins. What is your winning probability under the best choice?
Show answer
Answer: 34\tfrac34
Choose THH. For HHT to come first the sequence must open with HH, because any T before the first HH puts a T in front of a later HH and hands you THH. The opening HH has probability 14\tfrac14. So you win with probability 34\tfrac34. The game is non-transitive: every pattern has a beater, so the second player always has the advantage, and the first player's "strongest-looking" choice is irrelevant.
66 Hard Type asked atCitadelHudson River Trading
Draw numbers independently and uniformly from [0,1][0,1], adding them up, and stop as soon as the running total exceeds 1. How many draws are expected?
Show answer
Answer: e≈2.718e\approx2.718
The sum of nn independent uniforms is at most 1 exactly when the point (x1,…,xn)(x_1,\dots,x_n) lies in the simplex xi>0, ∑xi≤1x_i>0,\ \sum x_i\le1, whose volume is 1n!\tfrac1{n!}. So P(N>n)=1n!P(N>n)=\tfrac1{n!}, and for a non-negative integer variable E[N]=∑n≥0P(N>n)=∑n≥01n!=e\mathbb E[N]=\sum_{n\ge0}P(N>n)=\sum_{n\ge0}\tfrac1{n!}=e. One of the few places ee appears without a limit or a logarithm in sight.
67 Hard Type asked atCitadelHudson River Trading
Ten people leave identical hats at a cloakroom and receive them back at random. What is the probability nobody gets his own hat?
Show answer
Answer: ≈0.3679\approx0.3679
By inclusion–exclusion the number of permutations with no fixed point is n!∑k=0n(−1)kk!n!\sum_{k=0}^{n}\tfrac{(-1)^k}{k!}, so the probability is ∑k=010(−1)kk!≈0.36788\sum_{k=0}^{10}\tfrac{(-1)^k}{k!}\approx0.36788. That is 1/e1/e to five decimal places, and it is essentially constant from n=6n=6 onwards — the answer does not care whether there are ten people or ten thousand.
68 Hard Type asked atCitadelHudson River Trading
A permutation of 1,2,…,101,2,\dots,10 is chosen uniformly at random. What is the probability that 1 and 2 lie in the same cycle?
Show answer
Answer: 12\tfrac12
Follow the cycle through 1: 1→π(1)→π(π(1))→⋯1\to\pi(1)\to\pi(\pi(1))\to\cdots. At each step the next element is uniform over those not yet visited plus the option of closing the cycle back at 1. By symmetry, 2 is equally likely to appear before the cycle closes as after it, so the answer is 12\tfrac12 for every n≥2n\ge2. The same argument drives the 100-prisoners puzzle, where everything depends on cycle lengths.
69 Hard Type asked atCitadelHudson River Trading
100 prisoners are numbered 1 to 100. In a room are 100 closed boxes, each holding one of the numbers in random order. Each prisoner enters alone, may open 50 boxes, and must find his own number; all must succeed or all are executed. They may agree a strategy beforehand but cannot communicate once it starts. What is the best achievable success probability?
Show answer
Answer: ≈31.2%\approx31.2\%
Each prisoner opens the box with his own number, then the box named by what he finds, and follows that chain. The arrangement is a permutation, and this chain is the cycle containing him, so he succeeds precisely when that cycle has length at most 50. Everyone succeeds together exactly when the permutation has no cycle longer than 50. A permutation of 2n2n has at most one cycle longer than nn, and the probability of a cycle of length ℓ>n\ell>n is 1ℓ\tfrac1\ell, so the failure probability is ∑ℓ=511001ℓ=H100−H50≈0.6882\sum_{\ell=51}^{100}\tfrac1\ell=H_{100}-H_{50}\approx0.6882. Success is ≈0.3118\approx0.3118, against 2−1002^{-100} for independent guessing. Correlating the failures, rather than reducing them, is the whole trick.
70 Hard Type asked atCitadelHudson River Trading
A stick of length 1 is broken at two independent uniform points. What is the expected length of the shortest of the three pieces?
Show answer
Answer: 19\tfrac19
The three pieces are exchangeable, so think of the two break points as splitting a circle of circumference 1 at three points into three arcs — the standard trick is to note the shortest of nn such spacings has mean 1n2\tfrac1{n^2}. Directly: P(min⁡>t)=(1−3t)2P(\min>t)=(1-3t)^2 for 0≤t≤130\le t\le\tfrac13, so E[min⁡]=∫01/3(1−3t)2dt=19\mathbb E[\min]=\int_0^{1/3}(1-3t)^2dt=\tfrac19. The middle piece averages 518\tfrac{5}{18} and the longest 1118\tfrac{11}{18}, which sum to 1 as they must.
71 Medium Type asked atCitadelHudson River Trading
Three points are chosen independently and uniformly on a circle. What is the probability the triangle they form is acute?
Show answer
Answer: 14\tfrac14
An inscribed angle is obtuse exactly when its opposite arc exceeds a semicircle, and at most one of the three arcs can. So the triangle is right or obtuse precisely when the three points lie in some semicircle, which happens with probability 3/22=343/2^{2}=\tfrac34. The triangle is acute with probability 14\tfrac14. Most random inscribed triangles are obtuse, which surprises people who picture the equilateral case.
72 Medium Type asked atCitadelHudson River Trading
Three cards sit in a hat: one red on both sides, one white on both sides, one red on one side and white on the other. You draw one and see red. What is the probability the other side is red?
Show answer
Answer: 23\tfrac23
Count faces, not cards. Three faces are red, and two of them belong to the double-red card, so the answer is 23\tfrac23. The intuitive "12\tfrac12" treats the two cards as equally likely once red is seen, but the double-red card had twice the chance of showing red in the first place.
73 Hard Type asked atCitadelHudson River Trading
A man has two children. At least one is a boy born on a Tuesday. What is the probability both are boys?
Show answer
Answer: 1327\tfrac{13}{27}
Label each child by sex and weekday: 14 equally likely types, 196 ordered pairs. Pairs with no Tuesday boy number 132=16913^2=169, leaving 27. Of those, the both-boys pairs are the 142−132=2714^2-13^2=27 minus... count directly: both boys with at least one Tuesday boy is 7⋅7⋅2−1⋅1=7\cdot7\cdot2-1\cdot1= 2⋅7−1=132\cdot7-1=13 out of the 7 weekday choices each way, i.e. 13. So 1327≈0.481\tfrac{13}{27}\approx0.481. The weekday looks irrelevant yet moves the answer from 13\tfrac13 towards 12\tfrac12, because the more specific the condition, the less it double-counts the two-boy case.
74 Hard Type asked atCitadelHudson River Trading
A fair die is rolled 10 times. What is the expected number of distinct faces seen?
Show answer
Answer: ≈5.03\approx5.03
Face jj fails to appear with probability (56)10(\tfrac56)^{10}, so it appears with probability 1−(56)10≈0.83851-(\tfrac56)^{10}\approx0.8385. Summing the six indicators gives 6(1−(56)10)≈5.036\left(1-(\tfrac56)^{10}\right)\approx5.03. Indicators plus linearity again sidestep the dependence entirely; trying to track the joint distribution of which faces appear is a great deal of work for the same number.
75 Medium Type asked atCitadelHudson River Trading
Buses arrive as a Poisson process, on average one every 10 minutes. You arrive at the stop at a random moment. How long do you expect to wait?
Show answer
Answer: 1010 minutes
The exponential is memoryless: however long it has been since the last bus, the wait for the next is still exponential with mean 10. The gap you land in is not a typical gap — you are more likely to fall inside a long one — and in fact the gap containing you has mean 20, split into 10 behind and 10 ahead. That is the inspection paradox, and it is why the average passenger's wait exceeds half the average headway.
76 Medium Type asked atCitadelHudson River Trading
XX is exponential with mean 1. Given X>5X>5, what is E[X]\mathbb E[X]?
Show answer
Answer: 66
Memorylessness: X−5X-5 conditioned on X>5X>5 is again exponential with mean 1, so E[X∣X>5]=6\mathbb E[X\mid X>5]=6. The exponential is the only continuous distribution with this property, which is exactly why it models waiting times with no ageing.
77 Hard Type asked atCitadelHudson River Trading
bb and cc are independent and uniform on [0,1][0,1]. What is the probability x2+bx+cx^2+bx+c has real roots?
Show answer
Answer: 112\tfrac1{12}
Real roots require b2≥4cb^2\ge4c, i.e. c≤b2/4c\le b^2/4, which is at most 14\tfrac14 and so never clipped by c≤1c\le1. The area is ∫01b24db=112\int_0^1\tfrac{b^2}4db=\tfrac1{12}. A random quadratic with small positive coefficients almost always has complex roots — the discriminant is a demanding condition.
78 Medium Type asked atCitadelHudson River Trading
nn points are dropped independently and uniformly on [0,1][0,1]. What is the expected value of the kk-th smallest?
Show answer
Answer: kn+1\tfrac{k}{n+1}; for k=3,n=9k=3,n=9, 0.30.3
The nn points cut [0,1][0,1] into n+1n+1 gaps which are exchangeable, so each has mean 1n+1\tfrac1{n+1}. The kk-th smallest point sits at the end of kk of them, giving E=kn+1\mathbb E=\tfrac{k}{n+1}. With n=9n=9 and k=3k=3 that is 0.30.3. No integration required once you see the gaps are symmetric.
79 Hard Type asked atCitadelHudson River Trading
A random chord of a circle is drawn by picking its two endpoints independently and uniformly on the circumference. What is the probability it is longer than the side of the inscribed equilateral triangle?
Show answer
Answer: 13\tfrac13
Fix the first endpoint and rotate the triangle so it sits there. The chord beats the triangle's side exactly when the second endpoint falls on the opposite third of the circumference, so the probability is 13\tfrac13. Choosing the chord by its midpoint instead gives 14\tfrac14, and by its distance from the centre gives 12\tfrac12 — Bertrand's paradox. "At random" is not a specification until you say which quantity is uniform.
80 Hard Type asked atCitadelHudson River Trading
In the casino game of craps you roll two dice. You win at once on 7 or 11 and lose at once on 2, 3 or 12. Any other total becomes your *point*, and you then roll until either the point repeats (win) or a 7 appears (lose). What is your probability of winning?
Show answer
Answer: 244495≈0.4929\tfrac{244}{495}\approx0.4929
Immediate wins: 636+236=836\tfrac{6}{36}+\tfrac{2}{36}=\tfrac{8}{36}. With point pp, the duel between pp and 7 is won with probability npnp+6\tfrac{n_p}{n_p+6}, where npn_p is the number of ways to roll pp. Points 4 and 10 give 39\tfrac39, 5 and 9 give 410\tfrac4{10}, 6 and 8 give 511\tfrac5{11}. Weighting by np36\tfrac{n_p}{36} and summing gives 244495≈0.4929\tfrac{244}{495}\approx0.4929 — a house edge of 1.41%1.41\%, among the slimmest on the floor, which is precisely why the table is loud.
81 Medium Type asked atCitadelHudson River Trading
Two fair dice are rolled repeatedly. What is the probability a total of 8 appears before a total of 7?
Show answer
Answer: 511\tfrac5{11}
Only rolls showing 7 or 8 matter; everything else is a repeat of the same question. There are 5 ways to make 8 and 6 to make 7, so the answer is 511\tfrac5{11}. Conditioning on the relevant event and discarding the rest turns an infinite sum into a ratio.
82 Hard Type asked atCitadelHudson River Trading
An ant starts at one corner of a cube and each minute walks along a randomly chosen edge to an adjacent corner. How many minutes are expected before it first reaches the opposite corner?
Show answer
Answer: 1010
Group the corners by distance from the start: AA (the start), BB (three neighbours), CC (three at distance 2), DD (the far corner). From AA you always go to BB; from BB, one third back to AA and two thirds to CC; from CC, two thirds to BB and one third to DD. With a,b,ca,b,c the expected times from each class, a=1+ba=1+b, b=1+13a+23cb=1+\tfrac13a+\tfrac23c, c=1+23bc=1+\tfrac23b. Solving gives a=10a=10. Lumping states by symmetry turns an eight-state chain into three equations.
83 Medium Type asked atCitadelHudson River Trading
A fair coin is tossed 10 times. Given that at least one head appeared, what is the probability all ten were heads?
Show answer
Answer: 11023\tfrac1{1023}
P(all heads)=2−10P(\text{all heads})=2^{-10} and P(at least one head)=1−2−10=10231024P(\text{at least one head})=1-2^{-10}=\tfrac{1023}{1024}, so the ratio is 11023\tfrac1{1023}. Conditioning removes exactly one of the 1024 sequences, and the answer is the reciprocal of what remains.
84 Hard Type asked atCitadelHudson River Trading
You are dealt 13 cards from a well-shuffled standard deck. What is the expected number of distinct suits in your hand?
Show answer
Answer: ≈3.949\approx3.949
A named suit is void in your hand when all 13 cards come from the other 39, which has probability (3913)/(5213)≈0.01279\binom{39}{13}/\binom{52}{13}\approx0.01279. So each suit is present with probability ≈0.98721\approx0.98721, and the four indicators sum to 4×0.98721≈3.9494\times0.98721\approx3.949. Roughly one hand in 78 is missing a named suit, and about one in 20 is void in something — which is why bridge bidding spends so much effort on distribution.
85 Hard Type asked atCitadelHudson River Trading
Two people agree to meet between noon and one o'clock, each arriving at a uniformly random time and waiting exactly 15 minutes before leaving. What is the probability they meet?
Show answer
Answer: 716\tfrac7{16}
Plot arrival times in the unit square. They meet when ∣x−y∣≤14|x-y|\le\tfrac14, a band about the diagonal. The two corner triangles outside it each have legs 34\tfrac34, so the miss probability is 2⋅12(34)2=9162\cdot\tfrac12(\tfrac34)^2=\tfrac9{16} and they meet with probability 716\tfrac7{16}. A fifteen-minute grace period in a one-hour window buys less than even odds, which is worse than most people guess.
86 Hard Type asked atCitadelHudson River Trading
An urn holds one black and one white ball. You draw a ball at random, return it, and add another ball of the same colour. Repeat. After nn draws, what is the probability that exactly kk of them were black?
Show answer
Answer: Uniform: 1n+1\tfrac1{n+1}; for n=4n=4, 0.20.2
This is Pólya's urn. The probability of any particular sequence with kk blacks and n−kn-k whites is k! (n−k)!(n+1)!\dfrac{k!\,(n-k)!}{(n+1)!} — it depends only on the counts, not the order, so the sequences are exchangeable. Multiplying by the (nk)\binom nk orders gives 1n+1\tfrac1{n+1} for every kk. The number of blacks is uniform on {0,1,…,n}\{0,1,\dots,n\}: reinforcement makes the long-run fraction converge, but to a limit that is itself uniform on [0,1][0,1].
87 Hard Type asked atCitadelHudson River Trading
A random walk starts at 0 and each step moves +1+1 or −1-1 with equal probability. What is the probability it ever reaches +1+1?
Show answer
Answer: 11
Let pp be the probability. Conditioning on the first step, p=12+12p2p=\tfrac12+\tfrac12p^2, so (p−1)2=0(p-1)^2=0 and p=1p=1. The walk is recurrent: it reaches every level with certainty. The expected time to do so, however, is infinite — a distinction that catches people out, and the reason the "double until you win" system is not free money.
88 Medium Type asked atCitadelHudson River Trading
In a room of 30 people, what is the expected number of pairs sharing a birthday? (Ignore leap years.)
Show answer
Answer: ≈1.19\approx1.19
There are (302)=435\binom{30}{2}=435 pairs, each matching with probability 1365\tfrac1{365}, so the expectation is 435365≈1.19\tfrac{435}{365}\approx1.19. The expected count passing 1 near n=28n=28 is the honest reason the birthday paradox works: it is pairs that grow quadratically, not people.
89 Easy Type asked atCitadelHudson River Trading
Three cards are drawn from a standard deck without replacement. What is the probability that all three are red?
Show answer
Answer: 217\tfrac2{17}
2652⋅2551⋅2450=217≈0.118\tfrac{26}{52}\cdot\tfrac{25}{51}\cdot\tfrac{24}{50}=\tfrac2{17}\approx0.118. With replacement it would be 18=0.125\tfrac18=0.125; removing each red card makes the next one slightly less likely.
90 Easy Type asked atCitadelHudson River Trading
A fair die is rolled twice. What is the probability that the second roll is strictly greater than the first?
Show answer
Answer: 512\tfrac5{12}
Six of the 36 outcomes are ties. The other 30 split evenly between "first larger" and "second larger" by symmetry, so the answer is 1536=512\tfrac{15}{36}=\tfrac5{12}. Counting the ties first and using symmetry on the rest is faster than listing cases.
91 Easy Type asked atCitadelHudson River Trading
A fair coin is tossed until both a head and a tail have appeared. What is the expected number of tosses?
Show answer
Answer: 33
The first toss shows one face. From then on you wait for the other face, which takes a geometric number of tosses with mean 2. Total 1+2=31+2=3.
92 Medium Type asked atCitadelHudson River Trading
A fair coin is tossed four times. What is the probability that no two consecutive tosses are both heads?
Show answer
Answer: 12\tfrac12
Let ana_n count length-nn sequences with no HH. A valid sequence ends in T (any valid sequence of length n−1n-1 before it) or in TH (any valid sequence of length n−2n-2 before that), so an=an−1+an−2a_n=a_{n-1}+a_{n-2} with a1=2a_1=2, a2=3a_2=3. Then a3=5a_3=5, a4=8a_4=8, and 8/16=128/16=\tfrac12. The counts are Fibonacci numbers, so the probability falls roughly like 0.81n0.81^n.
93 Medium Type asked atCitadelHudson River Trading
XX and YY are independent and uniform on [0,1][0,1]. What is the probability that Y>X2Y>X^2?
Show answer
Answer: 23\tfrac23
For fixed X=xX=x, the chance that Y>x2Y>x^2 is 1−x21-x^2. Averaging over xx: ∫01(1−x2) dx=1−13=23\int_0^1(1-x^2)\,dx=1-\tfrac13=\tfrac23. Geometrically it is the area of the unit square above the parabola.
94 Medium Type asked atCitadelHudson River Trading
XX and YY are independent standard normal random variables. What is E[max⁡(X,Y)]\mathbb E[\max(X,Y)]?
Show answer
Answer: 1π≈0.564\tfrac1{\sqrt\pi}\approx0.564
max⁡(X,Y)=12(X+Y)+12∣X−Y∣\max(X,Y)=\tfrac12(X+Y)+\tfrac12|X-Y|. The first term has mean 0. X−YX-Y is normal with variance 2, and for W∼N(0,σ2)W\sim N(0,\sigma^2), E∣W∣=σ2/π\mathbb E|W|=\sigma\sqrt{2/\pi}. So E[max⁡]=1222/π=1π\mathbb E[\max]=\tfrac12\sqrt2\sqrt{2/\pi}=\tfrac1{\sqrt\pi}. Writing a maximum as mean plus half the absolute difference is a trick worth keeping.
95 Medium Type asked atCitadelHudson River Trading
ZZ is standard normal. What is E[Z∣Z>0]\mathbb E[Z\mid Z>0]?
Show answer
Answer: 2/π≈0.798\sqrt{2/\pi}\approx0.798
E[Z 1Z>0]=∫0∞z φ(z) dz=φ(0)=12π\mathbb E[Z\,\mathbf 1_{Z>0}]=\int_0^\infty z\,\varphi(z)\,dz=\varphi(0)=\tfrac1{\sqrt{2\pi}}, because φ′(z)=−zφ(z)\varphi'(z)=-z\varphi(z). Dividing by P(Z>0)=12P(Z>0)=\tfrac12 gives 2/π\sqrt{2/\pi}. This number reappears as the mean absolute deviation of a normal, and in the expected payoff of an at-the-money option.
96 Medium Type asked atCitadelHudson River Trading
Two numbers are drawn independently and uniformly from [0,1][0,1]. What is the probability that the larger is more than twice the smaller?
Show answer
Answer: 12\tfrac12
By symmetry, compute P(Y>2X)P(Y>2X) and double it. The region y>2xy>2x in the unit square is a triangle with vertices (0,0)(0,0), (0,1)(0,1), (12,1)(\tfrac12,1), area 14\tfrac14. Doubling gives 12\tfrac12.
97 Hard Type asked atCitadelHudson River Trading
A fair die is rolled until a six appears. Given that every roll in the sequence showed an even number, what is the expected number of rolls?
Show answer
Answer: 32\tfrac32
The tempting answer is 3, from treating the die as a three-sided die {2,4,6}\{2,4,6\}. That is wrong: the condition throws away every long sequence, because long sequences are much more likely to contain an odd number. Think of each roll as ending the experiment when it shows 1, 3, 5 or 6 (probability 23\tfrac23), and ask which of those endings happened. The number of rolls is geometric with success probability 23\tfrac23, independent of which ending occurred, so the conditional mean is 12/3=32\tfrac1{2/3}=\tfrac32. Conditioning on a rare event changes the distribution of everything it touches.
98 Easy Type asked atCitadelHudson River Trading
Three friends each toss a fair coin; if exactly one shows a different face from the other two, that person pays. If all three match, they toss again. What is the expected number of rounds?
Show answer
Answer: 43\tfrac43
All three match with probability 28=14\tfrac28=\tfrac14, so each round settles it with probability 34\tfrac34. The number of rounds is geometric with mean 43\tfrac43.
99 Medium Type asked atCitadelHudson River Trading
A bag holds two coins: one fair, one with heads on both sides. You pick one at random and toss it three times, getting three heads. What is the probability you picked the double-headed coin?
Show answer
Answer: 89\tfrac89
Bayes: 12⋅112⋅1+12⋅18=89\dfrac{\tfrac12\cdot1}{\tfrac12\cdot1+\tfrac12\cdot\tfrac18}=\tfrac89. Each further head doubles the odds in favour of the double-headed coin: 1:11{:}1 before tossing, 8:18{:}1 after three heads.
100 Medium Type asked atCitadelHudson River Trading
A fair coin is tossed five times. What is the probability of a run of at least three consecutive heads?
Show answer
Answer: 14\tfrac14
Classify by where the first HHH starts. Starting at toss 1: HHH followed by anything, 4 sequences. Starting at toss 2: T then HHH then anything, 2 sequences. Starting at toss 3: ?THHH with the first toss free, 2 sequences. That is 8 of 32, or 14\tfrac14. Anchoring on the first occurrence, with a T just before it, is what prevents double counting.
101 Medium Type asked atCitadelHudson River Trading
A point is chosen uniformly at random in a unit square. What is its expected distance to the nearest side?
Show answer
Answer: 16\tfrac16
The distance to the nearer vertical side, U=min⁡(x,1−x)U=\min(x,1-x), is uniform on [0,12][0,\tfrac12], and the same holds for the horizontal sides, independently. The minimum of two independent uniforms on [0,a][0,a] has mean a3\tfrac a3, so the answer is 12⋅13=16\tfrac12\cdot\tfrac13=\tfrac16.
102 Medium Type asked atCitadelHudson River Trading
What is the probability that a five-card poker hand contains exactly one pair and nothing better?
Show answer
Answer: ≈0.423\approx0.423
Choose the pair's rank (13) and two of its suits ((42)=6\binom42=6). Choose three other ranks from the remaining 12 ((123)=220\binom{12}3=220) and a suit for each (43=644^3=64). That gives 1,098,2401{,}098{,}240 hands out of (525)=2,598,960\binom{52}5=2{,}598{,}960, about 0.423. Choosing the three side ranks together, rather than one at a time, avoids counting each hand six times.
103 Medium Type asked atCitadelHudson River Trading
A coin lands heads with probability 14\tfrac14. It is tossed three times. What is the probability of an even number of heads?
Show answer
Answer: 916\tfrac9{16}
Expand (q+p)n(q+p)^n and (q−p)n(q-p)^n: adding them keeps only the even powers of pp, so P(even)=12(1+(q−p)n)P(\text{even})=\tfrac12\big(1+(q-p)^n\big). Here q−p=12q-p=\tfrac12, giving 12(1+18)=916\tfrac12(1+\tfrac18)=\tfrac9{16}. The formula also shows why a fair coin gives exactly 12\tfrac12 for any nn.
104 Hard Type asked atCitadelHudson River Trading
A coin lands heads with probability 13\tfrac13. To get a fair bit, you toss it in pairs: HT means 0, TH means 1, and HH or TT means toss another pair. What is the expected total number of tosses?
Show answer
Answer: 92\tfrac92
A pair is decisive with probability 2pq=2⋅13⋅23=492pq=2\cdot\tfrac13\cdot\tfrac23=\tfrac49. The number of pairs is geometric with mean 94\tfrac94, and each pair is two tosses, so 92\tfrac92. HT and TH each have probability pqpq, which is why the output is exactly fair whatever pp is. The cost is the waste: the more biased the coin, the more pairs you discard.
105 Hard Type asked atCitadelHudson River Trading
A fair die is rolled 10 times. Let XX be the number of ones and YY the number of sixes. What is the correlation of XX and YY?
Show answer
Answer: −15-\tfrac15
For a multinomial, Cov⁡(X,Y)=−np1p6=−1036\operatorname{Cov}(X,Y)=-np_1p_6=-\tfrac{10}{36}, and each variance is np(1−p)=5036np(1-p)=\tfrac{50}{36}. So the correlation is −1050=−15-\tfrac{10}{50}=-\tfrac15, independent of the number of rolls. The negative sign comes from competition for the same rolls: every six is a roll that could not have been a one.
106 Hard Type asked atCitadelHudson River Trading
A permutation of 1,…,101,\dots,10 is written in a row. An entry is a peak if it is larger than each of its neighbours (the two ends have only one neighbour). What is the expected number of peaks?
Show answer
Answer: 113\tfrac{11}3
An interior entry is a peak when it is the largest of three consecutive entries: probability 13\tfrac13. An end entry needs only to beat its one neighbour: probability 12\tfrac12. By linearity, 8⋅13+2⋅12=1138\cdot\tfrac13+2\cdot\tfrac12=\tfrac{11}3. Linearity of expectation does not care that neighbouring peaks are dependent — two adjacent entries can never both be peaks.
107 Medium Type asked atCitadelHudson River Trading
Two fair dice are rolled and you are told at least one shows a six. What is the probability that both show a six?
Show answer
Answer: 111\tfrac1{11}
Eleven of the 36 outcomes contain a six (6 with the first die, 6 with the second, minus the double counted (6,6)(6,6)). Only one of them is (6,6)(6,6), so 111\tfrac1{11}. Being told "the red die shows a six" would give 16\tfrac16 instead. What you are told, and how, sets the conditioning.
108 Medium Type asked atCitadelHudson River Trading
How many people must you meet, each with a birthday independent and uniform over 365 days, before the probability that at least one of them shares your birthday exceeds 12\tfrac12?
Show answer
Answer: 253253
You need 1−(364365)n>121-(\tfrac{364}{365})^n>\tfrac12, i.e. n>ln⁡2/ln⁡365364≈252.7n>\ln2/\ln\tfrac{365}{364}\approx252.7, so 253. Compare 23 for "any two people share a birthday": there the number of pairs grows quadratically, while here every new person gives just one more chance to match a single fixed date.
109 Hard Type asked atCitadelHudson River Trading
100 passengers board a full plane one at a time. The first has lost their boarding pass and takes a seat uniformly at random. Each later passenger takes their own seat if it is free, and otherwise a free seat at random. What is the probability the last passenger gets their own seat?
Show answer
Answer: 12\tfrac12
Only two seats matter: the first passenger's and the last passenger's. Whenever someone is forced to choose at random, they pick each free seat equally often, so they are as likely to take seat 1 (which settles everyone else into their own seats) as seat 100 (which dooms the last passenger). Any other choice just passes the problem on. So the process ends on seat 1 or seat 100 with equal probability: 12\tfrac12, for any number of passengers above one.
110 Hard Type asked atCitadelHudson River Trading
A stick of length 1 is cut at three points chosen independently and uniformly. What is the probability the four pieces can form a quadrilateral?
Show answer
Answer: 12\tfrac12
Four lengths form a quadrilateral exactly when each is shorter than the other three together, i.e. shorter than 12\tfrac12. A given piece is at least 12\tfrac12 only if all three cuts fall on one side of a half-length stretch, probability (12)3(\tfrac12)^3. Two pieces cannot both be 12\tfrac12 or more, so these four events are disjoint: P(fail)=4⋅18=12P(\text{fail})=4\cdot\tfrac18=\tfrac12. With nn pieces the same argument gives 1−n/2n−11-n/2^{n-1}.
111 Hard Type asked atCitadelHudson River Trading
In an election, candidate A receives 6 votes and B receives 4. The ballots are counted one at a time in random order. What is the probability A is strictly ahead throughout the count?
Show answer
Answer: 15\tfrac15
The ballot theorem gives a−ba+b=6−410=15\tfrac{a-b}{a+b}=\tfrac{6-4}{10}=\tfrac15. The reflection argument behind it: A must win the first ballot. Any count that starts with B and later ties can be matched, by swapping the ballots up to the first tie, with a count that starts with A and later ties, so bad counts starting with A are as many as all counts starting with B, which are 410\tfrac4{10} of the total. Good counts are therefore 610−410=15\tfrac6{10}-\tfrac4{10}=\tfrac15.
112 Hard Type asked atCitadelHudson River Trading
A permutation of 1,…,101,\dots,10 is chosen uniformly at random. What is the variance of the number of fixed points?
Show answer
Answer: 11
Write X=∑i1iX=\sum_i \mathbf 1_i, where 1i\mathbf 1_i says ii is fixed. E[X]=n⋅1n=1\mathbb E[X]=n\cdot\tfrac1n=1. For the second moment, E[X2]=E[X]+∑i≠jP(i and j fixed)=1+n(n−1)⋅1n(n−1)=2\mathbb E[X^2]=\mathbb E[X]+\sum_{i\ne j}P(i\text{ and }j\text{ fixed})=1+n(n-1)\cdot\tfrac1{n(n-1)}=2. So the variance is 2−1=12-1=1. Mean and variance both equal 1, as for a Poisson(1), which is the limiting distribution.
113 Medium Type asked atCitadelHudson River Trading
A point is chosen uniformly at random inside a disc of radius 1. What is its expected distance from the centre?
Show answer
Answer: 23\tfrac23
P(R≤r)=r2P(R\le r)=r^2, the ratio of areas, so the density of RR is 2r2r and E[R]=∫012r2 dr=23\mathbb E[R]=\int_0^1 2r^2\,dr=\tfrac23. The answer is not 12\tfrac12: area grows with rr, so points sit further out than a uniform radius would suggest.
114 Hard Type asked atCitadelHudson River Trading
Two points are chosen independently and uniformly on a circle of radius 1. What is the expected length of the chord joining them?
Show answer
Answer: 4π≈1.273\tfrac4\pi\approx1.273
Fix the first point. The angle θ\theta to the second is uniform on [0,2π)[0,2\pi), and the chord is 2sin⁡(θ/2)2\sin(\theta/2). So E=12π∫02π2sin⁡θ2 dθ=12π⋅8=4π\mathbb E=\tfrac1{2\pi}\int_0^{2\pi}2\sin\tfrac\theta2\,d\theta=\tfrac1{2\pi}\cdot8=\tfrac4\pi. Reducing to one angle by symmetry is the whole trick.
115 Hard Type asked atCitadelHudson River Trading
XX and YY are independent and uniform on [0,1][0,1]. What is the correlation between min⁡(X,Y)\min(X,Y) and max⁡(X,Y)\max(X,Y)?
Show answer
Answer: 12\tfrac12
min⁡⋅max⁡=XY\min\cdot\max=XY, so E[min⁡max⁡]=14\mathbb E[\min\max]=\tfrac14, and Cov⁡=14−13⋅23=136\operatorname{Cov}=\tfrac14-\tfrac13\cdot\tfrac23=\tfrac1{36}. Each of min and max has variance 118\tfrac1{18} (both are Beta distributions with the same spread). The correlation is 1/361/18=12\tfrac{1/36}{1/18}=\tfrac12. The product identity min⁡⋅max⁡=XY\min\cdot\max=XY saves an integral.
116 Hard Type asked atCitadelHudson River Trading
A fair die is rolled until a six appears. What is the expected sum of all the rolls before the six?
Show answer
Answer: 1515
The number of rolls before the six is geometric with mean 5. Each of those rolls, given it is not a six, is uniform on {1,…,5}\{1,\dots,5\} with mean 3. By Wald's identity (a random number of i.i.d. terms, where the count is a stopping time), the expected sum is 5×3=155\times3=15. Multiplying the two means is only valid because the count does not depend on future rolls.
117 Medium Type asked atCitadelHudson River Trading
A fair die is rolled until two consecutive rolls show the same number. What is the expected total number of rolls?
Show answer
Answer: 77
After the first roll, every new roll matches the one before it with probability 16\tfrac16, independently. So the wait is geometric with mean 6, plus the first roll: 7.
118 Hard Type asked atCitadelHudson River Trading
A coin has an unknown probability of heads, uniformly distributed on [0,1][0,1]. It is tossed three times and lands heads each time. What is the probability the next toss is heads?
Show answer
Answer: 45\tfrac45
The posterior density of the bias pp is proportional to p3p^3. The chance of another head is ∫01p4 dp∫01p3 dp=1/51/4=45\dfrac{\int_0^1p^4\,dp}{\int_0^1p^3\,dp}=\dfrac{1/5}{1/4}=\dfrac45. This is Laplace's rule of succession, k+1n+2\tfrac{k+1}{n+2} after kk successes in nn trials. It is not 1, however many heads you see.
119 Hard Type asked atCitadelHudson River Trading
Ten people stand in a room. At a signal, each fires a water pistol at one of the other nine, chosen uniformly and independently. What is the expected number of people left dry?
Show answer
Answer: 10(89)9≈3.4610\left(\tfrac89\right)^9\approx3.46
A given person stays dry if none of the other nine aims at them. Each aims at them with probability 19\tfrac19, independently, so the chance is (89)9≈0.346(\tfrac89)^9\approx0.346. By linearity, 10×0.346≈3.4610\times0.346\approx3.46. The events for different people are dependent, and linearity does not care.
120 Medium Type asked atCitadelHudson River Trading
Three numbers are drawn independently and uniformly from [0,1][0,1]. What is the probability their sum is less than 1?
Show answer
Answer: 16\tfrac16
The region x+y+z<1x+y+z<1 in the unit cube is a corner tetrahedron with volume 13⋅12⋅1=16\tfrac13\cdot\tfrac12\cdot1=\tfrac16. In general nn uniforms sum to less than 1 with probability 1n!\tfrac1{n!}, and summing those tail probabilities is where the ee in "how many uniforms until the total exceeds 1" comes from.
121 Hard Type asked atCitadelHudson River Trading
A simple symmetric random walk starts at 0 and takes 10 steps. What is the expected number of times it returns to 0 (not counting the start)?
Show answer
Answer: 437256≈1.71\tfrac{437}{256}\approx1.71
A return can happen only at an even time 2k2k, with probability (2kk)/4k\binom{2k}{k}/4^k. Summing for k=1,…,5k=1,\dots,5 by linearity: 12+38+516+35128+63256=437256\tfrac12+\tfrac38+\tfrac5{16}+\tfrac{35}{128}+\tfrac{63}{256}=\tfrac{437}{256}. The terms shrink like 1/πk1/\sqrt{\pi k}, so the expected number of returns grows like n\sqrt n: infinite in the limit, which is recurrence again.
122 Medium Type asked atCitadelHudson River Trading
Three fair dice are rolled in order. What is the probability the three numbers are strictly increasing?
Show answer
Answer: 554\tfrac5{54}
Every set of three different numbers can be written in increasing order in exactly one way, so count the sets: (63)=20\binom63=20 of the 216 outcomes, or 554\tfrac5{54}.

Keep practising

Want someone to work through these with you? Quant interview preparation, one to one, or book a free 20-minute call.