Delta Method Variance for Per-Video Engagement Ratio Metrics
Last updated: November 29, 2026
Quick Overview
Your experiment is randomized by user, but the metric is likes per video viewed. Explain why the naive standard error is wrong and compute the correct one with the delta method.
TikTok
November 29, 20260
0
0 solved
Your experiment is randomized by user, but the metric is likes per video viewed. Explain why the naive standard error is wrong and compute the correct one with the delta method.
TikTok experiment dashboards include many ratio metrics such as likes per view or completion per impression. Senior data science interviews probe whether candidates understand the mismatch between the randomization unit and the analysis unit, and can apply the delta method.
What the Interviewer Expects
- Explain why views within a user are not independent
- Write the ratio as a ratio of user-level means
- Derive the delta method variance
- Implement it and compare with the naive estimate
- Mention bootstrap at the user level as an alternative
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
- When would the naive estimate be close to correct?
- How does this interact with CUPED?
- Why not just compute each user's ratio and average it?
- How would you do this in SQL across billions of rows?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Analytics QuestionsSample Answer
Clarify
Randomization is by user, so users are the independent units. Each user contributes views and likes. The metric is . Treating each view as an ind...
Approach
The naive standard error assumes independence between views and will usually be too small, giving false positives. The delta method linearizes around the mea...