Quant firm interview prep

D. E. Shaw interview questions

Representative quant-interview questions tagged to D. E. Shaw, concentrated in probability, combinatorics, and brainteasers. Preview a free set below, then drill the full bank with hints and worked solutions.

1,229 D. E. Shaw questions · 74 free to preview · 2,516 problems total

16 practice questions

FreeProbabilityEasyDE ShawJane StreetSIG

How many rolls of a fair NN-sided die are required, on average, to observe every face at least once? Compute the value for N=100N = 100, rounded to the nearest integer.

Solution

Coupon Collector's Problem

High-level idea. Decompose the total waiting time into independent geometric stages, then apply linearity of expectation.

Stage decomposition

Let TT be the total number of rolls of a fair NN-sided die needed to observe every face at least once. Define stage kk (k=1,,Nk = 1, \ldots, N) as the period that begins the moment the (k1)(k{-}1)-th distinct face was first seen and ends when the kk-th distinct face is first seen. Writing TkT_k for the number of rolls in stage kk,

T=T1+T2++TN.T = T_1 + T_2 + \cdots + T_N.

Distribution of each stage

At the start of stage kk, exactly k1k-1 faces have been observed. Each roll independently reveals a previously unseen face with probability

pk=N(k1)N=Nk+1N.p_k = \frac{N-(k-1)}{N} = \frac{N-k+1}{N}.

Hence TkGeometric(pk)T_k \sim \operatorname{Geometric}(p_k) (number of trials until first success), so

E[Tk]=1pk=NNk+1.E[T_k] = \frac{1}{p_k} = \frac{N}{N-k+1}.

Closed-form expected value

By linearity of expectation,

E[T]=k=1NNNk+1.E[T] = \sum_{k=1}^{N} \frac{N}{N-k+1}.

Reindexing with j=Nk+1j = N-k+1 (as kk runs 1N1 \to N, jj runs N1N \to 1):

E[T]=Nj=1N1j=NHN,E[T] = N \sum_{j=1}^{N} \frac{1}{j} = N \cdot H_N,

where HN=j=1N1jH_N = \displaystyle\sum_{j=1}^{N} \frac{1}{j} is the NN-th harmonic number.

Numerical evaluation for N=100N = 100

Using the Euler–Maclaurin asymptotic expansion

HN=lnN+γ+12N112N2+1120N4,H_N = \ln N + \gamma + \frac{1}{2N} - \frac{1}{12N^2} + \frac{1}{120N^4} - \cdots,

with γ=0.57721566490153\gamma = 0.57721566490153\ldots (Euler–Mascheroni constant):

H1004.60517018598809ln100+0.57721566490153γ+0.005000000000001/2000.000008333331/1200005.18737752.\begin{aligned} H_{100} &\approx \underbrace{4.60517018598809}_{\ln 100} + \underbrace{0.57721566490153}_{\gamma} + \underbrace{0.00500000000000}_{1/200} - \underbrace{0.00000833333}_{1/120000} \\ &\approx 5.18737752. \end{aligned}

Therefore,

E[T]N=100=100×H100518.74.E[T]\big|_{N=100} = 100 \times H_{100} \approx 518.74.

Rounded to the nearest integer:

519.\boxed{519}.
FreeProbabilityEasyDE ShawJane StreetSIG

A fair coin is flipped repeatedly until the first heads appears. The payout is 2n2^n dollars if the first heads occurs on the nnth toss. Determine the fair value of this game. If the expected value is infinite, output 1-1.

Solution

Let NN be the number of coin flips until the first heads appears. Since the coin is fair, NN follows a geometric distribution with success probability 1/21/2: P(N=n)=(1/2)nP(N = n) = (1/2)^n for n=1,2,3,n = 1, 2, 3, \dots (the first n1n-1 flips are tails and the nnth flip is heads). The payout when N=nN = n is 2n2^n dollars. The expected value of the payout is

E[payout]=n=12nP(N=n)=n=12n(12)n=n=11=.E[\text{payout}] = \sum_{n=1}^{\infty} 2^n \cdot P(N = n) = \sum_{n=1}^{\infty} 2^n \cdot \left(\frac{1}{2}\right)^n = \sum_{n=1}^{\infty} 1 = \infty.

Since the expected value is infinite, the game does not have a finite fair value. Per the problem instructions, output 1-1.

FreeProbabilityEasyDE ShawJane StreetSIG

A fair standard die is rolled until two consecutive 11s first appear. Find the expected number of rolls.

Solution

High-level idea

Model the process as a Markov chain with two transient states tracking the current "run" of consecutive 1s. Set up first-step equations and solve the 2×22\times 2 linear system.

States and equations

Let p=16p = \tfrac{1}{6} be the probability of rolling a 1. Define:

  • S0S_0: start, or the last roll was not a 1.
  • S1S_1: the last roll was a 1 (one consecutive 1 in progress).

Let μ0,μ1\mu_0,\mu_1 be the expected number of additional rolls needed to reach absorption (two consecutive 1s) from each state.

From S0S_0 — one roll is used; with probability 16\tfrac{1}{6} we move to S1S_1, with probability 56\tfrac{5}{6} we remain in S0S_0:

