Quant with Vahab
Quant Systems Lab · Control Systems for Quantitative Finance

Value at Risk (VaR)

A loss threshold: “on a normal day, losses should not exceed this amount with X% confidence.”

Explanation

VaR is a percentile (quantile) of the loss distribution over a fixed horizon, for example the 99th percentile of one-day losses.

It answers: “How bad is a bad day?” but not “How bad can it get beyond that bad day?” — tail severity is left out.

In practice, VaR is estimated from models (normal, t, GARCH), historical data, or Monte Carlo, and results can change a lot when tails are fat.

Engineering analogy: designing a bridge to withstand loads up to a chosen stress percentile, but not explicitly specifying what happens in truly extreme events.


riskquantileloss distributiontail
Interactive visualisation

Simulated daily returns under a normal model. The shaded red tail shows the 5% worst days. The solid red line marks VaR as a loss threshold; the dashed red line marks the average loss on those bad days (Expected Shortfall).

Daily return (%)Frequency (simulated days)-5.8-3.8-1.80.22.24.26.2mean ≈ 0.05%VaR ≈ 2.70%ES ≈ 3.28%5% worst days
Numbers
VaR (loss, 95% level) ≈ 2.70%
Expected Shortfall (ES) ≈ 3.28%
Portfolio VaR at this level (for 10m) ≈ 0.27m; ES ≈ 0.33m
Mean return ≈ 0.05%, volatility σ ≈ 1.60%
Tail probability (empirical) ≈ 5% ( ≈ 12.6 days per year)
Interpretation

The grey bars show a normal return distribution centred on μ with spread σ. The solid red line is VaR: only about 5% of simulated days fall to the left. The dashed red line (ES) is the average of those bad days.

As you increase σ, the histogram widens, and both VaR and ES move further left (bigger losses). The portfolio slider translates those percentages into money: a risk manager will often read “95% 1-day VaR of 2.70% on a 10m book” directly as an amount at risk on a normal day.

Control analogy: VaR is like a design limit for typical disturbances on a system state. ES tells you how severe the excursions are once you actually cross that limit — which is why regulators now often prefer ES to VaR for capital.