RobustnessIntermediate25 min read

The worst loss you observed is not the end of the tail

Separate observed trading losses, model-based tail extrapolation and designed stress scenarios. Read empirical quantiles without mistaking a sample maximum for a limit.

An iceberg in a calm dark blue sea with a small illuminated cream tip and a much larger shadow beneath the waterline
Conceptual photograph: visible evidence and the unobserved part of a distribution are different things.

The last row is a boundary of the file

The risk summary contains a reassuringly precise sentence: the largest loss was 120 units. The number can be correct, independently reconciled and still misunderstood. It describes the largest loss in the observations supplied. It does not say that 121 is impossible, that the next loss will be smaller or that an interruption in execution cannot produce a different outcome.

The temptation is to turn the end of the historical record into the end of the risk distribution. A spreadsheet makes that easy because its largest value has a visible cell, while the unobserved tail has no rows. The absence of a larger observation can feel like evidence of a limit, even when the data-generating process contains no such limit.

The sample maximum is an observation, not an economic guarantee. A statistical model can explore beyond it, but that exploration introduces assumptions. A designed stress can examine a severe combination of conditions, but severity alone does not establish probability. These are three useful forms of investigation when their claims remain distinct.

This article uses invented signed loss observations and separate hypothetical tail models. None is a result of a TradeAndRoll robot or an account forecast. The aim is to make a risk discussion more precise: identify what is observed, what is extrapolated and what is deliberately stressed, then ask what each layer contributes to a research decision.

Three lenses should produce three kinds of statement

An empirical statement reports a property of the supplied record under a declared convention. For example, the nineteenth ordered observation in a twenty-observation sample is ninety units. Another reviewer can verify that statement by sorting the same values. Its strength is direct traceability; its limitation is the finite and possibly selected history it describes.

A model-based statement describes a distribution fitted or assumed under specified conditions. It might estimate a high quantile using a tail family, a threshold and parameter estimates. The calculation can extend beyond observed values, but the result inherits uncertainty from the model choice, the inputs and the stability of the process. A smooth curve does not turn those assumptions into observations.

A stress statement describes the result of a designed scenario. It can combine a market loss with wider spreads, delayed execution or a shared portfolio shock. A stress need not be assigned a probability to be informative. It asks how a system behaves under the stated conditions, not necessarily how often those conditions will occur.

Keep the grammar aligned with the evidence. The record contains is different from the model implies, and both differ from this scenario produces. A report that uses the same confident wording for all three invites readers to treat hypothetical extrapolation as an account fact or a severe scenario as a calibrated forecast.

The layers can challenge one another. An observed event outside a model’s plausible range can motivate investigation. A stress can reveal a mechanism absent from the model. A model can identify where the empirical sample provides little direct information. Their value comes from this interaction, not from averaging three unlike numbers into one reassuring risk score.

Define a loss variable before discussing its tail

For the main empirical example, define loss as a signed amount in one account currency over a fixed observation unit. Positive values are losses, negative values are gains and zero is no change. We retain gains in the sample because the distribution describes all observations, not only those selected for being unfavorable.

Use the following twenty invented values in ascending order: minus forty, minus thirty, minus twenty, minus ten, zero, five, ten, fifteen, twenty, twenty-five, thirty, thirty-five, forty, forty-five, fifty, fifty-five, sixty, seventy, ninety and 120. They are teaching data, with no claim about a market’s actual loss frequency or a system’s profitability.

The observation unit determines the question. A loss per completed trade differs from a daily marked portfolio loss. The largest trade loss does not describe the worst simultaneous account movement when positions overlap. A daily series includes the combined effect of positions and accounting within its valuation interval, while a trade series groups events differently.

Keep the currency, horizon, sizing rule and cost treatment constant within a comparison. A loss of one hundred at one exposure is not automatically comparable with one hundred at ten times the exposure. Standardization can help answer a separate question, but it must not erase the actual account amounts that the research is trying to understand.

The ledger-reconciliation discussion is a useful prerequisite when the loss series itself is uncertain. Tail analysis cannot repair a missing fee, a duplicated transaction or a sign reversal. Before fitting a distribution, verify that large positive values really represent large losses under the declared convention.

