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
November 29, 20260
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
How to Approach This
- Define success metrics carefully. A good metric is measurable, actionable, and aligned with business goals.
- Run experiments long enough to account for novelty effects and weekly seasonality.
- Use funnel analysis to identify where users drop off for maximum optimization impact.
- Segment results by key dimensions (platform, country, user cohort) to catch hidden patterns.
- 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 QuestionsSample 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 : 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) ...