μ0=1+16μ1+56μ0.\mu_0 = 1 + \frac{1}{6}\mu_1 + \frac{5}{6}\mu_0.

From S1S_1 — one roll is used; with probability 16\tfrac{1}{6} we finish (0 more rolls), with probability 56\tfrac{5}{6} we return to S0S_0:

μ1=1+56μ0.\mu_1 = 1 + \frac{5}{6}\mu_0.

Solving the system

Rearranging the first equation:

μ056μ0=1+16μ1    μ0=6+μ1.\mu_0 - \frac{5}{6}\mu_0 = 1 + \frac{1}{6}\mu_1 \implies \mu_0 = 6 + \mu_1.

Substituting μ1=1+56μ0\mu_1 = 1 + \tfrac{5}{6}\mu_0:

μ0=7+56μ0    16μ0=7    μ0=42.\mu_0 = 7 + \frac{5}{6}\mu_0 \implies \frac{1}{6}\mu_0 = 7 \implies \mu_0 = 42.

Check: μ1=1+56(42)=36\mu_1 = 1 + \tfrac{5}{6}(42) = 36, and 6+36=426 + 36 = 42. ✓

Final answer

The expected number of rolls is 42\boxed{42}.

FreeProbabilityEasyDE ShawJane StreetSIG

Three independent random variables XX, YY, and ZZ are each uniformly distributed on [0,1][0, 1]. What is the probability that XX, YY, and ZZ are the side lengths of a valid triangle?

Solution

Idea

Work with the complement: a triple fails the triangle inequality if and only if one side is at least as large as the sum of the other two. The three failure events turn out to be mutually exclusive, so the failure probability is simply 3P(A)3P(A) for any one of them.

Setup

Let X,Y,ZiidUniform[0,1]X, Y, Z \overset{\text{iid}}{\sim} \text{Uniform}[0,1]. Define the failure events

A={X+YZ},B={X+ZY},C={Y+ZX}.A = \{X+Y \le Z\}, \quad B = \{X+Z \le Y\}, \quad C = \{Y+Z \le X\}.

Mutual Exclusivity of AA, BB, CC

Suppose ABA \cap B occurs: X+YZX+Y \le Z and X+ZYX+Z \le Y. Adding these inequalities gives 2X+Y+ZY+Z2X + Y + Z \le Y + Z, hence X0X \le 0. Since X0X \ge 0 a.s., this forces X=0X = 0, an event of probability zero. By symmetry, every pairwise intersection has measure zero, so AA, BB, CC are mutually exclusive a.s. Combined with symmetry of the joint distribution,

P(ABC)=P(A)+P(B)+P(C)=3P(A).P(A \cup B \cup C) = P(A) + P(B) + P(C) = 3\,P(A).

Computing P(A)P(A)

Condition on Z=zZ = z. The event {X+Yz}\{X + Y \le z\} within [0,1]2[0,1]^2 traces the right triangle {x0,y0,x+yz}\{x \ge 0,\, y \ge 0,\, x+y \le z\}, which has area z2/2z^2/2. Therefore

P(A)=01z22dz=1213=16.P(A) = \int_0^1 \frac{z^2}{2}\,dz = \frac{1}{2} \cdot \frac{1}{3} = \frac{1}{6}.

Final Answer

P(valid triangle)=1316=112=12.P(\text{valid triangle}) = 1 - 3 \cdot \frac{1}{6} = 1 - \frac{1}{2} = \boxed{\dfrac{1}{2}}.
FreeCombinatoricsEasyDE ShawJane StreetSIG

Eight points are placed on a circle. All chords connecting every pair of points are drawn. Four chords are then chosen uniformly at random. What is the probability that these four chords form a convex quadrilateral?

Solution

We have 8 points on a circle, so there are (82)=28\binom{8}{2}=28 chords in total. Choosing 4 chords uniformly at random gives (284)\binom{28}{4} equally likely outcomes.

For the 4 chords to form a convex quadrilateral, their union must be exactly the boundary of that quadrilateral. Because the points lie on a circle, any 4 distinct points determine a convex quadrilateral whose sides are the chords connecting consecutive points in cyclic order. Thus a favorable set of 4 chords corresponds precisely to choosing 4 of the 8 points and taking the four boundary chords of that set. There are (84)=70\binom{8}{4}=70 ways to choose the points, and each yields exactly one favorable 4‑chord set. No other set of 4 chords can form a convex quadrilateral, since any quadrilateral must have four distinct vertices, and on a circle the only non‑self‑intersecting 4‑cycle on four points is the boundary cycle.

Hence the probability is

P=(84)(284)=7020475=144095=2585.P = \frac{\binom{8}{4}}{\binom{28}{4}} = \frac{70}{20475} = \frac{14}{4095} = \frac{2}{585}.
FreeCombinatoricsEasyDE ShawJane StreetCitadel

A class contains 15 boys and 10 girls. The students line up in a row uniformly at random. What is the expected number of adjacent boy-girl pairs? For example, the lineup BGBBGGGBGGBBBBGBGBBGBBGBBBGBBGGGBGGBBBBGBGBBGBBGBB has 14 such adjacent pairs.

Solution

