Which Region Most Likely Produced a Failed Feed Request
Last updated: November 29, 2026
Quick Overview
Feed traffic is 50% US, 30% Europe, and 20% Asia Pacific, with request failure rates of 1%, 2%, and 4%. Given that a randomly sampled request failed, what is the probability it came from Asia Pacific?
Meta
November 29, 20260
0
0 solved
Feed traffic is 50% US, 30% Europe, and 20% Asia Pacific, with request failure rates of 1%, 2%, and 4%. Given that a randomly sampled request failed, what is the probability it came from Asia Pacific?
Production engineers at Meta triage errors by region and cluster, and this warm-up checks that a candidate can turn traffic shares and error rates into a posterior. The interviewer is looking for the law of total probability, clean arithmetic, and a sensible read of what the answer means for on-call routing.
What the Interviewer Expects
- Defines events and states prior traffic shares
- Computes overall failure rate with total probability
- Applies Bayes to get the posterior for each region
- Checks posteriors sum to 1
- Explains why the smallest region can dominate errors
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
- What if you sampled one failed request per region instead of uniformly from all failures?
- How would you update after learning the failure was a timeout that only happens in two regions?
- How would you alert on a region whose share of failures departs from this baseline?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Let with , , and failure rates , , . The sampled request is drawn uniformly from all reques...
Approach
First compute by the law of total probability, then divide each region's joint mass by it....