The empirical tail becomes sparse very quickly

Adopt a nearest-rank empirical quantile convention: for a requested percentile p in a sample of n observations, select the ordered position obtained by rounding n times p upward to an integer. With twenty observations and p equal to 0.95, that position is nineteen. The empirical ninety-fifth percentile is therefore ninety units.

The largest observation is 120. The mean of the worst five percent by rank is also 120 because five percent of twenty contains just one observation. This is a clearly defined descriptive tail average. It should not be presented as a precisely estimated population expected shortfall merely because a report uses a familiar risk label.

Other quantile interpolation conventions can produce a different numerical estimate from the same twenty values. That is not necessarily a software defect. The report should declare its convention and preserve the ordered observations so the difference can be understood. Here we use nearest rank to make every step inspectable by hand.

One observation can carry an apparently sophisticated tail statistic. If the largest value were corrected from 120 to 100, our worst-five-percent average would become 100. If another valid observation of 200 were later added, the empirical summary and its rank definitions would need recalculation. The earlier statistic did not provide a bound against that new possibility.

The sample is intentionally small to expose the mechanism, but a long file can have the same problem at a sufficiently extreme percentile. Reporting more decimal places does not add tail observations. Show how many values actually support the statistic, especially when comparing risk estimates that look stable only because the display rounds away their uncertainty.

Twenty hypothetical signed losses have nearest-rank ninety-fifth percentile ninety at rank nineteen and maximum 120 at rank twenty; the worst five percent contains one observation
Positive values denote losses and negative values gains. The empirical tail statistic is traceable, but its most extreme five percent contains only one invented observation.

Coverage and confidence are two different probabilities

There is a useful probability calculation that explains why a sample maximum should not casually become a population limit. Assume, solely for this calculation, independent observations from one unchanged continuous distribution. Let its true ninety-fifth percentile be the level below which ninety-five percent of observations fall.

One observation has probability 0.95 of falling below that level. By independence, all n observations have probability 0.95 raised to n of falling below it. Therefore the probability that the sample maximum reaches or exceeds the true ninety-fifth percentile is one minus 0.95 raised to n. This is a sampling statement under the assumptions, not a probability that the next loss is bounded by the maximum already observed.

For twenty observations, the result is approximately 64.15 percent. For fifty-nine, it is approximately 95.15 percent. The latter illustrates a one-sided nonparametric tolerance-limit calculation: in repeated samples under the assumptions, the maximum covers at least ninety-five percent of the population with that sampling confidence. The classical tabulation gives fifty-nine for ninety-five-percent coverage and ninety-five-percent confidence. One-sided tolerance-limit tables.

Coverage is not confidence, and neither is a worst-case bound. NIST’s tolerance-limit documentation explicitly separates the proportion to be covered from the confidence associated with that coverage. Tolerance Limits. A confidence statement about covering ninety-five percent still leaves a population tail beyond the covered proportion; it does not eliminate extreme losses.

Do not turn fifty-nine into a recommendation that fifty-nine trades are enough. Trading observations can be dependent, selected retrospectively, differently sized or drawn from a changing environment. The calculation also says nothing about whether ninety-five-percent coverage is appropriate for a particular decision. Its value here is conceptual: two percentages answer different questions, and a sample maximum needs assumptions before supporting either.

A probability derived under independence does not become valid merely because the file contains many rows. If several observations belong to one shared market event, their count can exaggerate the distinct information relevant to this argument. The right response is to examine dependence and the observation unit, not to replace n with an arbitrary smaller number chosen to produce a comfortable conclusion.

Under an unchanged continuous independent sampling model, the chance that the sample maximum covers the true ninety-fifth percentile is 64.15 percent for twenty observations and 95.15 percent for fifty-nine
A hypothetical sampling calculation, not a trading-sample adequacy rule. The coverage target is ninety-five percent; the displayed percentages describe sampling confidence.

A tail model starts by declaring what lies beyond a threshold

