Averages are useful, but they often hide the experiences people care about most. A service may have a fast average response while a small fraction of requests wait far longer. A sensor stream may contain rare extremes. To answer questions such as “what value is at the 99th percentile?” we need quantiles, and at large scale we need compact summaries that can be updated and merged.
A t-digest compresses observations into weighted centroids. Centroids near the centre of a distribution may represent broad groups, while those near the tails are kept smaller to preserve rank accuracy where extreme quantiles live. The summary can be updated online and combined across machines. This is why mathematics matters: ranks, weighted means, scale functions and error measurement turn massive streams into useful distribution estimates without pretending the original data is still present.
Choose Your Reading Route
- New learner* begin with median, percentile and the sorted-list example.
- Secondary student* focus on ranks, weighted averages, interpolation and error units.
- Computing student* study centroids, scale functions, merging, ordering and invariants.
- Parent or educator* use the paper clustering activity and learning progression.
- Career explorer* read the latency, finance, science and monitoring sections before the FAQ.
Quantiles Describe Position, Not Distance
For a distribution with cumulative distribution function `F(x)`, a quantile at probability `q` is a value where the cumulative probability reaches `q`, subject to a chosen convention. The median is the 0.5 quantile. The 99th percentile corresponds to `q=0.99`.
In a sorted sample of 100 values, “the 99th percentile” sounds simple, but sample-quantile definitions differ in index and interpolation. Statistical packages offer multiple conventions. Reproducible work states the convention or uses a library with documented semantics.
Quantile rank and value are different axes. A rank error of 0.001 means the answer may be displaced by about 0.1% of observations. In a steep tail, that small rank error can create a large value error. Report the metric that matches the decision.
A sorted-list example
Consider values `2,3,3,5,8,13,21,34,55,89`. The median lies between the fifth and sixth values under a common convention, giving 10.5. The 90th percentile may be interpolated near the upper values depending on the definition.
An exact quantile needs sorted data or an equivalent order-statistic structure. A streaming summary keeps less information and returns an estimate.
Why Histograms Are Not Always Enough
A histogram counts observations in fixed bins. It is excellent when meaningful bins are known. But a wide value range requires either many bins or coarse resolution. Fixed linear bins may waste space in empty regions and blur tails.
A t-digest adapts cluster locations to observed data and concentrates rank resolution near distribution ends. It is not a universal replacement for histograms. Histograms preserve counts in specified intervals; t-digests target quantile and cumulative-rank queries.
Choose the summary from the future query, not from fashion.
Centroids: Weighted Representatives
A centroid has a mean `m` and weight `w`. It represents `w` observations clustered near `m`. If two centroids with means `m1,m2` and weights `w1,w2` are merged, the combined mean is:
`m=(w1*m1+w2*m2)/(w1+w2)`.
The new weight is `w1+w2`.
This preserves total count and first moment of the merged points, but it does not preserve their complete internal distribution. Compression is lossy.
Worked centroid merge
Centroid A represents 4 observations with mean 10. Centroid B represents 6 with mean 14. Combined weight is 10 and mean is `(4*10+6*14)/10=(40+84)/10=12.4`.
The original observations might have many arrangements consistent with those means. The digest no longer knows every detail.
Why Tails Receive Smaller Clusters
If all centroids held equal numbers of observations, rank resolution would be uniform. But operational decisions often care more about q=0.99 or 0.999 than q=0.5. t-digest scale functions limit centroid weight as a function of quantile position, generally allowing larger groups near the middle and smaller groups near the ends.
The letter “t” is part of the algorithm's name; the structure is not simply a Student's t-distribution. Its accuracy comes from ordered, size-constrained centroids and the particular interpolation and compression design.
Rank capacity intuition
Near q=0.5, combining several neighbouring observations may shift estimated median rank only modestly relative to the central region. Near q=0.999, a centroid representing too many observations could swallow the entire tail of interest. Smaller tail clusters preserve detail.
This is a resource-allocation problem: spend representation where error is most consequential.
Building a Digest
A conceptual construction is:
1. accept observations as singleton weighted points or small incoming centroids; 2. order candidate centroids by mean; 3. scan in order, merging neighbours when the scale-function size constraint allows; 4. otherwise start a new centroid; 5. retain total weight, minimum, maximum and ordered centroids.
Implementations differ in buffering and compression passes. Some accumulate inputs, sort a batch and merge. Others update incrementally and occasionally recompress.
The exact library matters. Do not assume two implementations with the same compression parameter produce identical centroids or quantiles.
A Small Paper Digest
Take sorted values `1,2,3,4,5,20,21,22,100,200`. To illustrate—not reproduce a formal implementation—keep extremes as singleton centroids and allow broader middle groups:
- `(mean 1, weight 1)`
- `(mean 3.5, weight 6)` for values 2,3,4,5,20,21 would actually be incorrect because their mean is 9.17; this warns us not to group carelessly
- better groups: `(mean 3, weight 5)` for 1 through 5 is also unsuitable if 1 must remain singleton
Instead choose:
- `(1,1)`
- `(3.5,4)` representing 2,3,4,5
- `(21,3)` representing 20,21,22
- `(100,1)`
- `(200,1)`
Total weight is 10. The digest preserves extremes and local clusters. Quantile interpolation uses centroid positions and neighbouring weights, not simply “pick the nearest mean.”
Why this is only an illustration
A real t-digest must enforce its scale-function invariant, and the chosen grouping depends on compression settings and insertion order. Classroom grouping teaches weighted summaries but should not be labelled as exact library output.
Cumulative Rank and Interpolation
To estimate the cumulative distribution at value `x`, locate surrounding centroids and infer how weight is distributed between their means according to the implementation's interpolation rule. To estimate a quantile, find where the desired cumulative weight falls and interpolate a value.
Centroid means are ordered. Approximate rank position of a centroid can be associated with the cumulative weight before it plus about half its own weight. Boundary handling uses stored minimum and maximum or singleton extremes to improve tail behaviour.
Interpolation assumptions affect value accuracy, especially with discrete or highly skewed data. Always test the actual implementation on relevant distributions.
Compression Parameter
A compression parameter—often called delta—controls the number and allowed size of centroids. Larger settings typically use more centroids and memory, improving accuracy, though exact relationships depend on scale function and implementation.
Do not confuse this delta with a probability of failure unless documentation explicitly defines it that way. Symbols are local conventions.
Memory arithmetic
Suppose a digest stores 500 centroids, each with two 64-bit floating-point values for mean and weight. Raw numeric payload is `500*16=8,000` bytes. Arrays, objects, minimum, maximum and metadata add overhead. A packed representation differs greatly from 500 heap objects.
Report measured resident size when memory planning matters.
Mergeability
Digests from separate partitions can be combined by treating their centroids as weighted inputs, sorting by mean and recompressing. This enables distributed aggregation.
Merging is approximate. Different merge orders can produce slightly different centroid groupings. “Mergeable” does not mean bit-for-bit associative and commutative in finite implementations.
Distributed example
Ten servers each summarise one million latency measurements. Instead of sending ten million raw values to a coordinator, they send digests. The coordinator merges weighted centroids to estimate global quantiles.
If traffic volumes differ, weights ensure a busy server contributes more observations. Averaging the ten reported 99th percentiles would be wrong in general; quantiles do not combine by ordinary averaging.
Why Quantiles Do Not Average
Server A handles 99 requests at 10 ms and one at 1,000 ms. Server B handles 100 requests at 20 ms. Their individual p99 values depend on convention, but averaging p99s does not reconstruct the pooled rank distribution.
Quantiles are nonlinear summaries. To combine partitions, merge a structure that retains distribution information or access raw data. Weighted centroid summaries are designed for this task.
This lesson applies to school scores, income, sensor readings and response times.
Tail Accuracy and Relative Rank Error
Dunning and Ertl describe t-digests designed for accuracy relative to distance from the nearest tail. Their paper, Computing Extremely Accurate Quantiles Using t-Digests, discusses scale functions, invariants and empirical accuracy.
At q=0.999, the distance to the upper tail is 0.001. Error measured relative to `min(q,1-q)` emphasises precision in those small tail probabilities.
No single benchmark proves accuracy for all data. Discrete repeated values, sorted inputs, merge hierarchies and implementation choices can affect results.
Latency Monitoring
Service latency distributions are often skewed. Most requests may finish quickly while a small fraction experience queueing, retries or slow dependencies. Median and p99 answer different user-experience questions.
A t-digest can support dashboards with p50, p90, p99 and p99.9 estimates from bounded memory. But sampling before the digest changes the observed distribution. Dropped telemetry may be correlated with overload, biasing tails downward.
Read observability, sampling, histograms, percentiles and alert thresholds for a broader monitoring framework.
Window semantics
A lifetime digest answers a different question from a five-minute rolling digest. To support time windows, systems rotate digests, use buckets or rebuild summaries. Merging recent buckets approximates the target window.
Label time zone, window length and event-time versus processing-time semantics.
Queueing and Tail Latency
When arrival rate approaches service capacity, queues can produce long waits for a minority of requests. Averages may rise gently while upper quantiles jump.
Read load balancing, queue lengths, the power of two choices and tail latency to connect quantile measurement with system design. A digest tells us what the distribution looks like; it does not identify root cause by itself.
Finance and Risk
Quantiles appear in risk measures and scenario summaries. A compact digest can summarise simulated or observed losses, but financial decisions require careful sign conventions, time horizons and model validation.
A 99th percentile loss estimate is not the worst possible loss. It is a threshold exceeded by about 1% of the modelled distribution under the stated sampling and quantile convention. Rare events beyond available data remain uncertain.
Do not use an approximate summary to imply guaranteed safety.
Science and Sensors
Sensors produce large streams with noise, drift and occasional extremes. Quantile summaries can reveal distribution shifts without retaining every reading.
However, aggregation can erase temporal order. A digest cannot tell whether extreme values occurred in one burst or were evenly spread. Keep time-series features or event samples when sequence matters.
Measurement uncertainty is separate from sketch error. A highly accurate digest of a biased sensor remains biased.
Discrete Data and Repeated Values
When many observations have identical values, interpolation between centroid means can imply values not actually present. Whether that matters depends on the query.
For categorical counts, a t-digest is inappropriate because categories lack numeric order and distance. For integer-valued metrics, document whether interpolated decimals are acceptable or should be rounded under a stated rule.
Test masses at minimum, maximum and repeated central values.
Exact Extremes
Many implementations preserve observed minimum and maximum separately. This allows q=0 and q=1 to return exact extremes and improves interpolation near boundaries.
Do not infer that nearby percentiles are exact. One exact maximum does not determine p99.99 when millions of observations exist.
Insertion Order and Recompression
Streaming values may arrive sorted, reverse-sorted or in bursts. A robust implementation aims to limit order sensitivity through buffering and merge passes, but finite algorithms can still vary.
Benchmark random and ordered inputs. If distributed, compare flat merging with deep merge trees. Recompression can improve invariants but costs CPU.
Reproducibility requires library version, parameter, ingestion order and merge topology.
Comparing Quantile Sketches
Alternatives include GK summaries, KLL sketches, DDSketch and fixed histograms. They provide different guarantees: deterministic rank bounds, probabilistic rank error, relative value error or configurable bins.
t-digest is attractive for tail accuracy and mergeability, but another method may better match a formal service-level objective. If an alert requires relative value error across a positive range, a logarithmic histogram may fit. If deterministic rank bounds are mandatory, choose accordingly.
Compare guarantee, memory, merge semantics, update cost and data domain—not only average benchmark error.
Rank Error versus Value Error
Suppose true p99 is 200 ms. An estimate of 205 ms has value error 5 ms and relative value error 2.5%. To calculate rank error, ask what fraction of observations are at or below 205 ms and compare that cumulative probability with 0.99.
On a flat distribution, a large value movement may correspond to modest rank movement. On a steep distribution, the reverse can occur. Report both when consequences depend on milliseconds and population fraction.
A Reproducible Accuracy Experiment
Generate or collect a dataset, sort it exactly and calculate reference quantiles using a declared convention. Feed observations to digests under several orders and compression settings. Test direct ingestion and distributed merges.
For each query q, record:
- exact reference value;
- estimated value;
- value error;
- true rank of the estimated value;
- rank error;
- digest size and update time.
Use distributions with uniform, normal, exponential, heavy-tailed, multimodal and repeated values. One friendly distribution is not enough.
Alert Thresholds and Decision Margins
Suppose a service objective says p99 must remain below 300 ms. If the digest reports 299 ms and its measured error near that distribution can be several milliseconds, the result is borderline. Use a safety margin, raw-sample audit or more accurate configuration.
Do not treat an approximate number as infinitely precise because software prints decimals. Report meaningful precision.
An alert also needs persistence rules. One noisy interval may not justify an incident, while averaging quantiles across intervals is generally invalid. Merge compatible summaries or define a time-based decision rule.
Common Misconceptions
“A t-digest stores a sample of original points”
Centroids are weighted summaries; their means need not be original observations.
“The p99 of merged groups is the average of their p99s”
Quantiles are nonlinear. Merge distributions or compatible sketches.
“Tail accuracy means every extreme query is exact”
Accuracy is empirical and algorithm-dependent; only separately stored minimum and maximum may be exact.
“Compression parameter is a universal error bound”
It controls centroid budget and accuracy trade-offs in an implementation. It is not automatically a formal probability guarantee.
“The digest explains why latency is high”
It describes a distribution. Root-cause analysis needs traces, logs, queue metrics and experiments.
Which Mathematics Matters Most?
- ordering and rank;
- cumulative distributions and quantiles;
- weighted averages;
- interpolation;
- invariant constraints;
- scale functions;
- rank and value error;
- nonlinear aggregation;
- experimental statistics;
- memory and complexity arithmetic.
The central habit is to name the axis of error. “Accurate to 1%” is incomplete unless we know 1% of rank, value, tail probability or something else.
A Practical Learning Progression
Stage 1: Exact quantiles
Sort small lists and calculate median and selected percentiles using a declared convention.
Stage 2: Weighted means
Combine pairs of groups using centroid weights. Verify total count and first moment.
Stage 3: Build a paper summary
Cluster nearby sorted values, keeping smaller groups near extremes. Compare estimated and exact quantiles.
Stage 4: Measure both errors
For each estimated value, calculate value error and exact rank error.
Stage 5: Merge partitions
Split data unevenly, build summaries, merge weighted centroids and compare with one-pass ingestion.
Stage 6: Design an alert
Choose a quantile, threshold, margin, time window and verification step. Explain the consequence of false alarm and missed alert.
Guidance for Parents and Educators
Use a line of numbered cards. Ask students first to point to rank positions. Then replace groups of nearby cards with one weighted card. The weight shows how many observations were compressed; the position shows the representative mean.
Keep exact and approximate answers side by side. Approximation should feel accountable: the student can see which information disappeared and measure the resulting error.
Ask three questions for every percentile claim: which population, which time window and which quantile convention? This builds practical data literacy.
Did You Know?
You cannot generally average percentiles across groups. Ten servers with equal numbers of requests are already tricky; unequal traffic makes a simple average even less meaningful.
Centroid weight is a count, not a confidence score. A heavy centroid represents many observations, while a small tail centroid preserves rank detail.
Student Projects
Latency dashboard
Generate a mixture of fast and slow requests. Compare mean, median, p95 and p99 as the slow fraction changes.
Merge-order study
Build many partition digests and merge them in flat, balanced-tree and sequential orders. Measure differences.
Quantile-definition explorer
Implement several exact sample-quantile conventions for small lists and show where they disagree.
Sketch comparison
Compare t-digest with a fixed histogram under the same memory budget on uniform and heavy-tailed data.
FAQ
Is a t-digest deterministic?
Results can depend on implementation, ordering, buffering and merge topology. Some workflows are reproducible when all of these are fixed.
Can it return counts above a threshold?
It can estimate cumulative rank and therefore tail count from total weight, but accuracy should be validated for that query.
Does it retain individual observations?
Generally no. Centroids aggregate points. Keep raw exemplars separately if investigation needs them.
Why are tails special?
Operational and risk decisions often depend on rare extremes, and large uniform clusters would give poor rank resolution there.
Can I average two medians?
Not to obtain the combined median in general. Merge underlying distributions or compatible summaries.
What should a student remember?
Quantiles are ranks, centroids are weighted summaries, tails receive more resolution, merges need compatible semantics and errors need labelled units.
Useful Next Reading
- Read load balancing, queue lengths, the power of two choices and tail latency to connect high percentiles with queue decisions.
- Read observability, sampling, histograms, percentiles and alert thresholds for broader monitoring design.
- Consult Dunning and Ertl's t-digest paper for scale functions, invariants and accuracy results.
Final Perspective
Decision Example: A Borderline p99
A service has one million requests in a ten-minute window. Its digest estimates p99 at 298 ms against a 300 ms objective. Historical validation on similar traffic shows value errors near p99 can reach ±6 ms. The correct conclusion is not a definite pass; the estimate is within the uncertainty band.
An operator can query the estimated CDF at 300 ms, inspect an exact reservoir sample, increase the compression setting for future windows and look at request traces around the threshold. If the consequence of missing a breach is high, set an earlier warning margin.
This example shows why a sketch belongs inside a decision system. A number, an error study and an action rule work together.
Scale Functions in More Detail
A scale function maps quantile position `q` into a transformed coordinate `k(q)`. A centroid is allowed only a bounded change in scale across its represented quantile interval. Because the scale changes more rapidly near 0 and 1 in common designs, tail centroids must be smaller.
Different scale functions trade centroid count, tail resolution and computational behaviour. Some use an arcsine shape; others use logarithmic forms with explicit handling near endpoints. The paper analyses invariants that keep total clusters controlled while allocating rank resolution.
Students can plot candidate scale functions over q from 0 to 1. The slope shows where the algorithm spends detail. A steep slope means a small quantile interval consumes more scale budget.
Inverse scale functions
Compression often needs to know whether adding weight would cross a permitted scale interval. Quantile estimates may use the inverse mapping to relate scale coordinates back to ranks. Numerical implementation must treat q=0 and q=1 carefully where logarithms can diverge.
Clamping without explanation can change guarantees. Boundary rules belong in tests and documentation.
The Size Invariant
Let a centroid span an approximate quantile interval from `q_left` to `q_right`. A common invariant restricts `k(q_right)-k(q_left)` to at most a constant such as 1. This limits cluster weight according to its position.
The invariant is about cumulative weight, not raw numeric width. A centroid can cover a broad value interval if few observations lie there, or a narrow value interval if density is high.
This explains why t-digest adapts to distribution shape while targeting rank.
Two-Pass Compression
One construction sorts incoming centroids, then scans and greedily combines them subject to the size limit. Processing in alternating directions or performing another pass can reduce order effects and improve tail clusters.
More passes cost CPU. An implementation used for millions of updates per second may buffer values and compress periodically. Query latency, update latency and memory peaks must all be measured.
Temporary memory
If a digest buffers 10,000 doubles before compression, the buffer alone uses about 80,000 bytes, beyond permanent centroid storage. Peak memory can matter more than final serialized size.
Weighted Inputs
A weighted observation `(x,w)` represents `w` mass at value `x`. Merged centroids are naturally weighted inputs. Weights should be non-negative under ordinary quantile semantics.
Fractional weights can model sampling or importance, but the resulting quantiles describe the weighted distribution, not the raw population. Negative weights generally break cumulative-rank interpretation.
Record whether weights are counts, durations, population expansion factors or importance weights.
Interpolating Between Centroids
Imagine adjacent centroids with means 100 and 120. A target cumulative rank falls halfway between their representative positions. Linear interpolation might return 110. This assumes a smooth distribution of rank between means.
If observations are actually concentrated at 100 and 120 with nothing between, 110 is not observed. The estimate can still be a useful numeric quantile under interpolation, but users must not mistake it for an actual sample.
Discrete-value applications may prefer a nearest-observed or lower/upper convention. Check the library API.
CDF Queries and Quantile Queries
A quantile query maps probability `q` to value `x`. A cumulative-distribution query maps value `x` to estimated fraction at or below it. The two are approximate inverses but may not compose exactly because of interpolation and flat regions.
For a threshold service-level objective, a CDF query can be more direct: estimate what fraction of requests complete within 300 ms. For a percentile objective, ask which value corresponds to 99%.
Choose the direction matching the requirement.
Serialisation and Compatibility
A digest transferred between services needs a versioned format: compression parameter, scale function, centroid means and weights, total weight, minimum and maximum. Endianness and floating-point encoding matter across languages.
Merging digests produced by incompatible algorithms can silently corrupt estimates. A schema version should be rejected rather than guessed.
Test round trips: serialise, deserialize and compare quantile/CDF queries within documented tolerance.
Floating-Point Accumulation
Total weights and weighted means use floating-point arithmetic in many implementations. Adding a tiny weight to a huge total can lose precision. Repeated merges can accumulate rounding.
Compensated summation, stable weighted-mean formulas and bounded merge trees can help. If weights are exact integers within 53-bit range, a double represents them exactly; beyond that, unit increments may disappear.
Numerical limits should be tested before using one digest for an unbounded lifetime stream.
Hierarchical Aggregation
In a fleet, machine digests merge into rack digests, then region digests, then a global digest. This tree reduces network load but introduces repeated compression. Depth and fan-out affect final error.
A balanced merge tree treats partitions more symmetrically than sequentially merging thousands into one small digest. Large partitions should carry their true weights; never average digests equally when traffic differs.
Benchmark the actual aggregation topology, not only one flat laboratory merge.
Rolling Windows
t-digests do not generally support exact deletion of an arbitrary old observation because compression loses identity. Rolling windows therefore use time buckets. Keep one digest per minute, merge the last 60 for an hour query, and expire whole buckets.
Bucket boundaries introduce time error. At 12:34:30, merging whole minute buckets may include or exclude up to part of a minute depending on policy. Smaller buckets improve temporal precision but increase merge cost and metadata.
For strict per-event expiration, a different structure or raw queue may be necessary.
Sampling Before Summarising
If the telemetry pipeline samples one request in 100 uniformly, a weighted digest can assign weight 100 to each sample. This estimates the population distribution under random sampling.
If slow requests are more likely to be dropped or sampled, weighting cannot fix unknown selection bias. Tail estimates may be dangerously optimistic. Monitor ingestion completeness and compare against independent counters.
Sampling uncertainty and digest approximation are separate layers.
Rare-Event Limits
In one million observations, p99.999 corresponds to roughly the top ten events. Even a perfect sketch cannot create information that the sample lacks. Future tail risk may differ from historical extremes.
Quantile estimates at very extreme probabilities need enough effective sample size. Report the expected number of observations beyond the target quantile: `N*(1-q)`. If this is below a modest count, uncertainty is fundamental.
For q=0.9999 and N=10,000, only about one observation lies above the quantile. Decimal precision does not imply reliable inference.
Service-Level Objectives
An objective “99% of requests under 300 ms” is a CDF constraint. A dashboard showing p99 below 300 ms is closely related but sensitive to convention and approximation. Directly estimate fraction over threshold as a complementary metric.
Use an error margin. If estimated compliance is 99.02% and observed error can be 0.05 percentage points, do not declare a comfortable pass.
Operational policy should specify the summary, window, minimum sample size, missing-data handling and alert persistence.
A Full Accuracy Laboratory
Create datasets of one million values from six distributions: uniform, normal, exponential, lognormal, two-mode mixture and discrete repeated values. Compute exact sorted references.
For each compression setting, ingest in random, sorted and reverse order. Then partition into 1, 10, 100 and 1,000 shards and merge through flat and balanced trees.
Query q values 0.001, 0.01, 0.5, 0.99 and 0.999. Report rank error divided by distance to nearest tail, absolute value error, relative value error where meaningful, centroid count, update time and merge time.
Interpret results carefully
If tail rank error is excellent but value error is large on a heavy-tailed distribution, the digest may still be behaving as designed. A tiny movement in rank can span a large value gap. Decide which metric the application needs.
If median accuracy is slightly worse than a uniform-rank sketch, that may be the cost of allocating more clusters to tails. Trade-offs should be chosen, not hidden.
Failure Investigation Checklist
- verify total weight against an independent event counter;
- confirm time window and bucket inclusion;
- check minimum and maximum;
- inspect centroid ordering and non-negative weights;
- confirm compression and scale-function settings;
- reproduce with exact raw data on a sample;
- compare insertion orders and merge topology;
- check serialisation version and floating-point overflow;
- separate sampling bias from digest error.
This checklist turns “the percentile looks wrong” into testable hypotheses.
Questions for Reading a Quantile Claim
- Which quantile definition is used?
- What population and time window are summarised?
- How many effective observations support the tail?
- Is the value exact, sampled, histogrammed or sketched?
- Which t-digest implementation, version and scale function apply?
- What compression and merge topology were used?
- Is error measured in rank or value?
- What missing-data or sampling bias could remain?
t-digests show why mathematics matters when distributions are too large to keep but their tails still matter. Weighted centroids compress observations, scale functions allocate detail, and mergeability supports distributed systems. The summary is valuable because its target—quantile rank—is explicit.
The wider lesson is clear: do not compress everything equally when consequences are unequal. Preserve detail where decisions are sensitive, measure the error that matters and keep the original assumptions visible. That is how students can use powerful summaries without losing statistical honesty.