We have 15 boys and 10 girls, totaling 25 students. The students line up uniformly at random. We want the expected number of adjacent positions where one is a boy and the other is a girl (order BG or GB).

Let XX be the number of adjacent boy-girl pairs. For each adjacent pair of positions (i,i+1)(i, i+1) with i=1,,24i = 1,\dots,24, define an indicator IiI_i that the two students at those positions are of opposite sexes. Then X=i=124IiX = \sum_{i=1}^{24} I_i, and by linearity of expectation,

E[X]=i=124E[Ii]=i=124Pr(positions i and i+1 are opposite sexes).\mathbb{E}[X] = \sum_{i=1}^{24} \mathbb{E}[I_i] = \sum_{i=1}^{24} \Pr(\text{positions } i \text{ and } i+1 \text{ are opposite sexes}).

By symmetry, the probability is the same for every adjacent pair; denote it by pp. Hence E[X]=24p\mathbb{E}[X] = 24 \cdot p.

Now compute pp. There are 25×2425 \times 24 equally likely ordered assignments of two distinct students to the two positions. Favorable cases are (boy, girl) and (girl, boy). There are 15×10=15015 \times 10 = 150 ways to choose a boy then a girl, and 10×15=15010 \times 15 = 150 ways to choose a girl then a boy, for a total of 300300 favorable ordered pairs. Thus

p=30025×24=300600=12.p = \frac{300}{25 \times 24} = \frac{300}{600} = \frac{1}{2}.

Alternatively, Pr(boy then girl)=15251024=14\Pr(\text{boy then girl}) = \frac{15}{25} \cdot \frac{10}{24} = \frac{1}{4}, and Pr(girl then boy)=10251524=14\Pr(\text{girl then boy}) = \frac{10}{25} \cdot \frac{15}{24} = \frac{1}{4}, so p=14+14=12p = \frac{1}{4} + \frac{1}{4} = \frac{1}{2}.

Therefore,

E[X]=2412=12.\mathbb{E}[X] = 24 \cdot \frac{1}{2} = 12.
FreeBrainteaserEasyDE ShawJane StreetSIG

Priya and Theo each raise ants. Priya has 4040 ants and Theo has 8080 ants. They stand at opposite ends of an infinitesimally wide string and release all their ants onto it simultaneously. All ants move at the same constant speed. Whenever two ants meet, they both reverse direction. Each ant moves only forward. Let xx be the number of ants that reach Priya and yy the number that reach Theo. Compute xyx - y.

Solution

The key insight is that when two ants meet and reverse direction, the system is equivalent to the ants passing through each other without interaction, because the ants are indistinguishable. Under this "pass-through" model, each ant simply continues in its original direction forever. Therefore, the number of ants that reach Priya's end equals the number of ants that were initially moving leftward (toward Priya), and the number that reach Theo's end equals the number initially moving rightward (toward Theo).

Initially, all 40 ants at Priya's end move rightward (toward Theo), and all 80 ants at Theo's end move leftward (toward Priya). Under the pass-through equivalence, the ants that reach Priya are those that started at Theo's end and moved leftward: 80 ants. The ants that reach Theo are those that started at Priya's end and moved rightward: 40 ants. Thus x=80x = 80, y=40y = 40, and

xy=8040=40.x - y = 80 - 40 = 40.

More formally, let xx be the number reaching Priya and yy the number reaching Theo. Under the pass-through model, each ant's trajectory is a straight line from its start to the opposite end. Since all ants move at the same speed, the number reaching each end is exactly the number that started at the opposite end. Hence x=80x = 80, y=40y = 40, and the difference is 4040.

FreeBrainteaserEasyDE ShawJane StreetSIG

On a sheet of paper are 100100 statements. The first reads, "at most 00 of these 100100 statements are true." The second reads, "at most 11 of these 100100 statements are true." In general, the nnth statement says, "at most n1n-1 of these 100100 statements are true." How many statements are true?

Solution

Let the statements be numbered 1,2,,1001,2,\dots,100. Statement kk says: "at most k1k-1 of these 100100 statements are true."

Let TT be the total number of true statements. For statement kk to be true, we must have Tk1T \le k-1; for it to be false, T>k1T > k-1. Hence statement kk is true exactly when kT+1k \ge T+1.

Thus the true statements are those with indices T+1,T+2,,100T+1, T+2, \dots, 100. The number of such statements is 100T100 - T. But this number must equal TT itself, because TT is the total number of true statements. Therefore:

T=100T2T=100T=50.T = 100 - T \quad\Longrightarrow\quad 2T = 100 \quad\Longrightarrow\quad T = 50.

Check: If T=50T=50, then statements 5151 through 100100 are true (50 statements). Statement 5151 says "at most 5050 are true" — true because exactly 5050 are true. Statement 5050 says "at most 4949 are true" — false because 50>4950 > 49. All statements 11 through 4949 are false because each claims "at most k1k-1 are true" with k148k-1 \le 48, but 50>k150 > k-1. All statements 5252 through 100100 are true because each claims "at most k1k-1 are true" with k151k-1 \ge 51, and 50k150 \le k-1. Hence exactly 5050 statements are true, consistent with T=50T=50.

