Skip to content
Gioi Toan
Start learning
A smiling die next to a coin

Notes on Lesson 1: Sample space and event (Maths 10 Chan troi sang tao, Chapter X)

Lesson summary

A random experiment (experiment for short) is an activity whose outcome we cannot know in advance.

An outcome that belongs to AA is called an outcome that makes AA occur, or a favourable outcome for AA.

An experiment is like drawing lots: you know for sure there will be an outcome, but you cannot guess which one.

This content is not yet available in English. It is shown below in the original Vietnamese.

  • Nhận biết được phép thử ngẫu nhiên, không gian mẫu, biến cố, biến cố đối

In a game, you roll a die and toss a coin. Can you predict the outcome in advance? Certainly not. So how can we describe all the possible outcomes and determine which outcomes are favourable for a certain event? Today's lesson will introduce you to the random experiment, the sample space and events, the foundational concepts that let you calculate probability later on.

Practise similar problems

Key ideas: what do you need to know?

Random experiment and sample space

  • A random experiment (experiment for short) is an activity whose outcome we cannot know in advance.
  • The sample space of an experiment is the set of all possible outcomes of that experiment. The sample space is denoted by Ω\Omega.
  • Note: In this chapter, we only consider experiments whose sample space has finitely many elements.
  • Example: Toss a fair coin and observe the side that appears. That is a random experiment because we do not know in advance which side will appear. The sample space of this experiment is Ω={S;N}\Omega = \{S; N\}, where SS denotes tails and NN denotes heads.

In plain words: An experiment is like drawing lots: you know for sure there will be an outcome, but you cannot guess which one. The sample space is the complete list of all possible outcomes, with nothing missing and nothing repeated. Writing the sample space correctly is the most important step, because every count later relies on it. When describing the sample space, ask yourself: what does one outcome of the experiment look like? Is it a number, a pair of numbers, a sequence of sides, or a subset? Once you can answer that, your listing method will not go wrong.

Phrase by phrase
Random experiment
An activity whose outcome we cannot know in advance.Example: Rolling a die, drawing a card from a box.
Sample space
The set of all possible outcomes of the experiment, denoted Ω\Omega.Example: Rolling a die: Ω={1;2;3;4;5;6}\Omega = \{1; 2; 3; 4; 5; 6\}.
finitely many elements
The number of elements of the sample space is a definite natural number.Example: Tossing a coin: Ω\Omega has 2 elements.

TipWhen describing the sample space, ask yourself: what does one outcome of the experiment look like? A number, a pair of numbers, a sequence of symbols or a subset? Once you can answer this question, your listing method will be complete and without repeats.

Event

  • Every subset of the sample space is called an event, denoted A,B,C,…A, B, C, \ldots
  • An outcome that belongs to AA is called an outcome that makes AA occur, or a favourable outcome for AA.
  • Example: Roll a die. The event AA: "The number of dots that appears is an even number" is the subset A={2;4;6}A = \{2; 4; 6\} of the sample space Ω={1;2;3;4;5;6}\Omega = \{1; 2; 3; 4; 5; 6\}. The outcomes 2,4,62, 4, 6 are the favourable outcomes for AA.

In plain words: An event is usually stated in words, but to calculate, you turn it into a set: gather all the outcomes that make that event occur. From here, the question "how many ways can this event occur" becomes the question "how many elements does this subset have", and counting elements is something you already know. When the subset is too large to list, you can describe it by the characteristic property of its elements.

Phrase by phrase
event
A subset of the sample space.Example: "The number of dots is an odd number" is the event {1;3;5}\{1; 3; 5\}.
favourable outcome for AA
An outcome such that when it occurs, the event AA also occurs.Example: For the event "an even number appears", the outcome 4 is a favourable outcome.

Impossible event, certain event

  • An impossible event is an event that never occurs, denoted ∅\varnothing.
  • A certain event is an event that always occurs, denoted Ω\Omega.
  • Example: Roll a die.

+ The event "The number of dots that appears equals 7" is an impossible event, because no side has 7 dots.
+ The event "The number of dots that appears is less than 7" is a certain event, because every side of the die has from 1 to 6 dots.

