Skip to content
All articles
Portfolio & Risk

Value at Risk (VaR) Explained

· 10 min read

Educational purpose only. This article explains quantitative methods and implementation practices. It is not personalised investment advice, a recommendation, or a promise of performance.

01

Executive summary

Value at Risk summarises a portfolio's loss threshold at a chosen confidence level and time horizon. It is useful for aggregation, limits, and communication, but it is not a worst-case loss. This guide explains parametric, historical, and Monte Carlo VaR, works through calculations, covers expected shortfall and backtesting, and shows how VaR fits within a broader risk framework.

02

What VaR means

Value at Risk is a loss threshold for a defined portfolio, confidence level, and horizon. A one-day 95% VaR of £100,000 means the model estimates a 5% probability that the portfolio will lose more than £100,000 over one day. It does not mean the maximum possible loss is £100,000, and it says nothing about the average or worst loss beyond that threshold.

Always report all three dimensions: currency or percentage amount, horizon, and confidence. “VaR is £100,000” is incomplete. VaR is usually shown as a positive loss number even though it corresponds to a negative return quantile.

03

Parametric VaR

Under a normal-return assumption, portfolio volatility is σp=wTΣw\sigma_p=\sqrt{w^T\Sigma w}. A simplified percentage VaR is zσp−μpz\sigma_p-\mu_p, converted to currency by multiplying by portfolio value. Common one-tailed quantiles are approximately 1.645 for 95% and 2.326 for 99% confidence.

For a £10 million portfolio with 1% daily volatility and negligible daily mean, 95% one-day VaR is about £164,500. At 99%, it is about £232,600. The normal model is fast and transparent but can understate skew, fat tails, nonlinear options, and changing correlations.

04

Historical simulation

Historical VaR applies current portfolio exposures to observed historical market moves, builds a distribution of hypothetical P&L, and takes the relevant loss quantile. It avoids an explicit normality assumption and naturally preserves cross-asset moves on each historical date.

Its weaknesses are equally important. Results depend on the selected lookback, rare events may be absent, old regimes receive the same weight as recent ones, and current risks may not have historical analogues. Options require full revaluation or a sufficiently accurate approximation.

05

Monte Carlo VaR

Monte Carlo VaR simulates risk-factor changes from a chosen stochastic model, revalues the portfolio, and estimates the loss quantile. It handles nonlinear and path-dependent instruments better than simple delta-normal VaR and can represent custom scenarios.

The result is only as credible as the model, calibration, number of simulations, and valuation engine. Validate random-number generation, convergence, dependence assumptions, and pricing accuracy. Report simulation error around the quantile rather than presenting excessive precision.

06

Python examples

python
import numpy as np

# returns: 1-D array of historical portfolio returns
value = 10_000_000
confidence = 0.99
losses = -value * returns
historical_var = np.quantile(losses, confidence)
expected_shortfall = losses[losses >= historical_var].mean()

# Parametric VaR with daily mean and volatility
mu = returns.mean()
sigma = returns.std(ddof=1)
z99 = 2.326347874
parametric_var = value * (z99 * sigma - mu)

For assets, calculate portfolio returns from point-in-time weights. For options, do not rely on linear weighted returns when gamma, vega, or path dependence is material. Revalue positions under each scenario.

07

Time scaling

The square-root-of-time rule scales volatility by T\sqrt{T} and is often used to convert one-day VaR to a longer horizon. It assumes independent, identically distributed returns and stable volatility. These assumptions often fail during stress because volatility clusters and liquidity deteriorates.

Use direct multi-day historical changes or path simulation when positions are nonlinear, markets exhibit serial dependence, or liquidation itself changes prices. A ten-day horizon should reflect what can realistically be hedged or sold, not only a regulatory convention.

08

Expected shortfall and complementary measures

Expected shortfall, also called conditional VaR, estimates the average loss given that VaR has been breached. It addresses a major VaR limitation by describing tail severity. Also track stress-test loss, maximum drawdown, concentration, sensitivities such as delta and duration, liquidity-adjusted risk, and scenario P&L.

