Sub topic 3
Classical Probability: Favourable over Total
This chapter assumes that you can simplify fractions, use ratios and percentages, and apply basic permutations and combinations. You should also know the standard outcomes of dice, coins and a 52-card deck.
The core idea
A sample space is the complete set of possible outcomes of a random experiment. An event is the outcome, or group of outcomes, that matches the question.
When all outcomes are equally likely, classical probability is:
\[ P(E)=\frac{\text{number of favourable outcomes}}{\text{number of total outcomes}} \]
Here, \(P(E)\) means the probability of event \(E\). A favourable outcome is one that satisfies the required condition.
For example, when a fair die is rolled, the sample space is:
\[ S=\{1,2,3,4,5,6\} \]
The event “rolling an even number” is:
\[ E=\{2,4,6\} \]
There are 3 favourable outcomes and 6 total outcomes. Therefore:
\[ P(E)=\frac{3}{6}=\frac{1}{2} \]
A probability is always between 0 and 1. A probability of 0 means the event is impossible. A probability of 1 means it is certain.
Building the sample space
The most important step is deciding what counts as one outcome. For two dice, an outcome is an ordered pair. The result \((2,5)\) is different from \((5,2)\), even though both have a sum of 7.
Two dice have:
\[ 6 \times 6=36 \]
equally likely ordered outcomes. Six of them have a sum of 7:
\[ (1,6),(2,5),(3,4),(4,3),(5,2),(6,1) \]
Thus:
\[ P(\text{sum }7)=\frac{6}{36}=\frac{1}{6} \]
The table shows the general setup.
| Question | Total outcomes | Favourable outcomes | Probability |
|---|---|---|---|
| One die shows an even number | 6 | 3 | \(3/6=1/2\) |
| Two dice sum to 7 | 36 | 6 | \(6/36=1/6\) |
| One card is an ace | 52 | 4 | \(4/52=1/13\) |
from itertools import product
outcomes = list(product(range(1, 7), repeat=2))
favourable = [outcome for outcome in outcomes if sum(outcome) == 7]
print(len(favourable), len(outcomes))
print(len(favourable) / len(outcomes))The program prints 6 36 and 0.16666666666666666. The exact fraction is \(1/6\).
Counting without listing
Listing works for small sample spaces. For larger ones, count groups of outcomes.
Suppose a bag contains 5 red balls and 3 blue balls. Two balls are drawn at the same time without replacement. The total number of pairs is:
\[ \binom{8}{2}=28 \]
The number of pairs containing two red balls is:
\[ \binom{5}{2}=10 \]
Therefore:
\[ P(\text{both red})=\frac{\binom{5}{2}}{\binom{8}{2}} =\frac{10}{28}=\frac{5}{14} \]
This method treats each pair as equally likely. It avoids incorrectly treating the two positions as different when the balls are drawn together.
from math import comb
from fractions import Fraction
total_pairs = comb(8, 2)
red_pairs = comb(5, 2)
print(Fraction(red_pairs, total_pairs))Common errors
Using the wrong total
For two dice, the total is 36, not 12. Twelve is the largest possible sum, not the number of outcomes.
Treating unequal outcomes as equally likely
Classical probability requires equally likely outcomes. The sums of two dice are not equally likely: a sum of 7 has six combinations, while a sum of 2 has only one.
Forgetting order
If dice are rolled separately, \((2,5)\) and \((5,2)\) are distinct outcomes. If two objects are selected as an unordered group, combinations may be more suitable.
Exercise
Two fair dice are rolled. What is the probability that their sum is at least 10?
Show answer
The favourable ordered pairs are (4,6), (5,5), (6,4), (5,6), (6,5), and (6,6), giving 6 outcomes out of 36. The probability is 6/36 = 1/6.