Distinguish sampling with replacement
Keep the numerator and denominator in the stated order. · 172 words
A fruit bowl contains 4 red apples and 6 green apples. An inspector draws 3 apples, records each color, and returns each apple before the next draw. This is sampling with replacement. Replacement means the sampled item goes back into the pool, so every draw again has 10 apples. The same apple can be drawn more than once, so red, red, green is possible. Each draw has P(red) = 4/10 = 0.40, and the draws are independent: an earlier result does not change the next probabilities.
A library has 10 books, including 4 cookbooks. If the library chooses 2 books and does not return the first, this is sampling without replacement. After a cookbook is chosen, 3 of the remaining 9 books are cookbooks, so P(cookbook on draw 2) = 3/9. The draws are dependent because the first choice changes what remains, and the same physical book cannot be chosen twice. With replacement, all 10 books would be available again, the probability would stay 4/10, and the same title could appear twice.
Check your recall
In the fruit bowl, after one red apple is drawn, how many red apples are available for the next draw in each method?
Check your answer
With replacement, 4 red apples are available because the first apple is returned, so P(red) = 4/10. Without replacement, only 3 red apples remain, so P(red) = 3/9.
Sources and credits
Original KeyTouch lesson. Background reading · UC Berkeley · Introduction to Artificial Intelligence.