What Matters
Value at Risk identifies a loss threshold at a stated confidence level. Expected shortfall examines the average loss in the specified tail. DN’s original example gives two fictional distributions the same 95% VaR of 100, while their worst-five averages are 200 and 2,000. A matching headline threshold can therefore conceal very different bad outcomes. Read the distribution and calculation convention alongside the number.
Evidence status — checked 28 November 2026: DN executed original arithmetic on two authored sets of 100 equally weighted loss scenarios. The comparison uses an explicitly defined empirical quantile and an exact five-scenario tail. It is not an estimate for a real portfolio, a Goldman Sachs calculation or a regulatory capital assessment. This is the 2027 edition of the educational method.
Two research reports show the same risk figure: 95% VaR of 100. It is tempting to conclude that the underlying positions have similar downside. Yet the number says little about how far losses extend beyond its threshold.
One report might contain a small set of moderately bad outcomes. The other might contain outcomes many times larger. If those differences sit beyond the selected quantile, the headline VaR can remain unchanged. That is the specific problem this article makes visible.
The useful response is to ask for the loss distribution, the horizon, the confidence level and the method. Expected shortfall adds information about the tail, but it still inherits the assumptions and omissions of the scenarios supplied. Neither statistic can describe an event that the underlying method has excluded from consideration.
What is the difference between VaR and expected shortfall?
Value at Risk, usually abbreviated VaR, is a quantile of a stated loss distribution. Expected shortfall, or ES, summarises losses in its upper tail. The BIS market-risk terminology distinguishes a loss measure at a confidence level from the average of losses beyond the relevant threshold. This article uses that conceptual distinction and states its own discrete-sample convention.
At 95%, our empirical VaR is the smallest loss value at which the accumulated scenario weight reaches at least 95%. The remaining upper 5% is the tail used for our ES comparison. Because there are exactly 100 equally weighted scenarios, that tail contains exactly five scenario weights.
The confidence level is part of the definition. So are the loss unit and the horizon. A daily loss measure and a monthly loss measure describe different targets. A percentage of equity and an amount of currency need different denominators. Reports that omit these fields invite comparisons the numbers cannot support.
VaR is also different from a stop instruction or a hard maximum loss. A number calculated from a distribution does not place an order, reserve collateral or force a position to close at that price. An operational limit requires its own observation, decision and execution rules.
DN’s two distributions: identical until the worst five scenarios
Our first distribution has 94 scenarios with zero loss, one with a loss of 100, and five with losses of 200 each. The second keeps the first 95 scenarios identical and replaces each of the last five losses with 2,000. Every scenario receives a weight of 1%.
The values are deliberately simple. They are not sampled returns, forecasts or probabilities estimated from a market. Their purpose is to let a reader see which observations determine the quantile and which determine the tail average.
| Scenario group | Count and weight | Moderate-tail loss per scenario | Severe-tail loss per scenario |
|---|---|---|---|
| Lowest losses | 94 scenarios; 94% | 0 | 0 |
| Threshold observation | 1 scenario; 1% | 100 | 100 |
| Upper tail | 5 scenarios; 5% | 200 | 2,000 |
| Total | 100 scenarios; 100% | All inputs disclosed | All inputs disclosed |
Sort the losses from smallest to largest. Observations one through 94 are zero. Observation 95 is 100 in both sets. Under our inverse-empirical-distribution convention, the 95% VaR is therefore 100 for each distribution.
Now average observations 96 through 100. In the first distribution, five losses of 200 average to 200. In the second, five losses of 2,000 average to 2,000. The tail average is ten times larger even though the selected VaR threshold has not moved.
| Measure | Moderate tail | Severe tail |
|---|---|---|
| 95% empirical VaR | 100 | 100 |
| Mean of worst five losses | 200 | 2,000 |
| Largest supplied scenario loss | 200 | 2,000 |
The maximum and the tail average coincide here because all five tail losses within each set are equal. That is a feature of these authored inputs, not a general equality between expected shortfall and maximum loss.
The quantile convention is part of the result
A percentile calculation on a finite sample needs a rule. We use the nearest-rank order statistic corresponding to the inverse empirical cumulative distribution. For 100 equal weights at 95%, that selects the 95th ordered observation. We do not interpolate between the 95th and 96th observations.
Another implementation may use interpolation. It can then return a different numeric threshold from exactly the same sample. Comparing its output with ours without recording the convention would turn a method difference into an apparent data discrepancy.
The tail rule needs similar care. In this fixture, selecting the five largest observations gives exactly 5% of the total probability mass. Including every value greater than or equal to VaR would also include the observation equal to 100, producing six observations instead. That would be a different calculation.
For arbitrary weights or sample sizes, a fixed number of whole observations may not equal the desired tail probability. A general implementation needs a stated boundary-weight rule. This teaching example avoids that ambiguity through its 100 equal weights, while making the convention visible so it cannot be silently carried into another dataset.
The initial calculation uses the disclosed 100 scenarios at 95% confidence. You can edit the confidence level and scenario counts. When the required worst-tail probability cuts through a scenario group, the worksheet includes only the proportional boundary mass needed for the exact tail average. It does not simply select every loss at or above the VaR threshold.
What the comparison establishes
The experiment establishes a mathematical possibility: two supplied loss distributions can share the same selected quantile and have different average upper-tail losses. It identifies exactly where that information sits in the authored scenarios. The result does not depend on a proprietary model or access to an institutional data service.
It does not establish that a real portfolio has a 5% chance of losing either amount. In the worksheet, the scenario weights are assumptions. Calling them probabilities does not make them empirically justified. A real risk estimate needs a defensible process for generating and weighting outcomes.
Expected shortfall is not a ceiling either. An average of bad outcomes can sit below the largest outcome in its tail, and the largest supplied outcome can sit below a loss that the scenario design omitted. A report should preserve these distinctions rather than letting a more sophisticated term imply a stronger guarantee.
For that reason, a useful review asks what would change the answer. Which positions, shocks, dependencies or valuation assumptions are missing? Are close-out costs included? Does the stated horizon allow the positions to be changed in the assumed way? Those questions concern the economic meaning of the distribution.
How the scenarios enter the analysis
A historical scenario method starts from selected past observations and maps them into the current question. A simulated method generates outcomes from chosen assumptions. A stress exercise may deliberately emphasise particular adverse conditions. These designs can serve different purposes and need different explanations.
DN’s example is an authored scenario exercise. It has no market-sampling claim at all. That simplicity is useful for learning the arithmetic, but a practitioner should not replace their data design with our toy distribution. The worksheet is a way to inspect a stated method, not a ready-made risk estimate for an account.
When comparing reports, request the sampling window, observation frequency, scenario weights and treatment of changing positions. If two reports use different position sets or different dates, a change in ES may reflect those inputs rather than an improvement in the estimator.
Preserve losses and gains using one sign convention. This article treats positive numbers as losses. A data source that records profits as positive and losses as negative must be transformed deliberately before using a loss-quantile calculation. Reversing that convention can move attention toward the wrong end of the distribution.
A risk-report review card
The following questions make a reported VaR or ES number easier to assess. They can be answered before commissioning a more complex system, and they provide a useful handover when several people contribute to a report.
| Field | What to preserve |
|---|---|
| Position set | Instruments, quantities, valuation time and the exposures included. |
| Loss definition | Currency or percentage basis, sign convention, fees and close-out treatment. |
| Horizon | The future period the loss distribution is intended to describe. |
| Scenario construction | Historical sample, simulation assumptions or authored stress design. |
| Weights and confidence level | The probability mass assigned to each outcome and the selected threshold. |
| Quantile and tail conventions | Order statistic or interpolation, plus treatment of mass at the boundary. |
| Unrepresented risks | Known omissions and the further evidence needed to assess them. |
For a portfolio, the scenarios should describe the joint outcomes the report intends to measure. Summarising each holding separately does not automatically preserve how their losses occur together. A reader needs to know whether the report contains a joint portfolio calculation or only a collection of individual metrics.
The same principle applies when a risk figure is placed inside an AI-generated summary. Retain the horizon, unit, confidence level and method beside the number. A fluent sentence that drops one of those conditions can change what the original calculation meant.
Where institutional software fits
Repositories such as Goldman Sachs’ GS Quant make quantitative-finance code and interfaces inspectable. Its source includes statistical functions for supplied series, while service-backed requests have their own access requirements. DN’s comparison uses independently written arithmetic and does not imply access to Goldman’s institutional services.
Software can implement a chosen calculation consistently. It cannot decide, solely from a column of numbers, whether the column represents the right positions, time horizon or market conditions for a particular decision. The most useful first deliverable is often the calculation contract and an inspectable small example.
DN’s GS Quant access guide examines the separate question of what can be done with local code and which routes depend on service access. Keeping those questions separate helps a reader evaluate a tool without confusing institutional authorship with certification of their own risk model.
Methodology and practical next step
The original runner constructs both 100-element loss arrays, sorts them, selects the 95th ordered observation and averages the largest five values. Independent expected results verify the two thresholds and two tail averages. The source pack preserves the arrays, executable calculation, outputs and stated conventions.
No market data, portfolio pricing model, liquidity model or Goldman runtime was used. There is no claim of regulatory compliance, a recommended allocation or a forecast of future losses. The calculation answers the narrow comparison its authored inputs were designed to show.
To apply the method to a report, first reproduce one reported threshold from its supplied data and conventions. Then inspect what happens beyond it. If the report cannot provide that information, record the gap instead of filling it with an assumed distribution.
The DN Crypto Scenario Lab provides related exercises for understanding assumptions. For a defined research workflow, the Research Desk can scope an evidence and method review that preserves the inputs, the calculation and the questions that remain unresolved.
Download the dated source and scenario record (JSON) · Download the reproducible calculation pack (ZIP).
Frequently asked questions
What is the difference between value at risk and expected shortfall?
VaR identifies a quantile of a stated loss distribution. Expected shortfall summarises losses in the selected upper tail. The article’s 100 equal-weight scenarios make the 95% tail exactly five observations.
Why do both examples have a VaR of 100?
DN uses the inverse empirical distribution, selecting the 95th ordered observation from 100 equal weights. That observation is 100 in both authored arrays; the five observations above it differ.
Why is the tail average 200 in one case and 2,000 in the other?
Each upper tail contains five identical losses: five of 200 or five of 2,000. Their averages therefore equal those values. That equality with the maximum is specific to this fixture.
Is expected shortfall the maximum possible loss?
No. It is an average under the stated distribution and tail convention. Larger individual losses can occur within a tail, and the scenario design can omit possible outcomes.
Can I compare this directly with a bank’s VaR figure?
Only after reconciling the position set, units, horizon, confidence level, scenario construction, weights and quantile convention. DN’s fictional exercise is not a bank-risk calculation or a regulatory capital assessment.
Continue your research
Primary sources and evidence
- BIS market-risk terminology. Conceptual distinction between VaR and expected shortfall; cited as terminology, not current jurisdictional capital guidance. Checked 2026-11-28.
- GS Quant pinned README. Quantitative-finance toolkit context and the distinction between source availability and service access. Checked 2026-11-28.
- GS Quant statistical source. Local statistical-function context; this DN calculation does not run GS Quant or claim equivalence with a Goldman service. Checked 2026-11-28.
Editorial disclosure: This research explains documented capabilities and original worked examples. Inclusion does not imply endorsement, a commercial relationship or verified trading performance. No placement in this article was purchased.
Corrections and updates: Send source-backed corrections to press@decentralised.news. This 2027 edition was checked on 28 November 2026; documentation, permissions and product availability can change.




