PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Analytics & Experimentation/Meta

Comparing two ad‑insertion strategies

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's ability to model and compare randomized versus deterministic ad-insertion policies using probability and statistical concepts such as expectation, variance, and tail (overload) probabilities.

  • medium
  • Meta
  • Analytics & Experimentation
  • Data Scientist

Comparing two ad‑insertion strategies

Company: Meta

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: medium

Interview Round: Onsite

Scenario: Team A wants 4 % random replacement; Team B prefers a fixed 1‑in‑25 slot. Compare expected ad counts, variance, and risk of overload. ​ Question 1: Compare two insertion methods—4 % random vs 1‑in‑25 fixed—calculate expectation, variance, and chance of exceeding twice expectation. (Hint: binomial distribution, load smoothing)

Quick Answer: This question evaluates a candidate's ability to model and compare randomized versus deterministic ad-insertion policies using probability and statistical concepts such as expectation, variance, and tail (overload) probabilities.

Related Interview Questions

  • Measure scheduled posts feature success - Meta (medium)
  • Estimate ads ranking revenue impact - Meta (medium)
  • How should you evaluate unconnected content? - Meta (medium)
  • Should WhatsApp launch group calls? - Meta (medium)
  • How would you grow Meta products? - Meta (medium)
Meta logo
Meta
Jul 12, 2025, 6:59 PM
Data Scientist
Onsite
Analytics & Experimentation
13
0

Comparing Two Ad Insertion Methods: 4% Random vs Fixed 1-in-25

Context

You are designing an ad insertion system. In any short time bucket or session, suppose there are n eligible content slots (impressions) where an ad could be inserted.

Two teams propose different policies:

  • Team A: Replace each slot independently with probability p = 0.04 (4% random replacement).
  • Team B: Use a fixed periodic schedule of exactly 1 ad every 25 slots (a 1-in-25 slot), i.e., a deterministic pattern with period 25.

Assume buckets are contiguous sequences of n slots; when relevant, assume the starting phase of the fixed schedule is uniformly random across the 25 positions (this models arbitrary bucket alignment in production).

Task

  1. For each method, compute in a bucket of n slots:
    • Expected number of ads.
    • Variance of the number of ads.
  2. For each method, compute (or tightly bound/approximate) the probability that the number of ads in a bucket exceeds twice its expectation (risk of overload).
  3. Briefly compare the methods in terms of expected counts, variability (load smoothing), and overload risk.

Hint: For the 4% random method, model the count of ads with a binomial distribution.

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Analytics & Experimentation•More Meta•More Data Scientist•Meta Data Scientist•Meta Analytics & Experimentation•Data Scientist Analytics & Experimentation
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.