PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Statistics & Math/Meta

Compute conditional occupancy across two rooms

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a data scientist's understanding of conditional probability and Bayesian updating, testing probabilistic reasoning and inference about joint occupancy states.

  • easy
  • Meta
  • Statistics & Math
  • Data Scientist

Compute conditional occupancy across two rooms

Company: Meta

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Onsite

Two rooms may be occupied with the following priors: with probability 1/3 both rooms are occupied, with probability 1/3 exactly one room is occupied, and with probability 1/3 both are empty. You pick a room uniformly at random to check. (a) What is the probability the room you check is occupied? (b) Given you find your chosen room occupied, what is the probability the other room is also occupied? Show the Bayes calculation.

Quick Answer: This question evaluates a data scientist's understanding of conditional probability and Bayesian updating, testing probabilistic reasoning and inference about joint occupancy states.

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
Oct 13, 2025, 9:49 PM
Data Scientist
Onsite
Statistics & Math
4
0

Probability and Bayes Update: Two Rooms

Setup

There are two rooms. Prior over occupancy states:

  • With probability 1/3: both rooms are occupied.
  • With probability 1/3: exactly one room is occupied.
  • With probability 1/3: both rooms are empty.

You pick one room uniformly at random to check.

Tasks

(a) What is the probability the room you check is occupied?

(b) Given you find your chosen room occupied, what is the probability the other room is also occupied? Show the Bayes calculation.

Solution

Show

Submit Your Answer to Earn 20XP

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,000+ 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.