Placing Three Mid-Roll Ad Breaks So None Fall in Neighboring Slots
Last updated: November 29, 2026
Quick Overview
A Facebook in-stream video has 10 candidate mid-roll slots in a row, and 3 are chosen for ad breaks. How many choices leave no two breaks in neighboring slots, what is the probability a uniformly random choice satisfies this, and what is the expected number of neighboring pairs?
Meta
November 29, 20260
0
0 solved
A Facebook in-stream video has 10 candidate mid-roll slots in a row, and 3 are chosen for ad breaks. How many choices leave no two breaks in neighboring slots, what is the probability a uniformly random choice satisfies this, and what is the expected number of neighboring pairs?
Meta's video ads teams care about ad pacing because back-to-back breaks hurt viewer retention, and simulations of break placement come down to counting. The interviewer tests the gap (stars and bars) argument for non-adjacent selections and linearity of expectation for the pair count.
What the Interviewer Expects
- Maps non-adjacent choices to choices from n - k + 1 items
- Computes C(8,3) = 56 and the probability 56/120
- Computes expected neighboring pairs with indicators
- Cross checks with brute force or a small case
- Discusses the circular version or minimum-gap generalization
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
- How many choices keep at least 2 empty slots between breaks?
- What if slots are on a loop, like a looping Reels video?
- Is the number of neighboring pairs approximately Poisson here?
- How would you sample uniformly from non-adjacent placements?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Slots in a line. A choice is a 3-subset; neighboring means consecutive indices. The random choice is uniform over all subsets....
Approach
Gap argument: if chosen slots are with , map them to , which are distinct values in with no constraint. This is a bijection, so the count is $\bino...