Compute Historical VaR and Expected Shortfall from Desk P&L

Last updated: November 29, 2026

Quick Overview

Given a series of a trading desk's daily profit and loss values, compute the one-day historical simulation Value at Risk and Expected Shortfall at a chosen confidence level, and explain what each number tells a risk manager.

UBS
Statistics & Math
Quantitative Researcher
UBS
November 29, 2026
Quantitative Researcher
Phone Screen
Statistics & Math
Easy

0

0

0 solved


Given a series of a trading desk's daily profit and loss values, compute the one-day historical simulation Value at Risk and Expected Shortfall at a chosen confidence level, and explain what each number tells a risk manager.

Market risk methodology and front office strats teams at a bank like UBS report VaR and Expected Shortfall daily, and Basel III's FRTB moved capital toward ES. This question checks that a candidate can compute the empirical quantile carefully, state the convention used, and explain why ES is coherent while VaR is not.

What the Interviewer Expects
  • State the sign convention (losses as positive numbers)
  • Pick and state an empirical quantile convention
  • Compute ES as the average of losses at or beyond VaR
  • Explain what VaR does not say about tail size
  • Mention sample size limits at 99% and above
Key Topics to Cover
Value at Risk
Expected Shortfall
Empirical Quantiles
Coherent Risk Measures
Backtesting
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • With 250 days of history, how many observations sit beyond the 99% VaR, and what does that do to estimation error?
  • How would you scale a one-day VaR to ten days and when does the square-root-of-time rule fail?
  • Why is VaR not subadditive, and give a two-asset example?
  • How would you backtest the VaR model?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

Inputs: daily P&L x1,…,xnx_1, \dots, x_n with losses negative, confidence α\alpha (for example 99%). Define loss Li=−xiL_i = -x_i. Historical simulation assumes the next day's loss distribution is the empiric...

Approach

Sort losses ascending to get L(1)≤⋯≤L(n)L_{(1)} \le \dots \le L_{(n)}. Take k=⌈αn⌉k = \lceil \alpha n \rceil; then

VaRα=L(k),ESα=1n−k+1∑i=knL(i).\text{VaR}_\alpha = L_{(k)}, \qquad \text{ES}_\alpha = \frac{1}{n-k+1}\sum_{i=k}^{n} L_{(i)}....


Submit Your Answer
Markdown supported

Related Questions