What does historical simulation assume about tomorrow?
The question
The same portfolio can be replayed against different sets of days.
- 1 SeeChoose a window and estimate VaR.
- 2 TryChange the weight of severe days.
- 3 ProveProve when the cutoff crosses a threshold.
- 4 ApplyReplay returns and compute loss ranks.
Before you start · 3 quick checks on loss signs, counts and same-date returns
Two ideas before you start
2 ideasPut today's positions through a past day
Two position changes add up to the change in portfolio value.
Replay both returns from the chosen date on the same current positions. The bars show dollar changes in value.
Exact definition
Let \(V_A\) and \(V_B\) be today's signed dollar positions in assets A and B. For historical date \(i\), let \(r_{i,A}\) and \(r_{i,B}\) be simple one-day price returns in decimal form. With fixed holdings, no cash flows and no trading or financing costs over the replay day, the dollar loss is
\[L_i=-(V_A r_{i,A}+V_B r_{i,B}).\]A positive position gains when its price rises. A negative position represents a short position and loses when its price rises. A negative loss means a gain. The chart uses invented returns and fixed dollar positions as given beside the result.
Choose how far back to look
A highlighted span marks the most recent dates in the archive.
A rolling window ends at the latest available date. It gives each included date the same weight in this lesson.
Exact definition
With \(n\) replay losses, the empirical cumulative distribution function \(F(x)\) is the fraction at or below the dollar loss \(x\). At confidence \(0\lt\alpha\lt1\), historical value at risk (VaR) is the smallest loss where \(F(x)\ge\alpha\). Sort the losses from smallest to largest and take rank \(k=\lceil n\alpha\rceil\), counting from the smallest. Keep every repeated loss in that list.
This uses the inverse-CDF convention. It selects an observed scenario loss without interpolating. The empirical quantiles lesson gives the general definition. The value at risk lesson explains what a cutoff leaves out.
What is being modeled?
The replay constructs a distribution for today's book even if its holdings differed on the dates in the archive. What comes from the archive is the joint move in prices. What comes from today is the exposure to each price. The lesson uses simple one-day price returns, fixed quantities within each replay, and no dividends, fees, financing costs or trades during the day.
Using the replay distribution as a forecast adds an assumption. The included dates, given equal weight, need to represent the joint moves that could occur over the next trading day. This is a real-world forecasting assumption about market moves. Equal weights describe how the estimate is made. They do not establish that any historical pattern will repeat tomorrow.
Forecast the cutoff after a crisis
- Choose how many recent trading days to replay.
- Estimate the VaR in dollars. Check your forecast to see both windows.
- Advance through the quiet days, or start over to hide the result.
Roll both windows forward
Both windows reprice the same dollar positions throughout the exercise. Each step adds the next quiet day and drops the oldest day from each window.
Inspect each paired return and loss
Day zero is the last crisis day. The smaller window uses the most recent rows of this table. For each row, multiply the two returns by today's respective positions, add the changes and reverse the sign.
Keep the severe days in the archive
- Predict a cutoff change in a separate, growing archive.
- Add or remove quiet rows to reach the goals.
Use what you found above
Hold the severe rows in place. Change the total number of dates by including more or fewer quiet rows. All included dates still carry equal weight. In See the window rolled forward at a fixed size, replacing rows. Here the archive changes size.
When does VaR cross a loss threshold?
Let \(n\ge2\) be an integer and let the \(n\) finite losses have equal weight. Fix a finite dollar threshold \(t\) and a confidence level \(0\lt\alpha\lt1\). Suppose exactly \(b\) losses strictly exceed \(t\), with \(1\le b\lt n\). Put \(m=n-b\), the count at or below \(t\). Let \(k\) be the selected rank and \(q\) be the inverse-CDF VaR.
The cutoff \(q\) lies at or below \(t\) exactly when the severe fraction \(b/n\) is at most \(1-\alpha\). A loss equal to \(t\) belongs to the count \(m\).
Build the proof by counting observations on the two sides of the threshold.
What the archive can support as a forecast
The theorem counts rows in a specified window. It says nothing about the probability of the next real loss exceeding the cutoff. That would require the equal-weight replay distribution to model the next day's losses. If tomorrow's joint moves have a different distribution, strict exceedances can occur more or less often than the empirical fraction suggests.
A short window can lose an old stress observation quickly and can have very few rows near its cutoff. A long window uses more dates, which may include market conditions unlike today's. The window length sets the rank, and the included losses determine the value at that rank. Before using dates from another market or giving dates unequal weights, first specify which joint moves are plausible and how much weight each carries. Unequal weights require a cumulative weight calculation in place of counting ranks.
The bootstrap lesson shows how resampling can study an estimate's variability. An ordinary bootstrap resamples individual rows with replacement. If the rows are used as observations of joint moves, each draw keeps the assets paired. The ordinary row bootstrap uses an independent, identically distributed sampling model. When market moves cluster over time, that argument needs a dependence model or a resampling scheme suited to time series.
Reprice, rank and interpret
Enter exact numbers without currency symbols or units. Use the same one-day horizon for all returns and losses within each problem. Hints walk through the replay or the count.
Further reading
- J. C. Hull, Options, Futures, and Other Derivatives, chapter “Value at Risk and Expected Shortfall.”