Skip to main content

A timeout can leave p95 unidentified

Updated 6 min readMarkdown

A finite client-receipt ledger shows what a percentile can—and cannot—identify when some observations end before the response arrives.

Twenty fictional requests are sent at tick 0. Eighteen responses arrive at ticks 1 through 18. The other two have not arrived when observation ends at tick 20. The received-only p95 is 18 under the rule below. That number does not identify the p95 of all twenty requests.

The endpoint matters. Here, latency ends at the first client receipt of a declared completed response, measured from send on one trusted fictional client clock. A censored row says that this receipt did not occur through its observation bound. It does not say that server work is unfinished: the work could have completed while the response was lost or delayed. A client API returning a timeout error at tick 20 has a different, valid termination-latency endpoint. This worksheet does not substitute that endpoint for response receipt.

We fix the empirical p95 convention before looking at the ledger: sort the latencies and take one-based rank ceil(19n/20). For all twenty requests, that is rank 19. For the eighteen received responses, it is rank 18. NumPy’s documentation describes differing quantile conventions, including this inverse empirical CDF approach, and credits Hyndman and Fan’s work. The worksheet implements the declared rank with integers; it does not call NumPy.

Two hypothetical completions of the same observed ledger make the missing information concrete. If the remaining client receipts occur at ticks 21 and 22, full-cohort p95 is 21. If they occur at ticks 200 and 201, it is 200. Both assignments respect the observations. They are compatibility witnesses, not measurements, predictions or imputed receipt times. The observations supply no finite upper bound, and eventual receipt is not guaranteed.

The support is nonnegative integer ticks. No receipt through tick 20 therefore gives a minimum compatible receipt latency of 21. In continuous time, the corresponding statement would instead be strictly greater than 20. The worksheet forms a lower bound by sorting exact receipts together with each censored row’s minimum compatible latency. If at least nineteen exact receipts are known, their nineteenth value is the upper bound. Otherwise, the nineteenth full-cohort value can be arbitrarily large under this model. These are compatibility bounds for one finite cohort, not confidence intervals or a population p95 estimate.

Censoring does not always leave this percentile unknown. With exact receipts 1 through 19 and one row censored through 20, p95 is fixed at 19. Move that single row’s observation cutoff to 0 and the compatible p95 range becomes 18 through 19. One censored row remains in both cases; its observation bound changes what is identifiable. No shared scheduling or resource constraints connect the rows in this model.

The other cases preserve the boundary and empty-subset distinctions. An exact receipt at tick 20 is received, while a row with no receipt through tick 20 is censored. With nineteen known receipts including that exact 20, p95 is identified as 20. With all twenty rows censored through 20, received-only p95 is undefined and full-cohort p95 has lower bound 21 with no finite upper bound. With complete receipts 1 through 20, p95 is 19.

The retained result contains all six authored ledgers, 120 observation rows and eleven separate witness vectors. One standard-library CPU invocation on 2026-11-28 UTC checked six literal summaries and eleven literal witness percentiles, plus twenty selected refusal controls and three positive controls. The controls cover malformed clocks, identities and timestamps; exact receipt versus censor boundaries; incompatible witness values; zero latency; and observation-row order. All passed. The counts describe designed cases, not independent traffic samples or a failure rate.

NIST/SEMATECH’s censoring chapter supplies the event-time terminology; this example applies it specifically to client receipt. Nodus authored the ledgers, expected answers, witnesses and integer worksheet. The integer-rank rule and receipt constraints above make the worked examples directly checkable; the original full worksheet and result are retained as evidence. The useful reporting step is to retain the full launched cohort, name the latency endpoint and quantile convention, and report the point value or bounds that the observations actually identify.

Authored case Received / censored Received-only p95 Full-cohort p95 bounds Witness p95 values
Two tail rows censored 18 / 2 18 21; no finite upper 21, 200
One tail row censored 19 / 1 19 19 19, 19
One row censored at 0 19 / 1 19 18–19 18, 19
Exact receipt at bound 19 / 1 20 20 20, 20
All rows censored 0 / 20 Undefined 21; no finite upper 21, 200
Complete cohort 20 / 0 19 19 19

All six authored 20-request ledgers. Every value is in fictional integer ticks; full-cohort rank is 19.

A censored row means no client receipt through its inclusive observation bound. The +1 lower bound uses integer support; it is not a continuous-time rounding rule.

Witnesses assign hypothetical finite receipt times consistent with the ledger. They are not observed finishes. No finite upper bound is encoded as null, never as zero.

Same observations, different p95. The two missing receipts can be 21/22 or 200/201. Full-cohort p95 can therefore be 21 or 200 while received-only p95 remains 18.

Keep the endpoint explicit. A timeout-error return and receipt of a completed response are different events. Missing receipt does not establish server work duration.

Limits

  • Six authored integer-tick ledgers and 23 selected controls; no real service latency, random sample, prevalence or universal verification claim.
  • The endpoint is client receipt on one trusted fictional clock. Server completion, execution duration, packet-loss reconstruction and corrupted observation are not measured.
  • No receipt through a bound gives a +1 minimum only on nonnegative integer support. Continuous time requires a strict lower bound instead.
  • Finite witnesses are compatible possibilities, not future observations or imputations. Eventual response receipt is not guaranteed; a timeout need not cancel work.
  • Nearest-rank p95 is one declared empirical convention. The bounds do not estimate a population tail, statistical uncertainty, confidence interval or fitted survival curve.
  • The model supplies no cross-request constraints or finite upper receipt bound. Additional trustworthy information could narrow the identified set; no probabilistic independence is assumed.
  • No GPU, production benchmark defect, service capacity, utilization, cost, model reward or training benefit is established.

Sources

Name the receipt event, retain censored rows and report only the percentile that the observation can identify.

About the author

No comments yet. Be the first to comment.