Testing a Change to p90 Feed Load Time with a Bootstrap

Last updated: November 29, 2026

Quick Overview

An Android client change aims to cut Facebook Feed cold-start load time. The success metric is p90 load time, not the mean. Explain how you would test for a significant change in p90 and implement a bootstrap confidence interval in Python.

Meta
Analytics & Experimentation
Data Scientist
Meta
November 29, 2026
Data Scientist
Technical Screen
Analytics & Experimentation
Medium

0

0

0 solved


An Android client change aims to cut Facebook Feed cold-start load time. The success metric is p90 load time, not the mean. Explain how you would test for a significant change in p90 and implement a bootstrap confidence interval in Python.

Performance work at Meta is judged on tail latency, and quantile metrics do not have simple standard errors. The interviewer is checking whether you resample at the randomization unit, understand why per-event resampling is wrong, and can write a correct bootstrap.

What the Interviewer Expects
  • Explains why the mean can hide tail regressions
  • Chooses the analysis unit: one value per user, matching randomization
  • Implements a two-sample bootstrap for the difference in p90
  • Discusses computational cost and alternatives at Meta scale
  • Interprets the interval in milliseconds and in user impact
Key Topics to Cover
Bootstrap
Quantile metrics
Performance experiments
Randomization unit
Tail latency
How to Approach This
  1. Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
  2. Run experiments long enough to account for novelty effects and weekly seasonality.
  3. Use funnel analysis to identify where users drop off for maximum optimization impact.
  4. Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
  5. Consider network effects and interference between treatment and control groups.
Possible Follow-up Questions
  • Why is resampling individual load events wrong when users have many events?
  • How would you speed this up for 50 million users?
  • What if p90 improves but p99 gets worse?
  • How would you combine p90 improvement with an engagement metric?
Sharpen Your Skills on Codemia

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

Browse Analytics Questions
Sample Answer
Clarify

Randomization is by user. Each user has many cold starts. Is the metric the p90 across all events, or the p90 across users of each user's median? Events from heavy users dominate an event-level p90, a...

Approach

Option used here: compute each user's own p90 (or median) load time, then compare the p90 of those per-user values between arms. Resampling users keeps within-user correlation intact. For an event-lev...


Submit Your Answer
Markdown supported