Skip to content

Percentile

A percentile is a threshold at a probability level. Read loss percentiles, distinguish tail averages, and compare interpolation with the empirical inverse CDF.

A percentile is a quantile with its probability level expressed out of 100. The 95th percentile is the threshold associated with probability p=0.95p=0.95. The level is a percentage; the threshold retains the variable's units. A 95th-percentile loss of USD 95 therefore contains two different pieces of information, even though both happen to use the number 95.
For a population with cumulative distribution function F(x)=P(X≤x)F(x)=\mathbb{P}(X\le x), use the lower generalised inverse convention:
Q(p)=inf⁡{x:F(x)≥p},0<p<1.Q(p)=\inf\{x:F(x)\ge p\},\qquad 0<p<1.
The 100p100pth percentile is Q(p)Q(p). For a continuous, strictly increasing CDF, F(Q(p))=pF(Q(p))=p: exactly that share of probability lies at or below the threshold. With discrete outcomes, the CDF may jump past pp, so the equality need not hold. The 50th percentile gives a median; the inverse convention selects the lower endpoint if there is an interval of possible medians.

A loss limit is not the average bad day

Imagine a deliberately simple synthetic one-day loss model: LL has a uniform distribution between USD 0 and USD 100. Positive values mean losses, and equal-length intervals have equal probability. On that support, FL(l)=l/100F_L(l)=l/100, with ll measured in USD. Therefore,
QL(0.95)=USD 95,P(L>USD 95)=0.05.Q_L(0.95)=\text{USD }95,\qquad \mathbb{P}(L>\text{USD }95)=0.05.
A desk using this model could call USD 95 its one-day 95% Value-at-Risk. It is a loss threshold under the assumed model, not a maximum loss or a promise about future trading days.

The overall mean loss is USD 50. Conditional on exceeding USD 95, the loss is uniform between USD 95 and USD 100, so its mean is

E[L∣L>USD 95]=95+1002 USD=USD 97.5.\mathbb{E}[L\mid L>\text{USD }95] =\frac{95+100}{2}\text{ USD} =\text{USD }97.5.
That upper-tail average equals 95% expected shortfall in this continuous model. The percentile only locates the boundary; it does not describe the severity of losses beyond it. For distributions with probability mass at the boundary, expected shortfall requires allocating the appropriate fraction of that mass rather than blindly conditioning on strict exceedance.
For synthetic uniform one-day losses USD 0 to USD 100, cumulative probability reaches 95% at USD 95; the upper-tail mean is USD 97.5. For the separate sample USD 2, 4, 6, 8 and 10, the 90th percentile is USD 9.2 by R type 7 or USD 10 by empirical inverse.
For synthetic uniform one-day losses USD 0 to USD 100, cumulative probability reaches 95% at USD 95; the upper-tail mean is USD 97.5. For the separate sample USD 2, 4, 6, 8 and 10, the 90th percentile is USD 9.2 by R type 7 or USD 10 by empirical inverse.
Original synthetic examples. The upper plot reads a population percentile from a CDF; the lower strip compares two sample estimation rules. Filled dots in the lower strip are observations.

Five observations do not define a unique interpolation rule

Now put the population model aside. Suppose the only data are five equally weighted observed losses, sorted into USD 2, 4, 6, 8 and 10. A sample quantile needs an explicit calculation convention.
Using R type 7 linear interpolation, set h=1+(n−1)ph=1+(n-1)p. At n=5n=5 and p=0.9p=0.9, h=4.6h=4.6, so interpolate 60% of the way from the fourth observation to the fifth:
Q^7(0.9)=8+0.6(10−8)=USD 9.2.\widehat Q_7(0.9)=8+0.6(10-8)=\text{USD }9.2.
By contrast, the empirical inverse-CDF rule takes the first observed value whose cumulative sample proportion reaches 90%. At USD 8, that proportion is 4/5=80%4/5=80\%; at USD 10, it is 100%. This rule therefore gives USD 10. R documents both rules, among nine supported algorithms.
Neither method makes exactly 90% of these observations fall below its answer. Four of five observations lie strictly below USD 9.2, and four lie strictly below USD 10. At or below USD 10, all five are included. An interpolated sample estimate need not itself be an observation or invert the empirical CDF exactly. NIST's discussion explains why the chosen estimation rule belongs with the reported percentile.

Read the boundary, units and horizon together

Ties make the “percentage below” shortcut especially unreliable. If a loss distribution assigns 96% probability to USD 0 and 4% to USD 100, its lower-inverse 95th percentile is USD 0. Zero probability lies strictly below it, 96% lies at or below it, and 4% lies above it. The percentile is well defined even though none of those shares equals 95%.

A percentile rank asks the reverse question: given a value, what share lies below it? That share needs its own convention for including ties. It is not the same object as the percentile threshold.

For a risk report, specify whether the variable is a loss or a return: high loss percentiles identify bad outcomes, while downside return risk sits at low return percentiles. Include the horizon, currency or return units, probability weights and sample method. A short historical sample also leaves substantial estimation uncertainty; changing the interpolation method cannot supply missing tail observations or establish that tomorrow follows the same distribution. The Empirical CDF and QQ-plots lesson develops sample proportions and distribution diagnostics; its full text requires membership, with a public preview available.

Sources

Last updated
  • percentiles
  • quantiles
  • loss thresholds
  • sample statistics
← Back to the glossaryBack to top ↑