Skip to main content

Equally likely outcomes

When every outcome is equally likely, a probability is a count: the outcomes in the event over all the outcomes. Derive that rule from the axioms, count sample spaces in stages with the multiplication rule, and see why the 11 sums of two dice are not equally likely.
M06.2.1L1 Core25 min
In review (what this means)

The maths and code on this page are checked by automated tests on every change, but an independent reader has not signed it off yet. Spot a mistake or a confusing step? Tell us.

Before this lesson: M06.1 Sample spaces, events and axioms M01.8 Counting and combinatorics

What you will be able to do
  • Derive P(A) = |A| / |Omega| from the three axioms when all outcomes of a finite sample space are equally likely.
  • Count a sample space in stages with the multiplication rule, drawn as a tree.
  • Compute probabilities on the two-dice grid and for a random PIN by counting cells or paths.
  • Spot a list of outcomes that are not equally likely, and repair it by listing finer outcomes with itertools.product.

The question

Roll two fair dice and add them. There are 11 possible sums, from 2 to 12. Is each sum’s chance therefore 1/11? And a thief who tries one random 4-digit PIN: how small is the chance that it opens your phone?

Intuition

Some experiments have a built-in symmetry. A fair die has six faces and nothing to tell them apart, so no face can be favoured over another. When every outcome has the same chance, finding a probability needs no new idea at all. You count.

A 6 by 6 grid of cells. The columns are labelled 1 to 6 for the first die and the rows 1 to 6 for the second die, so each cell is one ordered pair. The six cells on the diagonal from top right to bottom left are shaded blue and each holds the number 7: these are the pairs whose sum is 7. Beside the grid: Omega is 36 ordered pairs, all equally likely, each 1/36; A is the sum is 7, six blue cells, one on each row; and in a box, P of A equals the size of A over the size of Omega, which is 6 over 36, which is 1 over 6.
M06.2.1-F1

Two fair dice give 36 ordered pairs, all equally likely. The event “the sum is 7” covers 6 of the cells, so its probability is 6/36 = 1/6.

The picture is the whole lesson. The sample space \(\Omega\) of two dice is a 6 by 6 grid: the first die picks the column, the second picks the row. The 36 cells are equally likely. The event “the sum is 7” is a set of cells, and its probability is the share of the grid it covers.

The rule has a hidden condition, and most mistakes in this lesson come from forgetting it: the outcomes you count must really be equally likely. The sum itself has 11 values, but the values are not equally likely, because 7 can be made in six ways and 2 in only one.

Build it up

Step 1. The axioms fix the size of equal chances. Take a fair die. Call the chance of each face \(p\); symmetry says it is the same \(p\) for all six. The faces are disjoint and together they make up \(\Omega\), so the second and third axioms of lesson M06.1.3 give \(6p = 1\), and so \(p = 1/6\).

A unit square divided into six equal vertical strips labelled 1 to 6, each marked p. Strips 2, 4 and 6 are filled yellow and labelled as the event even. Four numbered steps beside it read: six faces, none favoured, so each has the same chance p; the six are disjoint and fill Omega, so p plus p plus p plus p plus p plus p equals 1; so every face has p equal to one sixth; add the strips of the event, P of even equals 3 times one sixth, which is three sixths.
M06.2.1-F2

The area picture of the axioms. Six equal strips must share a total area of 1, so each has area 1/6, and an event’s area is its number of strips times 1/6.

Step 2. An event is a handful of strips. The event “even” is the three strips 2, 4 and 6. Additivity adds their areas: \({3 \times 1/6 = 3/6}\). In general an event that holds \(m\) of the six faces has probability \(m/6\).

Step 3. Count big spaces in stages. Listing 6 outcomes is easy; listing 10,000 PINs is not. The multiplication rule of lesson M01.8.1 counts them without a list: if an outcome is built in stages, and stage 1 has \(n_1\) options, then stage 2 has \(n_2\) options whatever happened at stage 1, and so on, the number of outcomes is the product \({n_1 n_2 \cdots n_k}\).

