PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Statistics & Math/Meta

Calculate Expected Meetings in Randomly Assigned Rooms

Last updated: Mar 29, 2026

Quick Overview

This question evaluates proficiency in probability theory, conditional expectation, and Bayesian reasoning applied to occupancy models, measuring a data scientist's competency in stochastic modeling and inference.

  • 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: This question evaluates proficiency in probability theory, conditional expectation, and Bayesian reasoning applied to occupancy models, measuring a data scientist's competency in stochastic modeling and inference.

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
84
0

Random Assignment of Meetings to Rooms

Scenario

  • There are N rooms and K meetings. Each meeting independently chooses a room uniformly at random (probability 1/N per room).

Questions

  1. Given that room 1 is not empty (i.e., has at least one meeting), what is the expected number of meetings in room 1?
  2. Now consider only two rooms and suppose the three macro-states are equally likely a priori: {both occupied, exactly one occupied, both empty} each with probability 1/3.
    • (a) Before entering, if you pick a room uniformly at random, what is the probability it is occupied?
    • (b) If you enter and find your chosen room occupied, what is the probability the other room is also occupied?

Solution

Show

Submit Your Answer

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 8,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.