Compute urn-draw probabilities and expectations
MathWorksSoftware Engineer · Online AssessmentLast updated
This question evaluates understanding of elementary probability concepts—dependent events, conditional probability, and expected value—using an urn model with draws without replacement.
An urn contains 5 red and 7 blue balls. You draw two balls uniformly at random without replacement. (a) What is the probability of drawing at least one red? (b) Given that the first draw is blue, what is the probability the second draw is red? (c) What is the expected number of red balls drawn in two draws? Show calculations.
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.