A model can represent the distribution of excess loss above a chosen threshold. Instead of asking one family to describe every ordinary observation and every extreme, the research separates how often the threshold is exceeded from the size of the excess when it is exceeded. These are two components of a model, and both need support in an empirical application.

The generalized Pareto family is one possible mathematical model for nonnegative excesses. Its shape and scale affect how the modeled tail extends. SciPy documents the distribution and its exponential special case when the shape parameter is zero. Generalized Pareto distribution. Naming the family does not establish that it fits a particular robot’s losses.

The threshold is a modeling boundary, not a new loss origin for the account. If a loss threshold is twenty and an excess is ten, the corresponding total loss is thirty. A model of excesses must restore the threshold when reporting total-loss quantiles. Forgetting that distinction can produce an apparently precise estimate in the wrong units or location.

The conditional tail also needs the probability of entering it. A ninety-ninth percentile of excesses conditional on already exceeding the threshold is not automatically the ninety-ninth percentile of all observations. To connect them, the model must account for the threshold-exceedance probability. Otherwise a conditional calculation can be mislabeled as an unconditional account risk estimate.

The examples in the next section are deliberately separate from the twenty-value sample. We choose their parameters to illustrate sensitivity. They are not fitted to those observations, not estimates of a Forex loss process and not a recommended calibration. Keeping that separation explicit prevents a teaching calculation from acquiring an undeserved empirical interpretation.

Two chosen tail shapes tell different stories farther out

For a separate hypothetical distribution, assume a total-loss threshold of twenty units, a probability of 0.1 of exceeding it and a generalized Pareto excess scale of ten. Compare two chosen shape parameters: zero and 0.25. We are holding the threshold, exceedance probability and scale fixed to isolate the role of shape.

For a total-loss ninety-ninth percentile, the unconditional tail probability is 0.01. Relative to the 0.1 chance of entering the modeled tail, the conditional exceedance probability is 0.1. With shape zero, the excess is ten times the natural logarithm of ten; restoring the threshold gives approximately 43.03 units. With shape 0.25, the total is twenty plus forty times the quantity ten to the power 0.25 minus one, approximately 51.13 units.

At the 99.9th percentile, the unconditional tail probability is 0.001 and the conditional exceedance probability is 0.01. The same chosen models produce approximately 66.05 and 106.49 units respectively. The shape difference matters more as the calculation moves farther into the tail. These are outputs of the stated mathematical models, not observed losses or forecasts.

Extrapolation can amplify a modest-looking parameter difference. The numerical example does not identify which shape is appropriate for any real system. It demonstrates why a single fitted line should not be presented without model and parameter uncertainty. A close-looking fit in an ordinary range need not imply agreement at a much more extreme probability level.

The generalized Pareto cumulative-distribution reference describes the shape-and-scale relationship used in this calculation. NIST generalized Pareto reference. Our threshold, probabilities, parameter choices and computed comparison are original hypothetical inputs for this article, not a reproduction of empirical findings from that reference.

A model quantile is conditional on the model being an adequate description. It cannot tell you that losses above it are impossible. Even inside the model, a ninety-ninth percentile leaves one percent beyond that level. Outside the model’s assumptions, the stated probability itself may be wrong. Both limitations belong beside the number, rather than in a vague footnote detached from the decision.

Separate hypothetical generalized Pareto models with shape zero and 0.25 produce total-loss quantiles 43.03 versus 51.13 at ninety-nine percent and 66.05 versus 106.49 at 99.9 percent
Chosen parameters for sensitivity only: threshold twenty, exceedance probability 0.1 and scale ten. These models are not fitted to the twenty-observation example.

Choosing the threshold changes the evidence available to the model

A lower threshold supplies more excess observations but may include behavior that the chosen tail family does not describe well. A higher threshold focuses on more extreme values while leaving fewer observations from which to estimate parameters. The tradeoff cannot be resolved by declaring that more data is always better or that a higher threshold is automatically more rigorous.

In an empirical study, examine how the estimated behavior changes across defensible thresholds and how many distinct exceedance episodes support each one. The objective is to understand sensitivity and the model’s plausible region, not to search for the threshold that produces the smallest reported risk estimate. A threshold chosen after inspecting the desired answer is another unrecorded research choice.

