PracHub
QuestionsLearningGuidesInterview Prep
|Home/Statistics & Math/Meta

Calculate Expected Impressions and Probability for Users

Last updated: Mar 29, 2026

Quick Overview

Meta probability question on random ad-impression allocation, including binomial expectation, probability a user sees at least one impression, expected unique reach, and large-population approximations.

  • easy
  • Meta
  • Statistics & Math
  • Data Scientist

Calculate Expected Impressions and Probability for Users

Company: Meta

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Onsite

##### Scenario Randomly allocating Y ad impressions to X users ##### Question Given X users and Y impressions assigned uniformly at random, what is the expected number of impressions a particular user receives? What is the probability that a specific user sees at least one impression? What is the expected number of users who see at least one impression? ##### Hints Model each assignment as Bernoulli with p = 1⁄X, then apply binomial expectation, complement rule, and linearity.

Quick Answer: Meta probability question on random ad-impression allocation, including binomial expectation, probability a user sees at least one impression, expected unique reach, and large-population approximations.

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)
|Home/Statistics & Math/Meta

Calculate Expected Impressions and Probability for Users

Meta logo
Meta
Jul 12, 2025, 6:59 PM
easyData ScientistOnsiteStatistics & Math
16
0

Expected Impressions From Random Ad Allocation

There are X distinct users and Y ad impressions. Each impression is assigned independently and uniformly at random to one of the X users. A user may receive multiple impressions.

Constraints & Assumptions

  • Model each impression assignment as an independent trial.
  • Keep answers symbolic in terms of X and Y .
  • State when the binomial model and complement rule are being used.
  • You may include large- X approximations if helpful.

Clarifying Questions to Ask Guidance

  • Are impressions assigned independently with replacement across users?
  • Are users equally likely to receive each impression?
  • Are we counting total impressions, unique reached users, or both?

What a Strong Answer Covers Guidance

  • For a fixed user, the impression count follows Binomial(Y, 1/X) .
  • Expected impressions for one user are Y / X .
  • Probability a specific user sees at least one impression is 1 - (1 - 1/X)^Y .
  • Expected number of users reached at least once is X * [1 - (1 - 1/X)^Y] by linearity of expectation.
  • For large X , with lambda = Y/X , use (1 - 1/X)^Y approx exp(-lambda) as a useful approximation.
  • Edge cases such as Y = 0 , very small X , and non-uniform allocation.

Follow-up Questions Guidance

  • What is the variance of impressions for a particular user?
  • How would the answer change if impressions were capped at one per user?
  • How would non-uniform user eligibility affect expected reach?
Loading comments...

Browse More Questions

More Statistics & Math•More Meta•More Data Scientist•Meta Data Scientist•Meta Statistics & Math•Data Scientist Statistics & Math

Write your answer

Your first approved answer each day earns 20 XP.

Sign in to write your answer.
PracHub

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

Product

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

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • AI Coding 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.