Left: a tree for two dice. A root dot branches to six boxes labelled 1 to 6 for the first die. The first box branches again into six leaves labelled (1, 1) to (1, 6); each of the other five boxes has a folded fan labelled 6 more. Underneath: 6 times 6 equals 36 leaves. Right: a 4-digit PIN drawn as four boxes holding question marks, each with 10 options below it, joined by times signs, and a box reading 10 times 10 times 10 times 10 equals 10 to the 4 equals 10,000. A note says every PIN is one path through a tree with 4 stages.
M06.2.1-F3

Stages multiply. Each first-die branch carries 6 second-die leaves, so two dice have \({6 \times 6 = 36}\) outcomes; four digits with 10 options each make 10,000 PINs.

A tree draws the rule: one level per stage, one branch per option, and every outcome is a path from the root to a leaf. The number of leaves is the product of the branch counts.

The formal statement

NoteEqually likely outcomes

Let \(\Omega\) be a finite sample space with \(N = |\Omega|\) outcomes, and suppose every outcome has the same probability. Then each outcome has probability \(1/N\), and every event \(A\) has

\[ \Prob(A) = \frac{|A|}{|\Omega|}. \]

Proof. Write \(\Omega = \{\omega_1, \dots, \omega_N\}\) and let \(p\) be the common probability of each one-outcome event \(\{\omega_i\}\). These \(N\) events are disjoint and their union is \(\Omega\), so the axioms give

\[ \begin{aligned} 1 &= \Prob(\Omega) \\ &= \Prob(\{\omega_1\}) + \cdots + \Prob(\{\omega_N\}) \\ &= N p . \end{aligned} \]

So \(p = 1/N\). An event \(A\) is the disjoint union of its own \(|A|\) outcomes, so additivity again gives

\[ \begin{aligned} \Prob(A) &= \sum_{\omega \in A} \Prob(\{\omega\}) \\ &= |A| \cdot \frac{1}{N} = \frac{|A|}{|\Omega|}. \end{aligned} \]

That is the whole proof, and it shows what the rule needs: a finite \(\Omega\), and equal chances. This assignment of probabilities is called the uniform distribution on \(\Omega\).

NoteThe multiplication rule for counting

If an outcome is made in \(k\) stages, with \(n_i\) options at stage \(i\) whatever the earlier stages gave, then the number of outcomes is \({n_1 \times n_2 \times \cdots \times n_k}\).

Two consequences follow at once. Two dice: \({6 \times 6 = 36}\). A 4-digit PIN, digits 0 to 9 and repeats allowed: \({10^4 = 10{,}000}\).

Worked example

Two dice. Write the sum in each of the 36 cells, then count the cells that hold each sum.

Left: the 6 by 6 grid of two dice with the sum written in every cell, from 2 in the top-left corner to 12 in the bottom-right; the six cells holding 7 are yellow. Right: a bar chart of how many cells hold each sum from 2 to 12. The bar heights are 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, written above the bars, and the bar for 7 is yellow. A note reads: sum 7, 6 of 36, P equals 6 over 36 equals 1 over 6.
M06.2.1-F4

The trace of the worked example. Equal sums lie on the diagonals from top right to bottom left, so the counts climb from 1 to 6 and fall back to 1.

The counts for the sums 2 to 12 are 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 1, which add up to 36 as they must. So

\[ \begin{aligned} \Prob(\text{sum} = 7) &= \tfrac{6}{36} = \tfrac{1}{6}, \\ \Prob(\text{sum} = 2) &= \tfrac{1}{36}. \end{aligned} \]

A 7 is six times as likely as a 2.

At least one six. The cells with a six fill the last column (6 cells) and the last row (6 cells), but the corner (6, 6) is in both, so \({6 + 6 - 1 = 11}\) cells. The probability is 11/36. The complement rule of lesson M06.1.4 gives the same: the cells with no six form a 5 by 5 block of 25, and \({1 - 25/36 = 11/36}\).

The PIN. All 10,000 PINs are equally likely if the PIN was chosen at random, so one guess succeeds with probability \({1/10{,}000 = 0.0001}\). Three different guesses cover 3 outcomes: \({3/10{,}000}\). The event “the PIN starts with 0” fixes the first stage and leaves \({10 \times 10 \times 10 = 1{,}000}\) PINs, so its probability is \({1{,}000/10{,}000 = 1/10}\).

Code