No single metric is sufficient. VaR is effective for aggregation and limit reporting, while stress tests reveal vulnerability to specific extreme but plausible events. Drawdown captures path experience; sensitivities explain why risk changes.

09

Backtesting

Compare daily realised losses with the previous day's VaR forecast. A breach is an exception. Over a long sample, the number of exceptions should be broadly consistent with the confidence level, but exception clustering also matters. A model with the right total count can still fail independence.

Use coverage tests such as Kupiec's unconditional coverage test and independence or conditional-coverage tests such as Christoffersen's. Investigate every exception for data error, valuation error, model misspecification, regime change, or genuine tail event. Backtesting is a control process, not merely a statistical score.

10

Stress testing

Historical stresses can replay shocks such as the 2008 financial crisis, the March 2020 pandemic sell-off, or relevant rates and commodity moves. Hypothetical scenarios can combine yield-curve shifts, equity falls, volatility jumps, spread widening, currency moves, and liquidity haircuts.

Reverse stress testing asks what scenario would breach capital, liquidity, or risk appetite. It is particularly useful because it starts from failure and identifies hidden concentration. Link scenarios to management actions: hedge, reduce, fund, or suspend activity.

11

Governance and common failures

Document data sources, valuation models, mapping assumptions, lookback windows, confidence levels, horizons, approximations, and limitations. Independently validate model theory and implementation. Reconcile positions and prices daily. Control changes through versioning and approval.

Common failures include interpreting VaR as a worst case, omitting confidence and horizon, assuming normality for options, ignoring liquidity, scaling mechanically, and comparing VaR figures calculated on different bases. A lower VaR can also reflect stale prices or missing positions, so data-quality checks are essential.

12

Practitioner implementation checklist

Use this checklist before relying on any result. First, write a one-page specification containing the hypothesis, instrument universe, timestamp convention, rebalance rule, sizing rule, risk constraints, cost model, and conditions that invalidate the approach. Freeze that specification before inspecting final holdout performance. Keep a research log that records every dataset, transformation, parameter change, and rejected variant; otherwise repeated experimentation silently turns the holdout set into training data.

Second, validate the data. Confirm the timezone, corporate-action treatment, delisted instruments, stale prices, missing observations, symbol changes, bid/ask convention, and whether a field was actually published before the simulated decision. Store raw data separately from cleaned features. Add automated tests for duplicate timestamps, impossible prices, discontinuities, and accidental forward fills across market closures. A model cannot repair a dataset whose chronology is wrong.

Third, evaluate the process rather than one headline return. Report annualised return and volatility, Sharpe and Sortino ratios, maximum drawdown, recovery time, turnover, hit rate, payoff ratio, exposure, leverage, concentration, tail loss, and performance by market regime. Show gross and net results side by side. Recalculate under wider spreads, delayed execution, smaller capacity, and adverse parameter choices. A credible result should weaken gradually rather than collapse when one assumption moves slightly.

Fourth, separate research, validation, and production. Research code may be exploratory, but production code should be deterministic, versioned, tested, observable, and able to reproduce every order from stored inputs. Paper trading should use the same signal and execution path as live trading. Predefine kill switches for missing data, stale predictions, exceptional volatility, breached loss limits, and divergence between expected and realised fills. Require human review before increasing capital.

Finally, treat monitoring as part of the model. Track input drift, feature ranges, forecast calibration, realised costs, rejected orders, latency, exposure, P&L attribution, and risk-limit utilisation. Compare live behaviour with the ranges observed during validation. Review incidents and near misses, not only losses. When the evidence no longer supports the original hypothesis, reduce risk or stop; do not keep changing the model until yesterday's losses disappear.

13

Final takeaway

The useful habit is not memorising one formula or copying one backtest. It is building a chain of evidence: define the economic idea, formalise it, use only information available at the decision time, model costs and constraints, test stability, set risk limits, and monitor the live process. A strategy becomes investable only when every link in that chain is explicit and reviewable.

