Distribution-Free Confidence Interval for p99 Messenger Send Latency
Last updated: November 29, 2026
Quick Overview
From 10,000 sampled Messenger send latencies you want a 95% confidence interval for the true 99th percentile without assuming any distribution. Show how to pick order statistics that bracket the p99 and why this works.
Meta
November 29, 20260
0
0 solved
From 10,000 sampled Messenger send latencies you want a 95% confidence interval for the true 99th percentile without assuming any distribution. Show how to pick order statistics that bracket the p99 and why this works.
Meta infrastructure engineers set and track tail latency SLOs, and this screen question checks whether you can attach uncertainty to a percentile. The interviewer wants the binomial argument behind order-statistic intervals and practical notes on sample size.
What the Interviewer Expects
- Explain that the count of samples below the true p99 is binomial
- Translate a coverage requirement into ranks of the sorted sample
- Compute ranks with a normal approximation and exact binomial
- Discuss how many samples a p99.9 needs
- Mention correlated samples from the same device or burst
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 do you need for a usable p99.9 interval?
- How would you compare p99 between two app versions?
- Why can't you average p99s across servers?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
- latencies, assumed independent draws from the true latency distribution .
- Target: interval from the sorted sample covering the true with at leas...
Approach
Let be the number of samples below . Each sample falls below it with probability exactly , so whatever is. The event $X_{(l)} \le \xi < X_{(...