A threshold diagnostic is not independent validation when it uses the same selected data. It can reveal instability or a poor fit and guide further investigation. It does not erase retrospective selection of the robot, the loss horizon or the model family. Preserve those decisions in the research record so the tail calculation remains connected to the process that produced its inputs.

The chosen threshold also interacts with units and exposure. A fixed currency threshold can select different economic regimes when position size changes. A normalized threshold answers a different question and needs a meaningful denominator. Neither should be changed silently while comparing models or periods.

For the small invented twenty-value sample, we deliberately do not fit a generalized Pareto model. Its role is to expose the sparseness of an empirical tail. The separate chosen distributions show what extrapolation assumes. Maintaining that separation is more informative than forcing every teaching dataset to support a fitted curve that looks professional but has weak evidential meaning.

An uncertain parameter produces an uncertain extrapolation

Suppose two analysts agree on the loss definition, threshold and model family. They can still obtain different tail estimates because their samples support different parameter estimates. A point estimate compresses that uncertainty into one number. The compression is convenient for a chart but can be particularly misleading where the calculated quantile reacts strongly to shape.

There are several distinct questions. How variable would the parameter estimate be across comparable samples? How sensitive is the result to reasonable preprocessing choices? How much does another plausible distribution change the answer? How might a changing economic mechanism invalidate both distributions? A confidence interval derived within one family generally does not answer all these questions at once.

Parameter uncertainty is narrower than uncertainty about the model itself. An interval can be calculated correctly under a model that omits an important mechanism. Repeated resampling of the same observations also cannot manufacture an execution failure that the original file never represented. Numerical sophistication should make these boundaries easier to describe, rather than less visible to the reader.

Consider the two chosen tail shapes from the preceding example. They are sensitivity cases, not the endpoints of a confidence interval. There is no fitted estimator, sampling method or confidence level behind their range. Calling the interval from 66.05 to 106.49 a confidence band would invent a statistical interpretation that the calculation does not possess. Its honest label is the range across two specified hypothetical models at the 99.9th percentile.

When reviewing a fitted study, ask for the procedure that produced any uncertainty band and the assumptions it preserves. Check whether model selection and threshold selection were repeated within the procedure or treated as if they were fixed in advance. The resulting evidence may still be useful, but the stated uncertainty should match what was actually varied. Keeping those choices visible is more informative than demanding one universal error bar for every source of ignorance.

Clusters of losses change what a row count means

A market disturbance can create several unfavorable observations close together. Those rows may be valid accounting records, yet they do not necessarily represent independent encounters with the tail. For example, several systems can lose during the same currency movement, or one position can be split into several recorded executions. Counting the records does not establish how many separate economic episodes they contain.

This matters directly to the maximum-coverage calculation. Its multiplication of 0.95 across observations relies on independence and one unchanged distribution. A cluster with a shared driver can violate that argument even if every individual row has been measured correctly. Replacing the nominal sample size with an unexplained discount factor does not repair the missing assumptions.

Preserve both accounting detail and event context. The detailed records help reconcile amounts and costs. The event view helps investigate shared causes, repeated exposure and temporal concentration. Neither should overwrite the other. A single event total can hide different failure mechanisms, while a list of individual trades can hide the common shock linking them.

An event definition also needs discipline. If the analyst draws event boundaries only after seeing the largest losses, those boundaries become another selected research choice. Document why observations belong together, which clock is used and what happens to positions crossing the boundary. Alternative defensible definitions can be compared explicitly rather than quietly choosing the one with the most reassuring result.

Clustering is relevant to consequences as well as inference. Several moderate losses close together can leave less time for investigation and can coincide with reduced liquidity or simultaneous exposure elsewhere. A marginal distribution of isolated observations does not describe that sequence. The tail study should say whether it concerns one loss amount, an episode total or the path of account outcomes over a stated horizon. Each can support a different question without being a substitute for the others.

A portfolio tail depends on which losses happen together