14

Glossary and review questions

Alpha is return not explained by the chosen benchmark or risk model. Capacity is the capital a strategy can deploy before market impact materially erodes returns. Drawdown is the decline from a previous wealth peak. Look-ahead bias occurs when a test uses information unavailable at the simulated decision time. Out-of-sample means data not used to fit the model or choose its parameters. Slippage is the difference between an assumed or decision price and the executed price. Stationarity describes a process whose relevant statistical properties remain stable over time. Turnover measures trading activity relative to capital and is a major driver of costs.

Before implementation, answer these questions in writing. What economic mechanism creates the opportunity? What exact information is available at the decision timestamp? Which assumptions are strongest and how are they stressed? What costs and constraints are included? How does the method fail? Which metric triggers reduced risk or shutdown? Can another person reproduce the result from raw data and versioned code? If these questions do not have clear answers, more modelling will not make the strategy production-ready.

15

Editorial note on reproducibility

All numerical examples are illustrative. Recalculate them with current data, document units and sign conventions, and preserve the exact code and input snapshot used for any published result. A reader should be able to distinguish observed evidence, modelling assumptions, and judgement. Where a provider, regulation, cost, or product can change, confirm the current official terms before acting.

16

How to use this guide in practice

Treat the method in this article as a controlled research process rather than a ready-made trade. Begin by translating each concept into a written specification. Define the decision being made, the portfolio or instruments covered, the observation time, the execution time, the holding period, the risk budget, and the evidence required before deployment. This prevents ambiguous rules from changing after results are visible. A sound specification also distinguishes a forecast from a position. Forecast strength, conviction, capital allocation, and order size are related but separate decisions.

Build a small reference implementation before optimising performance. Keep raw data immutable, document every transformation, and add assertions for units, dates, missing values, and sign conventions. Run the calculation on hand-worked examples whose answer is known. Then test edge cases such as zero volatility, missing prices, extreme returns, unavailable borrow, or an empty portfolio. Numerical output that looks plausible can still be wrong, so reconciliation against an independent calculation is valuable.

Evaluate sensitivity, not just the central estimate. Change the sample period, cost assumption, confidence level, threshold, rebalance frequency, forecast strength, and risk cap. Plot or tabulate how the result changes. Robust methods normally have a region of acceptable parameters rather than one isolated optimum. If a small parameter change reverses profitability or doubles risk, the process needs more evidence or less capital. Include unfavourable scenarios in the decision pack rather than presenting only the preferred case.

Create an explicit review gate before paper trading and another before live capital. The review should cover economic rationale, data provenance, statistical validity, software tests, operational readiness, legal or licence constraints, market abuse controls where applicable, and the proposed loss limits. Record who approved the change and which model, data, and code versions were approved. A reproducible audit trail is useful even for a personal research account because it separates disciplined decisions from hindsight.

During operation, compare actual behaviour with the assumptions used in research. Track realised volatility, turnover, fills, spreads, financing, forecast distribution, concentration, and exceptional events. Investigate deviations promptly. Temporary underperformance does not automatically invalidate a strategy, while profitable performance does not prove the model is correct. The question is whether the live evidence remains statistically and economically consistent with the original thesis.

Finally, predefine retirement criteria. Examples include persistent forecast miscalibration, unstable parameters, a structural market change, declining liquidity, repeated operational incidents, costs above the tested range, or risk-adjusted performance below a documented boundary for a meaningful period. Stopping a method when its evidence fails is part of good portfolio management, not an admission that research was wasted. The same documentation can explain what was learned and which components remain reusable.

17

Sources and further reading

  • Basel Committee on Banking Supervision, consolidated Basel Framework: https://www.bis.org/basel_framework/
  • Ryan O'Connell, Value at Risk: Formula, Methods, and Examples (2026): https://ryanoconnellfinance.com/value-at-risk/
  • NumPy quantile documentation: https://numpy.org/doc/stable/reference/generated/numpy.quantile.html

Educational content only, not investment advice.

More articles