Crude Oil Tail-Risk Modeling and Probability Puzzles
Medium · Statistics & Math · Data Scientist · HR Screen
Prompt
Work through all four parts of this quantitative market-risk and probability assessment:
-
Joint downside stress framework for WTI and Brent crude oil: Suppose you oversee risk for a trading book carrying exposure to both WTI and Brent crude oil benchmarks, given daily historical price series for each benchmark. Architect a stress-testing methodology for their joint downside moves over a chosen risk horizon (such as
1 dayfor trading-desk monitoring and10 daysfor portfolio or regulatory capital stress). Explain:- which market history, contract roll adjustments, and portfolio risk inputs you would gather;
- how you would model each benchmark's univariate dynamics and heavy tails;
- how you would capture cross-benchmark dependence and simultaneous crash behavior;
- why a Student-
tcopula suits joint downside risk better than a Gaussian copula, along with its caveats; - the step-by-step
t-copula parameter calibration and Monte Carlo simulation workflow; - how you would compound daily dynamics into a multi-day (such as
10-day) risk horizon; - how you would construct historical, hypothetical, simulation-based, conditional, and reverse stress scenarios;
- how you would backtest the model and communicate its assumptions and blind spots.
-
Sum of two normal random variables: Suppose
XandYare each normally distributed with variancesσ_X^2andσ_Y^2and linear correlationρ.- Find
Var(X + Y)whenXandYare independent. - Find
Var(X + Y)whenXandYare correlated with coefficientρ. - State the condition that guarantees
X + Yis itself normally distributed.
- Find
-
Three-door switching game: Behind
3closed doors sit1car and2goats. After you pick an initial door, a host who knows the exact placement intentionally opens one of the other two doors to reveal a goat, then invites you to either keep your original door or switch to the remaining closed door. Determine the probability of winning under each choice and state whether you should switch. -
Heavy-sphere balance puzzle: Given
8identical-looking spheres where7weigh the exact same amount and1is heavier, provide a strategy using a two-pan balance scale at most2times that always identifies the heavier sphere.
Scope & Expectations
- End-to-end crude oil stress design: Cover futures curve data hygiene, volatility filtering, heavy-tailed marginals, copula tail dependence, calibration, multi-day path simulation, complementary stress-scenario families, and statistical backtesting.
- Exact variance and joint normality: Give closed-form variance formulas for independent and correlated variables, clearly separating marginal normality from joint (bivariate) normality with a concrete counterexample.
- Conditional probability rigor: Justify the three-door probabilities via sample-space enumeration or Bayes' theorem, making the host's knowledge constraint explicit.
- Optimal balance-scale branching: Present a complete two-weighing decision tree that resolves all eight candidates using three-way scale outcomes.
Step-by-step walkthrough
Part 1A: Stress-testing crude — clean data, returns, and horizons
Most real-world stress-testing mistakes happen in data preparation before any statistical model runs. Pin down the data, return definition, and time horizon first.
1. Data to collect: - WTI and Brent futures curves: WTI (West Texas Intermediate, priced inland in Cushing, Oklahoma on NYMEX) and Brent (seaborne North Sea crude on ICE) are the two global oil benchmarks. Collect daily settlement prices across every tenor (delivery month
M1, M2, ..., M12) held in the portfolio. - Roll-adjusted continuous series: because monthly futures expire on different dates, raw front-month prices jump artificially on contract roll dates. Build roll-adjusted series that switch contracts on a fixed schedule (for example,5business days before expiry) without mixing the calendar spread betweenM1andM2into daily price moves. - Long history covering real crises: include2008–09, the2014–16supply glut,2020(on April 20, 2020, expiring May WTI settled at-$37.63/bbl), and2022. Also track the WTI–Brent spread explicitly—in2011inland pipeline bottlenecks widened the spread past$20/bbl, proving the two benchmarks can decouple violently. - Portfolio sensitivities: position sizes per tenor, plus delta (linear P&L per$1oil move), gamma (curvature of option delta on large moves), and vega (sensitivity to implied volatility spikes) or full option revaluation.2. Return transformation: - Standard log returns
ln(P_t / P_{t-1})break as soon as prices hit zero or go negative, as WTI did in April 2020. Model daily dollar changes (ΔP_t = P_t - P_{t-1}in$/bbl) for general stress testing, using percentage/log returns only on longer-dated tenors bounded well above zero, aligned on common trading days.3. Horizons: - 1-day horizon for daily trading-desk risk limits, and 10-day horizon for portfolio and regulatory capital stress—for example, Basel market-risk rules benchmark Value at Risk (VaR) (the loss threshold exceeded only
1%of the time) and Expected Shortfall (ES) (the average loss across the worst2.5%of outcomes) over multi-day liquidity horizons.Part 1B: Marginal modeling with GARCH volatility and EVT fat tails
Daily oil moves violate a constant bell curve in two ways: volatility clustering (turbulent days arrive in streaks) and fat tails (extreme crashes happen far more often than a normal curve predicts). Handle them by separating time-varying volatility from the tail shape:
- Filter volatility with GARCH(1,1): GARCH(1,1) updates tomorrow's variance forecast
σ²_{t+1}as a weighted sum of a baselineω, today's squared shockr²_t, and today's varianceσ²_t(using asymmetric GJR-GARCH if price drops spike volatility more than rallies, estimated with Student-t innovations). - Extract standardized residuals: divide each daily move by that day's volatility (
z_t = r_t / σ_t). Stripping out calm-vs-stormy regimes leaves unit-variance shocksz_tthat behave roughly independently across days. - Fit Extreme Value Theory (EVT) to the tails: keep the empirical distribution in the middle (
5%to95%) and fit a Generalized Pareto Distribution (GPD)—the theoretical curve for excesses beyond a high threshold—to the worst5%left and right tails so simulations can generate crashes beyond the single worst historical day. - Rescale by today's volatility (
σ_{tomorrow}): multiply simulated shocks by current forecasted volatility so stress outputs adapt immediately when markets heat up.
Worked GARCH(1,1) update: Suppose long-run daily volatility is
2.0%(σ²_bar = 0.0004),α = 0.08, andβ = 0.90, soω = 0.0004 * (1 - 0.08 - 0.90) = 0.000008. If today's volatility was2.5%and crude dropped-6.0%:σ²_tomorrow = ω + α * r²_today + β * σ²_today = 0.000008 + 0.08 * (-0.06)² + 0.90 * (0.025)² = 0.000008 + 0.000288 + 0.0005625 = 0.0008585 σ_tomorrow = sqrt(0.0008585) = 0.0293 (2.93% daily volatility)import numpy as np def garch_filter(returns, omega, alpha, beta): """Compute GARCH(1,1) daily volatilities and standardized residuals.""" returns = np.asarray(returns, dtype=float) n = len(returns) var = np.empty(n + 1) # Start at the unconditional long-run variance: omega / (1 - alpha - beta) var[0] = omega / (1.0 - alpha - beta) for t in range(n): var[t + 1] = omega + alpha * (returns[t] ** 2) + beta * var[t] sigma = np.sqrt(var) # Return standardized shocks z_t = r_t / sigma_t and tomorrow's forecast return returns / sigma[:-1], float(sigma[-1])- Filter volatility with GARCH(1,1): GARCH(1,1) updates tomorrow's variance forecast
Part 1C: Joint tail risk — why a Student-t copula beats a Gaussian copula
A copula is a function that joins individual variables'
0–1percentile ranks into a joint distribution. Sklar's theorem proves that any joint distributionF(x, y) = C(F_X(x), F_Y(y))splits cleanly into each series' own marginal distribution (F_X,F_Y) plus a copulaCgoverning how they move together.For downside stress testing, linear correlation
ρis not enough; what matters is lower tail dependence (λ_L)—the probability that Brent crashes into its worstqquantile given that WTI is already in its worstqquantile, asq -> 0:λ_L = lim (q -> 0) P(U_Brent <= q | U_WTI <= q)- Gaussian copula (
λ_L = 0for everyρ < 1): links percentiles via a bivariate normal curve. Even when everyday correlation is high (ρ = 0.8), extreme crashes behave more and more independently further out in the tail. - Student-t copula (
λ_L > 0): links percentiles via a bivariate t distribution with correlationρand degrees of freedomν, dividing correlated normal draws by one shared random shock-size variable (sqrt(χ²_ν / ν)). When that shared divisor happens to be small, both WTI and Brent suffer simultaneous tail shocks:λ_L = 2 * t_{ν+1}(-sqrt((ν + 1)(1 - ρ) / (1 + ρ))).
Compare both copulas at the exact same correlation
ρ = 0.8:Crash threshold q Gaussian copula t-copula (ν = 4) ------------------------------------------------------------------------------ P(Brent worst 1% | WTI worst 1%) 0.38 0.52 P(Brent worst 0.1% | WTI worst 0.1%) 0.26 0.50 Asymptotic limit λ_L (q -> 0) 0.00 0.49 (ν=10: 0.29)At the
0.1%tail, the Student-t copula makes a simultaneous WTI+Brent crash nearly twice as likely (0.50vs0.26), matching macro oil shocks like2008and2020. Still, state three limitations of the standard t-copula: 1. Tail symmetry: it assigns identical dependence to joint crashes and joint rallies (skew-t or Clayton/rotated-Gumbel copulas allow asymmetric crash clustering). 2. Singleν: in a larger multi-asset book, one degrees-of-freedom parameter governs all pairs. 3. Understated spread decoupling: when calibratedρis0.85–0.95, random draws rarely produce WTI crashing while Brent stays flat—the exact move that hurts a WTI–Brent spread book!- Gaussian copula (
Part 1D: Calibrate the t-copula, simulate, and scale to 10 days
Follow a five-step calibration and simulation pipeline:
Daily ΔP -> [GARCH filter] -> standardized z_t -> [rank/(n+1)] -> uniforms u_t | 10-day P&L <- [update GARCH x 10d] <- [invert marginals] <- [fit & draw t-copula (ρ, ν)]- Pseudo-observations: transform each series' standardized residuals
zinto empirical percentilesu = rank(z) / (n + 1)so copula fitting cannot be distorted by marginal misfit. - Calibrate
ρvia Kendall's tau (τ): Kendall's tau measures rank concordance (resistant to single-day outliers like April 2020). For any elliptical copula,ρ = sin(π * τ / 2)—for example,τ = 0.60maps directly toρ = sin(0.3 * π) = 0.809. - Calibrate
νby maximum likelihood: holdρfixed and maximize the t-copula log-likelihood over candidate values ofν, then verify empirical1%and5%joint crash counts against the fitted copula. - Simulate 1-day draws: draw correlated standard normals, divide both coordinates by the same
sqrt(χ²_ν / ν)draw per scenario, map through the univariatet_νCDF to get uniforms(u_WTI, u_Brent), and invert each series' semi-parametric (empirical + GPD) marginal scaled byσ_{tomorrow}.
import numpy as np from scipy import stats def t_copula_loglik(u, rho, nu): """Log-likelihood of a bivariate t-copula at pseudo-observations u (n x 2).""" x = stats.t.ppf(u, df=nu) shape = [[1.0, rho], [rho, 1.0]] joint = stats.multivariate_t(loc=[0.0, 0.0], shape=shape, df=nu).logpdf(x) margins = stats.t.logpdf(x, df=nu).sum(axis=1) return float(np.sum(joint - margins)) def fit_t_copula(z): """Fit (rho, nu) to standardized residuals z (shape n x 2).""" n = len(z) u = np.column_stack([stats.rankdata(z[:, 0]), stats.rankdata(z[:, 1])]) / (n + 1.0) tau = stats.kendalltau(z[:, 0], z[:, 1]).statistic rho = float(np.sin(np.pi * tau / 2.0)) best_nu, best_ll = 4, -np.inf for nu in [2, 3, 4, 5, 6, 8, 10, 15, 20, 30, 50]: ll = t_copula_loglik(u, rho, nu) if ll > best_ll: best_nu, best_ll = nu, ll return rho, best_nu def simulate_t_copula(rho, nu, num_draws, rng): """Draw (u_wti, u_brent) scenarios from a bivariate Student-t copula.""" chol = np.linalg.cholesky(np.array([[1.0, rho], [rho, 1.0]])) normals = rng.standard_normal((num_draws, 2)) @ chol.T # ONE shared chi-square draw per scenario produces joint tail dependence shared_scale = rng.chisquare(nu, size=num_draws) / nu t_draws = normals / np.sqrt(shared_scale)[:, None] return stats.t.cdf(t_draws, df=nu) def to_returns(u, z_hist, sigma_next): """Map simulated uniforms back to 1-day moves (GPD replaces tails in prod).""" moves = np.empty_like(u) for j in range(2): moves[:, j] = sigma_next[j] * np.quantile(z_hist[:, j], u[:, j]) return moves5. Aggregating to a 10-day horizon: The textbook shortcut
VaR_10 = sqrt(10) * VaR_1assumes independent daily moves with frozen volatility (for a$10mlong position at2.5%daily vol and99%normal cutoff2.326,VaR_1 = $0.58mscales to$1.84m). That shortcut fails in two ways: on a calm1.2%-vol day,sqrt(10)predicts3.79%10-day standard deviation while our GARCH parameters mean-revert upward to4.07%(understating risk), and across any regime it misses volatility feedback—a crash on day 1 spikesσon days2..10, fattening the 10-day tail. Instead, simulate 10-step paths: on each dayd = 1..10, draw(u_WTI, u_Brent)from the t-copula, convert to dollar moves using dayd's GARCH volatility, update both GARCH variances for dayd + 1, and sum the 10 daily moves.- Pseudo-observations: transform each series' standardized residuals
Part 1E: Five stress-scenario families, validation, and limits
Illustrate all five scenario types on a concrete spread portfolio: long
1,000,000bbl WTI at$70and short900,000bbl Brent at$74, where linearP&L = 1,000,000 * ΔWTI - 900,000 * ΔBrent:- Historical scenarios: replay worst 10-day crisis percentage moves on current prices. If both benchmarks drop
-25%(ΔWTI = -$17.50,ΔBrent = -$18.50),P&L = -$17.50m + $16.65m = -$0.85m—the short Brent leg hedges a parallel market crash well. - Hypothetical scenarios: domain-expert events that may look worse than history for this book. A Cushing tank-top glut where WTI falls
-15%(-$10.50) while seaborne Brent slips only-5%(-$3.70) givesP&L = -$10.50m + $3.33m = -$7.17m—over 8x worse because the book is exposed to basis divergence! - Model-based Monte Carlo: simulate
100,00010-day GARCH + t-copula paths, report99%VaR and97.5%Expected Shortfall, and inspect the specific(ΔWTI, ΔBrent)clusters inside the worst2.5%tail. - Conditional stress: lock one benchmark at a severe quantile and sample the other from the copula's exact conditional law. Under a bivariate t (
ρ = 0.8, ν = 4),T_WTI | (T_Brent = t_B)follows a shifted/scaledt_{ν+1}distribution: when Brent sits at its1%crash quantile, WTI's conditional median sits at its2%quantile with a 90% range spanning WTI's0.3%to26%quantiles. - Reverse stress test: ask "what is the most plausible market move that causes a
$10mloss?" Under an elliptical covariance matrixΣand weightsw, the minimum-distance point onw'x = -Lisx* = -L * (Σw) / (w'Σw). With 10-day dollar vols$5.53(WTI) and$5.38(Brent) atρ = 0.90, portfolio 10-day SD is$2.42mandx* = (-$11.13, -$1.26)(a4.1-SD event): WTI plunges while Brent barely moves—automatically surfacing spread decoupling as the book's Achilles' heel.
Validation and communicating limits: - Backtest VaR breaches: over
n = 250trading days, a99%1-day VaR expects2.5exceptions (Basel green zone:0–4, yellow:5–9, red:10+). Check breach frequency with the Kupiec proportion-of-failures likelihood-ratio test (LRvsχ²(1)critical value3.84at5%):6breaches givesLR = 3.56(p = 0.059, borderline yellow), while8breaches givesLR = 7.73(p = 0.005, rejected). Pair it with Christoffersen's independence test to verify breaches do not bunch together on consecutive days. - Sensitivity and goodness-of-fit: verify thatulooks uniform, compare empirical vs copula1%joint exceedances, and stressν(3vs10) andρ(0.95parallel crash vs0.50decoupling). - State limitations plainly to risk managers: 10-day simulations hold positions static, ignore bid-ask widening and margin calls during fire sales, simplify term-structure roll yield, and estimate1-in-1,000tail events from limited crisis history.- Historical scenarios: replay worst 10-day crisis percentage moves on current prices. If both benchmarks drop
Part 2: Variance of X + Y and when a sum of normals is normal
For any two random variables
XandYwith finite variancesσ_X²,σ_Y²and correlationρ = Cov(X, Y) / (σ_X * σ_Y), expand the expected squared deviation around the mean:Var(X + Y) = Var(X) + Var(Y) + 2 * Cov(X, Y) = σ_X² + σ_Y² + 2 * ρ * σ_X * σ_Y- Independent case (
Xindependent ofY): independence implies zero covariance (Cov(X, Y) = 0, soρ = 0), reducing the sum variance toVar(X + Y) = σ_X² + σ_Y². - Correlated case (linear correlation
ρ): substitutingCov(X, Y) = ρ * σ_X * σ_YyieldsVar(X + Y) = σ_X² + σ_Y² + 2 * ρ * σ_X * σ_Y.
Worked check with
σ_X = 2(σ_X² = 4) andσ_Y = 3(σ_Y² = 9):Correlation ρ 2 * ρ * σ_X * σ_Y Var(X + Y) SD(X + Y) ------------------------------------------------------------- 0.0 0 13 3.61 0.5 +6 19 4.36 +1.0 +12 25 5.00 (= 2 + 3) -1.0 -12 1 1.00 (= |2 - 3|)When is
X + Yitself normally distributed? - Sufficient condition to state:(X, Y)is jointly (bivariate) normal—meaning every linear combinationaX + bYis normal (which automatically holds whenXandYare independent normals). ThenX + Y ~ N(μ_X + μ_Y, σ_X² + σ_Y² + 2ρσ_Xσ_Y). (Technically, joint normality is sufficient forX + Yto be normal, and necessary and sufficient for every linear combinationaX + bYto be normal.) - Why marginal normality alone is NOT enough: even ifX ~ N(0, 1),Y ~ N(0, 1), andρ = 0,X + Ycan fail to be normal! LetX ~ N(0, 1), flip a fair independent coinStaking-1or+1with probability1/2each, and defineY = S * X. By symmetryY ~ N(0, 1)andCov(X, Y) = E[S] * E[X²] = 0 * 1 = 0, yet wheneverS = -1,X + Y = 0—putting a50%probability spike right on0, which no positive-variance normal curve can ever have:import numpy as np rng = np.random.default_rng(0) x = rng.standard_normal(200_000) s = rng.choice([-1.0, 1.0], size=x.size) y = s * x sample_corr = float(np.corrcoef(x, y)[0, 1]) zero_fraction = float(np.mean((x + y) == 0.0)) # sample_corr is ~0.00, yet zero_fraction is ~0.50 (non-normal!)- Independent case (
Part 3: The Monty Hall switching probability
You should switch: staying wins with probability
1/3, and switching wins with probability2/3.The cleanest way to see why is to trace all
3equally likely locations of the car (1/3each) assuming you initially pick Door 1, remembering the host knows where the car is and must open one of the other doors hiding a goat:Car location (prob) Your pick Host MUST open Stay result Switch result ----------------------------------------------------------------------------------- Door 1 (1/3) Door 1 Door 2 or Door 3 WIN (car) LOSE (goat) Door 2 (1/3) Door 1 Door 3 (only goat!) LOSE (goat) WIN (car) Door 3 (1/3) Door 1 Door 2 (only goat!) LOSE (goat) WIN (car) ----------------------------------------------------------------------------------- Total win probability 1/3 2/3Switching loses only when your initial guess hit the car (
1/3), and wins every time your initial guess hit a goat (2/3), because the host eliminates the other goat for you!Formal confirmation with Bayes' theorem (
P(A | B) = P(B | A) * P(A) / P(B)), supposing you pick Door 1 and observe the host open Door 3: -P(opens 3 | car at 1) = 1/2(host picks evenly between goat Doors 2 and 3). -P(opens 3 | car at 2) = 1(host cannot open your Door 1 or car Door 2, so Door 3 is forced). -P(opens 3 | car at 3) = 0(host never reveals the car). - TotalP(opens 3) = (1/3)*(1/2) + (1/3)*(1) + (1/3)*(0) = 1/6 + 1/3 = 1/2. - ThereforeP(car at 1 | opens 3) = (1/6) / (1/2) = 1/3(stay), andP(car at 2 | opens 3) = (1/3) / (1/2) = 2/3(switch). (Note that this relies on the host always intentionally revealing a goat; if an ignorant host opened Door 3 at random and got lucky revealing a goat, both remaining doors would sit at1/2.)Part 4: Eight balls, one heavier, in at most two weighings
Each balance-scale weighing produces
3possible outcomes: left pan sinks, right pan sinks, or both pans balance. Across2weighings there are at most3 * 3 = 9outcome paths—just enough to distinguish8balls, provided we do not waste the"balanced"outcome on Weighing 1! (Splitting4 vs 4guarantees one pan sinks, leaving4suspects for Weighing 2, which exceeds3^1 = 3.)Instead, split the
8balls into{1, 2, 3}vs{4, 5, 6}, keeping{7, 8}off the scale:Weighing 1: {1, 2, 3} vs {4, 5, 6} | +-- Left heavier (suspects: 1, 2, 3) -> Weighing 2: {1} vs {2} | |-- Left heavier -> Ball 1 | |-- Right heavier -> Ball 2 | +-- Balanced -> Ball 3 | +-- Right heavier (suspects: 4, 5, 6) -> Weighing 2: {4} vs {5} | |-- Left heavier -> Ball 4 | |-- Right heavier -> Ball 5 | +-- Balanced -> Ball 6 | +-- Balanced (suspects: 7, 8) -> Weighing 2: {7} vs {8} |-- Left heavier -> Ball 7 +-- Right heavier -> Ball 8Every branch narrows the suspects to
<= 3balls after Weighing 1 and pinpoints the exact heavy ball on Weighing 2:def find_heavy_ball(weigh): """Identify the heavier ball among 1..8 in at most 2 balance weighings. weigh(left, right) returns -1 if left sinks, +1 if right sinks, 0 if balanced. """ first = weigh([1, 2, 3], [4, 5, 6]) if first == 0: # Neither pan sank, so the heavy ball is 7 or 8 return 7 if weigh([7], [8]) < 0 else 8 suspects = [1, 2, 3] if first < 0 else [4, 5, 6] second = weigh([suspects[0]], [suspects[1]]) if second == 0: return suspects[2] return suspects[0] if second < 0 else suspects[1]
Intuition & how it works
All four questions test the same core quantitative habit: looking past marginal averages to inspect hidden structure—whether in joint market crashes, random sums, conditional evidence, or information-theoretic branching. Think of modeling WTI and Brent crude like forecasting flood risk for two neighboring river valleys: modeling each river's water level separately tells you how high each rises on its own, while a copula (a mathematical linker between 0–1 percentile ranks) describes whether monster storms hit both valleys on the exact same night. Similarly, in probability and weighing puzzles, tracking how correlations, host constraints, or scale outcomes narrow the sample space avoids intuitive traps.
Naive shortcuts fail across every part of this screen:
- In crude stress testing, log returns crash on negative prices (WTI hit -$37.63/bbl in April 2020), a Gaussian copula (normal bell-curve linker) assumes extreme crashes become independent in the far tail (λ_L = 0), and scaling 1-day risk by sqrt(10) ignores volatility spikes compounding over 10 days.
- In normal sums, assuming "two uncorrelated bell curves always add up to a bell curve" fails when dependence is non-linear; in Monty Hall, calling the remaining two doors "50/50" ignores that the host intentionally steered around the car; and in the 8-ball puzzle, weighing 4 vs 4 throws away the "balanced" outcome and leaves 4 suspects for 1 remaining weighing.
Walk through one mini numeric trace of each core mechanism:
1. Crude tail dependence (ρ = 0.8): Filter daily dollar moves with GARCH(1,1) (a time-varying volatility filter) to get unit-variance shocks, then link them with a Student-t copula (ν = 4). Given WTI suffers a 0.1% crash, Brent crashes into its worst 0.1% with 50% probability under the t-copula versus only 26% under a Gaussian copula—and on a long 1M WTI / short 0.9M Brent spread book, a hypothetical -15% WTI / -5% Brent storage glut loses -$7.17m versus -$0.85m in a parallel -25% drop.
2. Normal sum (σ_X = 2, σ_Y = 3, ρ = 0.5): Var(X + Y) = 2² + 3² + 2(0.5)(2)(3) = 4 + 9 + 6 = 19, and X + Y is guaranteed normal when (X, Y) is jointly normal.
3. Monty Hall & 8 balls: Picking a goat (2/3 chance) forces the host to open the other goat so switching wins 2/3; weighing {1,2,3} vs {4,5,6} leaves {3, 3, 2} suspects across its three outcomes, each solved in one final 1 vs 1 weighing.
Key points
- Prep futures data carefully: use roll-adjusted WTI and Brent series per tenor across historical crisis regimes (
2008,2014,2020,2022), model dollar changes ($/bbl) so negative prices never breakln(P_t / P_{t-1}), and match horizons to use cases (1-daytrading vs10-dayregulatory stress). - Split marginals from joint dependence (Sklar's theorem): filter volatility clustering with GARCH(1,1), fit Generalized Pareto Distribution (GPD) tails to standardized shocks
z_t = r_t / σ_tvia Extreme Value Theory, and join empirical rank percentilesu = rank(z)/(n+1)with a copula. - Why Student-t beats Gaussian copulas for crashes: a Gaussian copula has zero lower tail dependence (
λ_L = 0), whereas a Student-t copula divides correlated normals by one sharedsqrt(χ²_ν / ν)shock variable (λ_L = 0.49atρ = 0.8, ν = 4). Calibrateρ = sin(π * τ / 2)from Kendall's tau rank correlation andνby maximum likelihood. - Simulate 10-day paths instead of
sqrt(10)scaling: stepping GARCH + t-copula draws forward day by day captures volatility mean reversion and crash-induced volatility feedback thatsqrt(10) * VaR_1misses. - Combine complementary scenario families and backtests: pair historical, hypothetical, Monte Carlo (
99%VaR /97.5%ES), conditional (WTI | Brent crash), and reverse stress tests (which expose WTI–Brent spread decoupling), validated with Kupiec (breach count) and Christoffersen (no breach clustering) tests. - Variance and normality of
X + Y:Var(X + Y) = σ_X² + σ_Y² + 2ρσ_Xσ_Y(σ_X² + σ_Y²when independent). Joint normality guaranteesX + Yis normal; marginal normality plusρ = 0does not (Y = S * Xputs50%mass at0). - Monty Hall (
2/3switch) and 8 balls (3-3-2split): switching wins whenever the initial pick was a goat (2/3); two ternary balance weighings distinguish up to3² = 9balls by splitting into three groups of<= 3(3 vs 3,2aside).
Common mistakes
- Computing log returns across April 2020 WTI, where
P_t <= 0producesNaNor complex numbers, or computing returns on unadjusted front-month series that jump artificially on contract expiry dates. - Fitting a copula directly to raw returns instead of GARCH-standardized residuals
z_t, confusing shared time-varying volatility with genuine cross-asset dependence. - Simulating a t-copula with two independent
χ²_νdraws instead of one sharedχ²_νdraw per scenario—independent divisors destroy the shared shock mechanism and fail to produce a t-copula. - Relying solely on a high-
ρt-copula for a WTI–Brent spread book, missing inland pipeline or storage blowouts where WTI collapses while Brent holds steady. - Scaling 1-day VaR by
sqrt(10)blindly, without stating that it assumes independent, identically distributed moves and constant volatility. - Claiming "any two uncorrelated normal variables have a normal sum", forgetting that zero linear correlation still permits non-normal joint structures like
Y = S * X. - Treating Monty Hall as
50/50, ignoring that the host knows where the car sits and cannot open either your door or the car's door. - Weighing
4 vs 4first in the 8-ball puzzle, guaranteeing the pans never balance and leaving4candidates for a single remaining weighing (4 > 3).
Follow-up questions
- How do you compute 97.5% Expected Shortfall from your 10-day Monte Carlo paths, and why do regulators prefer it to 99% VaR? Sort the
Nsimulated 10-day P&L values from worst loss to best gain and average the worst2.5%of paths (for example, the worst2,500scenarios out ofN = 100,000, repeating across random seeds to check Monte Carlo standard error). Regulators shifted from99%VaR to97.5%Expected Shortfall (under Basel's Fundamental Review of the Trading Book) because VaR only asks "where does the worst 1% begin?" and ignores how catastrophic losses get beyond that cutoff, whereas ES averages the entire tail and always rewards diversification (subadditivity). - How would you extend this stress framework to 30 energy risk factors across WTI, Brent, heating oil, and gasoil tenors? Filtering each of the 30 series marginally with GARCH + EVT still works one series at a time, and the
30 x 30correlation matrix can be estimated pairwise from Kendall's tau (followed by a nearest positive-definite correlation projection if manual stress tweaks break positive definiteness). However, a standard t-copula forces one single tail parameterνacross all435pairs, so desks either compress each curve's tenors into3principal components (level, slope, curvature via PCA) or use a grouped / vine t-copula that allows tighter tail dependence within crude tenors than between crude and refined products. - What is the maximum number of spheres you can resolve in k weighings when one is known to be heavier, and how does that bound change if the odd sphere could be either heavier or lighter? When you know the odd sphere is heavier, each weighing has
3outcomes (left sinks,right sinks,balanced), sokweighings distinguish up to3^kspheres (9in2weighings via3-3-3,27in3weighings via9-9-9) by always dividing the remaining suspects into three groups of<= 3^(k-1). If you do not know whether the odd sphere is heavier or lighter,Nspheres create2Nsigned hypotheses (sphere i heavyorsphere i light) and the first weighing cannot identify a sign on all3branches, reducing the maximum solvable count inkweighings to(3^k - 3) / 2(for example,12spheres in3weighings).
Follow-up questions
- How do you compute 97.5% Expected Shortfall from your 10-day Monte Carlo paths, and why do regulators prefer it to 99% VaR?
- How would you extend this stress framework to 30 energy risk factors across WTI, Brent, heating oil, and gasoil tenors?
- What is the maximum number of spheres you can resolve in k weighings when one is known to be heavier, and how does that bound change if the odd sphere could be either heavier or lighter?
Similar questions
- Probability Distributions, Sampling Bias, and Correlation
- Minimum Cost to Combine Numbers
- First-Player Win Odds in Alternating Coin Flips
- Valid Letter Decodings for Numeric Strings
- End-to-End Analytics and Visualization Workflow
- Approximating Black-Scholes Greeks and Hedged PnL
More Morgan Stanley interview questions
- Approximating Black-Scholes Greeks and Hedged PnL Medium
- Probability Distributions, Sampling Bias, and Correlation Medium
- Minimum Cost to Combine Numbers Medium Pro
- First-Player Win Odds in Alternating Coin Flips Easy Pro
- Valid Letter Decodings for Numeric Strings Medium Pro
- End-to-End Analytics and Visualization Workflow Medium Pro
- Presenting a Risk Modeling Project in a Recruiter Screen Medium Pro
- Forward Contracts vs. Options Fundamentals Easy Pro
- Factorial and Integer Squares Medium Pro
- Financial Technology Onsite Prompts: Motivation, Integrity, and Industry Shifts Medium Pro