Compute stockout sufficiency probability
SIG (Susquehanna)Data Scientist · Online AssessmentLast updated
This question evaluates understanding of discrete probability and binomial models for independent Bernoulli trials, testing the ability to compute the probability that a limited resource meets random demand.
In a bakery, each customer buys one item: a croissant with probability 70% and a muffin with probability 30%, independently. There are 2 muffins left and 5 customers remain in line. What is the probability that the two muffins suffice (i.e., no customer wants a muffin after muffins are depleted)?
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.