Detecting a Shift in Reels Load Time Distribution Across App Versions

Last updated: November 29, 2026

Quick Overview

A new Instagram build might change Reels first-frame load time only for a slice of users, leaving the mean nearly flat. Use a two-sample Kolmogorov-Smirnov test to compare the full distributions and explain what it can and cannot tell you.

Meta
Statistics & Math
Data Scientist
Meta
November 29, 2026
Data Scientist
Technical Screen
Statistics & Math
Medium

0

0

0 solved


A new Instagram build might change Reels first-frame load time only for a slice of users, leaving the mean nearly flat. Use a two-sample Kolmogorov-Smirnov test to compare the full distributions and explain what it can and cannot tell you.

Meta performance teams care about the shape of latency distributions, not only the mean. This screen question checks whether you know a distribution-level test, can compute the KS statistic, and understand its power profile.

What the Interviewer Expects
  • Define the KS statistic as the max gap between empirical CDFs
  • Describe the null distribution and large-sample p-value
  • Explain why KS can catch a tail-only shift the t-test misses
  • Note that KS is least sensitive in the tails
  • Suggest quantile comparisons as a complement
Key Topics to Cover
Kolmogorov-Smirnov test
empirical CDF
distribution shift
tail sensitivity
nonparametric tests
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
  • Why is KS less sensitive to differences in the extreme tail, and what would you use instead?
  • Can you use KS when latencies are discretized to whole milliseconds?
  • How would you handle many samples from the same user?
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
  • Samples a1,…,ana_1, \dots, a_n (old build) and b1,…,bmb_1, \dots, b_m (new build), one load time per user to keep independence.
  • H0H_0: both come from the same continuous distribution....
Approach

Empirical CDFs Fa(x)=1n#{ai≤x}F_a(x) = \frac{1}{n}\#\{a_i \le x\}, FbF_b likewise. The statistic is D=sup⁡x∣Fa(x)−Fb(x)∣.D = \sup_x |F_a(x) - F_b(x)|. Under H0H_0, nm/(n+m) D\sqrt{nm/(n+m)}\, D converges to the Kolmogorov distribution, so...


Submit Your Answer
Markdown supported