Finite state spaces and combinatorics
Last modified — 09 Jan 2026
In some cases, the sample space contains finite number of possible outcomes, and they are equally likely (they should receive equal probabilities).
When there are finitely many outcomes, and they are equal likely, calculating probabilities involves counting outcomes in events/sets, which can be challenging
This module goes over some generic counting techniques, which can be used to calculate probabilities.
Let \(A\) be a subset (event) of a sample space \(\Omega\).
\[ \mathbb{P}\left( A\right) = \frac{\text{number of elements in }A}{\text{number of elements in }\Omega } \]
Suppose that a random experiment has 2 steps, where
Then, \[\mbox{total number of possible outcomes} \ = \ n_1 \times n_2\]
We are implicitly assuming that the outcome of the second step does not depend on the outcome of the first step.
If a random experiment has k steps.
\(\quad\quad\quad\vdots\quad\quad\quad\)
Then, \[\mbox{total number of outcomes} \ = \ n_1 \times n_2 \times n_3 \times \cdots \times n_k\]
Note
Implicit assumption: the outcomes of each step do not depend on each other.
How many different license plates with 7 characters are possible if the first 3 places are letters and the last 4 are numbers?
How many different license plates are there with no repeated letters or numbers?
What is the probability that a randomly chosen license plate has no repeats?
\[\left( 3, 5, 2, 4, 1 \right), \, \left( 2, 1, 3, 4, 5 \right), \, \left( 5, 4, 2, 1, 3 \right), \quad \mbox{ etc.} \]
\[\left( 2, 1, 3, 4, 5 \right) \quad \neq \quad \left( 1, 2, 3, 4, 5 \right) \quad \neq \quad \left( 1, 3, 2, 4, 5 \right)\]
Convention
Recall that we define \(0!=1\). This makes \(26! = 26!\times 0!\) and \(15! / 0! =15!\).
Key assumption in counting permutations this way:
all \(n\) objects are distinct.
When some of them are not distinct, the number of possible distinct outcomes by re-arrangement (“permutation”) is not given by this formula.
We need a different formula.
In how many different ways can the letters of “pepper” be arranged? Answer:
A chess tournament with 10 players:
| # of players | Country of origin |
|---|---|
| 4 | Russia |
| 3 | USA |
| 2 | Canada |
| 1 | Brazil |
Eight wedding guests (A, B, C, D, E, F, G, H) need to be seated next to each other in a line. Unfortunately, A and B don’t like each other very much.
Consider the set \[S=\left\{ a, b, c, d, e\right\}\]
The following are all the possible subsets of \(S\) of size 3:
| \(\{ a, b, c\}\) | \(\left\{ a, d, e\right\}\) |
| \(\{ a, b, d\}\) | \(\left\{ b, c, d\right\}\) |
| \(\{ a, b, e\}\) | \(\left\{ b, c, e\right\}\) |
| \(\{ a, c, d\}\) | \(\left\{ b, d, e\right\}\) |
| \(\{ a, c, e\}\) | \(\left\{ c, d, e\right\}\) |
\[\Bigl\{ a, b, d \Bigr\} \, = \, \Bigl\{ d, a, b \Bigr\} \, = \, \Bigl\{ b, d, a \Bigr\} \] (and other possible rearrangements).
The number of combinations of size \(m\) out of a set of size \(n \ge m\) has various notations:
\[\binom{n}{m} = \left._{n} C_{m}\right. = C_m^n\]
Tip
In this course we use \(\binom{n}{m}\).
For example, when \(n=5\) and \(m=3\) we have
| \(\{ 1,2,3\}\) | \(\left\{ 1,4,5\right\}\) |
| \(\{ 1,2,4\}\) | \(\left\{ 2,3,4\right\}\) |
| \(\{ 1,2,5\}\) | \(\left\{ 2,3,5\right\}\) |
| \(\{ 1,3,4\}\) | \(\left\{ 2,4,5\right\}\) |
| \(\{ 1,3,5\}\) | \(\left\{ 3,4,5\right\}\) |
hence, the number of combinations must be
\[\binom{5}{3}= {10}\]
\[\binom{n}{m} = \frac{n!}{m!(n-m)!}\]
These are also called binomial coefficients.
They have many beautiful interpretations.


\[\binom{n}{m} = \frac{n!}{m!(n-m)!}.\]
Hint: remember that \(0! = 1\).
Dealer secretly chooses 6 distinct integers between 0 and 49.
Player randomly selects 6 distinct integers between 0 and 49.
The more matches, the bigger the prize.
Do the answers align?
You need to construct a 8-character password out of lowercase letters (a-z) and numbers (0-9).
Stat 302 - Winter 2025/26