Lesson 1 Sample Space Union Intersection Complement and Counting Rules
Lesson 1 Sample Space Union Intersection Complement and Counting Rules
Topics
1. Sample space and relationships among events
2. Counting rules useful in probability
Learning Outcome
Discuss how probability and probability models are used in engineering and science.
Understand and describe sample spaces and events for random experiments with
graphs, tables, lists, or tree diagram
Use permutations and combinations to count the number of outcomes in both an event
and the sample space.
Calculate the probabilities of joint events such as unions and intersections from the
probabilities of individual events.
Interpret and calculate conditional probabilities of events
Describe random variables and the difference between continuous and discrete
random variables
Lesson 1. SAMPLE SPACES AND EVENTS FOR RANDOM EXPERIMENTS
Examples
1. An experiment designed to study the effect (efficiency) of two different gasoline
additives on the fuel efficiency.
2. Testing a new and improved farming equipment whether it is a defective
product or an acceptable product.
3. Rolling a die, and recording the even number that appears.
4. Tossing two coins simultaneously, and recording the heads that appear
Examples:
1. Rolling a die
S = {1, 2, 3, 4, 5, 6} n(S) = 6 discrete sample space
3. Consider an experiment that selects a cell phone camera and records the
recycle time of a flash (the time taken to ready the camera for another
flash). The possible values for this time depend on the resolution of the
timer and on the minimum and maximum recycle times. However, because
the time is positive, it is convenient to define the sample space as simply
the positive real line
S = R+ = {x | x > 0} n(S) = ∞ continuous sample space
If it is known that all recycle times are between 1.5 and 5 seconds, the
sample space can be
S = {x | 1.5 < x < 5} n(S) = ∞ continuous sample space
If the objective of the analysis is to consider only whether the recycle time is
low, medium, or high, the sample space can be taken to be the set of three
outcomes
S = {low, medium, high} n(S) = 3 continuous sample space
Examples:
1. Random Experiment : Rolling a die
Sample Space : S = {1, 2, 3, 4, 5, 6}
Number of Outcomes/Sample Point : n(S) = 6
Sample Points : 1, 2, 3, 4, 5, 6
Events :
E1 = the number rolled is even = {2, 4, 6}
E2 = the number rolled is odd = {1, 3, 5}
E3 = the number rolled is greater than two = (3, 4, 5, 6}
To visualize the result, we can list the possible outcomes using a tabular
presentation
2. A fair coin is flipped twice, and a sequence of heads (H) and tails (T) is observed.
List the sample space of the experiment using a tree diagram.
n(S) = 4
3. An experiment consists of flipping a coin and then flipping it a second time if a
head occurs. If a tail occurs on the first flip, then a die is tossed. List the elements
of the sample space using a tree diagram.
4. Suppose that four (4) items are selected at random from a manufacturing process.
Each item is expected and classified defective D or non-defective N. Determine the
sample space using a tree diagram.
𝑆 = {DDDD,DDDN,DDND,DDNN,DNDD,DNDN,DNND,DNNN,
NDDD,NDDN,NDND,NDNN,NNDD,NNDN,NNND,NNNN}
n(S) = 16
Note: Because events are subsets, we can use basic set operations such as unions,
intersections, and complements to form other events of interest.
Lesson 2. UNION, INTERSECTION AND COMPLEMENT OF EVENTS
The union of two events is the event that consists of all outcomes that are contained in
either of the two events. We denote the union as E1 ∪ E2.
The intersection of two events is the event that consists of all outcomes that are contained
in both of the two events. We denote the intersection as E1 ∩ E2.
The complement of an event in a sample space is the set of outcomes in the sample space
that are not in the event. We denote the complement of the event E as E′. The notation E C
is also used in other literature to denote the complement.
Examples:
1. Random Experiment: Rolling a single die
S = {1, 2, 3, 4, 5, 6}
Events: E1 = the number rolled is even = {2, 4, 6}
E2 = the number rolled is greater than two = (3, 4, 5, 6}
E3 = the number rolled is odd = {1, 3, 5}
E1 ∪ E2 = {2, 3, 4, 5, 6} Union of Event 1 and Event 2
E1 ∩ E2 = {4, 6} Intersection of Event 1 and Event 2
E1 ∩ E3 = { } or Ø Event 1 and Event 3 are mutually exclusive
events
E1’ = {1, 3, 5} Complement of Event 1
E2’ = {1, 2} Complement of Event 2
Reference:
https://www.math.wsu.edu/students/odykhovychnyi/M201-04/Ch08_2_ Union_Intersection_and_
Complement_of_Event_Odds.pdf
Lesson 3. FUNDAMENTAL PRINCIPLE OF COUNTING
If activity A can be done in n 1 ways and after it has been done, activity B can be done in n 2
ways, then the total number of ways in which the two activities can be done is equal to
n1 * n2
In general, if task T1 can be performed N1 ways, task T2 can be performed N2 ways, …, and
task Tn can be performed Nn ways, then the total number of ways of performing tasks
T1,T2,…,Tn in succession is given by
Examples:
1. Suppose you flip a coin. There are 2 possible outcomes: Head and Tail.
Suppose you flip it a second time. There are also 2 possible outcomes: Head and
Tail.
How many possible outcomes are there if you flip the coin twice?
4 possible outcomes = 2 possible outcomes (1st flip) * 2 possible outcomes (2nd flip)
HH, TT, HT, TH
2. Suppose you roll a 6-sided die twice. How many different outcomes are possible?
6 x 6 =36
3. How many possible outcomes are there if you rolled a 6-sided thrice?
6 x 6 x 6 = 216
4. Suppose you have a deck of 52 cards. You draw 5 cards. How many different
outcomes of 5 cards could you draw?
52 x 51 x 50 x 49 x 48 = 311,875,200
5. How many different license plates are possible if each plate consists of 2 letters
followed by a 4-digit number? Assume repetitions in the letters or numbers are
allowed and any of the 10 digits may be used in each plate of the 4-digit number.
26 26 x 10 x 10 x 10 x 10 = 6,760,000
6. Surprisingly the Government ran out of license plates, so new plates have 4 letters
followed by 3 numbers. How many 7-digit plate combinations are there?
26 26 26 26 10 10 10 = 45,697,600
Factorials
We can define a mathematical operation called a factorial as being the multiple of all
natural numbers up to some natural number n
Examples:
1. 3! = (1)(2)(3) = 6
2. 5! = (1)(2)(3)(4)(5) = 120
3. 12!= (1)(2)(3)(4)(5)(6)(7)(8)(9)(10)(11)(12) = 479,001,600
Note: 0! = 1
Lesson 4. PERMUTATION
A Permutation
• is a specific ordering of the elements in a set.
• is an arrangement of all or part of a set of objects in a definite order. Order is an
important aspect of permutation.
nPr = n!/(n-r)!
Examples
1. For the set A = {1,2,3}, the permutations are
2. Four people are to be arranged in a row to have their picture taken. In how many
ways can this be done?
4 3 2 1 = 24
3. Supposed that the same five people park their cars on the same side of the street in
the same block every night. How many different arrangements of the cars parked
on the street are possible.
5 4 3 2 1 = 120
4. Fifteen cars enter a race. In how many different ways could trophies for the first, second
and third place be awarded?
15 14 13 = 2730
5. Four books are to be chosen from a set of 10 books of distinct titles. How many ways can
be these books be chosen?
10 9 8 7 = 5040
Example:
In how many ways can 4 different resistors be arranged in series?
4! = 4(3)(2)(1) = 24 ways
Notes:
n! n! n!
1. nPn = = = =n !
( n−n ) ! 0 ! 1
2. nPr or nPr
Examples:
1. In how many ways can a supermarket manager display 55 brands of cereals in
33 spaces on a shelf?
5! 120
5P3 = = =60
( 5−3 ) ! 2!
2. How many different number-plates for cars can be made if each number-plate
contains four of the digits 0 to 9 followed by a letter A to Z, assuming that
10 ! 3628800
10 digits taken 4 at a time 10P4 = = =5040
( 10−4 ) ! 720
26 letters in the alphabet 26
(10000)(26) = 260,000
Example:
1. In how many ways can the five letters of the word “statistics” be arranged in a
row?
Since there are three “s”, three “t”s, two “i”s, one “a”s and one “c”s in the word
statistics. Then, the number of ways we can arrange the letter in the word
statistics is
10 ! 3628800 3628800
= = =50,400
3! 3 ! 2 ! 1 ! 1! 6 (6)(2)(1)(1) 72
Example:
1. In how many ways can 6 people be arranged in a circle?
(n – 1)! = (6 – 1)! = 5! = 120
Lesson 5. COMBINATION
n!
nCr = (n−r )! r !
Note:
1. nCn = 1
2. nC0 = 1
Examples:
1. Out of a group of 6 people, a pair need to be formed. The number of possible
combinations is:
6!
6C2= (6−2)! 2 ! =15
2. There are 4 men and 5 women in a small office. The customer wants a site visit
from a group of 2 man and 3 women. How many different groups can be formed
from the office?
4!
( 5!
)
(4C2)(5C3)= ( ( 4−2) ! 2! ¿ ( 5−3 ) ! 3 ! = ( 6 ) ( 10 )=60
References:
https://www.intmath.com/counting-probability/3-permutations.php
https://www.onlinemathlearning.com/combinations.html
MSA Statistics and Probability, Alferez, Duro