Sampling With Replacement
Every question with a fully worked solution.
- Sampling With Replacement - Video - How to Compute a Probability (With Replacement) Watch
Theory
In sampling with replacement each item is put back before the next draw, so the probabilities are the same on every draw and the draws are independent. This Year 11 Mathematics Advanced page shows how to use arrays and tree diagrams for multi-stage experiments, multiply along a path and add paths, and solve "exactly", "at least one" and "how many trials" problems.
A multi-stage experiment happens in stages: toss a coin then roll a die, draw two counters from a box, or take three shots at goal. When an item is drawn and replaced before the next draw, the box is the same every time. So the probability of each colour is the same on every draw, and the draws are independent.
The same model fits any repeated independent trials: rolling a die again, a player who scores with the same probability on every shot "independently", or choosing people from a very large population ("treat the selections as independent"). It also fits two separate stages, such as a marble from one bag and then a marble from a second bag.
For two stages with equally likely outcomes, an array (a table of outcomes) shows every pair. A first stage with \(m\) results and a second stage with \(n\) results give \(m\times n\) equally likely outcomes. Count the cells you want and divide by \(m\times n\).
A tree diagram shows each stage as a set of branches. A path is one outcome of the whole experiment, such as \(RG\) for red then green. Multiply along a path: \(P(RG)=P(R)\times P(G)\). Add different paths that make up an event: \(P(\text{one of each})=P(RG)+P(GR)\). All the paths of a tree add to \(1\).
For "exactly two goals from three shots", list every path with exactly two goals: \(GGM\), \(GMG\), \(MGG\), where \(M\) is a miss. They all have the same probability, so multiply one path by the number of paths.
For "at least one", use the complement: \(P(\text{at least one})=1-P(\text{none})\). For "how many trials are needed", write the condition as an inequality and test whole-number values of \(n\).
Multiply along a path (independent stages):
Add the paths that make up the event:
Array of two stages with \(m\) and \(n\) equally likely outcomes:
At least one success in \(n\) independent trials, each with success probability \(p\):
How to solve a multi-stage problem
- Write the probability of each result at each stage. With replacement, these stay the same at every stage.
- Draw an array (two stages, equally likely outcomes) or a tree diagram, or list the paths.
- Multiply along each path you need.
- Add the paths that make up the event. For "at least one", use \(1-P(\text{none})\) instead.
- Simplify the fraction, or round only at the end.
Finding the least number of trials
- Write \(P(\text{at least one})=1-q^{n}\), where \(q\) is the probability of failure on one trial.
- Rearrange the condition, e.g. \(1-q^{n}>0.9\) becomes \(q^{n}<0.1\).
- Test whole numbers \(n\) on the calculator until the condition first holds, showing the value just before it as well.
(i) the sum is at least \(8\)
(ii) the six-sided die shows a larger number than the four-sided die.
Give fraction answers in simplest form.
The array has \(6\times 4=24\) equally likely outcomes. Each cell shows the sum; sums of at least \(8\) are in bold.
| 6-sided \ 4-sided | \(1\) | \(2\) | \(3\) | \(4\) |
|---|---|---|---|---|
| \(1\) | \(2\) | \(3\) | \(4\) | \(5\) |
| \(2\) | \(3\) | \(4\) | \(5\) | \(6\) |
| \(3\) | \(4\) | \(5\) | \(6\) | \(7\) |
| \(4\) | \(5\) | \(6\) | \(7\) | \(\mathbf{8}\) |
| \(5\) | \(6\) | \(7\) | \(\mathbf{8}\) | \(\mathbf{9}\) |
| \(6\) | \(7\) | \(\mathbf{8}\) | \(\mathbf{9}\) | \(\mathbf{10}\) |
(i) Sums of at least \(8\): \((4,4)\), \((5,3)\), \((5,4)\), \((6,2)\), \((6,3)\), \((6,4)\), so \(6\) outcomes.
| \(P(\text{sum}\ge 8)\) | \(=\) | \(\dfrac{6}{24}\) |
| \(\) | \(=\) | \(\mathbf{\dfrac{1}{4}}\) |
(ii) Count down each column of the four-sided die: it shows \(1\), and the six-sided die is larger in \(5\) cells; then \(4\), \(3\) and \(2\) cells for \(2\), \(3\) and \(4\).
| \(P(\text{larger})\) | \(=\) | \(\dfrac{5+4+3+2}{24}\) |
| \(\) | \(=\) | \(\dfrac{14}{24}\) |
| \(\) | \(=\) | \(\mathbf{\dfrac{7}{12}}\) |
(i) two green marbles
(ii) one marble of each colour
(iii) at least one red marble.
Give fraction answers in simplest form.
With replacement, \(P(R)=\dfrac{3}{8}\) and \(P(G)=\dfrac{5}{8}\) on both draws.
(i) Multiply along the path \(GG\):
| \(P(GG)\) | \(=\) | \(\dfrac{5}{8}\times\dfrac{5}{8}\) |
| \(\) | \(=\) | \(\mathbf{\dfrac{25}{64}}\) |
(ii) One of each is \(RG\) or \(GR\):
| \(P(\text{one of each})\) | \(=\) | \(P(RG)+P(GR)\) |
| \(\) | \(=\) | \(\dfrac{3}{8}\times\dfrac{5}{8}+\dfrac{5}{8}\times\dfrac{3}{8}\) |
| \(\) | \(=\) | \(\dfrac{15}{64}+\dfrac{15}{64}\) |
| \(\) | \(=\) | \(\dfrac{30}{64}\) |
| \(\) | \(=\) | \(\mathbf{\dfrac{15}{32}}\) |
(iii) At least one red is everything except \(GG\):
| \(P(\text{at least one red})\) | \(=\) | \(1-P(GG)\) |
| \(\) | \(=\) | \(1-\dfrac{25}{64}\) |
| \(\) | \(=\) | \(\mathbf{\dfrac{39}{64}}\) |
(i) all three germinate
(ii) exactly two germinate
(iii) at least one germinates.
Give your answers as decimals.
Let \(G\) = germinates \((0.7)\) and \(N\) = does not germinate \((0.3)\).
(i) Multiply along the path \(GGG\):
| \(P(GGG)\) | \(=\) | \(0.7\times 0.7\times 0.7\) |
| \(\) | \(=\) | \(\mathbf{0.343}\) |
(ii) The paths with exactly two \(G\) are \(GGN\), \(GNG\) and \(NGG\). Each has probability \(0.7\times 0.7\times 0.3=0.147\).
| \(P(\text{exactly two})\) | \(=\) | \(3\times 0.147\) |
| \(\) | \(=\) | \(\mathbf{0.441}\) |
(iii) Use the complement of "none germinate", the path \(NNN\):
| \(P(\text{at least one})\) | \(=\) | \(1-P(NNN)\) |
| \(\) | \(=\) | \(1-0.3^{3}\) |
| \(\) | \(=\) | \(1-0.027\) |
| \(\) | \(=\) | \(\mathbf{0.973}\) |
In \(n\) games, \(P(\text{no prize})=0.8^{n}\), so \(P(\text{at least one prize})=1-0.8^{n}\).
| \(1-0.8^{n}\) | \(>\) | \(0.8\) |
| \(0.8^{n}\) | \(<\) | \(0.2\) |
Test values of \(n\):
| \(0.8^{7}\) | \(=\) | \(0.2097\ldots\ \text{ (not less than } 0.2)\) |
| \(0.8^{8}\) | \(=\) | \(0.1677\ldots\ \text{ (less than } 0.2)\) |
\(\therefore\) the player must play at least \(\mathbf{8}\) games.
Check: with \(8\) games, \(P(\text{at least one prize})=1-0.1677\ldots=0.832\ldots\), which is greater than \(0.8\).
Common pitfalls
Frequently asked questions
What is sampling with replacement?
Each item drawn is put back before the next draw. The contents are the same for every draw, so the probabilities do not change and the draws are independent.
What is the difference between sampling with and without replacement?
With replacement, the probabilities are the same on every draw. Without replacement, the item is kept out, so the numbers in the second-stage fractions go down and depend on the first draw.
When do you multiply and when do you add probabilities?
Multiply along a path, for one stage and then another. Add different paths, for one result or another.
How do you find the probability of at least one success?
Work out the probability of no successes, then subtract it from \(1\). For \(n\) independent trials with success probability \(p\), the answer is \(1-(1-p)^{n}\).
What is an array in probability?
An array is a table of outcomes for a two-stage experiment. The rows are the results of one stage and the columns the results of the other, so every cell is one equally likely outcome.
How do you draw a tree diagram for drawing with replacement?
Draw one set of branches for each draw. With replacement, every set of branches has the same probabilities. Write the path products at the ends of the branches; they add to \(1\).