Skip to content
VidiMaster it, module by module
Module 6/Probability Spaces & Rules

Counting and the Four Sampling Methods

Probability on a finite, equally likely sample space collapses to counting: P(A)=#A/#ΩP(A)=\#A/\#\Omega. This lesson organizes that counting around two yes/no questions about how a sample of size kk is drawn from nn objects --- does order matter? and is each object replaced before the next draw? --- giving a 2×22\times2 grid of four sampling schemes. Three of them produce equally likely outcomes and power every probability here: ordered-with-replacement (nkn^k, Example 10.6), ordered-without-replacement (n!/(n−k)!n!/(n-k)!, Example 10.7), and unordered-without-replacement ((nk)\binom{n}{k}, Example 10.8). We count each scheme, see how dividing an ordered count by k!k! produces combinations, and turn the counts into probabilities --- including Jordan's books solved two ways (Example 10.9, Remark 10.4) and the three contrasting scenarios of Example 10.10.

Before you start — give these a try

Attempting first primes your brain for the lesson — even if you miss. Nothing is graded or saved; it's just a warm-up.

In how many ways can the President, Secretary, and Treasurer be chosen from a club of 66 members, if no member holds more than one office?

A committee of 33 people is chosen from a group of 77. The committee has no internal roles. How many different committees are possible?

What you’ll be able to do

  • Classify any finite sampling problem by its two independent choices --- order matters or not and with or without replacement --- into one of the four schemes set up in \S10.3.
  • Count ordered samples: nkn^k when sampling with replacement (Example 10.6), and n!(n−k)!=n(n−1)⋯(n−k+1)\frac{n!}{(n-k)!}=n(n-1)\cdots(n-k+1) when without replacement (Example 10.7), where k≤nk\le n.
  • Count unordered samples without replacement with the binomial coefficient (nk)=n!(n−k)! k!\binom{n}{k}=\frac{n!}{(n-k)!\,k!} (Example 10.8), explaining the key idea that each kk-subset corresponds to k!k! ordered tuples.
  • Identify the fourth scheme --- unordered with replacement --- know it is counted by (n+k−1k)\binom{n+k-1}{k}, and recall from Remark 10.5 why its outcomes are not equally likely (so we avoid it for probabilities).
  • Compute probabilities on equally likely spaces as P(A)=#A/#ΩP(A)=\#A/\#\Omega, solving one problem by either ordered or unordered counts (Remark 10.4, Example 10.9) and contrasting all three schemes on a single setup (Example 10.10).

In your course

· MATH2015 · Linear Algebra & Probability
§10.3 Basic Sampling Methods
  • Example 10.6Sampling with replacement, order matters
    Three balls drawn with replacement from an urn of five give #Ω=53=125\#\Omega=5^3=125 equally likely ordered triples, each of probability 1/1251/125.
  • Example 10.7Sampling without replacement, order matters
    Three balls drawn without replacement from five give #Ω=5⋅4⋅3=60=5!/2!\#\Omega=5\cdot4\cdot3=60=5!/2!; a triple such as (2,1,5)(2,1,5) has probability 1/601/60 and repeats are impossible.
  • Example 10.8Sampling without replacement, order doesn't matter
    Three balls as an unordered set from five give #Ω=(53)=10\#\Omega=\binom{5}{3}=10, each 33-subset of probability 1/101/10.
  • Example 10.9Jordan's books, solved two ways
    Choosing 33 of 1010 books (55 novels, 33 biographies, 22 science), P(2 novels, 1 biography)=(52)(31)/(103)=30/120=1/4P(\text{2 novels, 1 biography})=\binom{5}{2}\binom{3}{1}/\binom{10}{3}=30/120=1/4, matched by the ordered count 180/720180/720.
  • Example 10.10One class of 24, three schemes contrasted
    Selecting 33 of 2424 students: with-replacement ordered 243=13,82424^3=13{,}824; without-replacement ordered roles 24⋅23⋅22=12,14424\cdot23\cdot22=12{,}144 (so P(Elena frontend/backend)=1/12P(\text{Elena frontend/backend})=1/12); unordered team (243)=2024\binom{24}{3}=2024 (so P(given student on team)=(232)/(243)=1/8P(\text{given student on team})=\binom{23}{2}/\binom{24}{3}=1/8).
  • Remark 10.4Ordered or unordered counting both work
    An unordered-without-replacement problem may be solved by counting unordered outcomes or ordered outcomes; counting AA and Ω\Omega the same way gives the same probability.
  • Remark 10.5The fourth scheme is not equally likely
    Sampling with replacement while ignoring order does not produce equally likely outcomes in a natural way, so it is not used for probabilities in this section.
