Statistics · Unit 2 · Week 4 · Lesson 13 · 11 minute reading

How Many Ways Could This Happen?

Multiplication rules, combinations, permutations, and the binomial coefficient.

By the end of this lesson, you should be able to

  • Use the multiplication principle for ordered selections.
  • Distinguish permutations from combinations.
  • Compute probabilities by counting equally likely outcomes when justified.

Twenty coin tosses have a million or so possible sequences. Yet when we ask how many contain exactly ten heads, counting each sequence by hand becomes an irritating way to spend an afternoon.

Fortunately, mathematicians noticed this problem before we did.

Multiply when decisions happen in stages

If there are three shirt choices and four independent trouser choices, there are 3×4=123\times4=12 outfits. The multiplication principle counts a sequence of decisions when each step has a specified number of options.

If repetition is allowed, selecting a four-digit PIN with digits 0–9 gives 104=10,00010^4=10,000 possible strings. If digits must be distinct, the count is 10×9×8×7=5,04010\times9\times8\times7=5,040.

These count ordered selections. The sequence 1234 is not the same PIN as 4321.

Order sometimes does not matter

A committee containing Alice and Bob is the same committee regardless of which name we write first. Selecting kk people from nn without caring about order is counted by a combination:

(nk)=n!k!(n−k)!.\binom nk=\frac{n!}{k!(n-k)!}.

A factorial n!n! is the product of positive integers through nn, with 0!=10!=1.

For eight volunteers selecting a four-person experimental group,

(84)=8!4!4!=70.\binom84=\frac{8!}{4!4!}=70.

That number was the entire reference distribution for our exact randomization laboratory.

Return to the coin

Each sequence of 20 independent fair tosses has probability 2−202^{-20}. For exactly ten heads, the heads can occupy any choice of ten of the twenty positions. Therefore,

P(X=10)=(2010)2−20.P(X=10)=\binom{20}{10}2^{-20}.

The probability calculation is valid under the fair independent-toss model. It would be a mistake to use equal sequence probabilities for a biased coin without modification.

Counting isn’t always the best tool

When events overlap, naive addition double-counts. With sampling without replacement, probabilities change after each draw. Sometimes conditional probability or simulation is more direct than heroic combinatorics.

Counting rules serve a model; they do not excuse us from specifying the model.

Check yourself

  1. How many three-letter codes can be made from A–Z if repetition is allowed?
  2. In how many ways can three people be chosen from seven when order doesn’t matter?
  3. Why is (103)\binom{10}{3} relevant to the probability of exactly three heads in ten fair tosses?
Worked responses
  1. 263=17,57626^3=17,576.

  2. (73)=35\binom73=35.

  3. It counts which three toss positions contain heads. Each specific sequence has probability 2−102^{-10}.

Derive combinations and distinguish sampling models

For kk distinct selections from nn objects, ordered selection without replacement gives n(n−1)⋯(n−k+1)=n!/(n−k)!n(n-1)\cdots(n-k+1)=n!/(n-k)! possibilities. Each unordered subset appears in k!k! different orders. Dividing gives (nk)\binom nk. The reasoning, not the factorial button, determines when the formula applies.

Suppose a fictional box contains 5 red and 7 blue counters. Draw 4 without replacement. Every four-counter subset is equally likely under simple random drawing, and exactly two red counters can be chosen in (52)(72)\binom52\binom72 ways. Therefore

P(X=2)=(52)(72)(124)=210495=1433≈0.42424.P(X=2)=\frac{\binom52\binom72}{\binom{12}4}=\frac{210}{495}=\frac{14}{33}\approx0.42424.

This is a hypergeometric calculation. A binomial model with success probability 5/125/12 would instead assume replacement or independent trials with constant success probability. Without replacement, the chance of a red counter on the next draw changes with what has already been removed. Independence is a probability assumption; the ability to count outcomes does not create it.

For a binomial count, (nk)\binom nk counts the possible positions of kk successes in nn trials. Each particular sequence has probability pk(1−p)n−kp^k(1-p)^{n-k} under independent constant-probability trials. Multiplying gives the binomial mass function. “There are two outcomes” does not imply they are equally probable, nor does it establish independence.

Further problems

  1. How many ordered three-letter strings can be formed from five distinct letters without repetition? How many unordered three-letter subsets?
  2. In the counter example, calculate the probability all four are blue.
  3. Why does shuffling an existing sample not create new independent participants?
Worked further solutions
  1. 5⋅4⋅3=605\cdot4\cdot3=60 strings and (53)=10\binom53=10 subsets.
  2. (74)/(124)=35/495=7/99\binom74/\binom{12}4=35/495=7/99.
  3. It changes ordering, not the units observed or their data-generating dependence. Randomization of labels and independent data collection are different operations.
Your study progress · Optional

Keep your place

Mark this lesson complete after you've read it, attempted its exercises, and explained its central idea in your own words.

Progress is not saved unless you choose to mark the lesson complete.

Saved only in this browser's local storage. No required account, server transmission, or analytics. You can reset your saved progress on the course page. Clearing browser data also clears the record.