Microsoft · Probability & Brainteasers
Compute P(Bag B | red) via Bayes
TrueInterview
October 7, 2026 · 1 min read
There are three bags containing red (r) and green (g) balls:
- Bag A: 4 r, 6 g
- Bag B: 6 r, 4 g
- Bag C: 3 r, 7 g Procedure: choose one bag uniformly at random, then draw one ball from that bag. Given that the drawn ball is red, compute the posterior probability that it came from Bag B, i.e., . Show all steps using Bayes' rule. Follow-up: if instead the bag is chosen with probabilities , , , recompute and explain the intuition for how the prior changes the result. Overview: This question tests understanding of Bayes' rule and conditional probability by requiring the posterior probability that a particular bag was chosen given a red draw.
Loading comments…