PracHub
QuestionsLearningGuidesInterview Prep
|Home/Statistics & Math/Meta

Calculate Expected Meetings in Randomly Assigned Rooms

Last updated: Mar 29, 2026

Quick Overview

Meta probability prompt on meetings assigned to rooms, covering binomial conditional expectation, conditioning on non-empty rooms, two-room occupancy states, total probability, and Bayes' theorem.

  • medium
  • Meta
  • Statistics & Math
  • Data Scientist

Calculate Expected Meetings in Randomly Assigned Rooms

Company: Meta

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Onsite

##### Scenario Meetings randomly assigned to conference rooms ##### Question N rooms are available and K meetings are scheduled uniformly at random. Given that room 1 is not empty, what is the expected total number of meetings in room 1? Now assume two rooms where the trio of states {both occupied, exactly one occupied, both empty} are equally likely. Before entering, what is the probability the room you pick is occupied? If you enter and find it occupied, what is the probability the other room is also occupied? ##### Hints Apply Bayes’ theorem and conditional expectations; the first part is a binomial conditioned on non-zero, the second uses the law of total probability.

Quick Answer: Meta probability prompt on meetings assigned to rooms, covering binomial conditional expectation, conditioning on non-empty rooms, two-room occupancy states, total probability, and Bayes' theorem.

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 Meetings in Randomly Assigned Rooms

Meta logo
Meta
Jul 12, 2025, 6:59 PM
mediumData ScientistOnsiteStatistics & Math
85
0

Expected Meetings in Randomly Assigned Rooms

You are solving two probability questions about room occupancy.

Constraints & Assumptions

  • In the first question, each of K meetings independently chooses one of N rooms uniformly at random.
  • In the second question, the three macro-states {both occupied, exactly one occupied, both empty} are equally likely before you choose a room.
  • State the conditioning event carefully.
  • Use Bayes' theorem or conditional expectation where appropriate.

Clarifying Questions to Ask Guidance

  • Are meetings assigned independently?
  • Is room 1 conditioned to have at least one meeting, or exactly one?
  • In the two-room question, are the three macro-states really equally likely, or are they induced by a meeting-assignment process?
  • Do we pick a room uniformly at random before observing occupancy?

What a Strong Answer Covers Guidance

  • For room 1, define X ~ Binomial(K, 1/N) .
  • Use E[X | X > 0] = E[X] / P(X > 0) for nonnegative X .
  • Compute E[X | X > 0] = (K/N) / [1 - (1 - 1/N)^K] .
  • For two rooms, compute P(picked room occupied) using total probability over the three macro-states.
  • After observing the chosen room is occupied, compute the posterior probability that both rooms are occupied using Bayes' theorem.
  • Explain why the equal-macro-state assumption is different from assigning meetings independently.

Follow-up Questions Guidance

  • What is the Poisson approximation when K/N is moderate?
  • How would the answer change if every room were equally likely to be empty or occupied independently?
  • Why does conditioning on "not empty" increase the expected count?
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.