PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Statistics & Math/SIG (Susquehanna)

Use Bayes for factory identification

Last updated: Mar 29, 2026

Quick Overview

This question evaluates understanding of Bayesian inference and conditional probability by asking for the posterior probability that two observed black widgets originated from a specific factory.

  • easy
  • SIG (Susquehanna)
  • Statistics & Math
  • Data Scientist

Use Bayes for factory identification

Company: SIG (Susquehanna)

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Take-home Project

Factory A produces 40% red and 60% black widgets; Factory B produces 80% red and 20% black widgets. One factory is chosen uniformly at random, and then two widgets are sampled uniformly at random from that factory. Given that both sampled widgets are black, what is the probability they came from Factory A?

Quick Answer: This question evaluates understanding of Bayesian inference and conditional probability by asking for the posterior probability that two observed black widgets originated from a specific factory.

Related Interview Questions

  • Compute sample sizes and error control - SIG (Susquehanna) (Medium)
  • Determine roles from B's accusation - SIG (Susquehanna) (easy)
  • Infer posterior after losing pick - SIG (Susquehanna) (easy)
  • Determine departure time from travel times - SIG (Susquehanna) (medium)
  • Compute ruin probability with bold betting - SIG (Susquehanna) (medium)
SIG (Susquehanna) logo
SIG (Susquehanna)
Aug 11, 2025, 12:00 AM
Data Scientist
Take-home Project
Statistics & Math
4
0

Bayesian inference: Which factory given two black widgets?

Setup

  • Two factories produce red and black widgets.
    • Factory A: 40% red, 60% black.
    • Factory B: 80% red, 20% black.
  • One factory is chosen uniformly at random (each with probability 1/2).
  • Two widgets are then sampled uniformly at random from that chosen factory.
  • You observe that both sampled widgets are black.

Assumption: draws are independent conditional on the factory (equivalently, sampling with replacement or from a very large batch).

Task

Compute the posterior probability that the widgets came from Factory A given that both sampled widgets are black: P(A | both black).

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More SIG (Susquehanna)•More Data Scientist•SIG (Susquehanna) Data Scientist•SIG (Susquehanna) 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.