Ten thousand simulated days of P&L with the same daily volatility. Make the tails fatter and compare what Value at Risk says with what Expected Shortfall says.
SIMULATED
Lower ν means fatter tails
Standard deviation of daily P&L, % of portfolio
How it works
VaR at 99% is the loss exceeded on 1% of days. It says nothing about how bad those days are. Expected Shortfall is the average loss on exactly those bad days, so it reacts when the tail gets heavier.
The P&L is drawn from a Student-t distribution scaled to your daily volatility; lower degrees of freedom mean fatter tails. For a normal distribution, ES at 97.5% (2.338σ) is almost the same as VaR at 99% (2.326σ). That near match is why the Basel FRTB rules chose 97.5% ES. With fat tails the two come apart.
The Python behind it
Copy it into a notebook or the Code Playground. The comment shows what it prints.
You hold an equity portfolio worth ₹10 crore with a daily volatility of 1.5%. Assuming normal returns with zero mean, what is the one-day 95% VaR in ₹ lakh? (1 crore = 100 lakh.)
Show the answer and working
VaR = 1.645 × 1.5% × ₹10 crore ≈ ₹0.247 crore, or about ₹24.7 lakh.
The 95% one-tailed standard normal quantile is z = 1.645.
VaR = z × σ = 1.645 × ₹15 lakh ≈ ₹24.67 lakh.
Read it as: on 19 days out of 20, the one-day loss should not be bigger than about ₹24.7 lakh.
CheckAt 99% the multiplier is 2.326, giving about ₹34.9 lakh. A higher confidence level must give a bigger VaR, and it does.
Interview trapUsing 1.96 (the two-sided 95% value) instead of 1.645. VaR looks at one tail only. Also say clearly that VaR is a threshold, not the worst possible loss.
From 500 days of historical P&L, your six worst daily losses (₹ lakh) are 42, 38, 35, 31, 29 and 27. Taking the 99% tail as the worst 1% of days, what are the one-day 99% VaR and Expected Shortfall? Give ES in ₹ lakh.
Show the answer and working
1% of 500 days is 5 days, so VaR is the 5th worst loss, ₹29 lakh, and ES is the average of the 5 worst losses, ₹35 lakh.
Tail size: 1% × 500 = 5 days.
VaR is the edge of that tail: the 5th worst loss, ₹29 lakh.
ES is the average loss inside the tail: (42 + 38 + 35 + 31 + 29) / 5 = 175 / 5 = ₹35 lakh.
ES is above VaR because it measures how bad the tail days are, not just where the tail starts.
CheckES must always be at least as large as VaR at the same level. 35 ≥ 29, so it passes.
Interview trapConventions differ: some take the 6th worst loss (₹27 lakh) or interpolate, so say which one you use. Expect the follow-up: how stable is a VaR built on just 5 data points?
FRTB replaced 99% VaR with 97.5% Expected Shortfall. For a normal P&L with σ = ₹1 crore and zero mean, compute the 97.5% ES in ₹ crore and compare it with the 99% VaR. Why does the switch still matter?
Show the answer and working
97.5% ES = σ·φ(1.96)/0.025 ≈ ₹2.338 crore, almost equal to the 99% VaR of ₹2.326 crore. The difference shows up only when tails are fatter than normal.
For a normal loss, ES at level α = σ·φ(z)/(1 − α), where z is the α quantile and φ is the standard normal density.
At α = 97.5%: z = 1.96 and φ(1.96) ≈ 0.05845, so ES = 0.05845 / 0.025 ≈ 2.338σ.
99% VaR = 2.326σ. Under normality the two numbers are within about 0.5% of each other.
The 97.5% level keeps capital similar for normal tails, while ES also captures how large the losses beyond the cut-off are when tails are fat.
CheckES at 97.5% must exceed VaR at 97.5%, which is 1.96σ. 2.338 > 1.96, so it passes.
Interview trapSaying 97.5% ES is less conservative because 97.5 < 99. Also know that ES is subadditive (a coherent risk measure) while VaR can fail subadditivity, and that ES is harder to backtest.
For education only; not investment advice. Labels on this site: REAL means real public data with its source given, SIMULATED means random numbers generated for the example, ILLUSTRATIVE means made-up inputs chosen to teach the idea.