How Many Distinct Users Appear in Random Survey Draws

Last updated: November 29, 2026

Quick Overview

A Facebook survey tool draws 10,000 user IDs uniformly with replacement from a pool of 50,000 eligible users. What is the expected number of distinct users invited, and what fraction of the pool is never invited?

Meta
Statistics & Math
Data Scientist
Meta
November 29, 2026
Data Scientist
Online Assessment
Statistics & Math
Easy

0

0

0 solved


A Facebook survey tool draws 10,000 user IDs uniformly with replacement from a pool of 50,000 eligible users. What is the expected number of distinct users invited, and what fraction of the pool is never invited?

A short probability question used in Meta assessments and screens that tests linearity of expectation with indicator variables. Interviewers like it because the direct counting approach is messy while the indicator approach is two lines.

What the Interviewer Expects
  • Define an indicator for each user being drawn at least once
  • Use linearity of expectation without needing independence
  • Compute (1 - 1/N)^k and approximate it with an exponential
  • Interpret the never-invited fraction
  • Note how sampling without replacement changes the answer
Key Topics to Cover
linearity of expectation
indicator variables
sampling with replacement
exponential approximation
occupancy problem
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • What is the variance of the number of distinct users?
  • How many draws are needed for 90% of the pool to be invited at least once?
  • How would you get exactly 10,000 distinct users efficiently?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify
  • Pool size N=50,000N = 50{,}000, draws k=10,000k = 10{,}000, each uniform with replacement.
  • DD = number of distinct users drawn at least once....
Approach

Write D=∑u=1NIuD = \sum_{u=1}^{N} I_u where Iu=1I_u = 1 if user uu is drawn at least once. Then E[D]=∑uP(Iu=1)=N[1−(1−1N)k].E[D] = \sum_u P(I_u = 1) = N\left[1 - \left(1 - \tfrac{1}{N}\right)^k\right]. Linearity holds even though th...


Submit Your Answer
Markdown supported