Session Ready
Exercise

Exercise 2. Sampling with replacement

Say you’ve drawn 5 balls from the a box that has 3 cyan balls, 5 magenta balls, and 7 yellow balls, with replacement, and all have been yellow.

What is the probability that the next one is yellow?

Instructions
100 XP
  • Assign the variable p_yellow as the probability of choosing a yellow ball on the first draw.
  • Using the variable p_yellow, calculate the probability of choosing a yellow ball on the sixth draw.