Expected Swipes Until a New User Sees All Eight Interest Categories
Last updated: November 29, 2026
Quick Overview
A cold-start For You feed shows new users videos from 8 interest categories, each swipe drawing a category uniformly at random. What is the expected number of swipes until the user has seen every category at least once, and how spread out is that number?
TikTok
November 29, 20260
0
0 solved
A cold-start For You feed shows new users videos from 8 interest categories, each swipe drawing a category uniformly at random. What is the expected number of swipes until the user has seen every category at least once, and how spread out is that number?
TikTok data science screens often open with a probability question grounded in the feed, and this is the coupon collector problem in disguise. The interviewer checks that you decompose the wait into geometric stages, compute the number quickly, and connect it to an onboarding decision.
What the Interviewer Expects
- Recognizes the coupon collector structure
- Splits the process into stages with geometric waiting times
- Uses linearity of expectation to sum stage means
- Gives the variance or a sense of the tail, not only the mean
- Connects the result to how a cold-start explorer should be designed
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 does the answer change if one category is shown 30% of the time and the rest equally?
- What is the probability a user has seen all 8 within 20 swipes?
- How many swipes until the user has seen at least 6 of the 8 categories, in expectation?
- Why might a real explorer deliberately avoid sampling uniformly?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Each swipe independently shows one of n = 8 categories with probability 1/8. Count swipes until all 8 have appeared, including the swipe that completes the set. I assume users never stop early; real u...
Approach
Let stage i be the period after i distinct categories have been seen. In that stage, each swipe is new with probability , so the stage length is geometric with mean ...