Build cumulative probabilities from ten possible losses, locate two quantiles and compare each threshold with the mean and the average of the worst outcomes. Then test how a tie changes the interpretation and why a sample-quantile calculator may answer a different question.
You need to order numbers, work with percentages and calculate an arithmetic average. The expected-value glossary explains probability weights; this lesson restates the steps needed here. Probability measures likelihood from 0 to 1: 10% equals 0.10. Mutually exclusive cases cannot occur together, and exhaustive cases leave none out. Their probabilities must sum to 1.
Let L be a random variable: a number assigned to each possible outcome. Here L is a one-month loss in currency units, abbreviated CU. Positive means money lost, zero means no loss and a negative value would mean a gain. Larger L is therefore worse. This sign convention matters: an upper loss quantile is different from an upper return quantile.
Assume exactly ten possible one-month losses: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 20 CU. Each has probability 10%, and no other outcome is possible in this illustrative model. This is the entire declared finite population distribution, not ten historical observations used to estimate an unknown distribution. Equal probabilities are an assumption, not a consequence of listing ten numbers.
The values are already in ascending order. Keep their probabilities attached if you sort another list. The cumulative distribution function, abbreviated CDF, adds probability up to and including a threshold: F(x) = P(L ≤ x). P means probability and ≤ includes equality. Thus F(0) = 10%, F(1) = 20%, F(2) = 30%, F(3) = 40%, F(4) = 50%, F(5) = 60%, F(6) = 70%, F(7) = 80%, F(8) = 90% and F(20) = 100%. Between possible values, F stays flat.
Choose the generalized-inverse convention qₚ = inf{x : F(x) ≥ p}, for a probability level 0 < p < 1. The symbol ≥ means at least. The braces collect thresholds meeting that condition, and inf means their greatest lower bound; here it is the smallest qualifying threshold. This is called a generalized inverse because a CDF with jumps or flat parts need not have an ordinary inverse.
For p = 0.80, F(6) is only 70%, while F(7) reaches 80%. Every smaller threshold has cumulative probability below 80%, so q₀.₈₀ = 7 CU. For p = 0.90, the first threshold reaching 90% is 8 CU, so q₀.₉₀ = 8 CU. With ten equally likely cases, these are the eighth and ninth ordered values. Counting positions this way would fail for unequal case probabilities; cumulative probability is the general procedure.
Interpret q₀.₈₀ carefully: 80% of the model probability is at or below 7 CU, 70% is strictly below it and 20% is strictly above it. The 10% probability at 7 CU belongs in the at-or-below total. In this model the larger losses are 8 and 20 CU. A threshold of 7 CU therefore neither rules out large losses nor describes their size.
The mean loss weights every loss by its probability. Equal weights let us add the ten losses and divide by ten: (0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 20) / 10 = 56 / 10 = 5.6 CU. This average across all possibilities differs from the 80% quantile of 7 CU.
The worst 20% of this particular distribution consists of the two largest equally likely cases, 8 and 20 CU. Their average is (8 + 20) / 2 = 14 CU. The quantile 7 CU marks where the remaining upper 20% begins; it is not that upper group’s average. This simple comparison is enough to distinguish location from severity. It does not supply a general rule for allocating probability at a tied boundary.
Change only the largest possible loss from 20 to 100 CU, retaining every probability and the one-month horizon. The 80% and 90% quantiles remain 7 and 8 CU, because the first eight and nine cumulative positions are unchanged. The mean becomes 13.6 CU and the worst-20% average becomes 54 CU. A fixed quantile can therefore coexist with a very different upper-loss severity.
A discrete distribution assigns positive probability to individual values, so its CDF jumps. The generalized-inverse quantile ensures at least p of the probability is at or below the threshold, and at most p is strictly below. A jump may pass p rather than land exactly on it. Do not describe a quantile as always having exactly p strictly below it.
The numbers in this lesson are a specified population distribution. If they were instead a sample of observations, a chosen estimator might interpolate between them. NIST documents several sample methods. For example, its R6 position is p × (n + 1), where n is sample size. At p = 0.80 and n = 10 the position is 8.8. Interpolating 80% of the way from the eighth value, 7, to the ninth, 8, gives 7.8 CU. This different sample calculation does not contradict q₀.₈₀ = 7 CU for the declared population convention.
For a real report, ask for the measured quantity, units, horizon, sign, probability level and quantile method. Also ask whether probabilities were specified by a model or estimated from a sample. Historical frequency is not a guarantee about future probability. Missing extreme cases, changing conditions and limited data can matter more than the last decimal place.
Illustrative assessment, same one-month horizon and loss sign: ten equally likely cases now have losses 0, 1, 2, 3, 4, 5, 6, 7, 7 and 20 CU. The repeated 7 belongs to two distinct cases, each with probability 10%. Using the generalized inverse, what are the 80% and 90% quantiles? What probabilities are strictly below, at or below, and strictly above 7 CU?
Answer: F is 70% just below 7 CU and jumps to 90% at 7 CU. Both levels first reach their target there, so q₀.₈₀ = q₀.₉₀ = 7 CU. Probability strictly below is 70%, at or below is 90%, and strictly above is 10%. Exactly 80% need not lie on either side of an 80% quantile. The tie also shows why selecting only cases strictly above the threshold would not automatically select the worst 20% of probability.
Second check: in the original distribution, a report calls 7 CU both the mean loss and the average of the worst 20%. Is either label correct? Answer: neither. The mean is 5.6 CU, the worst-20% average is 14 CU and 7 CU is the 80% quantile under the declared convention. Each number answers a different question about the same distribution.
General education, not investment advice. All examples and assessments are synthetic one-month loss distributions with assumed probabilities, not observations, forecasts or Quantustik performance claims. Exact calculations within these distributions do not validate a real investment model, establish a maximum real loss or identify a suitable investment.
Yes. If cumulative probability jumps across several levels at one value, that same value is the generalized-inverse quantile for all those levels. The tied assessment gives 7 CU at both 80% and 90%.
It identifies a threshold, not the severity of larger losses. In the original model the only loss strictly above 8 CU is 20 CU; replacing it by 100 CU leaves that quantile unchanged.
No. They exist to make the calculation transparent. A real application needs a justified distribution, consistent exposure and horizon, a stated estimation method and explicit model limitations.
Investor education only — not investment advice, and never a promise of profit. Every investment can lose value.