In plain words: An impossible event corresponds to the empty set: no outcome is favourable. A certain event corresponds to the whole sample space: every outcome is favourable. These two events are the two extremes, helping you check other events: if an event is said to always occur, its set of favourable outcomes must equal Ω\Omega; if it never occurs, that set must be empty.

Phrase by phrase
Impossible event
An event that never occurs, denoted ∅\varnothing.Example: Rolling a die, "the number of dots equals 0" is an impossible event.
Certain event
An event that always occurs, denoted Ω\Omega.Example: Rolling a die, "the number of dots does not exceed 6" is a certain event.

Common mistakesWhen identifying the certain event and the impossible event, some students get confused: the certain event is the set Ω\Omega, the impossible event is the set ∅\varnothing. For example, when rolling a die, the event "the number of spots is less than 7" is a certain event, not an impossible event.

Complementary events

  • The complementary event of the event AA is the event "AA does not occur", denoted A‾\overline{A}.
  • If AA is a subset of the sample space Ω\Omega then A‾\overline{A} is the set of all elements of Ω\Omega that do not belong to AA. We write A‾=Ω∖A\overline{A} = \Omega \setminus A.
  • Example: Roll a die. The event AA: "The number of dots that appears is an even number" has A={2;4;6}A = \{2; 4; 6\}. The complementary event A‾\overline{A}: "The number of dots that appears is an odd number" has A‾={1;3;5}\overline{A} = \{1; 3; 5\}.

In plain words: The complementary event is "the rest": whenever AA does not occur, A‾\overline{A} occurs, and vice versa. These two events divide the sample space into two parts with no shared elements, which together make exactly Ω\Omega. So when saying it in words, you must negate correctly: the complement of "heads appears at least once" is "heads never appears", not "tails appears at least once". The surest way is to write AA as a set, then take the remaining elements of Ω\Omega.

Phrase by phrase
Complementary events
An event that occurs exactly when the given event does not occur.Example: The complement of "drawing a red ball" is "drawing a ball that is not red".
A‾=Ω∖A\overline{A} = \Omega \setminus A
Complementary events are the complement of AA in the sample space.Example: Ω={1;2;3;4}\Omega = \{1; 2; 3; 4\}, A={1}A = \{1\} then A‾={2;3;4}\overline{A} = \{2; 3; 4\}.

Common mistakesWhen finding the complementary events of "tails appears at least once", many students take the complement to be "heads appears at least once". That is wrong because the complement must be "tails never appears", that is, heads both times.

TipThe complementary events are the "rest" of the sample space: if AA is a subset of Ω\Omega then A‾=Ω∖A\overline{A} = \Omega \setminus A. To check, you can count the elements: n(A‾)=n(Ω)−n(A)n(\overline{A}) = n(\Omega) - n(A).

Worked examples

Example 1

Toss a balanced coin twice in a row and observe the side that appears. Let SS denote tails and NN denote heads.
a) Describe the sample space of the experiment.
b) Let AA be the event "The two tosses show the same side". Write AA and A‾\overline{A} as subsets of the sample space; state the content of A‾\overline{A}.

Show the solution to example 1

Step 1: Each outcome is a sequence of two symbols, the first symbol is the side that appears on the first toss, the second symbol is the side that appears on the second toss.
Why: SNSN and NSNS are two different outcomes because the order of the two tosses is different.
Step 2: The sample space Ω={SS;SN;NS;NN}\Omega = \{SS; SN; NS; NN\}.
Step 3: The favourable outcomes for AA are SSSS and NNNN, so A={SS;NN}A = \{SS; NN\}.
Step 4: The complementary event A‾=Ω∖A={SN;NS}\overline{A} = \Omega \setminus A = \{SN; NS\}, that is, the event "The two tosses show two different sides".
Result: a) Ω={SS;SN;NS;NN}\Omega = \{SS; SN; NS; NN\}; b) A={SS;NN}A = \{SS; NN\}, A‾={SN;NS}\overline{A} = \{SN; NS\}: "The two tosses show two different sides".

Common mistakesWhen tossing a coin twice, many students write Ω={SS;SN;NN}\Omega = \{SS; SN; NN\} because they think SNSN and NSNS are the same. The mistake is dropping the order of the two tosses; the correct answer is Ω={SS;SN;NS;NN}\Omega = \{SS; SN; NS; NN\} with 4 elements.

