50 questions with worked solutions. Geometric Brownian motion, Ornstein–Uhlenbeck and CIR, hitting times, Fokker–Planck, simulation schemes and Girsanov.
1 easy · 32 medium · 17 hard · Question type reported at: Goldman SachsMorgan StanleyJ.P. MorganCitadel
1EasyType asked atGoldman SachsMorgan StanleyJ.P. Morgan
Which process solves dSt=μStdt+σStdWt with S0>0?
S0eμt+σWt
S0e(μ−21σ2)t+σWt
S0e(μ+21σ2)t+σWt
S0(1+μt+σWt)
Show answer
Answer:S0e(μ−21σ2)t+σWt
Apply Itô's lemma to lnS: dlnS=SdS−21S2(dS)2=μdt+σdW−21σ2dt. Integrating, lnSt=lnS0+(μ−21σ2)t+σWt. The −21σ2 is the Itô correction: without it the first option has drift μ+21σ2, not μ.
2MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dS=0.1Sdt+0.2SdW with S0=50. What is E[S2]?
Show answer
Answer:50e0.2≈61.07
Take expectations in the SDE: the dW term has mean zero, so m(t)=E[St] solves m′=0.1m. Hence m(2)=50e0.1⋅2=50e0.2≈61.07. The volatility does not enter the mean at all.
3MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dS=0.1Sdt+0.2SdW with S0=50. What is Var(S2)?
Show answer
Answer:2500e0.4(e0.08−1)≈310.6
St2 is again a geometric Brownian motion: Itô gives d(S2)=(2μ+σ2)S2dt+2σS2dW, so E[St2]=S02e(2μ+σ2)t. Then Var(St)=S02e2μt(eσ2t−1)=2500e0.4(e0.08−1)≈310.6.
4MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dS=0.08Sdt+0.4SdW with S0=100. What is the median of S1?
Show answer
Answer:100
lnS1 is normal with mean ln100+(0.08−21⋅0.16)=ln100, and the exponential of a normal's median is the median of the exponential. So the median is 100e0=100, while the mean is 100e0.08≈108.3. The gap between the two is volatility drag: the typical path does worse than the average one.
5MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dS=0.05Sdt+0.2SdW. What is P(S1>S0)?
Show answer
Answer:Φ(0.15)≈0.560
S1>S0 exactly when ln(S1/S0)=(0.05−0.02)+0.2W1>0, i.e. W1>−0.15. So the probability is Φ(0.15)≈0.560. Only the log-drift μ−21σ2=0.03 matters, not μ itself.
6HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dS=0.01Sdt+0.3SdW with S0=1. What happens to St as t→∞?
St→∞ almost surely
St→0 almost surely, although E[St]→∞
St converges to a non-degenerate limit
St→S0 almost surely
Show answer
Answer:St→0 almost surely
lnSt=(μ−21σ2)t+σWt=−0.035t+0.3Wt. Since Wt/t→0, the negative drift wins and lnSt→−∞: every path goes to zero. Yet E[St]=e0.01t grows, carried by ever rarer, ever larger paths. This is why the growth rate of wealth, μ−21σ2, and not μ, decides what happens to a typical investor.
7MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=XdW with X0=1. What is E[X22]?
Show answer
Answer:e2≈7.389
The solution is Xt=eWt−t/2, a martingale with mean 1. Its square is e2Wt−t, and E[e2Wt]=e2t, so E[Xt2]=et; at t=2 that is e2. Equivalently, d(X2)=X2dt+2X2dW gives m′=m. The mean stays at 1 while the second moment grows exponentially: the distribution spreads out and its mass drifts towards zero.
8HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
A portfolio keeps a constant fraction f of its wealth in a stock with dS/S=μdt+σdW and the rest in cash earning r. With μ−r=0.06 and σ=0.2, which f maximises the long-run growth rate of wealth?
Show answer
Answer:f∗=σ2μ−r=1.5
Wealth follows dV/V=(r+f(μ−r))dt+fσdW, a geometric Brownian motion, so its long-run growth rate is the log-drift g(f)=r+f(μ−r)−21f2σ2. Setting g′(f)=0 gives f∗=(μ−r)/σ2=0.06/0.04=1.5: 150% in the stock, borrowing to fund it. This is the continuous-time Kelly fraction. At f=2f∗ the growth rate falls back to r, which is why practitioners bet a fraction of Kelly.
9MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
S follows dS=μSdt+σSdW with μ=0.05, σ=0.2. S2 is also a geometric Brownian motion. What is its drift rate (the coefficient of S2dt)?
Show answer
Answer:2μ+σ2=0.14
Itô on f(S)=S2: d(S2)=2SdS+(dS)2=2μS2dt+2σS2dW+σ2S2dt. The drift rate is 2μ+σ2=0.1+0.04=0.14 and the volatility is 2σ. In general Sn has drift nμ+21n(n−1)σ2.
10HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
S follows dS=μSdt+σSdW with μ=0.05, σ=0.2. Y=1/S is also a geometric Brownian motion. What is its drift rate?
Show answer
Answer:−μ+σ2=−0.01
For f(S)=1/S, f′=−1/S2 and f′′=2/S3. Itô gives dY=−S21dS+S31(dS)2=Y[(−μ+σ2)dt−σdW]. The drift rate is −0.05+0.04=−0.01. The +σ2 is why the reciprocal of an exchange rate does not simply have the opposite drift (Siegel's paradox).
11HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
Two geometric Brownian motions with S01=S02=1, zero drift, volatilities 0.2 and 0.3, and correlation ρ=0.5 between their Brownian motions. What is E[S11S12]?
Show answer
Answer:eρσ1σ2=e0.03≈1.030
By the product rule d(S1S2)=S1dS2+S2dS1+d⟨S1,S2⟩, and d⟨S1,S2⟩=ρσ1σ2S1S2dt. Taking expectations, m′=ρσ1σ2m, so m(1)=e0.5⋅0.2⋅0.3=e0.03. Each factor alone is a martingale, but the product is not unless ρ=0.
12MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=−0.5Xdt+dW with X0=4. What is E[X2]?
Show answer
Answer:4e−1≈1.472
The mean solves m′=−0.5m, so m(t)=4e−0.5t and m(2)=4e−1≈1.47. The noise is additive and has mean zero, so it does not affect the mean.
PDF · Edition 2 · £79
The Quant Careers Report
How 13 trading firms interview, what they state they pay interns and graduates, and the graduation dates each programme accepts. With five timed practice papers and worked solutions.
13MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=−Xdt+2dW with X0=0. What is Var(X1)?
Show answer
Answer:2(1−e−2)≈1.729
The solution is Xt=∫0te−(t−s)2dWs. By the Itô isometry Var(Xt)=4∫0te−2(t−s)ds=2(1−e−2t). At t=1 that is 2(1−e−2)≈1.73, already 86% of the stationary variance σ2/(2θ)=2.
14MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
For the Ornstein–Uhlenbeck process dX=−θXdt+σdW, which process has no drift?
e−θtXt
eθtXt
Xt2
Xt+θt
Show answer
Answer:eθtXt
d(eθtX)=θeθtXdt+eθtdX=σeθtdW: the drift cancels exactly. Integrating gives the solution Xt=e−θtX0+σ∫0te−θ(t−s)dWs. This integrating factor is how every linear SDE with additive noise is solved.
15MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
X is a stationary Ornstein–Uhlenbeck process, dX=−0.5Xdt+dW. What is Cov(Xt,Xt+2)?
Show answer
Answer:e−1≈0.368
The stationary variance is σ2/(2θ)=1. From the solution, Xt+h=e−θhXt+(noise independent of Xt), so the covariance is e−θhVar(Xt)=e−0.5⋅2=e−1. Correlation decays exponentially with the lag, at rate θ.
16MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=2(5−X)dt+dW with X0=1. What is E[X0.5]?
Show answer
Answer:5−4e−1≈3.528
The mean solves m′=2(5−m), so the gap to 5 decays like e−2t: m(t)=5+(1−5)e−2t. At t=0.5, 5−4e−1≈3.53.
17MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
A spread follows dX=κ(m−X)dt+σdW with κ=0.7 per day. What is the half-life of a deviation from m, in days?
Show answer
Answer:ln2/κ≈0.99
The expected deviation E[Xt]−m decays like e−κt. It halves when e−κt=21, at t=ln2/κ=0.693/0.7≈0.99 days. Pairs traders estimate κ by regressing daily changes on levels; the half-life tells them how long a position should take to work.
18MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=−3Xdt+3dW. What is E[X2] under the stationary distribution?
Show answer
Answer:σ2/(2θ)=1.5
Itô gives d(X2)=(−6X2+9)dt+6XdW, so m=E[X2] satisfies m′=−6m+9. In stationarity m′=0, so m=9/6=1.5. The same calculation in general gives σ2/(2θ): noise feeds variance in at rate σ2, and mean reversion drains it at rate 2θ.
19MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
For dX=−θXdt+σdW, what is d(Xt2)?
−2θX2dt+2σXdW
(σ2−2θX2)dt+2σXdW
(σ2−θX2)dt+σXdW
−2θX2dt+σ2dW
Show answer
Answer:(σ2−2θX2)dt+2σXdW
With f(x)=x2, f′=2x, f′′=2: d(X2)=2XdX+(dX)2=2X(−θXdt+σdW)+σ2dt. The σ2dt from (dX)2 is the term people drop; it is what keeps the variance from decaying to zero.
20HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
In the Vasicek model dr=0.5(0.04−r)dt+0.01dW, what is the probability that the short rate is negative under the stationary distribution?
Show answer
Answer:Φ(−4)≈3.2×10−5
The stationary distribution is normal with mean b=0.04 and variance σ2/(2a)=0.0001/1, so standard deviation 0.01. Zero is four standard deviations below the mean: P(r<0)=Φ(−4)≈3.2×10−5. Small, but not zero, which is the standard objection to Gaussian short-rate models and one reason for CIR.
21MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
In the CIR model dr=κ(θ−r)dt+σrdW with κ=1, θ=0.05, σ=0.1, r0=0.02, what is E[r1]?
Show answer
Answer:0.05−0.03e−1≈0.0390
Take expectations: the dW term has mean zero whatever multiplies it, so m′=κ(θ−m), exactly as for Vasicek. Then m(1)=0.05+(0.02−0.05)e−1≈0.0390. The square root changes the distribution, not the mean.
22MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
Which CIR parameters (κ,θ,σ) guarantee that r never reaches zero?
(0.5,0.03,0.2)
(1.0,0.04,0.3)
(2.0,0.05,0.4)
(0.8,0.05,0.3)
Show answer
Answer:(2.0,0.05,0.4)
The Feller condition is 2κθ≥σ2: near zero the pull towards θ, of size κθ, must beat the noise. The four choices give 2κθ=0.03,0.08,0.20,0.08 against σ2=0.04,0.09,0.16,0.09. Only (2.0,0.05,0.4) satisfies it. When it fails, zero is reached but the process reflects off it rather than going negative, so CIR rates still never turn negative; they can just touch zero.
23HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
For the CIR process dr=2(0.05−r)dt+0.2rdW, what is the variance of the stationary distribution?
Show answer
Answer:θσ2/(2κ)=0.0005
Itô on r2: d(r2)=(2κθr−2κr2+σ2r)dt+(…)dW. In stationarity E[r]=θ, so 0=2κθ2+σ2θ−2κE[r2], giving Var=E[r2]−θ2=θσ2/(2κ)=0.05⋅0.04/4=0.0005.
24HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
The stationary distribution of dr=κ(θ−r)dt+σrdW is a gamma distribution. With κ=1, θ=0.04, σ=0.2, what is its shape parameter?
Show answer
Answer:2κθ/σ2=2
The stationary density solves the Fokker–Planck equation and comes out as p(r)∝r2κθ/σ2−1e−2κr/σ2: a gamma distribution with shape 2κθ/σ2 and rate 2κ/σ2. Here the shape is 0.08/0.04=2. Its mean, shape over rate, is θ, as it must be; and the shape exceeds 1 exactly when the Feller condition holds strictly, which is why the density then vanishes at zero.
25HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=−V′(X)dt+σdW for a smooth potential V that grows at infinity. What is the stationary density?
∝e−V(x)
∝e−2V(x)/σ2
∝e−V(x)/σ2
∝V′(x)−1
Show answer
Answer:∝e−2V(x)/σ2
A stationary density makes the Fokker–Planck flux vanish: V′(x)p+2σ2p′=0, so p′/p=−2V′/σ2 and p∝e−2V/σ2. For V=21θx2 this is the normal with variance σ2/(2θ), the Ornstein–Uhlenbeck answer. Lower noise concentrates the mass in the wells of V, which is the idea behind simulated annealing and Langevin sampling.
26MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
What does the generator of dX=−Xdt+dW give when applied to f(x)=x2?
−2x2
1−2x2
2x−2x2
1−x2
Show answer
Answer:1−2x2
The generator is Lf=μ(x)f′+21σ2(x)f′′=−x⋅2x+21⋅2=1−2x2. It is the drift of f(Xt) in Itô's lemma, so dtdE[Xt2]=1−2E[Xt2], and the stationary second moment is 21.
27MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=Xdt+2XdW. What is d(lnXt)?
dt+2dW
−dt+2dW
3dt+2dW
−dt+2XdW
Show answer
Answer:−dt+2dW
dlnX=XdX−2X2(dX)2=(dt+2dW)−21⋅4dt=−dt+2dW. With μ=1 and σ=2 the log has negative drift μ−21σ2=−1, so although E[Xt]=X0et grows, almost every path tends to zero.
28MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
For which constant c is Wt3+ctWt a martingale?
Show answer
Answer:c=−3
By Itô, d(W3)=3W2dW+3Wdt and d(tW)=Wdt+tdW. The drift of W3+ctW is (3+c)W, which vanishes for every path only when c=−3. W3−3tW is the third Hermite polynomial in (W,t); the same construction gives W2−t and W4−6tW2+3t2.
29MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
Zt=exp(θWt−21θ2t) for a constant θ. Which SDE does it satisfy?
dZ=θZdW
dZ=21θ2Zdt+θZdW
dZ=−21θ2Zdt+θZdW
dZ=θdW
Show answer
Answer:dZ=θZdW
With Z=f(t,W), ft=−21θ2Z, fW=θZ, fWW=θ2Z. Itô: dZ=(−21θ2Z+21θ2Z)dt+θZdW=θZdW. No drift, so Z is a martingale with mean 1; it is the density process used in Girsanov's theorem.
30MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
The Stratonovich SDE dX=σX∘dW is the same process as which Itô SDE?
dX=σXdW
dX=21σ2Xdt+σXdW
dX=−21σ2Xdt+σXdW
dX=σ2Xdt+σXdW
Show answer
Answer:dX=21σ2Xdt+σXdW
For dX=b(X)∘dW the Itô form adds the drift 21b(X)b′(X). With b=σx that is 21σ2X. So the Stratonovich solution is X0eσWt, with no −21σ2t, exactly as ordinary calculus would suggest. That is the appeal of Stratonovich calculus, and also why physicists and financial modellers sometimes talk past each other.
31HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=0.5dt+dW with X0=0. What is the probability that X reaches +1 before −1?
Show answer
Answer:e−e−1e−1≈0.731
Find a function s with s(Xt) a martingale: 21s′′+μs′=0 gives the scale function s(x)=e−2μx/σ2=e−x. Optional stopping: s(0)=ps(1)+(1−p)s(−1), so p=s(−1)−s(1)s(−1)−s(0)=e−e−1e−1≈0.731. Without drift the answer would be 21.
32HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=0.5dt+dW with X0=0. What is the expected time until X first leaves (−1,1)?
Show answer
Answer:≈0.924
Xt−0.5t is a martingale, so at the exit time T, E[XT]=0.5E[T]. XT is +1 with probability p≈0.731 (previous question) and −1 otherwise, so E[XT]=2p−1≈0.462 and E[T]≈0.924. A check: the function u(x)=Ex[T] solves 21u′′+21u′=−1 with u(±1)=0, and u(0) gives the same number. Without drift the answer would be 1⋅1=1; the drift shortens the wait.
33MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=0.5dt+dW with X0=0. What is the probability that X ever reaches −1?
Show answer
Answer:e−1≈0.368
Let the upper barrier go to infinity in the gambler's-ruin formula. With s(x)=e−2μx/σ2=e−x, P(hit −a)=limb→∞s(−a)−s(b)s(0)−s(b)=ea1=e−1 for a=1. In general a Brownian motion drifting up at μ ever falls by a with probability e−2μa/σ2: the maximum fall is exponentially distributed.
34MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=0.5dt+dW with X0=0. What is the expected time for X to first reach +2?
Show answer
Answer:2/0.5=4
Xt−0.5t is a martingale and the hitting time T is finite with finite mean because of the upward drift. Optional stopping gives E[XT]−0.5E[T]=0, and XT=2, so E[T]=4. With zero drift the level is still reached with probability 1 but the expected time is infinite.
35HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
Tanaka's formula writes ∣Wt∣=∫0tsign(Ws)dWs+Lt, where L is the local time at zero. What is E[L1]?
Show answer
Answer:2/π≈0.798
The stochastic integral has mean zero, so E[L1]=E∣W1∣=2/π. ∣x∣ is not twice differentiable at 0, and L is what Itô's lemma would have produced from the "second derivative" 2δ0: a measure of how long the path spends near zero. By Lévy's theorem Lt has the same law as maxs≤tWs.
36HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
Which SDE has a solution in law (a weak solution) but no strong solution?
dX=XdW
dX=sign(X)dW, X0=0
dX=−Xdt+dW
dX=dt+dW
Show answer
Answer:dX=sign(X)dW
Tanaka's example. Any Brownian motion X solves it with the driving process W=∫sign(X)dX, which is itself a Brownian motion by Lévy's characterisation, so a weak solution exists and its law is unique. But W only remembers ∣X∣, so X cannot be built from W path by path: there is no strong solution. The other three have Lipschitz coefficients and unique strong solutions.
37MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
Why does the equation dX=3X2/3dt, X0=0, have more than one solution, for example Xt=0 and Xt=t3?
The drift grows too fast at infinity
The drift is not Lipschitz at x=0
There is no noise term
The initial condition is zero
Show answer
Answer: The drift is not Lipschitz at 0
The existence and uniqueness theorem needs coefficients that are Lipschitz (locally, with linear growth for global existence). 3x2/3 has an infinite slope at 0, so a solution can sit at 0 for any length of time and then leave along (t−c)3. Adding noise σdW does not by itself rescue uniqueness for degenerate cases; the Lipschitz condition (or Yamada–Watanabe's Hölder-21 condition on the diffusion, which is why CIR is fine) is what does.
38MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
What is the strong order of convergence of the Euler–Maruyama scheme for a general SDE with smooth coefficients?
21
1
23
2
Show answer
Answer:21
The pathwise error E∣XT−XTΔt∣ falls like Δt1/2: the scheme ignores the (ΔW)2−Δt term of size Δt per step, and those errors add up like a random walk. The weak order (error in expectations of smooth functions) is 1. For additive noise the missing term vanishes and the strong order rises to 1.
39MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
The Milstein scheme for dS=μSdt+σSdW adds which correction to the Euler step?
21σ2SΔt
21σ2S((ΔW)2−Δt)
σ2S(ΔW)2
21σS((ΔW)2−Δt)
Show answer
Answer:21σ2S((ΔW)2−Δt)
Milstein adds 21bb′((ΔW)2−Δt), where b is the diffusion coefficient. Here b=σS and b′=σ, giving 21σ2S((ΔW)2−Δt). The term has mean zero, so it does not bias the step, but it raises the strong order from 21 to 1.
40MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
One Milstein step for dS=0.1Sdt+0.2SdW from S=100, with Δt=0.01 and ΔW=0.05. What is the new value?
Show answer
Answer:101.085
Euler gives 100+0.1⋅100⋅0.01+0.2⋅100⋅0.05=101.1. The Milstein correction is 21⋅0.04⋅100⋅(0.0025−0.01)=−0.015. So 101.085. The exact solution from the same ΔW is 100e(0.1−0.02)0.01+0.2⋅0.05≈101.0859: Milstein is ten times closer than Euler.
41MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
For dS=0.1Sdt+0.2SdW, what is the exact value of St+0.01 given St=100 and Wt+0.01−Wt=0.05?
Show answer
Answer:100e0.0108≈101.086
Geometric Brownian motion can be stepped exactly: St+Δt=Ste(μ−21σ2)Δt+σΔW=100e0.0008+0.01=100e0.0108≈101.086. When an exact transition exists, use it; discretisation error is then zero at any step size.
42HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=(0.5X+1)dt+0.3XdW with X0=1. What is E[X2]?
Show answer
Answer:e+2(e−1)≈6.155
The noise term has mean zero whatever multiplies it, so the mean obeys the deterministic equation m′=0.5m+1. With m(0)=1: m(t)=e0.5t+2(e0.5t−1), which at t=2 is e+2(e−1)≈6.155. The volatility 0.3 affects the variance and the distribution, not the mean; spotting that saves solving the SDE.
43HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
On [0,1), dX=−1−tXdt+dW with X0=0. What is Var(X1/4)?
Show answer
Answer:t(1−t)=163
Solve with the integrating factor 1−t1: d(1−tX)=1−tdW, so Xt=(1−t)∫0t1−sdWs. By the Itô isometry Var(Xt)=(1−t)2(1−t1−1)=t(1−t), which is 163 at t=41. This SDE is the Brownian bridge: the drift pulls harder as t→1 and pins the path to 0 at time 1.
44MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
What is Var(∫01esdWs)?
Show answer
Answer:21(e2−1)≈3.195
An Itô integral of a deterministic function is normal with mean 0, and by the Itô isometry its variance is ∫01e2sds=21(e2−1). Integrals of this form are exactly the noise terms in solutions of linear SDEs such as the Ornstein–Uhlenbeck process.
45MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=adt+3dW for some drift a. What is the quadratic variation of X over [0,2]?
Show answer
Answer:σ2T=18
Only the dW part contributes: d⟨X⟩=(3dW)2=9dt, so the quadratic variation over [0,2] is 18 whatever the drift. This is why volatility can be estimated from high-frequency data far more precisely than drift: drift is invisible at small scales, quadratic variation is not.
46MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
S follows dS=μSdt+0.3SdW. What is the quadratic variation of lnS over [0,4]?
Show answer
Answer:σ2T=0.36
dlnS=(μ−21σ2)dt+σdW, so d⟨lnS⟩=σ2dt and the quadratic variation over [0,4] is 0.09⋅4=0.36. The realised variance of log returns estimates exactly this, and variance swaps pay it.
47MediumType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=2dW1 and dY=3dW2 with X0=Y0=0, where W1,W2 are Brownian motions with correlation 0.5. What is E[X1Y1]?
Show answer
Answer:2⋅3⋅0.5=3
By the product rule d(XY)=XdY+YdX+d⟨X,Y⟩, and d⟨X,Y⟩=2⋅3⋅ρdt=3dt. The first two terms have mean zero, so E[X1Y1]=3. The covariation, not the separate variances, carries the correlation.
48HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dS=μSdt+σSdW under P. Under Q with dPdQFT=e−λWT−21λ2T, what is the SDE for S?
dS=μSdt+σSdW
dS=(μ−σλ)Sdt+σSdW
dS=(μ+σλ)Sdt+σSdW
dS=μSdt+(σ−λ)SdW
Show answer
Answer:dS=(μ−σλ)Sdt+σSdW
By Girsanov, Wt=Wt+λt is a Q-Brownian motion. Substituting dW=dW−λdt gives dS=(μ−σλ)Sdt+σSdW. The volatility is unchanged; only the drift moves. Choosing λ=(μ−r)/σ, the market price of risk, makes the drift r: the risk-neutral measure.
49HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
dX=dW and u(t,x)=E[e−r(T−t)XT2∣Xt=x]. With x=1, T−t=2 and r=0.05, what is u?
Show answer
Answer:e−0.1(1+2)≈2.715
Given Xt=x, XT is normal with mean x and variance T−t, so E[XT2]=x2+(T−t) and u=e−r(T−t)(x2+(T−t))=3e−0.1≈2.715. By Feynman–Kac the same u solves ut+21uxx−ru=0 with u(T,x)=x2, which you can check by differentiating.
50HardType asked atGoldman SachsMorgan StanleyJ.P. Morgan
u(t,x)=E[g(XT)∣Xt=x] for dX=−θXdt+σdW. Which equation does u satisfy?
ut−θxux+21σ2uxx=0
ut+θxux+21σ2uxx=0
ut−θxux−21σ2uxx=0
ut=∂x(θxu)+21σ2uxx
Show answer
Answer:ut−θxux+21σ2uxx=0
u(t,Xt) is a martingale (tower property), so its Itô drift must vanish: ut+Lu=0 with the generator Lu=−θxux+21σ2uxx, and terminal condition u(T,⋅)=g. This is the backward (Kolmogorov) equation. The last option is the forward, Fokker–Planck equation, which governs the density of Xt instead.