Suppose two hypothetical systems each have a large adverse observation: seventy units for one and sixty for the other. If both occur within the same portfolio observation interval and the other contributions are zero, the combined loss is 130. If they occur in different intervals with zero contributions from the other system, the largest combined loss among those two intervals is seventy. The individual loss amounts alone cannot distinguish these situations.

This deliberately simple comparison is separate from the twenty-value sample and the chosen tail models. It is an accounting illustration of alignment, not an estimated joint distribution. It shows why matching currency, clock and valuation convention matters before interpreting the most adverse portfolio observations.

Individual tail summaries do not determine the portfolio tail. Adding two reported ninety-ninth percentiles does not generally produce a portfolio ninety-ninth percentile. Nor does selecting the larger of two sample maxima recover the maximum combined account loss. A joint series or an explicit dependence model is needed to connect component behavior to the aggregate question.

Historical alignment is useful evidence but remains finite. Two systems may have avoided simultaneous large losses in the available period because a shared stress condition did not occur, because exposure was small or because the relevant observations were missing. The absence of coincidence is not the same as a demonstrated structural protection against it. Investigate the mechanisms that could make the losses coincide, including common currency exposure, execution venues and trading hours.

The profit-concentration analysis offers a related way to think about shared events on the profitable side. For the loss tail, preserve an equally clear event ledger. Separate effects that genuinely offset from apparent diversification created by different timestamps, inconsistent price marks or omitted costs. A portfolio is evaluated through a common account definition, not through an attractive arrangement of separate summary statistics.

Execution conditions can change the loss mechanism

A modeled tail inherits the execution assumptions embedded in its observations. If every historical loss assumes an immediately available price and unchanged costs, the distribution may describe a narrower process than the one the researcher intends to study. Extending that distribution farther outward does not automatically add the missing mechanics of delayed or unavailable execution.

Distinguish a larger market movement from a different execution process. The former can make an otherwise comparable position lose more. The latter can change which prices were obtainable, whether an intended reduction occurred and how long exposure remained. The two can interact, so a cost added as a fixed average may be especially uninformative in the scenarios where liquidity and delay matter most.

A tail model cannot extrapolate a mechanism that its inputs never represented. This does not mean every rare mechanism is quantifiable from the available material. It means the research report should identify which mechanisms are present, simplified or absent. That inventory prevents an impressive statistical calculation from being mistaken for a comprehensive account simulation.

For example, a hypothetical position might have a marked market loss under one valuation rule while its realizable exit depends on available prices and timing. A model of the marked change answers one question. A scenario that estimates an exit under specified stressed conditions answers another. Neither becomes more reliable by using the other’s label. The distinction should remain visible in the loss definition and the figure caption.

Currency conversion can create another mismatch when component losses are expressed in different units. Convert them using a declared scenario convention before aggregation, and distinguish a conversion effect from the original market effect. Likewise, identify whether spreads and fees are already included. The next example uses a deliberately separated cost ledger; adding its components to an already all-inclusive loss would count some consequences twice. Clear accounting is a prerequisite for meaningful stress, even when every input is hypothetical.

A designed stress can be useful without an assigned probability

Consider a third, independent teaching example. Define a hypothetical scenario ledger with eighty units of market loss under its stated base valuation, fifteen of incremental spread cost, twenty-five of incremental delay cost and ten of incremental conversion effect. All amounts use the same account currency. For this example, the components are defined as nonoverlapping additions, so their total is 130.

The result is a scenario total, not a percentile, confidence limit or expected shortfall. No probability has been assigned to the joint conditions. The number can still expose a question worth investigating: how much of the adverse outcome comes from the market movement, and how much comes from assumptions about execution and conversion? That decomposition can direct the next research effort.

A stress is a specified question before it is a calculated answer. Write down the starting exposure, valuation horizon, assumed changes and treatment of each component. State which combinations are economically coherent. Merely choosing the worst historical value for every input and summing them can create an internally inconsistent scenario, while taking historical averages can conceal the interaction the exercise was meant to examine.

