Modeling Joint Tail Risk and Classic Probability Puzzles
Statistics & ExperimentsModel answerLast updated
Build a copula-based stress framework for correlated commodities, compute variance formulas for sums, analyze the door-switching paradox, and solve the weighted-ball identification puzzle.
You're interviewing for a quantitative role. Answer these four questions, demonstrating both technical depth and clarity.
Problem 1: Commodities Joint Stress Framework
You hold positions sensitive to two correlated commodity prices. Design a framework to stress-test their joint downside behavior over a risk horizon (for instance, 1 day for trading positions or 10 days for portfolio limits).
Your framework should address:
- What historical data you'd collect and how you'd prepare it
- How to model each price series individually, accounting for realistic return characteristics
- How to capture the relationship between the two series, especially during market stress
- Why a t-copula might be suitable for this task and how it differs from simpler alternatives
- The complete process to calibrate and simulate from a t-copula
- How to extend your 1-day model to a multi-day horizon without naive scaling
- Different types of stress scenarios you could generate (data-driven, hypothetical, model-implied, conditional)
- How you'd validate your framework and what limitations you'd communicate to stakeholders
Problem 2: Variance of Combined Random Variables
Consider two normal random variables X and Y with variances σ²_X and σ²_Y, and correlation coefficient ρ.
- What is
Var(X + Y)when they are independent? - What is
Var(X + Y)when they have correlationρ? - When is the sum
X + Yguaranteed to be normally distributed?
Problem 3: The Door Selection Puzzle
Three doors are in front of you. Behind one is a prize; behind the other two are nothing. You select a door. The host, who knows what's behind each door, opens a different door showing it's empty, then asks if you want to switch to the third door. Should you switch? What are your winning probabilities under each strategy?
Problem 4: Finding the Odd Ball
You have 8 identical-looking balls. Exactly one weighs more than the others (which all weigh the same). Using a balance scale exactly twice, describe a procedure that always identifies which ball is heavier.
Hints
Hint 1
For the stress framework, consider how extreme market moves tend to happen together—look for tools that model joint tail behavior explicitly.
Hint 2
The variance formula for sums requires knowing both individual variances and how the variables move together. Joint normality is stronger than just having normal marginals.
Hint 3
In the door puzzle, think about what information the host's action reveals. Your initial choice divides the probability space in a specific way.
Hint 4
For the balls, divide them into three groups in your first weighing to maximize information gain. The result tells you which group contains the heavy ball.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer
This question set tests your ability to design defensible quantitative frameworks and solve fundamental probability problems. Address the shorter problems first, then elaborate on the stress-testing framework.
Problem 2: Variance of Sums
Independent case:
When X and Y are independent, Var(X + Y) = σ²_X + σ²_Y. Variances simply add because the covariance term is zero.
Correlated case:
With correlation ρ, Var(X + Y) = σ²_X + σ²_Y + 2ρσ_Xσ_Y. This applies to any random variables with finite variance, not just normals. The cross-term captures how movements in X and Y reinforce or offset each other.
When is the sum normal?
The sum is guaranteed normal when (X, Y) are jointly (bivariate) normal. This is stronger than just having normal marginals. Counterexample: if X ~ N(0,1) and we set Y = SX where S is ±1 with probability ½ (independent of X), then Y ~ N(0,1) marginally, but X + Y equals 0 with probability ½—clearly not normal. Joint normality means the entire distribution is characterized by the covariance matrix, which guarantees linear combinations are normal.
Problem 3: Door Selection Puzzle
You should switch. Your switching probability is 2/3.
Intuition: When you initially choose a door, you're right 1/3 of the time. The host then reveals an empty door from the two you didn't pick. Crucially, the host knows where the prize is and never reveals it. When your initial pick was wrong (2/3 of the time), the host must reveal the only other empty door, making the remaining door the prize. So switching wins 2/3 of the time.
Staying wins only when your initial pick was correct: probability 1/3.
Bayesian verification: Suppose you picked door 1 and the host opened door 3. Using Bayes' theorem with equal priors:
- P(opens 3 | prize at 1) = 1/2 (host can choose door 2 or 3)
- P(opens 3 | prize at 2) = 1 (host must open 3)
- P(opens 3 | prize at 3) = 0 (host won't reveal prize)
The posterior probability the prize is at door 2 is (1 · 1/3) / (1/2 · 1/3 + 1 · 1/3) = 2/3.
Common mistake: answering 1/2, which would only be true if the host opened a door randomly without knowledge.
Problem 4: Eight Balls Strategy
First weighing: Divide the 8 balls into three groups: 3 vs 3, leaving 2 aside.
Case 1 – Balanced:
The heavy ball is in the 2 set aside. Second weighing: weigh those 2 against each other. The heavier side wins.
Case 2 – Left side heavier:
The heavy ball is among the 3 on the left. Second weighing: take any 2 of those 3 and weigh them. If one is heavier, that's your answer. If balanced, the third ball from that group is heavy.
Case 3 – Right side heavier:
Symmetric to Case 2.
This strategy guarantees identification in exactly 2 weighings by maximizing information gain: the first weighing narrows to 3 or 2 candidates, and the second identifies the specific ball.
Problem 1: Joint Stress Framework
Data Collection
Gather continuous futures price series for both commodities from major exchanges, ensuring consistent roll conventions to avoid artificial jumps at contract expiration. Match the contracts to your actual exposures. If you carry curve risk, include multiple maturities.
Compute daily log returns. Be aware of extreme events: for example, certain commodity contracts have traded at negative prices, breaking logarithms. Handle these with absolute changes or spread analysis for affected periods, documenting the treatment explicitly.
Use at least 10–15 years of history to capture diverse market regimes: financial crises, supply shocks, demand collapses, and geopolitical events. Align timestamps carefully since commodities trade across different exchanges with different holiday calendars.
Marginal Modeling
Commodity returns exhibit volatility clustering, fat tails, and skewness. Model each series in two stages:
1. Time-series filter:
Fit an ARMA-GARCH model (for example, AR(1)-GARCH(1,1) with possibly asymmetric variants like GJR-GARCH to capture leverage effects) with a flexible innovation distribution like skewed Student-t. This produces standardized residuals that are approximately i.i.d. and a forecast of tomorrow's conditional volatility.
2. Residual distribution:
Use a semi-parametric approach: fit the empirical distribution in the body (middle 90% of observations) and fit Generalized Pareto distributions to the tails beyond threshold quantiles (e.g., 5th and 95th percentiles). This Extreme Value Theory approach lets you extrapolate beyond historically observed extremes.
Transform each residual using the probability integral transform to obtain pseudo-uniform observations U_t. Validate these with uniformity tests, histograms, and checks for remaining autocorrelation.
Dependence Structure: Why t-Copula
Copulas separate marginal behavior from dependence structure. Two commodities typically show correlation around 0.7–0.9, which increases during crises—the phenomenon of "correlation breakdown" where diversification fails when needed most.
Gaussian copula implies zero tail dependence: extreme moves are asymptotically independent, regardless of correlation level. This underestimates joint downside risk.
t-copula introduces a degrees-of-freedom parameter ν that generates symmetric tail dependence: when one variable hits an extreme, the other is more likely to be extreme too. Lower ν means stronger tail dependence; as ν → ∞, you recover the Gaussian copula. Empirically, ν between 3 and 10 is common for commodities.
Important caveat: t-copula tail dependence is symmetric (joint crashes and joint rallies treated equally). If your data shows asymmetric tail behavior, consider asymmetric copulas or regime-switching models.
Calibration Workflow
- Fit marginal models and obtain uniform pseudo-observations (u₁ₜ, u₂ₜ)
- Estimate correlation ρ from the rank correlation (Kendall's tau): ρ = sin(πτ/2), which is robust to outliers
- Estimate degrees of freedom ν by maximum likelihood on the copula density, with ρ fixed or jointly estimated
- Validate fit using copula goodness-of-fit tests and comparing empirical vs. model-implied tail dependence coefficients
Simulation Process
For each scenario:
- Draw Z ~ N(0, R) where R is the correlation matrix and W ~ χ²_ν
- Form T = Z / √(W/ν), which is multivariate t-distributed
- Transform to uniforms: U_i = t_ν(T_i) using the univariate t CDF
- Invert through marginal distributions: z_i = F_i^(-1)(U_i)
- Construct returns: r_i = μ_i + σ_{i,t+1} · z_i
- Revalue portfolio with full pricing models (not just delta), extract P&L
Multi-Day Horizon
Do not use √10 scaling. This assumes i.i.d. normal returns and ignores GARCH dynamics and tail clustering.
Instead, simulate day-by-day paths: for each of 10 days, draw copula innovations, update GARCH variances recursively, accumulate log returns. This captures volatility feedback—the key mechanism that produces clustered crash sequences.
Stress Scenario Types
Historical: Replay specific crisis periods identified in your data sample, such as major supply disruptions, financial crises, or pandemic-era shocks.
Hypothetical: Design scenarios not in the data: geopolitical events affecting supply routes, policy changes, storage constraints, or producer cartel actions. Focus on scenarios that stress relationships (like spread widening) not just levels.
Model-based: Extract 99th or 99.9th percentile joint scenarios from your copula simulation. Also stress parameters themselves: set ν to extreme values, push ρ near 1, or reduce it to test basis risk.
Conditional: Given one variable drops X%, use the copula's conditional distribution to simulate the likely range for the other variable.
Reverse stress testing: Fix a loss threshold (e.g., a capital trigger) and search for the most likely scenario producing that loss. This identifies vulnerabilities you might not have imagined.
Validation and Communication
Backtesting: Use Kupiec tests for VaR exception counts, Christoffersen tests for independence of exceptions, and expected shortfall backtests when applicable.
Model diagnostics: Compare empirical copula to fitted copula (Cramér-von Mises statistic), check empirical vs. model tail dependence at various quantiles, and verify parameter stability across rolling windows.
Limitations to state clearly:
- Models are calibrated to history, which may not span future events
- Assumes correlation and tail dependence parameters are constant (or evolves according to model)
- Symmetric tail dependence may not capture asymmetric crash behavior
- Does not capture liquidity effects, basis risk, or negative prices without special treatment
- Parameter uncertainty in ν is not reflected in scenario distributions
Present results as scenario tables with clear narratives, loss distributions, and sensitivity to key assumptions—not just point estimates.
Word count: ~1,150