First from scratch. itertools.product builds the ordered pairs, and Fraction keeps every probability exact, so the answers print as 1/6 rather than 0.16666.

from fractions import Fraction
from itertools import product

omega = list(product(range(1, 7), repeat=2))      # 36 ordered pairs (first, second)

def prob(event, omega):
    """P(A) = |A| / |Omega|, for equally likely outcomes. `event` is a test on one outcome."""
    return Fraction(sum(1 for w in omega if event(w)), len(omega))

p7 = prob(lambda w: w[0] + w[1] == 7, omega)
p2 = prob(lambda w: w[0] + w[1] == 2, omega)
p_six = prob(lambda w: 6 in w, omega)
print(len(omega), p7, p2, p_six)

pins = list(product(range(10), repeat=4))
p_zero = prob(lambda pin: pin[0] == 0, pins)
print(len(pins), p_zero)
36 1/6 1/36 11/36
10000 1/10

Now let NumPy roll the dice 100,000 times. The share of sevens should sit close to 1/6, about 0.1667, though not exactly on it.

import numpy as np

rng = np.random.default_rng(2026)
rolls = rng.integers(1, 7, size=(100_000, 2))     # each row: first die, second die
share7 = np.mean(rolls.sum(axis=1) == 7)
print(round(float(share7), 4))
0.166

The simulation agrees with the count to within a few thousandths. The count is exact; the simulation is evidence that the model of two fair, separate dice is the right one.

Explore

This module’s interactive, the counting explorer, lives in lesson M06.2.3. There you draw from a bag of numbered balls, switch order and replacement on and off, and see which outcomes group together and which groups are equally likely.

Pitfalls

Two bar charts over the sums 2 to 12. Left, marked with a cross and titled each sum 1/11: eleven bars of equal height, with the note 11 possible sums, but not 11 equal chances. Right, marked with a tick and titled count the 36 pairs: bars that rise from 1/36 at sum 2 to 6/36 at sum 7, which is yellow, and fall back to 1/36 at sum 12.
M06.2.1-F5

Wrong beside right. Listing the 11 sums and giving each 1/11 ignores how many pairs make each sum. Counting the 36 equally likely pairs gives the triangle.

“There are 11 sums, so each has probability 1/11.”

The formula \(|A|/|\Omega|\) is only valid when the outcomes in \(\Omega\) are equally likely, and the 11 sums are not. Choose outcomes fine enough to be equally likely (the 36 ordered pairs), count there, and only then group them by sum.

Left, marked with a cross and titled three outcomes, 1/3 each: three boxes reading no heads, one head and two heads, each with 1/3 beneath. A note says these three are not equally likely. Right, marked with a tick and titled four ordered pairs, 1/4 each: four boxes HH, HT, TH and TT, with HT and TH yellow. Labels read two heads 1/4, one head 2/4, no heads 1/4, and a note says one head happens in two ways.
M06.2.1-F6

The same mistake with two coins. “One head” happens in two ways, HT and TH, so it has twice the chance of “two heads”.

“Two coins can show no heads, one head or two heads, so each has probability 1/3.”

Again the three outcomes are not equally likely. The four ordered pairs HH, HT, TH, TT are, and they give 1/4, 2/4 and 1/4. Grinstead and Snell discuss this example: describing two pennies by the number of heads is a correct description of what can happen, but the uniform distribution on it does not match experience.

“Every experiment has equally likely outcomes if I list them carefully enough.”

Not so. A loaded die (lesson M06.1.3) has six outcomes with different chances, and no finer list makes them equal. Equal chances are a modelling assumption, justified by symmetry or by experiment. In machine learning the same assumption hides in “shuffle the data and take a random batch”: the shuffle is designed so that every order is equally likely.

Check yourself

Recall

1. State the rule for \(\Prob(A)\) when all outcomes are equally likely, and its two conditions.

Show answer

\(\Prob(A) = |A|/|\Omega|\). The sample space must be finite, and every outcome must have the same probability.

2. How many outcomes do two dice have, and why?

Show answer
  1. The first die has 6 options and, for each of them, the second has 6, so the multiplication rule gives \({6 \times 6 = 36}\) ordered pairs.

3. What is the probability that the sum of two dice is 7?