Severity does not supply a probability that the scenario designer has not estimated. Calling 130 a one-in-a-thousand loss would require a separate, justified probability argument. Calling it a guaranteed ceiling would require an actual bound on all relevant mechanisms. Neither claim follows from adding four chosen numbers. A useful stress report can remain explicit about this limitation without abandoning the investigation.

The stress result should also be compared with the assumptions of the empirical and modeled layers. If the fitted loss series already includes spreads and delays, the scenario must specify which incremental changes remain additional. If the series excludes them, the absence needs to be visible before comparing the totals. Reconciliation between layers is about meaning and units, not forcing three distinct exercises to return the same amount.

A separate hypothetical stress ledger adds market loss eighty, incremental spread fifteen, incremental delay twenty-five and incremental conversion ten to total 130 units, with no probability assigned
Designed scenario, separate from both earlier examples. The components are defined as nonoverlapping in one currency; the total has no assigned occurrence probability.

Future observations should challenge a frozen research statement

A tail analysis becomes easier to evaluate when its claims are recorded before the next observations arrive. Preserve the loss definition, sample boundary, empirical convention, model assumptions and scenario designs. Then a later observation can be compared with an identifiable earlier statement. Without that reference, the model can be revised after every surprise until its apparent accuracy is impossible to assess.

Suppose a future loss exceeds the previously observed maximum. That fact updates the empirical record. It does not by itself prove a coding error or invalidate every model with an unbounded tail. The relevant questions are whether the new observation was measured consistently, whether its mechanism was represented and how it relates to the probabilities or scenarios that were actually stated.

Exceedance frequency and exceedance pattern are different diagnostics. A reported quantile implies a marginal tail frequency under the model, but the timing and clustering of exceedances can reveal additional problems. An aggregate count that looks plausible can conceal several events concentrated in one regime. Conversely, a small future sample can produce an unusual count without establishing a permanent change. Keep the evidence proportionate to the observation period.

Predeclare how new observations are categorized and when a review occurs. This is a research governance decision, not an automatic instruction about account exposure. Distinguish correction of an accounting error, update of an unchanged model and replacement of a model whose assumptions are no longer credible. Each action changes a different part of the evidence record and should leave a traceable explanation.

When revising a model, retain the earlier version and show which new information prompted the change. Comparing only the latest fitted curve with the full history can blur the difference between learning from new evidence and explaining the same evidence retrospectively. A useful monitoring record makes that difference inspectable, including the periods when the appropriate conclusion is that the available data do not yet discriminate between competing explanations.

Ask each result to carry its own evidence label

Before relying on a tail result, write a plain sentence describing its status. The empirical sentence identifies the supplied sample and calculation convention. The model sentence identifies the assumed distribution, threshold and uncertainty. The stress sentence identifies the designed conditions and whether any probability was estimated. This small editorial discipline helps prevent a reader from granting a calculation more authority than it has earned.

For the examples here, the empirical ninety-fifth percentile is ninety under nearest rank, and the sample maximum is 120. The separate chosen models give different extrapolated quantiles because their shapes differ. The independent stress ledger totals 130 under its specified additions. These numbers must not be ranked as three estimates competing to reveal one true risk amount; they answer different questions using different premises.

An AI assistant can help make those premises inspectable. Ask it to reconstruct an ordered sample, identify the quantile convention, separate conditional from unconditional probabilities and explain which assumptions a stress adds. Require it to preserve the input record and label every invented example. A fluent explanation without reproducible arithmetic or a clear evidence boundary is insufficient for this kind of research.

The useful outcome is a clearer research decision, not a reassuring extreme-loss number. The next step might be better accounting, a longer comparable observation period, investigation of a shared exposure or a scenario about an execution mechanism absent from the model. The analysis earns its place by showing why that step addresses an actual uncertainty.

The free TradeAndRoll demo provides ten Forex systems with rules, source code and the demo’s market CSV files for independent study. Use those materials to define a reproducible question about loss measurement and assumptions before drawing conclusions about a portfolio. The figures in this article are hypothetical teaching examples, not evidence of those systems’ future losses or returns. Research can improve the quality of a decision while leaving the future uncertain.

Back to the Blog