Distribution Free Confidence Interval for p99 Search Latency

Last updated: November 29, 2026

Quick Overview

From 1,000 sampled Google Search backend requests, an SRE wants a 95% confidence interval for the true 99th percentile latency without assuming any latency distribution. Show how to get it from order statistics.

Google
Statistics & Math
Software Engineer
Google
November 29, 2026
Software Engineer
Technical Screen
Statistics & Math
Medium

0

0

0 solved


From 1,000 sampled Google Search backend requests, an SRE wants a 95% confidence interval for the true 99th percentile latency without assuming any latency distribution. Show how to get it from order statistics.

Google SRE and infrastructure interviews care about tail latency, and good candidates know that a sample p99 from 1,000 points rests on only about 10 observations. The interviewer checks the binomial argument behind order-statistic intervals and practical advice on sample sizes.

What the Interviewer Expects
  • Explain why the count of samples below the true quantile is binomial
  • Derive ranks that bracket the quantile with 95% coverage
  • Compute them for n = 1000 and q = 0.99
  • Discuss how wide the interval is in practice
  • Recommend sample sizes or sketches for production
Key Topics to Cover
order statistics
quantiles
binomial distribution
tail latency
nonparametric inference
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • How many samples would you need for a tight p99.9 interval?
  • How do streaming sketches such as t-digest affect this interval?
  • Why not just bootstrap the p99?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

Assume the 1,000 requests are an independent random sample from a continuous latency distribution with true 99th percentile x0.99x_{0.99}. We want ranks r<sr < s so that [X(r),X(s))[X_{(r)}, X_{(s)}) covers $x_{0....

Approach

Let BB be the number of sample points below x0.99x_{0.99}; then B∼Bin(1000,0.99)B \sim \text{Bin}(1000, 0.99) regardless of the distribution. The interval covers the quantile exactly when r≤B≤s−1r \le B \le s - 1. Choose ...


Submit Your Answer
Markdown supported