Non-Inferiority Test for Moving Instagram Video to a New Codec

Last updated: November 29, 2026

Quick Overview

Instagram wants to switch video encoding to a more efficient codec to cut bandwidth costs, and needs to show user engagement is not meaningfully worse. Design the test as a non-inferiority experiment.

Meta
Analytics & Experimentation
Data Scientist
Meta
November 29, 2026
Data Scientist
Onsite
Analytics & Experimentation
Hard

0

0

0 solved


Instagram wants to switch video encoding to a more efficient codec to cut bandwidth costs, and needs to show user engagement is not meaningfully worse. Design the test as a non-inferiority experiment.

Infra migrations at Meta aim for cost savings with no user harm, so the right test proves the absence of a meaningful loss rather than a gain. The interviewer checks margin setting, one-sided hypotheses, sample size, and why 'not significant' is not enough.

What the Interviewer Expects
  • Frame the null hypothesis as harm of at least the margin
  • Choose a margin with product and finance input
  • Compute sample size for non-inferiority
  • Pick engagement and quality guardrails
  • Explain why a non-significant superiority test does not prove no harm
Key Topics to Cover
non-inferiority testing
equivalence margin
one-sided test
infrastructure migration
sample size
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
  • How would you choose the margin?
  • What is the sample size consequence of a tighter margin?
  • How do you handle devices that cannot decode the new codec?
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
  • Change: serve the new codec to capable devices; bitrate falls about 25% at similar visual quality.
  • Primary metric: video watch minutes per user per day (mean 30, standard deviation 40).
  • Guardrai...
Approach

Set a non-inferiority margin δ\delta: the largest loss the business accepts in exchange for the savings. Example: product and finance agree that a loss of more than 0.5% of watch time (0.15 min) ...


Submit Your Answer
Markdown supported