Use Bayes for factory identification
SIG (Susquehanna)Data Scientist · Online AssessmentLast updated
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.
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?
Solution walkthrough is for members
Get the full walkthrough with reference code and complexity analysis, plus Kitty Coach at 300 messages a day. Hints, the code runner and community answers stay free.