The four counting formulas (nkn^k, n!/(n−k)!n!/(n-k)!, (nk)\binom{n}{k}, (n+k−1k)\binom{n+k-1}{k}) appear without numbers in §10.3 and are presented here as named Rules. The (n+k−1k)\binom{n+k-1}{k} count for the unordered-with-replacement scheme is standard; Remark 10.5 explains why its outcomes are not equally likely. All counts and probabilities were recomputed and verified.
1

Two questions, four schemes

Every sampling problem in \S10.3 draws kk objects from a set of nn distinguishable objects --- picture an urn with balls numbered 1,2,…,n1,2,\dots,n. Two independent yes/no questions fix the setup. (i) Does order matter? In an ordered sample the outcome is a tuple (s1,…,sk)(s_1,\dots,s_k), so (1,2,5)≠(2,1,5)(1,2,5)\neq(2,1,5); in an unordered sample the outcome is a set {1,2,5}\{1,2,5\} and the draw order is forgotten. (ii) Is the object replaced? With replacement, each drawn object is returned before the next draw, so values may repeat; without replacement, it is set aside, so all kk values are distinct and necessarily k≤nk\le n. Crossing the two questions gives a 2×22\times2 grid of four schemes. The section develops the three that yield equally likely outcomes in a natural way and flags the fourth (Remark 10.5). Throughout, the sample space is written Ω\Omega with size #Ω\#\Omega; when outcomes are equally likely, each one has probability 1/#Ω1/\#\Omega.

2

Ordered samples: $n^k$ and $n!/(n-k)!$

With replacement, order matters (Example 10.6). Each of the kk draws independently has all nn values available, so by the multiplication principle #Ω=n⋅n⋯n⏟k factors=nk.\#\Omega=\underbrace{n\cdot n\cdots n}_{k\text{ factors}}=n^k. Formally Ω=Sk={(s1,…,sk):si∈S}\Omega=S^k=\{(s_1,\dots,s_k):s_i\in S\} with S={1,…,n}S=\{1,\dots,n\} --- a Cartesian product --- and each tuple has probability 1/nk1/n^k. For an urn of n=5n=5 balls with k=3k=3 draws, #Ω=53=125\#\Omega=5^3=125. Without replacement, order matters (Example 10.7). Now the first draw has nn choices, the second only n−1n-1, down to n−k+1n-k+1 for the last, so #Ω=n(n−1)⋯(n−k+1)=n!(n−k)!,\#\Omega=n(n-1)\cdots(n-k+1)=\frac{n!}{(n-k)!}, where n!=n(n−1)⋯2⋅1n!=n(n-1)\cdots2\cdot1 is the factorial. This needs k≤nk\le n, and the entries are automatically distinct. For n=5, k=3n=5,\ k=3: 5⋅4⋅3=60=5!/2!5\cdot4\cdot3=60=5!/2!, each tuple of probability 1/601/60, and a repeat such as (2,2,3)(2,2,3) is simply impossible.

3

Unordered samples: dividing by $k!$ gives $\binom{n}{k}$