Example 2

Choose at random a positive integer not greater than 20. Let BB be the event "The chosen number is divisible by 3".
a) Describe the sample space.
b) Write BB and B‾\overline{B} as subsets of the sample space. How many favourable outcomes are there for each event?

Show the solution to example 2

Step 1: The positive integers not greater than 20 are 1;2;3;…;201; 2; 3; \ldots; 20. So Ω={1;2;3;…;20}\Omega = \{1; 2; 3; \ldots; 20\}, n(Ω)=20n(\Omega) = 20.
Step 2: The numbers divisible by 3 in this range are 3;6;9;12;15;183; 6; 9; 12; 15; 18. Therefore B={3;6;9;12;15;18}B = \{3; 6; 9; 12; 15; 18\}, n(B)=6n(B) = 6.
Step 3: The complementary event B‾\overline{B} consists of the numbers in Ω\Omega that are not divisible by 3: B‾={1;2;4;5;7;8;10;11;13;14;16;17;19;20}\overline{B} = \{1; 2; 4; 5; 7; 8; 10; 11; 13; 14; 16; 17; 19; 20\}, which has 14 elements.
Why: B‾\overline{B} is the complement of BB in Ω\Omega, so n(B‾)=20−6=14n(\overline{B}) = 20 - 6 = 14, matching the number of elements just listed.
Result: B={3;6;9;12;15;18}B = \{3; 6; 9; 12; 15; 18\} has 6 favourable outcomes; B‾\overline{B} has 14 favourable outcomes.

Example 3

Roll a balanced die twice. Let CC be the event "The sum of the numbers of dots appearing on the two rolls is 7".
a) Describe the sample space of the experiment.
b) Write the set describing the event CC and say how many favourable outcomes there are for CC.

Show the solution to example 3

Step 1: Each outcome is a pair of numbers (i,j)(i, j), where ii is the number of dots on the first roll, jj is the number of dots on the second roll, with i,j∈{1;2;3;4;5;6}i, j \in \{1; 2; 3; 4; 5; 6\}.
The sample space Ω={(i,j)∣i,j=1,2,…,6}\Omega = \{(i, j) \mid i, j = 1, 2, \ldots, 6\}, which has n(Ω)=36n(\Omega) = 36.
Step 2: The pairs with sum equal to 7 are (1,6),(2,5),(3,4),(4,3),(5,2),(6,1)(1, 6), (2, 5), (3, 4), (4, 3), (5, 2), (6, 1).
So C={(1,6);(2,5);(3,4);(4,3);(5,2);(6,1)}C = \{(1, 6); (2, 5); (3, 4); (4, 3); (5, 2); (6, 1)\}.
Why: The pairs with the order swapped must also be counted because the two rolls are ordered; for example (1,6)(1, 6) and (6,1)(6, 1) are two different outcomes.
Step 3: Counting gives n(C)=6n(C) = 6.
Result: Ω\Omega has 36 elements; CC has 6 favourable outcomes.

Common mistakesWhen rolling two dice, some students think the sample space has 11 possible outcomes, the sums of the spots from 2 to 12. That is wrong because an outcome of the experiment is a pair of numbers (i,j)(i, j) giving the spots on the first and second die; the correct sample space has 36 pairs (i,j)(i, j) with i,j∈{1;2;…;6}i, j \in \{1; 2; \ldots; 6\}.

Common mistakesWhen counting the favourable outcomes for the event "the sum of the spots is 7" when rolling two dice, many students only list the pairs (1,6),(2,5),(3,4)(1, 6), (2, 5), (3, 4) and forget the pairs with the order swapped (4,3),(5,2),(6,1)(4, 3), (5, 2), (6, 1). There should be 6 outcomes.

TipWhen the experiment has two steps (like tossing twice, drawing two balls), make a table or a diagram to list the outcomes, so you do not miss any. In particular, if order matters, then pairs with the order swapped are different.

Example 4