Thus the answer is 5050.

FreeStochasticEasyDE ShawJane StreetSIG

Consider a drunkard starting one pace from a precipice. On each move he steps toward the edge with chance 1/31/3 and away with chance 2/32/3; moves are independent. Determine the probability that he never goes over the edge, i.e., he escapes.

Solution

Let qkq_k be the probability that the drunkard eventually steps onto the precipice (ruin) when he is currently kk paces from the edge (k0k\ge 0). The precipice is at k=0k=0, so q0=1q_0=1. We want the survival probability 1q11-q_1.

For k1k\ge 1, condition on the first step:

qk=13qk1+23qk+1.q_k = \frac13 q_{k-1} + \frac23 q_{k+1}.

Multiply by 33 and rearrange to obtain the homogeneous linear recurrence

2qk+13qk+qk1=0.2q_{k+1} - 3q_k + q_{k-1} = 0.

The characteristic equation is 2r23r+1=02r^2-3r+1=0, which factors as (2r1)(r1)=0(2r-1)(r-1)=0, giving roots r=1r=1 and r=12r=\frac12. Hence

qk=A+B(12)k.q_k = A + B\Big(\frac12\Big)^k.

Boundary conditions.

  • At k=0k=0: q0=1    A+B=1q_0 = 1 \implies A + B = 1.
  • As kk\to\infty, the walk has a positive drift away from the edge (each step has expected change +13+\frac13). Therefore the probability of ever hitting 00 from far away tends to 00, i.e. limkqk=0\lim_{k\to\infty}q_k = 0. This forces A=0A=0, and consequently B=1B=1.

Thus qk=(12)kq_k = \big(\frac12\big)^k. In particular, the ruin probability starting one pace away is q1=12q_1 = \frac12. The probability that he never goes over the edge is

1q1=12.1 - q_1 = \frac12.
FreeGame theoryEasyDE ShawJane StreetSIG

On a magic island covered in grass live 100 tigers and 1 sheep. The tigers can eat grass but prefer sheep. Each time, only one tiger may eat the sheep, and after doing so it turns into a sheep itself. All tigers are intelligent, perfectly rational, and value survival. Will the sheep be eaten?

Solution

We determine the outcome by backward induction on the number of tigers, nn. The key observation is that a tiger will eat the sheep only if doing so guarantees its own survival after it turns into a sheep.

  • n=1n=1: The lone tiger eats the sheep, becomes a sheep, and faces no remaining tigers. It survives, so the sheep is eaten.
  • n=2n=2: If a tiger eats the sheep, it becomes a sheep, leaving one tiger and one sheep. By the n=1n=1 case, that remaining tiger will eat the new sheep, so the first tiger would die. Since tigers value survival, neither will eat. The sheep survives.
  • n=3n=3: If a tiger eats, it becomes a sheep, leaving two tigers and one sheep. From n=2n=2, the two tigers will not eat the sheep (they would die), so the eating tiger survives. Hence some tiger will eat, and the sheep is eaten.
  • n=4n=4: Eating leads to the n=3n=3 case, where the sheep is eaten, so the eating tiger would die. No tiger eats; the sheep survives.

Continuing this logic, the sheep is eaten if and only if nn is odd. For n=100n=100 (even), no tiger will eat the sheep.

FreeLinear algebraEasyDE ShawJane StreetCitadel

Three assets AA, BB, CC have correlations ρAB=0.9\rho_{AB}=0.9 and ρBC=0.8\rho_{BC}=0.8. Can ρAC=0.1\rho_{AC}=0.1?

Solution

A correlation matrix must be positive semidefinite (PSD). For three assets with pairwise correlations ρAB=0.9\rho_{AB}=0.9, ρBC=0.8\rho_{BC}=0.8, and a candidate ρAC=0.1\rho_{AC}=0.1, we check whether the 3×33\times3 correlation matrix

R=(10.90.10.910.80.10.81)R = \begin{pmatrix} 1 & 0.9 & 0.1 \\ 0.9 & 1 & 0.8 \\ 0.1 & 0.8 & 1 \end{pmatrix}

is PSD. A necessary and sufficient condition for a 3×33\times3 symmetric matrix with unit diagonal is that all principal minors are nonnegative. The 1×11\times1 and 2×22\times2 minors are clearly nonnegative, so the key condition is det(R)0\det(R) \ge 0.

The determinant of a 3×33\times3 correlation matrix is

det(R)=1+2ρABρBCρACρAB2ρBC2ρAC2.\det(R) = 1 + 2\rho_{AB}\rho_{BC}\rho_{AC} - \rho_{AB}^2 - \rho_{BC}^2 - \rho_{AC}^2.

Substituting the given values:

det(R)=1+2(0.9)(0.8)(0.1)0.920.820.12=1+0.1440.810.640.01=1.1441.46=0.316<0.\begin{aligned} \det(R) &= 1 + 2(0.9)(0.8)(0.1) - 0.9^2 - 0.8^2 - 0.1^2 \\ &= 1 + 0.144 - 0.81 - 0.64 - 0.01 \\ &= 1.144 - 1.46 = -0.316 < 0. \end{aligned}

