With and without replacement
Key skillsDesign simulations that estimate selection probabilities with and without replacement.
Build the idea
Replacement changes the second-stage probabilities. A valid digital simulation must update the available composition after a draw when replacement is absent. Use independent uniform numbers for successive draws, but apply the correct threshold at each stage. Short run estimates can differ from exact probabilities; that variation is expected and does not by itself indicate an error.
Try the sample task
A bag has two red and one blue ball. Give a uniform-number simulation for two draws with replacement and for two draws without replacement. Find the exact probability of two reds in each case.
The full worksheet includes the worked solution and remaining task set.
What this activity covers
Focused on implementing both schemes with supplied inputs; a long random experiment is an extension.