A box has 5 green balls and 3 red balls, and the balls have the same size and mass. Take at random an unordered selection of 2 balls from the box. Let DD be the event "The two balls drawn have the same colour".
a) Calculate the number of elements of the sample space.
b) Calculate the number of favourable outcomes for DD.

Show the solution to example 4

Step 1: Taking an unordered selection of 2 balls from 8 balls, order does not matter, so the number of elements of the sample space is n(Ω)=C82=28n(\Omega) = C_8^2 = 28.
Step 2: The event DD occurs when the two balls are both green or both red. These two cases are disjoint.

  • Both green: choose 2 of the 5 green balls, there are C52=10C_5^2 = 10 ways.
  • Both red: choose 2 of the 3 red balls, there are C32=3C_3^2 = 3 ways.

Why: Use the addition rule because the two cases cannot happen at the same time; use combinations because the selection is unordered, so there is no before or after.
Step 3: The number of favourable outcomes for DD is n(D)=10+3=13n(D) = 10 + 3 = 13.
Result: n(Ω)=28n(\Omega) = 28; n(D)=13n(D) = 13.

Example 5

A group has 5 boys and 4 girls. Choose at random an unordered selection of 3 students to do volunteer work. Let EE be the event "Among the 3 chosen students there are exactly 2 girls".
a) Calculate the number of elements of the sample space.
b) Calculate the number of favourable outcomes for EE.

Show the solution to example 5

Step 1: Choose 3 students from 9 students, order does not matter, so n(Ω)=C93=84n(\Omega) = C_9^3 = 84.
Step 2: To have exactly 2 girls, we choose 2 girls from the 4 girls and 1 boy from the 5 boys.

  • Number of ways to choose 2 girls: C42=6C_4^2 = 6.
  • Number of ways to choose 1 boy: C51=5C_5^1 = 5.

Why: Use the multiplication rule because the two stages follow one another: choose the girls then choose the boy.
Step 3: The number of favourable outcomes for EE is n(E)=6⋅5=30n(E) = 6 \cdot 5 = 30.
Result: n(Ω)=84n(\Omega) = 84; n(E)=30n(E) = 30.

Example 6

A box has 10 cards numbered from 1 to 10. Take at random one card. Let FF be the event "The number on the card is a prime number".
a) Describe the sample space.
b) Write FF and F‾\overline{F} as subsets of the sample space. How many favourable outcomes are there for FF and for F‾\overline{F}?

Show the solution to example 6

Step 1: Ω={1;2;3;4;5;6;7;8;9;10}\Omega = \{1; 2; 3; 4; 5; 6; 7; 8; 9; 10\}, n(Ω)=10n(\Omega) = 10.
Step 2: The prime numbers from 1 to 10 are 2,3,5,72, 3, 5, 7. So F={2;3;5;7}F = \{2; 3; 5; 7\}, n(F)=4n(F) = 4.
Step 3: The complementary events F‾\overline{F} consist of the remaining numbers: F‾={1;4;6;8;9;10}\overline{F} = \{1; 4; 6; 8; 9; 10\}, n(F‾)=6n(\overline{F}) = 6.
Why: F‾\overline{F} is the complement of FF in Ω\Omega, so n(F‾)=10−4=6n(\overline{F}) = 10 - 4 = 6.
Result: F={2;3;5;7}F = \{2; 3; 5; 7\} has 4 favourable outcomes; F‾\overline{F} has 6 favourable outcomes.

Terms

Random experiment
An activity whose outcome we cannot know in advance.Example: Roll a die.
Sample space
The set of all possible outcomes of the experiment, denoted Ω\Omega.Example: Toss a coin: Ω={S;N}\Omega = \{S; N\}.
Event
A subset of the sample space.Example: "The number of spots is an even number" is the event {2;4;6}\{2; 4; 6\}.
Favourable outcome
An outcome that makes the event happen.Example: For the event "an odd number comes up", the outcome 3 is a favourable outcome.
Impossible event
An event that never occurs, denoted ∅\varnothing.Example: Roll a die, "the number of spots is 7".
Certain event
An event that always occurs, denoted Ω\Omega.Example: Roll a die, "the number of spots is less than 7".
Complementary events
The event "AA does not happen", written A‾\overline{A}.Example: The complement of "an even number comes up" is "an odd number comes up".