A robot telemetry dashboard can display a p95 latency for each worker, station, or reporting interval. Averaging those displayed values creates an average of group statistics. It does not generally create the p95 of all underlying observations.
Weighting by each group's observation count does not repair that loss of distribution information. The group quantile is already a compressed description: many different records can produce the same value.
Prometheus documents that precomputed summary quantiles cannot be aggregated into a combined service quantile. NumPy documents several sample-quantile conventions, including an inverse-empirical-distribution method. The records below are original hypothetical examples with one explicit convention. They are not measured robot latencies, a telemetry-system test, or executed NumPy or Prometheus outputs.
State the sorting rule
For a nonempty record containing N equally weighted, finite latency values, sort them in nondecreasing order. Define p95 as the value at one-based rank ceil(0.95N), where ceil means round upward to the next integer.
For N = 20, select rank 19. For N = 40, select rank 38. This is the nearest-rank convention, corresponding to the unweighted inverted_cdf choice discussed in the cited NumPy documentation.
Other conventions can interpolate between observations and give different numbers. The examples use the declared rule throughout; they do not assume that every dashboard uses it.
All invented observations below measure the same start-to-finish event definition in milliseconds. Groups are disjoint, every observation is counted once, and there are no missing or censored values. These conditions make “pooled” mean the union of the actual records with equal weight per observation.
Two equal-size groups
Let group A contain nineteen observations of 10 ms and one observation of 100 ms. Its 19th sorted value is 10 ms, so its p95 is 10 ms.
Let group B contain nineteen observations of 20 ms and one observation of 200 ms. Its p95 is 20 ms.
The arithmetic mean of the group p95 values is (10 + 20)/2 = 15 ms. Since the two groups have equal counts, weighting those p95 values by count also produces 15 ms.
Now combine the forty observations before calculating a quantile. The sorted record contains nineteen values of 10 ms, then nineteen values of 20 ms, then 100 ms and 200 ms.
Ranks 20 through 38 are 20 ms. The pooled p95, at rank 38, is therefore 20 ms rather than 15 ms.
Averaging the displayed p95 values has produced a value that is not even present in this record. That alone would not invalidate an interpolated quantile, but it cannot be the answer under the nearest-rank rule explicitly selected here.
Preserve the group summaries but change the pooled answer
Construct a second pair of twenty-observation groups.
Group A2 contains nineteen observations of 10 ms and one of 15 ms. Its p95 remains 10 ms.
Group B2 contains eighteen observations of 1 ms, one of 20 ms, and one of 200 ms. Its 19th sorted value is still 20 ms, so its p95 remains 20 ms.
The group counts and group p95 values are identical to those in the first example. Any calculation using only those four summary numbers receives the same inputs.
But the second pooled record sorts as eighteen values of 1 ms, nineteen values of 10 ms, then 15, 20, and 200 ms. The 15 ms observation occupies rank 38. Its pooled p95 is 15 ms.
The first pair pooled to 20 ms; the second pools to 15 ms. Both expose group p95 values of 10 and 20 ms with twenty observations per group.
This is an information-loss argument, not merely a poorly chosen weighting example. Those summaries cannot uniquely identify the pooled quantile. Taking the larger group p95 is not a general recovery rule either: it would give 20 ms for both pairs.
Unequal counts do not make averaging valid
Consider another record in which one group has one hundred observations, all 10 ms, while another group has five observations, all 100 ms.
Their p95 values are 10 and 100 ms. Their unweighted average is 55 ms. The count-weighted average of the two p95 values is (100 × 10 + 5 × 100)/105 ≈ 14.285714 ms.
The pooled record has 105 values. Its target rank is ceil(99.75) = 100. The 100th observation is still 10 ms, so the pooled p95 is 10 ms.
The five slower observations constitute less than 5% of this pooled population. Their existence remains relevant, but the selected p95 is not a summary of every extreme value.
With ties and finite records, a p95 also does not promise that exactly 5% of observations lie strictly above it. The sorting definition establishes a coverage threshold, not an exact exceedance count.
Pool distributions rather than quantile labels
For an observed threshold t, each group has a count of values at or below t. Adding those counts and dividing by the total N gives the pooled empirical cumulative distribution at t.
Equivalently, group empirical distributions combine with weights proportional to their counts. The quantile is then selected from that combined distribution. This differs from applying the same weights to already selected quantile values.
Retained raw observations allow the declared rank calculation directly. A suitable distribution summary can support aggregation with its own approximation properties. Histogram buckets, for example, preserve counts over ranges; they do not necessarily preserve the exact individual value at the desired rank.
Compatible units, event definitions, time windows, and bucket meanings remain necessary. Combining unlike populations might be an intentional analysis, but it should be labeled as that population rather than as an unexplained global robot latency.
A statistic does not establish a deadline
These are descriptive quantiles of finite invented records. None supplies a future worst-case bound, identifies why a delay occurred, or establishes a robot control requirement.
A report that omits unresolved requests changes the population before any quantile is computed. Likewise, averaging per-minute p95 values is a different statistic from pooling every observation across those minutes, even when the labels look similar.
For robot latency records, preserve the group counts and enough distribution information for the intended pooled question. A p95 label identifies a rank summary; it does not retain the record needed to reconstruct every larger population.
Sources checked October 23, 2026: Prometheus, Histograms and summaries, official web edition as accessed; no fixed release or publication date inferred: https://prometheus.io/docs/practices/histograms/
NumPy v2.3 Manual, numpy.quantile, particularly sample-quantile methods and empirical distributions: https://numpy.org/doc/2.3/reference/generated/numpy.quantile.html
Illustration note: A generic robot-network or monitoring-workstation concept image may accompany this explanation. It does not show the invented latency records, measured percentiles, or a verified communication deadline.