Since the determinant is negative, RR is not positive semidefinite. Therefore ρAC=0.1\rho_{AC}=0.1 is not possible.

FreeCombinatoricsMediumDE ShawJane StreetSIG

Sandy has 55 pairs of socks in a drawer, each pair a distinct color. On Monday, she randomly picks two socks from the 1010 total; on Tuesday, she picks two from the remaining 88; on Wednesday, she picks two from the remaining 66. What is the probability that Wednesday is the first day she selects a matching pair?

Solution

Let MM, TT, WW be the events that Monday, Tuesday, Wednesday produce a matching pair, respectively. We want

P(McTcW)=P(Mc)P(TcMc)P(WMcTc).P(M^c \cap T^c \cap W) = P(M^c)\,P(T^c \mid M^c)\,P(W \mid M^c \cap T^c).

1. P(Mc)P(M^c). Total ways to choose 22 socks from 1010: (102)=45\binom{10}{2}=45. Matching pairs: 55 (one per color). So P(M)=5/45=1/9P(M)=5/45=1/9, hence

P(Mc)=119=89.P(M^c)=1-\frac19=\frac89.

2. P(TcMc)P(T^c \mid M^c). After a non‑matching Monday, two socks of different colors are removed. The remaining 88 socks consist of 33 colors with 22 socks each and 22 colors with 11 sock each. Total pairs from 88: (82)=28\binom{8}{2}=28. Only the three colors with 22 socks can produce a matching pair, so 33 matching pairs. Thus P(TMc)=3/28P(T\mid M^c)=3/28 and

P(TcMc)=1328=2528.P(T^c \mid M^c)=1-\frac{3}{28}=\frac{25}{28}.

3. P(WMcTc)P(W \mid M^c \cap T^c). After Monday and Tuesday are both non‑matching, the composition of the remaining 66 socks depends on how Tuesday's non‑matching pair was formed. Starting from the Monday state (33 colors with 22 socks, 22 colors with 11 sock), Tuesday's non‑matching pair can be of three types:

  • Case A: Both socks from the 22-sock colors. Number of ways: (32)22=12\binom{3}{2}\cdot2\cdot2 = 12. Resulting state: 11 color with 22 socks, 44 colors with 11 sock. Probability of a match on Wednesday: 1(62)=115\frac{1}{\binom{6}{2}} = \frac{1}{15}.
  • Case B: One sock from a 22-sock color and one from a 11-sock color. Number of ways: 3221=123\cdot2\cdot2\cdot1 = 12. Resulting state: 22 colors with 22 socks, 22 colors with 11 sock, 11 color with 00 socks. Probability of a match on Wednesday: 215\frac{2}{15}.
  • Case C: Both socks from the two 11-sock colors. Number of ways: 11. Resulting state: 33 colors with 22 socks, 22 colors with 00 socks. Probability of a match on Wednesday: 315=15\frac{3}{15} = \frac15.

Total non‑matching pairs on Tuesday: 12+12+1=2512+12+1 = 25, so the conditional probabilities of the cases given TcT^c are 1225,1225,125\frac{12}{25},\frac{12}{25},\frac{1}{25}. Hence

P(WMcTc)=1225115+1225215+125315=12+24+3375=39375=13125.P(W \mid M^c \cap T^c) = \frac{12}{25}\cdot\frac{1}{15} + \frac{12}{25}\cdot\frac{2}{15} + \frac{1}{25}\cdot\frac{3}{15} = \frac{12+24+3}{375} = \frac{39}{375} = \frac{13}{125}.

4. Multiply.

P(McTcW)=89252813125=82513928125=260031500=26315.P(M^c \cap T^c \cap W) = \frac{8}{9} \cdot \frac{25}{28} \cdot \frac{13}{125} = \frac{8\cdot25\cdot13}{9\cdot28\cdot125} = \frac{2600}{31500} = \frac{26}{315}.

Thus the desired probability is 26315\boxed{\frac{26}{315}}.

(One can verify by counting all sequences: total sequences (102)(82)(62)=18900\binom{10}{2}\binom{8}{2}\binom{6}{2}=18900, favorable sequences 52413=15605\cdot24\cdot13=1560, giving the same fraction.)

FreeOptionsMediumDE ShawCitadelSIG

In a Black-Scholes setting, two assets share the same volatility but have distinct drifts under the real-world measure. Compare the prices of European calls written on these assets. Now suppose one of the underlying assets is also subject to random downward jumps. How does this affect the comparison?

Solution

High-level idea

In the Black–Scholes model, the price of a European call depends only on the risk‑free rate and volatility, not on the real‑world drift. Hence two assets with the same current price, volatility, strike, maturity, and risk‑free rate have identical European call prices, regardless of their real‑world drifts.

When one asset is also subject to random downward jumps, the comparison changes — but not in the direction naive intuition suggests. Under the risk‑neutral measure the jumps must be compensated by extra drift between jumps so that the forward price is unchanged. The compensated jumps therefore act as a mean‑preserving spread of the terminal price, and the call payoff is convex, so by Jensen's inequality the call on the jump‑exposed asset is more expensive than the call on the pure‑diffusion asset.


Derivation

1. Pure diffusion (no jumps)