Show answer

6 of the 36 pairs give 7: (1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1). So 6/36 = 1/6.

4. Why is the chance of each sum of two dice not 1/11?

Show answer

The 11 sums are not equally likely: a sum of 7 comes from 6 pairs and a sum of 2 from 1. The rule \(|A|/|\Omega|\) needs equally likely outcomes, which the 36 pairs are and the 11 sums are not.

5. How many 4-digit PINs are there, and what is the chance that one random guess is right?

Show answer

\({10^4 = 10{,}000}\) PINs, so one guess is right with probability 1/10,000 if the PIN was chosen at random.

Exercises

1. ★ Two fair dice are rolled. Find the probability that the two dice show the same number (a double), and the probability that the sum is at most 4.

Show solution

Doubles are the 6 cells (1, 1) to (6, 6) on the main diagonal: 6/36 = 1/6. A sum of at most 4 is a sum of 2, 3 or 4, which have 1, 2 and 3 cells: \({(1 + 2 + 3)/36 = 6/36 = 1/6}\).

2. ★★ A password has 3 lower-case letters (26 options each) followed by 2 digits. How many passwords are there? If one is chosen at random, what is the chance that it ends in 00, and the chance that its first letter is a vowel (a, e, i, o, u)?

Show solution

By the multiplication rule there are \({26^3 \times 10^2}\) passwords, which is \({17{,}576 \times 100}\), or 1,757,600. Ending in 00 fixes the last two stages and leaves \({26^3 = 17{,}576}\) passwords, so the probability is 17,576/1,757,600, which is 1/100. A vowel first leaves \({5 \times 26^2 \times 10^2}\) passwords, which is 338,000, so the probability is 338,000/1,757,600, which is 5/26. In both cases the other stages cancel, which is a quick check.

3. ★★★ Three fair coins are tossed. A friend argues: “the number of heads is 0, 1, 2 or 3, so P(exactly one head) = 1/4.” Find the right answer by listing equally likely outcomes, and explain where the argument fails.

Show solution

The equally likely outcomes are the \({2^3 = 8}\) ordered triples HHH, HHT, HTH, HTT, THH, THT, TTH, TTT. Exactly one head: HTT, THT and TTH, so the probability is 3/8. The friend’s four head counts are not equally likely: 0 and 3 heads each come from 1 triple, and 1 and 2 heads each from 3. The rule \(|A|/|\Omega|\) may only be used on the 8 triples.

Summary card

Equally likely outcomes turn probability into counting.

The anchor figure again: the 6 by 6 grid of two dice with the six cells whose sum is 7 shaded blue, and the box P of A equals 6 over 36 equals 1 over 6.
M06.2.1-F1

Count the cells, divide by 36.

  • The rule. If all \(N\) outcomes are equally likely, \(\Prob(A) = |A|/|\Omega|\).
  • Where it comes from. The axioms force each outcome to have probability \(1/N\).
  • Counting \(\Omega\). Stages multiply: two dice 36, a 4-digit PIN 10,000.
  • The trap. Count only outcomes that really are equally likely; group them afterwards.

Sources and next steps

Sources. Each was opened and checked against this lesson on 14 November 2026.

  • Charles M. Grinstead and J. Laurie Snell, Introduction to Probability, second edition (free under the GNU Free Documentation License). Definition 1.3 defines the uniform distribution on a finite sample space, each outcome having probability one over the number of outcomes; Example 3.14 discusses two pennies described by the number of heads against the four ordered pairs.
  • Hossein Pishro-Nik, Introduction to Probability, Statistics, and Random Processes, Section 2.1, Counting: for a finite sample space with equally likely outcomes, \(\Prob(A) = |A|/|S|\), so finding a probability becomes a counting problem; the multiplication principle is used to count passwords.
  • Python Software Foundation, itertools.product and fractions.Fraction, Python 3.12 documentation: the Cartesian product with repeat, and exact rational numbers.

Next. M06.2.2 Ordered samples and the birthday problem counts draws in order, with and without replacement, and uses the ratio of the two counts to answer the birthday question.

This lesson unlocks

M06.2.2 Ordered samples and the birthday problem

Your progress is saved in this browser only. No account, no tracking.
Back to top