Sub topic 2
Sample Space and Events
Prerequisites and the Basic Model
Assume you are comfortable with fractions, ratios, basic algebra, and simple counting. You should also know the possible results of coins, dice, cards, permutations, and combinations.
A sample space is the complete set of all possible outcomes of a random experiment. An outcome is one specific result. An event is a collection of outcomes that satisfies a condition in the question.
For example, when rolling one fair die:
- Sample space: S = {1, 2, 3, 4, 5, 6}
- Outcome: 4
- Event A = “an even number appears” = {2, 4, 6}
- Event B = “a number greater than 4 appears” = {5, 6}
The event is a subset of the sample space. Every outcome in an event must also belong to the sample space.
Building the Sample Space
Read the experiment carefully. Decide whether order matters, whether outcomes can repeat, and whether all possible cases have been included.
For two coin tosses, order matters if we record the first and second toss separately:
S = {HH, HT, TH, TT}
The outcomes HT and TH are different because they occur in a different order. The event “exactly one head” is {HT, TH}.
For two dice, an outcome can be represented as an ordered pair:
S = {(1,1), (1,2), ..., (6,6)}
There are 36 ordered outcomes. The pair (2,5) is different from (5,2), even though both pairs have a sum of 7. If the question asks only for the sum, those two outcomes may lead to the same observed result, but they remain different elementary outcomes when the dice are distinguishable.
A useful representation is a table.
| Experiment | Sample-space size | Example event |
|---|---|---|
| One die | 6 | Rolling a prime: {2, 3, 5} |
| Two coin tosses | 4 | Exactly one head: {HT, TH} |
| Two dice | 36 | Sum 7: six ordered pairs |
from itertools import product
outcomes = list(product(range(1, 7), repeat=2))
sum_is_7 = [outcome for outcome in outcomes if sum(outcome) == 7]
print("Total outcomes:", len(outcomes))
print("Favourable outcomes:", sum_is_7)The code lists all ordered pairs and selects the event whose dice sum to 7. This setup is useful before applying a probability formula.
Events and Their Relationships
Events can be combined using ordinary set ideas.
- Union, written A or B, contains outcomes in A, in B, or in both.
- Intersection, written A and B, contains outcomes common to both.
- Complement, written not A or Aᶜ, contains outcomes in the sample space that are not in A.
- Mutually exclusive events cannot happen together, so their intersection is empty.
For one die, let A = {1, 2, 3} and B = {3, 4, 5}.
- A or B = {1, 2, 3, 4, 5}
- A and B = {3}
- Aᶜ = {4, 5, 6}
A and B are not mutually exclusive because both include 3. They may overlap even though they describe different conditions.
flowchart TD
S["Sample space S"]
S --> A["Event A: outcomes satisfying condition A"]
S --> B["Event B: outcomes satisfying condition B"]
A --> I["A and B: shared outcomes"]
A --> U["A or B: outcomes in either event"]
B --> I
B --> UA Reliable CAT Setup
Translate the wording into a sample space and an event before calculating.
- Identify the experiment.
- List or count every possible outcome.
- Define the event requested by the question.
- Check whether order, repetition, or overlap matters.
- Only then choose counting, a complement, or a probability rule.
A common error is to count visible results instead of elementary outcomes. For two dice, the sums 2 through 12 give 11 possible sum values, but the underlying sample space has 36 ordered pairs. The sums are not equally likely: a sum of 7 has more ways to occur than a sum of 2.
Exercise
Two fair coins are tossed. Define the sample space and the event that at least one coin shows heads.
Show answer
S = {HH, HT, TH, TT}. The event is {HH, HT, TH}. Its complement is the single outcome {TT}.