Under the risk‑neutral measure Q\mathbb{Q} the asset follows

dStSt=rdt+σdWtQ,\frac{dS_t}{S_t} = r\,dt + \sigma\,dW_t^{\mathbb{Q}},

so that

ST=S0exp ⁣((rσ22)T+σTZ),ZN(0,1).S_T = S_0 \exp\!\Bigl(\bigl(r - \tfrac{\sigma^{2}}{2}\bigr)T + \sigma\sqrt{T}\,Z\Bigr), \qquad Z \sim \mathcal{N}(0,1).

The European call price is

C=erTEQ[(STK)+]=S0N(d1)KerTN(d2),C = e^{-rT}\,\mathbb{E}^{\mathbb{Q}}\bigl[(S_T - K)^{+}\bigr] = S_0 N(d_1) - K e^{-rT} N(d_2),

with

d1,2=ln(S0/K)+(r±σ22)TσT.d_{1,2} = \frac{\ln(S_0/K) + (r \pm \tfrac{\sigma^2}{2})T}{\sigma\sqrt{T}}.

The formula contains rr and σ\sigma but no real‑world drift μ\mu. Therefore, if two assets share the same S0S_0, σ\sigma, KK, TT, and rr, their European call prices are identical — distinct real‑world drifts are irrelevant.

2. Adding random downward jumps to one asset

Now let one asset follow a jump‑diffusion (Merton 1976). Under a suitable risk‑neutral measure its dynamics are

dStSt=(rλκ)dt+σdWtQ+(Yt1)dNt,\frac{dS_t}{S_{t-}} = (r - \lambda\kappa)\,dt + \sigma\,dW_t^{\mathbb{Q}} + (Y_t - 1)\,dN_t,

where NtN_t is a Poisson process with intensity λ\lambda, Yt<1Y_t < 1 is the downward jump multiplier, and κ=EQ[Yt1]\kappa = \mathbb{E}^{\mathbb{Q}}[Y_t - 1] is the compensator that keeps the expected instantaneous return equal to rr. For downward jumps κ<0\kappa < 0, so the drift between jumps is raised above rr: the compensation exactly offsets the jumps and preserves the forward, EQ[ST]=S0erT\mathbb{E}^{\mathbb{Q}}[S_T] = S_0 e^{rT} for both assets.

Solving the SDE, the terminal price factorizes as

STjump=STdiffJ,J=eλκTi=1NTYi,S_T^{\text{jump}} = S_T^{\text{diff}} \cdot J, \qquad J = e^{-\lambda\kappa T}\prod_{i=1}^{N_T} Y_i,

where STdiffS_T^{\text{diff}} is the pure‑diffusion terminal price and JJ is an independent jump factor with EQ[J]=1\mathbb{E}^{\mathbb{Q}}[J] = 1. Conditioning on STdiffS_T^{\text{diff}} and applying Jensen's inequality to the convex payoff x(xK)+x \mapsto (x - K)^{+},

EQ[(STdiffJK)+STdiff]    (STdiffEQ[J]K)+=(STdiffK)+.\mathbb{E}^{\mathbb{Q}}\bigl[(S_T^{\text{diff}}\,J - K)^{+} \,\big|\, S_T^{\text{diff}}\bigr] \;\ge\; \bigl(S_T^{\text{diff}}\,\mathbb{E}^{\mathbb{Q}}[J] - K\bigr)^{+} = \bigl(S_T^{\text{diff}} - K\bigr)^{+}.

