Skip to content

Sampling With and Without Replacement

Definition

Let AA be a finite set of nn distinct objects, and draw kk 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 kk drawn objects are distinct and k≤nk\le n.

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 k!k! orders of the same kk objects.

Two-by-two table of the counts for drawing 3 of 10 tickets: 1000 and 720 ordered samples, 220 and 120 unordered, with an arrow dividing 720 by 3! to get 120.

The table places the four counts of the first example, k=3k=3 draws from n=10n=10 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 3!=63!=6 ordered ones, so dividing 720720 by 3!3! gives (103)=120\binom{10}{3}=120. With replacement the same division fails, because 1000/3!1000/3! is not even an integer: a sample with repeats has fewer than 3!3! orders, which is why the 220220 unordered samples with replacement are not equally likely.

With replacement, every draw faces the same nn 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 nn balls from an urn with NN balls, KK of them white, and count the white balls drawn. Both counts have mean nK/NnK/N, but without replacement the variance carries the extra factor (N−n)/(N−1)(N-n)/(N-1). Make NN large compared with nn 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 kk from nn distinct objects is:

  • ordered, with replacement: nkn^k;
  • ordered, without replacement: n(n−1)⋯(n−k+1)=n!/(n−k)!n(n-1)\cdots(n-k+1)=n!/(n-k)!, the number of kk-permutations; it is 00 when k>nk>n;
  • unordered, without replacement: the binomial coefficient (nk)\binom{n}{k};
  • unordered, with replacement: (n+k−1k)\binom{n+k-1}{k}, 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 k!k! orderings of one unordered sample, so (nk)=n!k! (n−k)!\binom{n}{k}=\dfrac{n!}{k!\,(n-k)!}.
  • Without replacement, the jjth draw on its own is still uniform over all nn objects: by symmetry, as many ordered samples have a given object in place jj as in place 11. Only the joint behaviour of the draws differs from sampling with replacement.
  • A particular object is included in the sample with probability k/nk/n without replacement and 1−(1−1/n)k1-(1-1/n)^k with replacement; the latter is smaller for k≥2k\ge2, because repeats waste draws.
  • With replacement, all kk draws are distinct with probability n(n−1)⋯(n−k+1)/nkn(n-1)\cdots(n-k+1)/n^k, the ratio of the two ordered counts.

Looking ahead to Week 3: if nn balls are drawn from an urn with NN balls, KK of them white, the number of white balls drawn has the binomial distribution Bin⁡(n,K/N)\operatorname{Bin}(n,K/N) with replacement and the hypergeometric distribution without replacement. Both have mean nK/NnK/N; sampling without replacement has the smaller variance, and the two are close when NN is large compared with nn.


Examples

  • Choosing 33 of 1010 numbered tickets gives 103=100010^3=1000 ordered samples with replacement, 10⋅9⋅8=72010\cdot9\cdot8=720 ordered samples without replacement, (103)=120\binom{10}{3}=120 unordered samples without replacement, and (123)=220\binom{12}{3}=220 unordered samples with replacement.
  • In the same setting, ticket number 77 is among the three draws with probability 3/10=0.33/10=0.3 without replacement, and 1−0.93=0.2711-0.9^3=0.271 with replacement.
  • An urn holds 2020 balls, 88 of them red, and 66 are drawn. The probability of no red ball is 0.66≈0.04670.6^6\approx0.0467 with replacement, but (126)/(206)=924/38760≈0.0238\binom{12}{6}/\binom{20}{6}=924/38760\approx0.0238 without replacement.
  • From the same urn, two balls are drawn without replacement. Of the 20⋅19=38020\cdot19=380 ordered pairs, 8⋅7=568\cdot7=56 are red–red and 12⋅8=9612\cdot8=96 are non-red–red, so the second ball is red with probability 152/380=0.4=8/20152/380=0.4=8/20, the same as the first.
  • Two draws with replacement from {1,2}\{1,2\} give the (32)=3\binom{3}{2}=3 unordered samples {1,1}\{1,1\}, {1,2}\{1,2\} and {2,2}\{2,2\}, but with probabilities 14,12,14\tfrac{1}{4},\tfrac{1}{2},\tfrac{1}{4}: the mixed sample arises from the two ordered samples (1,2)(1,2) and (2,1)(2,1).
  • In the birthday problem, assigning birthdays to kk people is ordered sampling with replacement from 365365 days (365k365^k outcomes), and all birthdays distinct is ordered sampling without replacement. Hence
P(no match)=365!/(365−k)!365k.\mathbb{P}(\text{no match})=\frac{365!/(365-k)!}{365^k}.

Prerequisites

Sources

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