Without replacement, order doesn't matter (Example 10.8). An outcome is now a kk-element subset of SS, so Ω={ω⊆S:#ω=k}\Omega=\{\omega\subseteq S:\#\omega=k\}. Its count is the binomial coefficient ('nn choose kk') (nk)=n!(n−k)! k!.\binom{n}{k}=\frac{n!}{(n-k)!\,k!}. The key idea: each kk-subset can be arranged in exactly k!k! orders, so the k!k! ordered tuples built from one subset collapse to a single set. Dividing the ordered count by k!k!, #Ω=n!/(n−k)!k!=(nk).\#\Omega=\frac{n!/(n-k)!}{k!}=\binom{n}{k}. For n=5, k=3n=5,\ k=3: (53)=10\binom{5}{3}=10, each subset of probability 1/101/10; a multiset like {2,2,3}\{2,2,3\} is not a valid 33-element set. The fourth scheme (Remark 10.5): with replacement, order doesn't matter. Counting the possible size-kk multisets from nn types is a named Rule, (n+k−1k)\binom{n+k-1}{k} (the 'stars and bars' count). But Remark 10.5 warns these multisets are not equally likely --- drawing two balls with replacement from {a,b}\{a,b\}, the mixed result {a,b}\{a,b\} comes from abab or baba and so is twice as likely as {a,a}\{a,a\}. Since P=#A/#ΩP=\#A/\#\Omega demands equally likely outcomes, we do not use this scheme for probabilities.

4

From counts to probabilities (one problem, two routes)

On an equally likely space the probability of an event AA is the ratio of favorable to total outcomes, P(A)=#A#Ω.P(A)=\frac{\#A}{\#\Omega}. Each probability question thus becomes two counting questions. Remark 10.4 makes a freeing point: an unordered-without-replacement problem may be solved either by counting unordered outcomes or by counting ordered outcomes --- as long as AA and Ω\Omega are counted the same way, the ratio is identical. Example 10.9 (Jordan grabs 33 of 1010 books: 55 novels, 33 biographies, 22 science) finds P(2 novels, 1 biography)P(\text{2 novels},\ \text{1 biography}) both ways: unordered gives (103)=120\binom{10}{3}=120 total and (52)(31)=30\binom{5}{2}\binom{3}{1}=30 favorable, so 30/120=1430/120=\tfrac14; ordered gives 10⋅9⋅8=72010\cdot9\cdot8=720 total and 3⋅3⋅5⋅4=1803\cdot3\cdot5\cdot4=180 favorable, so 180/720=14180/720=\tfrac14 --- the same answer. Example 10.10 contrasts the three schemes on one class of 2424 students choosing 33: with-replacement ordered (243=13,82424^3=13{,}824), without-replacement ordered roles (24⋅23⋅22=12,14424\cdot23\cdot22=12{,}144), and an unordered team ((243)=2024\binom{24}{3}=2024). The correct denominator is dictated entirely by how the selection is actually made.

Rule --- Ordered sampling with replacement ($n^k$)

Drawing kk objects from nn distinguishable objects with replacement and recording order yields #Ω=nk\#\Omega=n^k equally likely ordered kk-tuples, each of probability 1/nk1/n^k. (Unnumbered in \S10.3; illustrated by Example 10.6.)

Intuition. The draws are independent and identical: each of the kk positions can be filled by any of the nn values, so the multiplication principle gives n×n×⋯×n=nkn\times n\times\cdots\times n=n^k. Repeats are allowed, and nothing forces k≤nk\le n.
Rule --- Ordered sampling without replacement ($n!/(n-k)!$)

Drawing k≤nk\le n objects without replacement and recording order yields #Ω=n!(n−k)!=n(n−1)⋯(n−k+1)\#\Omega=\dfrac{n!}{(n-k)!}=n(n-1)\cdots(n-k+1) equally likely ordered kk-tuples of distinct values, each of probability (n−k)!/n!(n-k)!/n!. (Unnumbered in \S10.3; illustrated by Example 10.7.)

Intuition. The first draw has nn choices, but each later draw loses one option because the drawn object is set aside: n, n−1,…,n−k+1n,\ n-1,\dots,n-k+1. Multiplying these kk falling factors equals n!/(n−k)!n!/(n-k)!. No value repeats, so k≤nk\le n (and k=nk=n counts all n!n! permutations).
Rule --- Unordered sampling without replacement ($\binom{n}{k}$)

