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.
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
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- 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 QuestionsSample Answer
Clarify
Assume the 1,000 requests are an independent random sample from a continuous latency distribution with true 99th percentile . We want ranks so that covers $x_{0....
Approach
Let be the number of sample points below ; then regardless of the distribution. The interval covers the quantile exactly when . Choose ...