Taking expectations and discounting shows the jump‑exposed call is worth at least as much for every strike — and strictly more whenever the jumps are genuinely random. Equivalently: at the same forward, the jumps add total risk‑neutral variance, and extra dispersion always benefits a convex payoff (a mean‑preserving spread raises the value of a convex function's expectation).

The tempting argument that "downward jumps create negative skew and therefore depress the call" is wrong because it ignores the compensator: between jumps the asset drifts upward faster than rr, and through the convexity of the payoff this more than makes up for the heavier left tail.

As a numerical check, with S0=K=100S_0 = K = 100, r=0.02r = 0.02, σ=0.2\sigma = 0.2, T=1T = 1, λ=1\lambda = 1, and jump multiplier Y=0.8Y = 0.8, Monte Carlo gives a jump‑diffusion call price of about 12.4512.45 versus a Black–Scholes price of about 8.928.92.

Consequently, the call on the asset with random downward jumps is more expensive than the call on the pure‑diffusion asset.


Final answer

Without jumps the two European calls have the same price. When one asset is also subject to random downward jumps (compensated under the risk‑neutral measure so the forward is unchanged), its call becomes more expensive than the call on the pure‑diffusion asset: the jumps act as a mean‑preserving spread of the terminal price, and the call payoff is convex.

FreeStochasticMediumDE ShawCitadelRenaissance

For the Ornstein-Uhlenbeck SDE dXt=θ(μXt)dt+σdWtdX_t = \theta(\mu - X_t)\, dt + \sigma\, dW_t with initial condition X0X_0, derive the expected value E[Xt]\mathbb{E}[X_t] and the variance Var(Xt)\operatorname{Var}(X_t) as explicit functions of tt.

Solution

We start from the Ornstein–Uhlenbeck SDE

dXt=θ(μXt)dt+σdWt,X0=x0.dX_t = \theta(\mu - X_t)\, dt + \sigma\, dW_t, \qquad X_0 = x_0.

Step 1. Solve the SDE exactly. Define Yt=eθtXtY_t = e^{\theta t} X_t. By Itô’s lemma,

dYt=eθtdXt+θeθtXtdt.dY_t = e^{\theta t}\, dX_t + \theta e^{\theta t} X_t\, dt.

Substituting dXtdX_t,

dYt=eθt[θ(μXt)dt+σdWt]+θeθtXtdt=θμeθtdt+σeθtdWt.\begin{aligned} dY_t &= e^{\theta t}\bigl[\theta(\mu - X_t)\, dt + \sigma\, dW_t\bigr] + \theta e^{\theta t} X_t\, dt \\ &= \theta\mu e^{\theta t}\, dt + \sigma e^{\theta t}\, dW_t. \end{aligned}

The terms containing XtX_t cancel. Integrate from 00 to tt,

YtY0=θμ0teθsds+σ0teθsdWs,Y_t - Y_0 = \theta\mu\int_0^t e^{\theta s}\, ds + \sigma\int_0^t e^{\theta s}\, dW_s,

with Y0=X0Y_0 = X_0. Since 0tθeθsds=eθt1\int_0^t \theta e^{\theta s}\, ds = e^{\theta t} - 1, we obtain

Xt=eθtYt=X0eθt+μ(1eθt)+σ0teθ(ts)dWs.(1)X_t = e^{-\theta t} Y_t = X_0 e^{-\theta t} + \mu\bigl(1 - e^{-\theta t}\bigr) + \sigma\int_0^t e^{-\theta(t-s)}\, dW_s. \tag{1}

Step 2. Expected value. The Itô integral in (1) is a martingale starting at zero; its expectation is zero. Hence

E[Xt]=X0eθt+μ(1eθt).(2)\mathbb{E}[X_t] = X_0 e^{-\theta t} + \mu\bigl(1 - e^{-\theta t}\bigr). \tag{2}

Step 3. Variance. Only the stochastic term in (1) contributes to the variance. Using Itô isometry,

Var(Xt)=E ⁣[(σ0teθ(ts)dWs) ⁣2]=σ20te2θ(ts)ds=σ20te2θudu=σ21e2θt2θ=σ22θ(1e2θt).(3)\begin{aligned} \operatorname{Var}(X_t) &= \mathbb{E}\!\left[\left(\sigma\int_0^t e^{-\theta(t-s)}\, dW_s\right)^{\!2}\right] = \sigma^2 \int_0^t e^{-2\theta(t-s)}\, ds \\ &= \sigma^2 \int_0^t e^{-2\theta u}\, du = \sigma^2\,\frac{1 - e^{-2\theta t}}{2\theta} \\ &= \frac{\sigma^2}{2\theta}\bigl(1 - e^{-2\theta t}\bigr). \tag{3} \end{aligned}

Equations (2) and (3) are the required expressions.

FreeProbabilityHardDE ShawJane StreetSIG

Two players share a fair coin and flip it repeatedly, recording the sequence of heads (HH) and tails (TT) that appears. The first player wins if HTHHTH occurs before HHTHHT; otherwise, the second player wins. What is the probability that the first player wins?

Solution

Idea

Track the game state as the longest suffix of the flip sequence that is a prefix of either target pattern. This yields a small Markov chain whose first-step equations determine the win probability exactly.

States and Transitions

Target patterns: Player 1 wins on HTHHTH; Player 2 wins on HHTHHT.

The transient states are {ε,H,HH,HT}\{\varepsilon,\, H,\, HH,\, HT\}, where ε\varepsilon denotes no useful suffix (start, or after a progress-resetting tail).

StateFlip HHFlip TT
ε\varepsilonHHε\varepsilon
HHHHHHHTHT
HHHHHHHHP2 wins
HTHTP1 winsε\varepsilon

Remark on HHHHHHH \xrightarrow{H} HH: after any run of heads, the longest suffix that prefixes a target is still HHHH (the length-2 prefix of HHTHHT).

System of Equations

Let psp_s denote the probability that Player 1 wins from state ss.

pε=12pH+12pε    pε=pH(1)p_{\varepsilon} = \tfrac{1}{2}p_H + \tfrac{1}{2}p_{\varepsilon} \implies p_{\varepsilon} = p_H \tag{1} pH=12pHH+12pHT(2)p_H = \tfrac{1}{2}p_{HH} + \tfrac{1}{2}p_{HT} \tag{2} pHH=12pHH+120    pHH=0(3)p_{HH} = \tfrac{1}{2}p_{HH} + \tfrac{1}{2}\cdot 0 \implies p_{HH} = 0 \tag{3} pHT=121+12pε(4)p_{HT} = \tfrac{1}{2}\cdot 1 + \tfrac{1}{2}\,p_{\varepsilon} \tag{4}

Equation (3) reflects that HHHH is a trap: every additional HH keeps the game in HHHH, and the inevitable first TT completes HHTHHT, so Player 1 cannot win from HHHH.

Solution

Substituting (3)(3) into (2)(2):

pH=12pHT.p_H = \tfrac{1}{2}p_{HT}.

Combined with (1)(1), we have pε=pH=12pHTp_{\varepsilon} = p_H = \tfrac{1}{2}p_{HT}. Substituting into (4)(4):

pHT=12+1212pHT=12+14pHT.p_{HT} = \frac{1}{2} + \frac{1}{2}\cdot\frac{1}{2}p_{HT} = \frac{1}{2} + \frac{1}{4}p_{HT}. 34pHT=12    pHT=23.\frac{3}{4}p_{HT} = \frac{1}{2} \implies p_{HT} = \frac{2}{3}. pε=1223=13.p_{\varepsilon} = \frac{1}{2}\cdot\frac{2}{3} = \boxed{\dfrac{1}{3}}.

The game begins in state ε\varepsilon, so Player 1 wins with probability 13\dfrac{1}{3}.

FreeBrainteaserHardDE ShawJane StreetSIG

An oil tanker must transport 30003000 gallons of oil from Port A to Port B, which are 10001000 miles apart. The tanker loses 11 gallon per mile traveled due to constant spillage, and it can carry at most 10001000 gallons at any time. It may deposit oil at any number of intermediate storage ports along the route and later retrieve it. Under an optimal travel plan (choosing where to place storage ports and how to carry the oil), what is the maximum number of gallons that can be delivered to Port B? Round to the nearest gallon.

Solution

This is a classic "jeep problem" (desert crossing) variant. The tanker starts with 30003000 gallons at Port A, must travel 10001000 miles to Port B, loses 11 gallon per mile, and has capacity 10001000 gallons. The goal is to maximize delivered oil.

Key insight: The optimal strategy uses intermediate depots and shuttles oil forward in stages, each stage moving a certain amount of oil a certain distance while consuming fuel for round trips. The number of trips decreases by one each stage.

Let D=1000D = 1000 miles, capacity C=1000C = 1000 gallons, initial fuel F=3000F = 3000 gallons. Consumption is 11 gallon per mile.

General principle: To move nn full loads (i.e., n×1000n \times 1000 gallons) a distance dd, you make nn forward trips and n1n-1 return trips, consuming (2n1)d(2n-1)d gallons. The amount delivered forward is nC(2n1)dnC - (2n-1)d.

Stage 1: Start with 30003000 gallons at A, i.e., n1=3n_1 = 3 loads. Move forward distance d1d_1 such that after shuttling we have exactly n2=2n_2 = 2 loads (20002000 gallons) at the next depot. Fuel consumed: (231)d1=5d1(2\cdot3-1)d_1 = 5d_1. Remaining: 30005d1=2000d1=2003000 - 5d_1 = 2000 \Rightarrow d_1 = 200 miles.

Stage 2: At mile 200200, we have 20002000 gallons (n2=2n_2 = 2 loads). Move forward distance d2d_2 to reduce to 11 load (10001000 gallons). Fuel consumed: (221)d2=3d2(2\cdot2-1)d_2 = 3d_2. Remaining: 20003d2=1000d2=333132000 - 3d_2 = 1000 \Rightarrow d_2 = 333\frac{1}{3} miles.

Stage 3: At mile 200+33313=53313200 + 333\frac{1}{3} = 533\frac{1}{3}, we have 10001000 gallons (n3=1n_3 = 1 load). Drive directly to B, which is 100053313=466231000 - 533\frac{1}{3} = 466\frac{2}{3} miles away. Fuel consumed: 46623466\frac{2}{3} gallons. Delivered: 100046623=533131000 - 466\frac{2}{3} = 533\frac{1}{3} gallons.

Thus the maximum deliverable is 53313533\frac{1}{3} gallons, which rounds to 533533 gallons.

Verification: Total fuel consumed = 5×200+3×33313+1×46623=1000+1000+46623=2466235\times200 + 3\times333\frac{1}{3} + 1\times466\frac{2}{3} = 1000 + 1000 + 466\frac{2}{3} = 2466\frac{2}{3} gallons, matching 3000533133000 - 533\frac{1}{3}. Total distance traveled = same sum, confirming consumption rate.

Other firms & topics

Frequently asked questions

How many D. E. Shaw interview questions are on QuantGrind?

1,229 questions are tagged to D. E. Shaw across our 2,516-problem set, concentrated in probability, combinatorics, and brainteasers. 74 are free to preview on this page; the full set unlocks with a membership, each with hints, the accepted answer, and a worked solution.

How hard is the D. E. Shaw quant interview?

Expect a phone screen heavy on mental math and probability, then an onsite or final round mixing brainteasers, market-making games, and topic depth. The bar is less about exotic tricks and more about speed, accuracy, and explaining your thinking clearly under time pressure.

How should I prepare for the D. E. Shaw quant interview?

Practice timed, out loud, and without a calculator. Rebuild each answer from first principles rather than recognizing it, and review the ones you got slowly — interview signal comes from how fast and cleanly you reason, not whether you've seen the exact prompt before.

Practice the full D. E. Shaw set

Every question comes with progressive hints, the accepted answer, and a full worked solution. 100 free to start — no card required.