Drawing k≤nk\le n objects without replacement while ignoring order yields #Ω=(nk)=n!(n−k)! k!\#\Omega=\dbinom{n}{k}=\dfrac{n!}{(n-k)!\,k!} equally likely kk-subsets, each of probability 1/(nk)1/\binom{n}{k}. (Unnumbered in \S10.3; illustrated by Example 10.8.)

Intuition. Start from the ordered count n!/(n−k)!n!/(n-k)!. Every kk-subset was counted once per ordering, i.e. k!k! times, so dividing by k!k! removes the over-counting and leaves the binomial coefficient. Equivalently (nk)⋅k!=n!/(n−k)!\binom{n}{k}\cdot k!=n!/(n-k)!.
Rule --- Unordered sampling with replacement ($\binom{n+k-1}{k}$)

The number of size-kk multisets chosen from nn types (unordered, with replacement) is (n+k−1k)\dbinom{n+k-1}{k}. By Remark 10.5 these outcomes are not equally likely, so this count is not used to assign probabilities here. (The (n+k−1k)\binom{n+k-1}{k} formula is an unnumbered Rule; Remark 10.5 is the cited result.)

Intuition. A size-kk multiset over nn types is encoded by kk identical 'stars' dropped into nn bins marked off by n−1n-1 'bars'; arranging kk stars and n−1n-1 bars gives (n+k−1k)\binom{n+k-1}{k} patterns. The catch (Remark 10.5): a mixed multiset arises from many ordered draws while a repeated one arises from few, so the multisets occur with unequal probability and P=#A/#ΩP=\#A/\#\Omega does not apply.

Worked examples

Example 1

An urn holds five balls labeled 1,2,3,4,51,2,3,4,5, and we draw 33 balls. Compute #Ω\#\Omega and the probability of a stated outcome under each of the three equally-likely schemes: (a) with replacement, order matters; (b) without replacement, order matters; (c) without replacement, order doesn't matter. (Examples 10.6--10.8 side by side.)

  1. 1

    (a) Ordered, with replacement. Each of the 33 draws has all 55 balls available, so #Ω=53=125\#\Omega=5^3=125. Every ordered triple is equally likely, e.g. P{(2,1,5)}=P{(2,2,3)}=1125P\{(2,1,5)\}=P\{(2,2,3)\}=\tfrac{1}{125} --- repeats like (2,2,3)(2,2,3) are allowed.

  2. 2

    (b) Ordered, without replacement. The counts fall: 55, then 44, then 33, so #Ω=5⋅4⋅3=60=5!2!\#\Omega=5\cdot4\cdot3=60=\dfrac{5!}{2!}. Thus P{(2,1,5)}=160P\{(2,1,5)\}=\tfrac{1}{60}, while (2,2,3)(2,2,3) is now impossible (no repeats).

  3. 3

    (c) Unordered, without replacement. Order is forgotten, so divide the ordered count by 3!=63!=6: #Ω=606=(53)=10\#\Omega=\dfrac{60}{6}=\binom{5}{3}=10. Hence P{{1,2,5}}=110P\{\{1,2,5\}\}=\tfrac{1}{10}, and {2,2,3}\{2,2,3\} is not a valid 33-element set.

Answer. (a) #Ω=125\#\Omega=125, each triple 1/1251/125; (b) #Ω=60\#\Omega=60, each triple 1/601/60; (c) #Ω=(53)=10\#\Omega=\binom{5}{3}=10, each set 1/101/10. With the same n=5, k=3n=5,\ k=3 the counts shrink 125>60>10125>60>10 as we drop replacement and then order.
Example 2

Jordan grabs 33 books at random from a shelf of 1010: 55 novels, 33 biographies, 22 science books. Find P(exactly 2 novels and 1 biography)P(\text{exactly 2 novels and 1 biography}), solving it with unordered counts and again with ordered counts (Example 10.9, Remark 10.4).

Example 3

A class of 2424 students selects 33 students in three different ways. Give #Ω\#\Omega for each, then compute (b) P(Elena gets the frontend or backend role)P(\text{Elena gets the frontend or backend role}) and (c) P(a given student is on the team)P(\text{a given student is on the team}). (Example 10.10.)