Historical and Weighted Historical Simulation

Interactive exploration of Historical Simulation, Weighted Historical Simulation, and volatility-scaled approaches for computing VaR and ES using Tesla returns

Historical simulation (HS) is the most widely used method for computing VaR and ES in practice. Rather than assuming a specific probability distribution, it uses actual historical changes as scenarios for what could happen tomorrow (see Hull 2023, chap. 12; Christoffersen 2012, chap. 2).

This page explores HS and its extensions interactively using daily Tesla stock returns (see Stylized facts). We examine the method’s strengths and, more importantly, its serious weaknesses, which motivate the dynamic variance models covered later in the course.

1. Historical Simulation VaR/ES calculator

The HS approach treats each of the past \(m\) daily returns as an equally likely scenario for tomorrow. The VaR at confidence level \(q\) is simply the \((1-q)\)-th percentile of these past returns, and ES is the average of losses exceeding VaR:

\[ \text{VaR}_q = \text{Loss ranked at position } \lceil m(1-q) \rceil, \qquad \text{ES}_q = \frac{1}{\lceil m(1-q) \rceil - 1} \sum_{\text{losses} > \text{VaR}} \text{Loss}_i \]

Note

Linear interpolation

When \(m(1-q)\) is an integer (e.g., \(500 \times 0.01 = 5\)), the VaR is simply the observation at that rank, i.e., the 5th worst loss. When \(m(1-q)\) is not an integer (e.g., \(250 \times 0.01 = 2.5\)), the VaR falls between two observations and is computed by linear interpolation between the adjacent ranked losses (see Christoffersen 2012, sec. 2.1).

Tip

How to experiment

Adjust the window size \(m\) to see how VaR and ES change with different amounts of historical data. Try \(m = 250\) at \(q = 0.99\) to see interpolation in action (position 2.5 falls between the 2nd and 3rd worst losses). Increase the confidence level to see how few observations determine the VaR estimate.

2. Sample size trade-off explorer

The choice of window size \(m\) creates an inherent tension. Small \(m\) makes VaR erratic and sensitive to individual observations entering or leaving the window. Large \(m\) makes VaR sluggish and unresponsive to current market conditions. The result is the characteristic “box-shaped” VaR patterns documented by Christoffersen (2012).

Tip

How to experiment

Compare two different window sizes. Watch for the box-shaped jumps in VaR when a large loss suddenly enters or exits the rolling window. Notice how the 250-day VaR can be nearly twice the 1000-day VaR during volatile periods.

3. HS vs. RiskMetrics VaR response

The most important critique of HS is its slow response to changing volatility. RiskMetrics, despite being a much simpler model, tracks actual risk conditions far more accurately because it uses exponential smoothing on squared returns: \(\sigma_{t+1}^2 = \lambda \sigma_t^2 + (1-\lambda) R_t^2\) (see Christoffersen 2012, sec. 4).

Tip

How to experiment

Compare how quickly each method responds to Tesla’s volatile periods. Notice how HS VaR barely moves after a single large loss, while RiskMetrics VaR jumps immediately. After volatility subsides, HS VaR stays elevated for months while RiskMetrics declines.

4. Weighted Historical Simulation explorer

WHS assigns exponentially declining weights to past observations, giving more influence to recent returns. The weight for observation \(\tau\) days ago is:

\[ w_\tau = \frac{\eta^{\tau-1}(1-\eta)}{1-\eta^m}, \quad \tau = 1, 2, \ldots, m \]

VaR is found by sorting returns with their paired weights and accumulating weights from the worst loss until the cumulative weight exceeds \(1-q\) (see Hull 2023, sec. 12.3.1).

Tip

How to experiment

Set \(\eta = 1.00\) to recover basic HS (equal weights). Lower \(\eta\) to 0.95 to see dramatic concentration of weight on recent observations. Watch how the VaR time series responds faster to volatility changes as \(\eta\) decreases.

5. WHS asymmetry: long vs. short position

A critical limitation of WHS: it treats large losses as signals of increased risk but ignores large gains. If you hold a short position, a market crash is a gain, and WHS fails to detect the volatility increase. In contrast, RiskMetrics squares returns, treating both gains and losses symmetrically (see Christoffersen 2012, sec. 3).

Tip

How to experiment

Toggle between Long and Short positions. With a long position, WHS responds quickly to market crashes (large losses). Switch to Short: the same crash is now a large gain, and WHS barely reacts. This asymmetry is a fundamental flaw of the WHS approach.

6. VaR standard error and precision

HS estimates percentiles from finite data, introducing substantial sampling error. The standard error of the VaR estimate is:

\[ \text{SE}(\hat{x}_q) = \frac{1}{f(x)} \sqrt{\frac{q(1-q)}{n}} \]

where \(f(x)\) is the probability density at the VaR level, estimated here using a Gaussian kernel density estimator. With 500 observations at 99% confidence, VaR is determined by just 5 observations (see Hull 2023, sec. 12.2).

Tip

How to experiment

Increase the sample size to see the confidence interval narrow, but notice it shrinks only as \(\sqrt{n}\). Increase the confidence level to see precision deteriorate dramatically. Click “New bootstrap sample” to see how much VaR varies across different random resamples.

7. Volatility-scaled Historical Simulation

Volatility scaling adjusts historical returns by the ratio of current to historical volatility. If current volatility is higher than it was at the time of a historical scenario, that scenario is scaled up proportionally (see Hull 2023, sec. 12.3.2):

\[ \text{Adjusted return}_i = R_i \times \frac{\sigma_{n+1}}{\sigma_i} \]

where \(\sigma_i\) is the volatility estimate at time \(i\), computed using the RiskMetrics EWMA model:

\[ \sigma^2_{i+1} = \lambda \, \sigma^2_i + (1 - \lambda) \, R_i^2 \]

seeded with the full-sample variance. Note that the EWMA formula uses \(R_i^2\) rather than \((R_i - \mu)^2\), which is equivalent to assuming \(\mu = 0\). This is standard in the RiskMetrics approach, since for daily returns the mean is negligibly small relative to volatility.

This method can produce VaR estimates exceeding any historical loss, which is impossible with basic HS.

Tip

How to experiment

Adjust the EWMA λ to control how responsive the volatility estimates are. Lower λ means more volatile scaling ratios. Compare the volatility-scaled VaR (which can exceed all historical losses) with the basic HS VaR (which is bounded by the worst historical return).

References

Christoffersen, Peter F. 2012. Elements of Financial Risk Management. 2nd ed. Academic Press.
Hull, John. 2023. Risk Management and Financial Institutions. 6th ed. John Wiley & Sons.