PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches
|Home/Analytics & Experimentation/Meta

Compare two ad insertion strategies

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's competency in probability and statistical modeling, including computation of expectation and variance, binomial and normal approximations with continuity correction, Poisson or inclusion–exclusion approximations, and comparison of stochastic versus deterministic experimental designs.

  • medium
  • Meta
  • Analytics & Experimentation
  • Data Scientist

Compare two ad insertion strategies

Company: Meta

Role: Data Scientist

Category: Analytics & Experimentation

Difficulty: medium

Interview Round: Onsite

A feed shows 100 posts. Strategy A: independently turn each post into an ad with probability p = 0.04. Strategy B: deterministically make exactly one out of every 25 posts an ad (i.e., exactly 4 ads, spacing prevents adjacency). For each strategy: (a) Compute E[# ads] and Var[# ads]. (b) Under Strategy A, compute P(# ads ≥ 9) exactly and via a normal approximation with continuity correction; under Strategy B, compute the same probability. (c) Under Strategy A, derive the expected number of adjacent ad pairs and approximate P(at least one adjacent ad) using an appropriate method (e.g., inclusion–exclusion or Poisson approximation). (d) Which strategy is more likely to create back-to-back ads and why?

Quick Answer: This question evaluates a candidate's competency in probability and statistical modeling, including computation of expectation and variance, binomial and normal approximations with continuity correction, Poisson or inclusion–exclusion approximations, and comparison of stochastic versus deterministic experimental designs.

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
Oct 13, 2025, 9:49 PM
Data Scientist
Onsite
Analytics & Experimentation
0
0

Ad Insertion Strategies for a 100-Post Feed

You are evaluating two ad-insertion strategies on a feed with 100 posts:

  • Strategy A (Stochastic): Independently convert each post into an ad with probability p = 0.04.
  • Strategy B (Deterministic): Insert exactly 1 ad in every block of 25 posts (exactly 4 ads total in 100 posts), with spacing that prevents any two ads from being adjacent.

Answer the following:

(a) Compute the expected number of ads and the variance of the number of ads for each strategy.

(b) Compute P(# ads ≥ 9) under each strategy. For Strategy A, provide both the exact binomial expression and a normal approximation with continuity correction.

(c) Under Strategy A, compute the expected number of adjacent ad pairs (i.e., consecutive ads). Then approximate P(at least one adjacent ad) using a suitable method (e.g., inclusion–exclusion or a Poisson approximation).

(d) Which strategy is more likely to create back-to-back ads, and why?

Solution

Show

Comments (0)

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 7,500+ 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.