PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches
|Home/Statistics & Math/Meta

Calculate Ad Insertion Statistics for Two Methods

Last updated: Mar 29, 2026

Quick Overview

This question evaluates competency in probability and statistical modeling—expectation, variance, tail probabilities, and dependence/clustering in discrete sequences—within the Statistics & Math domain.

  • medium
  • Meta
  • Statistics & Math
  • Data Scientist

Calculate Ad Insertion Statistics for Two Methods

Company: Meta

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Onsite

##### Scenario Comparing two ways of inserting ads in a 100-post news feed ##### Question Option A: each post independently becomes an ad with probability 4%. Option B: exactly 1 out of every 25 posts is an ad. For each option, compute the expected number and variance of ads in 100 posts. For each option, what is the probability of showing more than twice the expected number of ads? For each option, estimate the expected count of adjacent ad pairs and determine which option is more likely to create long runs of ads. ##### Hints Use binomial moments for A, deterministic counts for B, normal tail approximation, and (n− 1)p² for adjacent-pair expectation.

Quick Answer: This question evaluates competency in probability and statistical modeling—expectation, variance, tail probabilities, and dependence/clustering in discrete sequences—within the Statistics & Math domain.

Related Interview Questions

  • Compute probability an account is fake - Meta (easy)
  • Compute Bayes probability for fake accounts - Meta (easy)
  • Compute probabilities for chatbot response quality - Meta (easy)
  • Compute posterior fake probability using Bayes' rule - Meta (medium)
  • Estimate bots and CI from DAU spike - Meta (medium)
Meta logo
Meta
Jul 12, 2025, 6:59 PM
Data Scientist
Onsite
Statistics & Math
71
0

Scenario

Evaluating two ad-insertion strategies in a 100-post feed.

  • Option A (independent placement): Each post independently becomes an ad with probability p = 0.04.
  • Option B (quota per block): Exactly 1 out of every 25 posts is an ad.

Assumption for Option B: The total ad count is deterministic (4 ads in 100 posts). If positions are not fixed, assume 4 blocks of 25 posts; in each block, the ad’s position is chosen uniformly at random and independently across blocks. If positions are fixed (e.g., every 25th post), call that out where it affects adjacency.

Questions

  1. For each option, compute the expected number and variance of ads in 100 posts.
  2. For each option, compute the probability of showing more than twice the expected number of ads.
  3. For each option, estimate the expected count of adjacent ad pairs (i.e., post i and i+1 both ads) and determine which option is more likely to create long runs of ads.

Hints: Use binomial moments for A, deterministic counts for B, normal tail approximation, and (n−1) p^2 for adjacent-pair expectation.

Solution

Show

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More Meta•More Data Scientist•Meta Data Scientist•Meta Statistics & Math•Data Scientist Statistics & Math
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.