Sampling With and Without Replacement¶
Definition¶
Let be a finite set of distinct objects, and draw of them one at a time.
- With replacement: each drawn object is put back before the next draw, so the same object can be drawn more than once.
- Without replacement: drawn objects are removed, so all drawn objects are distinct and .
A sample is ordered if the order of the draws is recorded, and unordered if only which objects were drawn (with their multiplicities) matters.
Interpretation¶
The two choices give four counting problems. Ordered samples are counted with the multiplication rule; an unordered sample without replacement is a combination, obtained from the ordered count by dividing out the orders of the same objects.
The table places the four counts of the first example, draws from tickets, in a grid: the columns say whether drawn tickets are put back, the rows whether the order is recorded. Only in the column without replacement does every unordered sample come from exactly ordered ones, so dividing by gives . With replacement the same division fails, because is not even an integer: a sample with repeats has fewer than orders, which is why the unordered samples with replacement are not equally likely.
With replacement, every draw faces the same objects, so the history of earlier draws changes nothing; in the language of Week 2, the draws are independent with the same distribution. Without replacement, each draw changes what remains, so the draws are dependent: after a red ball is removed, a second red ball is less likely.
Draw balls from an urn with balls, of them white, and count the white balls drawn. Both counts have mean , but without replacement the variance carries the extra factor . Make large compared with and the two distributions merge.
Two common slips are worth naming. First, "without replacement" does not by itself mean "unordered": dealing cards one by one is ordered sampling without replacement, and a hand of cards is the unordered version of the same experiment. Second, the unordered samples with replacement must not be treated as equally likely, as the Key Results explain.
Key Results¶
The number of possible samples of size from distinct objects is:
- ordered, with replacement: ;
- ordered, without replacement: , the number of -permutations; it is when ;
- unordered, without replacement: the binomial coefficient ;
- unordered, with replacement: , by stars and bars.
In the first three cases every sample is equally likely when each draw is uniform, so naive probability applies. The unordered samples with replacement are not equally likely, so probabilities should be computed from ordered samples instead.
- Each ordered sample without replacement corresponds to exactly orderings of one unordered sample, so .
- Without replacement, the th draw on its own is still uniform over all objects: by symmetry, as many ordered samples have a given object in place as in place . Only the joint behaviour of the draws differs from sampling with replacement.
- A particular object is included in the sample with probability without replacement and with replacement; the latter is smaller for , because repeats waste draws.
- With replacement, all draws are distinct with probability , the ratio of the two ordered counts.
Looking ahead to Week 3: if balls are drawn from an urn with balls, of them white, the number of white balls drawn has the binomial distribution with replacement and the hypergeometric distribution without replacement. Both have mean ; sampling without replacement has the smaller variance, and the two are close when is large compared with .
Examples¶
- Choosing of numbered tickets gives ordered samples with replacement, ordered samples without replacement, unordered samples without replacement, and unordered samples with replacement.
- In the same setting, ticket number is among the three draws with probability without replacement, and with replacement.
- An urn holds balls, of them red, and are drawn. The probability of no red ball is with replacement, but without replacement.
- From the same urn, two balls are drawn without replacement. Of the ordered pairs, are red–red and are non-red–red, so the second ball is red with probability , the same as the first.
- Two draws with replacement from give the unordered samples , and , but with probabilities : the mixed sample arises from the two ordered samples and .
- In the birthday problem, assigning birthdays to people is ordered sampling with replacement from days ( outcomes), and all birthdays distinct is ordered sampling without replacement. Hence
Prerequisites¶
Related Concepts¶
- Binomial Coefficient
- Stars and Bars
- Naive Probability
- Birthday Problem
- Binomial Distribution
- Hypergeometric Distribution
Sources¶
- Probability Theory for EOR · Week 1
- Probability Theory for EOR · Week 3 (binomial and hypergeometric distributions)
Aliases: sampling with replacement, sampling without replacement, ordered and unordered samples Keywords: sampling table, urn model, drawing with replacement, drawing without replacement, n^k, ordered sample, unordered sample
Last updated: 17 October 2026 21:53
Sampling With and Without ReplacementHypergeometric DistributionCountingMultiplication Rule for Countingk-PermutationCombinationBinomial CoefficientStars and BarsNaive ProbabilityBirthday ProblemBinomial Distribution